@deephaven/embed-chart 0.37.1-beta.0 → 0.37.1-logout.13

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,51 +1,51 @@
1
- import{g as Cm,c as tr,a as pl}from"./helpers-042e6b4d.js";var fS={},pF={get exports(){return fS},set exports(e){fS=e}},gd={};/*
1
+ import{g as Om,c as tr,a as pl}from"./helpers-042e6b4d.js";var cS={},mF={get exports(){return cS},set exports(e){cS=e}},gd={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var sS=Object.getOwnPropertySymbols,vF=Object.prototype.hasOwnProperty,mF=Object.prototype.propertyIsEnumerable;function gF(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function yF(){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 vl=yF()?Object.assign:function(e,t){for(var r,n=gF(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)vF.call(r,o)&&(n[o]=r[o]);if(sS){i=sS(r);for(var l=0;l<i.length;l++)mF.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},vr={},xF={get exports(){return vr},set exports(e){vr=e}},yr={};/** @license React v17.0.2
5
+ */var hS=Object.getOwnPropertySymbols,gF=Object.prototype.hasOwnProperty,yF=Object.prototype.propertyIsEnumerable;function xF(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _F(){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 vl=_F()?Object.assign:function(e,t){for(var r,n=xF(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)gF.call(r,o)&&(n[o]=r[o]);if(hS){i=hS(r);for(var l=0;l<i.length;l++)yF.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},vr={},wF={get exports(){return vr},set exports(e){vr=e}},yr={};/** @license React v17.0.2
6
6
  * react.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var i2=vl,hs=60103,jC=60106;yr.Fragment=60107;yr.StrictMode=60108;yr.Profiler=60114;var GC=60109,HC=60110,qC=60112;yr.Suspense=60113;var WC=60115,VC=60116;if(typeof Symbol=="function"&&Symbol.for){var $i=Symbol.for;hs=$i("react.element"),jC=$i("react.portal"),yr.Fragment=$i("react.fragment"),yr.StrictMode=$i("react.strict_mode"),yr.Profiler=$i("react.profiler"),GC=$i("react.provider"),HC=$i("react.context"),qC=$i("react.forward_ref"),yr.Suspense=$i("react.suspense"),WC=$i("react.memo"),VC=$i("react.lazy")}var cS=typeof Symbol=="function"&&Symbol.iterator;function _F(e){return e===null||typeof e!="object"?null:(e=cS&&e[cS]||e["@@iterator"],typeof e=="function"?e:null)}function yd(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 YC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XC={};function ds(e,t,r){this.props=e,this.context=t,this.refs=XC,this.updater=r||YC}ds.prototype.isReactComponent={};ds.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(yd(85));this.updater.enqueueSetState(this,e,t,"setState")};ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QC(){}QC.prototype=ds.prototype;function a2(e,t,r){this.props=e,this.context=t,this.refs=XC,this.updater=r||YC}var o2=a2.prototype=new QC;o2.constructor=a2;i2(o2,ds.prototype);o2.isPureReactComponent=!0;var u2={current:null},ZC=Object.prototype.hasOwnProperty,KC={key:!0,ref:!0,__self:!0,__source:!0};function JC(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)ZC.call(t,n)&&!KC.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:hs,type:e,key:a,ref:o,props:i,_owner:u2.current}}function wF(e,t){return{$$typeof:hs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function l2(e){return typeof e=="object"&&e!==null&&e.$$typeof===hs}function bF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var hS=/\/+/g;function yy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bF(""+e.key):t.toString(36)}function Jv(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case hs:case jC:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+yy(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(hS,"$&/")+"/"),Jv(i,t,r,"",function(c){return c})):i!=null&&(l2(i)&&(i=wF(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(hS,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+yy(a,l);o+=Jv(a,t,r,s,i)}else if(s=_F(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+yy(a,l++),o+=Jv(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(yd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function av(e,t,r){if(e==null)return e;var n=[],i=0;return Jv(e,n,"","",function(a){return t.call(r,a,i++)}),n}function SF(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 eO={current:null};function Xa(){var e=eO.current;if(e===null)throw Error(yd(321));return e}var EF={ReactCurrentDispatcher:eO,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:u2,IsSomeRendererActing:{current:!1},assign:i2};yr.Children={map:av,forEach:function(e,t,r){av(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return av(e,function(){t++}),t},toArray:function(e){return av(e,function(t){return t})||[]},only:function(e){if(!l2(e))throw Error(yd(143));return e}};yr.Component=ds;yr.PureComponent=a2;yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EF;yr.cloneElement=function(e,t,r){if(e==null)throw Error(yd(267,e));var n=i2({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=u2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)ZC.call(t,s)&&!KC.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:hs,type:e.type,key:i,ref:a,props:n,_owner:o}};yr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:HC,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:GC,_context:e},e.Consumer=e};yr.createElement=JC;yr.createFactory=function(e){var t=JC.bind(null,e);return t.type=e,t};yr.createRef=function(){return{current:null}};yr.forwardRef=function(e){return{$$typeof:qC,render:e}};yr.isValidElement=l2;yr.lazy=function(e){return{$$typeof:VC,_payload:{_status:-1,_result:e},_init:SF}};yr.memo=function(e,t){return{$$typeof:WC,type:e,compare:t===void 0?null:t}};yr.useCallback=function(e,t){return Xa().useCallback(e,t)};yr.useContext=function(e,t){return Xa().useContext(e,t)};yr.useDebugValue=function(){};yr.useEffect=function(e,t){return Xa().useEffect(e,t)};yr.useImperativeHandle=function(e,t,r){return Xa().useImperativeHandle(e,t,r)};yr.useLayoutEffect=function(e,t){return Xa().useLayoutEffect(e,t)};yr.useMemo=function(e,t){return Xa().useMemo(e,t)};yr.useReducer=function(e,t,r){return Xa().useReducer(e,t,r)};yr.useRef=function(e){return Xa().useRef(e)};yr.useState=function(e){return Xa().useState(e)};yr.version="17.0.2";(function(e){e.exports=yr})(xF);const Tn=Cm(vr);/** @license React v17.0.2
12
+ */var o2=vl,hs=60103,HT=60106;yr.Fragment=60107;yr.StrictMode=60108;yr.Profiler=60114;var qT=60109,WT=60110,VT=60112;yr.Suspense=60113;var YT=60115,XT=60116;if(typeof Symbol=="function"&&Symbol.for){var $i=Symbol.for;hs=$i("react.element"),HT=$i("react.portal"),yr.Fragment=$i("react.fragment"),yr.StrictMode=$i("react.strict_mode"),yr.Profiler=$i("react.profiler"),qT=$i("react.provider"),WT=$i("react.context"),VT=$i("react.forward_ref"),yr.Suspense=$i("react.suspense"),YT=$i("react.memo"),XT=$i("react.lazy")}var dS=typeof Symbol=="function"&&Symbol.iterator;function bF(e){return e===null||typeof e!="object"?null:(e=dS&&e[dS]||e["@@iterator"],typeof e=="function"?e:null)}function yd(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 QT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ZT={};function ds(e,t,r){this.props=e,this.context=t,this.refs=ZT,this.updater=r||QT}ds.prototype.isReactComponent={};ds.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(yd(85));this.updater.enqueueSetState(this,e,t,"setState")};ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KT(){}KT.prototype=ds.prototype;function u2(e,t,r){this.props=e,this.context=t,this.refs=ZT,this.updater=r||QT}var l2=u2.prototype=new KT;l2.constructor=u2;o2(l2,ds.prototype);l2.isPureReactComponent=!0;var f2={current:null},JT=Object.prototype.hasOwnProperty,eO={key:!0,ref:!0,__self:!0,__source:!0};function tO(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)JT.call(t,n)&&!eO.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:hs,type:e,key:a,ref:o,props:i,_owner:f2.current}}function SF(e,t){return{$$typeof:hs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function s2(e){return typeof e=="object"&&e!==null&&e.$$typeof===hs}function EF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var pS=/\/+/g;function xy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?EF(""+e.key):t.toString(36)}function e0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case hs:case HT:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+xy(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(pS,"$&/")+"/"),e0(i,t,r,"",function(c){return c})):i!=null&&(s2(i)&&(i=SF(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(pS,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+xy(a,l);o+=e0(a,t,r,s,i)}else if(s=bF(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+xy(a,l++),o+=e0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(yd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function av(e,t,r){if(e==null)return e;var n=[],i=0;return e0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function AF(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 rO={current:null};function Xa(){var e=rO.current;if(e===null)throw Error(yd(321));return e}var CF={ReactCurrentDispatcher:rO,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:f2,IsSomeRendererActing:{current:!1},assign:o2};yr.Children={map:av,forEach:function(e,t,r){av(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return av(e,function(){t++}),t},toArray:function(e){return av(e,function(t){return t})||[]},only:function(e){if(!s2(e))throw Error(yd(143));return e}};yr.Component=ds;yr.PureComponent=u2;yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CF;yr.cloneElement=function(e,t,r){if(e==null)throw Error(yd(267,e));var n=o2({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=f2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)JT.call(t,s)&&!eO.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:hs,type:e.type,key:i,ref:a,props:n,_owner:o}};yr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:WT,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:qT,_context:e},e.Consumer=e};yr.createElement=tO;yr.createFactory=function(e){var t=tO.bind(null,e);return t.type=e,t};yr.createRef=function(){return{current:null}};yr.forwardRef=function(e){return{$$typeof:VT,render:e}};yr.isValidElement=s2;yr.lazy=function(e){return{$$typeof:XT,_payload:{_status:-1,_result:e},_init:AF}};yr.memo=function(e,t){return{$$typeof:YT,type:e,compare:t===void 0?null:t}};yr.useCallback=function(e,t){return Xa().useCallback(e,t)};yr.useContext=function(e,t){return Xa().useContext(e,t)};yr.useDebugValue=function(){};yr.useEffect=function(e,t){return Xa().useEffect(e,t)};yr.useImperativeHandle=function(e,t,r){return Xa().useImperativeHandle(e,t,r)};yr.useLayoutEffect=function(e,t){return Xa().useLayoutEffect(e,t)};yr.useMemo=function(e,t){return Xa().useMemo(e,t)};yr.useReducer=function(e,t,r){return Xa().useReducer(e,t,r)};yr.useRef=function(e){return Xa().useRef(e)};yr.useState=function(e){return Xa().useState(e)};yr.version="17.0.2";(function(e){e.exports=yr})(wF);const Cn=Om(vr);/** @license React v17.0.2
13
13
  * react-jsx-runtime.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var AF=vr,tO=60103;gd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var dS=Symbol.for;tO=dS("react.element"),gd.Fragment=dS("react.fragment")}var TF=AF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CF=Object.prototype.hasOwnProperty,OF={key:!0,ref:!0,__self:!0,__source:!0};function rO(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)CF.call(t,n)&&!OF.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:tO,type:e,key:a,ref:o,props:i,_owner:TF.current}}gd.jsx=rO;gd.jsxs=rO;(function(e){e.exports=gd})(pF);var Dh={},kF={get exports(){return Dh},set exports(e){Dh=e}},Ti={},f_={},MF={get exports(){return f_},set exports(e){f_=e}},nO={};/** @license React v0.20.2
19
+ */var TF=vr,nO=60103;gd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var vS=Symbol.for;nO=vS("react.element"),gd.Fragment=vS("react.fragment")}var OF=TF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kF=Object.prototype.hasOwnProperty,MF={key:!0,ref:!0,__self:!0,__source:!0};function iO(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)kF.call(t,n)&&!MF.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:nO,type:e,key:a,ref:o,props:i,_owner:OF.current}}gd.jsx=iO;gd.jsxs=iO;(function(e){e.exports=gd})(mF);var Dh={},RF={get exports(){return Dh},set exports(e){Dh=e}},Ci={},s_={},PF={get exports(){return s_},set exports(e){s_=e}},aO={};/** @license React v0.20.2
20
20
  * scheduler.production.min.js
21
21
  *
22
22
  * Copyright (c) Facebook, Inc. and its affiliates.
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,c=null,p=function(){if(s!==null)try{var be=e.unstable_now();s(!0,be),s=null}catch(Ve){throw setTimeout(p,0),Ve}};t=function(be){s!==null?setTimeout(t,0,be):(s=be,setTimeout(p,0))},r=function(be,Ve){c=setTimeout(be,Ve)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var C=!1,P=null,b=-1,_=5,E=0;e.unstable_shouldYield=function(){return e.unstable_now()>=E},i=function(){},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<be?Math.floor(1e3/be):5};var k=new MessageChannel,F=k.port2;k.port1.onmessage=function(){if(P!==null){var be=e.unstable_now();E=be+_;try{P(!0,be)?F.postMessage(null):(C=!1,P=null)}catch(Ve){throw F.postMessage(null),Ve}}else C=!1},t=function(be){P=be,C||(C=!0,F.postMessage(null))},r=function(be,Ve){b=x(function(){be(e.unstable_now())},Ve)},n=function(){g(b),b=-1}}function I(be,Ve){var ct=be.length;be.push(Ve);e:for(;;){var et=ct-1>>>1,pt=be[et];if(pt!==void 0&&0<V(pt,Ve))be[et]=Ve,be[ct]=pt,ct=et;else break e}}function $(be){return be=be[0],be===void 0?null:be}function ne(be){var Ve=be[0];if(Ve!==void 0){var ct=be.pop();if(ct!==Ve){be[0]=ct;e:for(var et=0,pt=be.length;et<pt;){var wt=2*(et+1)-1,qt=be[wt],Vt=wt+1,Qe=be[Vt];if(qt!==void 0&&0>V(qt,ct))Qe!==void 0&&0>V(Qe,qt)?(be[et]=Qe,be[Vt]=ct,et=Vt):(be[et]=qt,be[wt]=ct,et=wt);else if(Qe!==void 0&&0>V(Qe,ct))be[et]=Qe,be[Vt]=ct,et=Vt;else break e}}return Ve}return null}function V(be,Ve){var ct=be.sortIndex-Ve.sortIndex;return ct!==0?ct:be.id-Ve.id}var ae=[],Ce=[],Oe=1,Pe=null,De=3,Ue=!1,ft=!1,nt=!1;function $e(be){for(var Ve=$(Ce);Ve!==null;){if(Ve.callback===null)ne(Ce);else if(Ve.startTime<=be)ne(Ce),Ve.sortIndex=Ve.expirationTime,I(ae,Ve);else break;Ve=$(Ce)}}function qe(be){if(nt=!1,$e(be),!ft)if($(ae)!==null)ft=!0,t(kt);else{var Ve=$(Ce);Ve!==null&&r(qe,Ve.startTime-be)}}function kt(be,Ve){ft=!1,nt&&(nt=!1,n()),Ue=!0;var ct=De;try{for($e(Ve),Pe=$(ae);Pe!==null&&(!(Pe.expirationTime>Ve)||be&&!e.unstable_shouldYield());){var et=Pe.callback;if(typeof et=="function"){Pe.callback=null,De=Pe.priorityLevel;var pt=et(Pe.expirationTime<=Ve);Ve=e.unstable_now(),typeof pt=="function"?Pe.callback=pt:Pe===$(ae)&&ne(ae),$e(Ve)}else ne(ae);Pe=$(ae)}if(Pe!==null)var wt=!0;else{var qt=$(Ce);qt!==null&&r(qe,qt.startTime-Ve),wt=!1}return wt}finally{Pe=null,De=ct,Ue=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(be){be.callback=null},e.unstable_continueExecution=function(){ft||Ue||(ft=!0,t(kt))},e.unstable_getCurrentPriorityLevel=function(){return De},e.unstable_getFirstCallbackNode=function(){return $(ae)},e.unstable_next=function(be){switch(De){case 1:case 2:case 3:var Ve=3;break;default:Ve=De}var ct=De;De=Ve;try{return be()}finally{De=ct}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(be,Ve){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var ct=De;De=be;try{return Ve()}finally{De=ct}},e.unstable_scheduleCallback=function(be,Ve,ct){var et=e.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?et+ct:et):ct=et,be){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=ct+pt,be={id:Oe++,callback:Ve,priorityLevel:be,startTime:ct,expirationTime:pt,sortIndex:-1},ct>et?(be.sortIndex=ct,I(Ce,be),$(ae)===null&&be===$(Ce)&&(nt?n():nt=!0,r(qe,ct-et))):(be.sortIndex=pt,I(ae,be),ft||Ue||(ft=!0,t(kt))),be},e.unstable_wrapCallback=function(be){var Ve=De;return function(){var ct=De;De=Ve;try{return be.apply(this,arguments)}finally{De=ct}}}})(nO);(function(e){e.exports=nO})(MF);/** @license React v17.0.2
26
+ */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,c=null,p=function(){if(s!==null)try{var be=e.unstable_now();s(!0,be),s=null}catch(Ve){throw setTimeout(p,0),Ve}};t=function(be){s!==null?setTimeout(t,0,be):(s=be,setTimeout(p,0))},r=function(be,Ve){c=setTimeout(be,Ve)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var T=!1,P=null,b=-1,_=5,E=0;e.unstable_shouldYield=function(){return e.unstable_now()>=E},i=function(){},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<be?Math.floor(1e3/be):5};var k=new MessageChannel,F=k.port2;k.port1.onmessage=function(){if(P!==null){var be=e.unstable_now();E=be+_;try{P(!0,be)?F.postMessage(null):(T=!1,P=null)}catch(Ve){throw F.postMessage(null),Ve}}else T=!1},t=function(be){P=be,T||(T=!0,F.postMessage(null))},r=function(be,Ve){b=x(function(){be(e.unstable_now())},Ve)},n=function(){g(b),b=-1}}function I(be,Ve){var ct=be.length;be.push(Ve);e:for(;;){var et=ct-1>>>1,pt=be[et];if(pt!==void 0&&0<V(pt,Ve))be[et]=Ve,be[ct]=pt,ct=et;else break e}}function $(be){return be=be[0],be===void 0?null:be}function ne(be){var Ve=be[0];if(Ve!==void 0){var ct=be.pop();if(ct!==Ve){be[0]=ct;e:for(var et=0,pt=be.length;et<pt;){var wt=2*(et+1)-1,qt=be[wt],Vt=wt+1,Qe=be[Vt];if(qt!==void 0&&0>V(qt,ct))Qe!==void 0&&0>V(Qe,qt)?(be[et]=Qe,be[Vt]=ct,et=Vt):(be[et]=qt,be[wt]=ct,et=wt);else if(Qe!==void 0&&0>V(Qe,ct))be[et]=Qe,be[Vt]=ct,et=Vt;else break e}}return Ve}return null}function V(be,Ve){var ct=be.sortIndex-Ve.sortIndex;return ct!==0?ct:be.id-Ve.id}var ae=[],Te=[],Oe=1,Pe=null,De=3,Ue=!1,ft=!1,nt=!1;function $e(be){for(var Ve=$(Te);Ve!==null;){if(Ve.callback===null)ne(Te);else if(Ve.startTime<=be)ne(Te),Ve.sortIndex=Ve.expirationTime,I(ae,Ve);else break;Ve=$(Te)}}function qe(be){if(nt=!1,$e(be),!ft)if($(ae)!==null)ft=!0,t(kt);else{var Ve=$(Te);Ve!==null&&r(qe,Ve.startTime-be)}}function kt(be,Ve){ft=!1,nt&&(nt=!1,n()),Ue=!0;var ct=De;try{for($e(Ve),Pe=$(ae);Pe!==null&&(!(Pe.expirationTime>Ve)||be&&!e.unstable_shouldYield());){var et=Pe.callback;if(typeof et=="function"){Pe.callback=null,De=Pe.priorityLevel;var pt=et(Pe.expirationTime<=Ve);Ve=e.unstable_now(),typeof pt=="function"?Pe.callback=pt:Pe===$(ae)&&ne(ae),$e(Ve)}else ne(ae);Pe=$(ae)}if(Pe!==null)var wt=!0;else{var qt=$(Te);qt!==null&&r(qe,qt.startTime-Ve),wt=!1}return wt}finally{Pe=null,De=ct,Ue=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(be){be.callback=null},e.unstable_continueExecution=function(){ft||Ue||(ft=!0,t(kt))},e.unstable_getCurrentPriorityLevel=function(){return De},e.unstable_getFirstCallbackNode=function(){return $(ae)},e.unstable_next=function(be){switch(De){case 1:case 2:case 3:var Ve=3;break;default:Ve=De}var ct=De;De=Ve;try{return be()}finally{De=ct}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(be,Ve){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var ct=De;De=be;try{return Ve()}finally{De=ct}},e.unstable_scheduleCallback=function(be,Ve,ct){var et=e.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?et+ct:et):ct=et,be){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=ct+pt,be={id:Oe++,callback:Ve,priorityLevel:be,startTime:ct,expirationTime:pt,sortIndex:-1},ct>et?(be.sortIndex=ct,I(Te,be),$(ae)===null&&be===$(Te)&&(nt?n():nt=!0,r(qe,ct-et))):(be.sortIndex=pt,I(ae,be),ft||Ue||(ft=!0,t(kt))),be},e.unstable_wrapCallback=function(be){var Ve=De;return function(){var ct=De;De=Ve;try{return be.apply(this,arguments)}finally{De=ct}}}})(aO);(function(e){e.exports=aO})(PF);/** @license React v17.0.2
27
27
  * react-dom.production.min.js
28
28
  *
29
29
  * Copyright (c) Facebook, Inc. and its affiliates.
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Om=vr,zr=vl,gn=f_;function ht(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(!Om)throw Error(ht(227));var iO=new Set,Bh={};function ml(e,t){Zf(e,t),Zf(e+"Capture",t)}function Zf(e,t){for(Bh[e]=t,e=0;e<t.length;e++)iO.add(t[e])}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),RF=/^[: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]*$/,pS=Object.prototype.hasOwnProperty,vS={},mS={};function PF(e){return pS.call(mS,e)?!0:pS.call(vS,e)?!1:RF.test(e)?mS[e]=!0:(vS[e]=!0,!1)}function FF(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 NF(e,t,r,n){if(t===null||typeof t>"u"||FF(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 jn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){On[e]=new jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];On[t]=new jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new jn(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){On[e]=new jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){On[e]=new jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){On[e]=new jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){On[e]=new jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){On[e]=new jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var f2=/[\-:]([a-z])/g;function s2(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(f2,s2);On[t]=new jn(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(f2,s2);On[t]=new jn(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(f2,s2);On[t]=new jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){On[e]=new jn(e,1,!1,e.toLowerCase(),null,!1,!1)});On.xlinkHref=new jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){On[e]=new jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function c2(e,t,r,n){var i=On.hasOwnProperty(t)?On[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||(NF(t,r,i,n)&&(r=null),n||i===null?PF(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 gl=Om.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oh=60103,Hu=60106,ko=60107,h2=60108,mh=60114,d2=60109,p2=60110,km=60112,gh=60113,_0=60120,Mm=60115,v2=60116,m2=60121,g2=60128,aO=60129,y2=60130,s_=60131;if(typeof Symbol=="function"&&Symbol.for){var dn=Symbol.for;oh=dn("react.element"),Hu=dn("react.portal"),ko=dn("react.fragment"),h2=dn("react.strict_mode"),mh=dn("react.profiler"),d2=dn("react.provider"),p2=dn("react.context"),km=dn("react.forward_ref"),gh=dn("react.suspense"),_0=dn("react.suspense_list"),Mm=dn("react.memo"),v2=dn("react.lazy"),m2=dn("react.block"),dn("react.scope"),g2=dn("react.opaque.id"),aO=dn("react.debug_trace_mode"),y2=dn("react.offscreen"),s_=dn("react.legacy_hidden")}var gS=typeof Symbol=="function"&&Symbol.iterator;function Nc(e){return e===null||typeof e!="object"?null:(e=gS&&e[gS]||e["@@iterator"],typeof e=="function"?e:null)}var xy;function uh(e){if(xy===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xy=t&&t[1]||""}return`
34
- `+xy+e}var _y=!1;function ov(e,t){if(!e||_y)return"";_y=!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(`
33
+ */var km=vr,zr=vl,gn=s_;function ht(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(!km)throw Error(ht(227));var oO=new Set,Bh={};function ml(e,t){Zf(e,t),Zf(e+"Capture",t)}function Zf(e,t){for(Bh[e]=t,e=0;e<t.length;e++)oO.add(t[e])}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FF=/^[: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]*$/,mS=Object.prototype.hasOwnProperty,gS={},yS={};function NF(e){return mS.call(yS,e)?!0:mS.call(gS,e)?!1:FF.test(e)?yS[e]=!0:(gS[e]=!0,!1)}function IF(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 LF(e,t,r,n){if(t===null||typeof t>"u"||IF(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 jn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){On[e]=new jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];On[t]=new jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new jn(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){On[e]=new jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){On[e]=new jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){On[e]=new jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){On[e]=new jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){On[e]=new jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var c2=/[\-:]([a-z])/g;function h2(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(c2,h2);On[t]=new jn(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(c2,h2);On[t]=new jn(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(c2,h2);On[t]=new jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){On[e]=new jn(e,1,!1,e.toLowerCase(),null,!1,!1)});On.xlinkHref=new jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){On[e]=new jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function d2(e,t,r,n){var i=On.hasOwnProperty(t)?On[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||(LF(t,r,i,n)&&(r=null),n||i===null?NF(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 gl=km.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oh=60103,Hu=60106,ko=60107,p2=60108,mh=60114,v2=60109,m2=60110,Mm=60112,gh=60113,w0=60120,Rm=60115,g2=60116,y2=60121,x2=60128,uO=60129,_2=60130,c_=60131;if(typeof Symbol=="function"&&Symbol.for){var dn=Symbol.for;oh=dn("react.element"),Hu=dn("react.portal"),ko=dn("react.fragment"),p2=dn("react.strict_mode"),mh=dn("react.profiler"),v2=dn("react.provider"),m2=dn("react.context"),Mm=dn("react.forward_ref"),gh=dn("react.suspense"),w0=dn("react.suspense_list"),Rm=dn("react.memo"),g2=dn("react.lazy"),y2=dn("react.block"),dn("react.scope"),x2=dn("react.opaque.id"),uO=dn("react.debug_trace_mode"),_2=dn("react.offscreen"),c_=dn("react.legacy_hidden")}var xS=typeof Symbol=="function"&&Symbol.iterator;function Nc(e){return e===null||typeof e!="object"?null:(e=xS&&e[xS]||e["@@iterator"],typeof e=="function"?e:null)}var _y;function uh(e){if(_y===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);_y=t&&t[1]||""}return`
34
+ `+_y+e}var wy=!1;function ov(e,t){if(!e||wy)return"";wy=!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
35
  `),a=n.stack.split(`
36
36
  `),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l])return`
37
- `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{_y=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?uh(e):""}function IF(e){switch(e.tag){case 5:return uh(e.type);case 16:return uh("Lazy");case 13:return uh("Suspense");case 19:return uh("SuspenseList");case 0:case 2:case 15:return e=ov(e.type,!1),e;case 11:return e=ov(e.type.render,!1),e;case 22:return e=ov(e.type._render,!1),e;case 1:return e=ov(e.type,!0),e;default:return""}}function If(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 ko:return"Fragment";case Hu:return"Portal";case mh:return"Profiler";case h2:return"StrictMode";case gh:return"Suspense";case _0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p2:return(e.displayName||"Context")+".Consumer";case d2:return(e._context.displayName||"Context")+".Provider";case km:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Mm:return If(e.type);case m2:return If(e._render);case v2:t=e._payload,e=e._init;try{return If(e(t))}catch{}}return null}function Wo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function oO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LF(e){var t=oO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uv(e){e._valueTracker||(e._valueTracker=LF(e))}function uO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=oO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function w0(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 c_(e,t){var r=t.checked;return zr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function yS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wo(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 lO(e,t){t=t.checked,t!=null&&c2(e,"checked",t,!1)}function h_(e,t){lO(e,t);var r=Wo(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")?d_(e,t.type,r):t.hasOwnProperty("defaultValue")&&d_(e,t.type,Wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xS(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 d_(e,t,r){(t!=="number"||w0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function $F(e){var t="";return Om.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function p_(e,t){return e=zr({children:void 0},t),(t=$F(t.children))&&(e.children=t),e}function Lf(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=""+Wo(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 v_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ht(91));return zr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _S(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ht(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(ht(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Wo(r)}}function fO(e,t){var r=Wo(t.value),n=Wo(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 wS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var m_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sO(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 g_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lv,cO=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!==m_.svg||"innerHTML"in e)e.innerHTML=t;else{for(lv=lv||document.createElement("div"),lv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var yh={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},DF=["Webkit","ms","Moz","O"];Object.keys(yh).forEach(function(e){DF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yh[t]=yh[e]})});function hO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||yh.hasOwnProperty(e)&&yh[e]?(""+t).trim():t+"px"}function dO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=hO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var BF=zr({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 y_(e,t){if(t){if(BF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ht(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ht(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(ht(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ht(62))}}function x_(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 x2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var __=null,$f=null,Df=null;function bS(e){if(e=_d(e)){if(typeof __!="function")throw Error(ht(280));var t=e.stateNode;t&&(t=Lm(t),__(e.stateNode,e.type,t))}}function pO(e){$f?Df?Df.push(e):Df=[e]:$f=e}function vO(){if($f){var e=$f,t=Df;if(Df=$f=null,bS(e),t)for(e=0;e<t.length;e++)bS(t[e])}}function _2(e,t){return e(t)}function mO(e,t,r,n,i){return e(t,r,n,i)}function w2(){}var gO=_2,qu=!1,wy=!1;function b2(){($f!==null||Df!==null)&&(w2(),vO())}function zF(e,t,r){if(wy)return e(t,r);wy=!0;try{return gO(e,t,r)}finally{wy=!1,b2()}}function Uh(e,t){var r=e.stateNode;if(r===null)return null;var n=Lm(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(ht(231,t,typeof r));return r}var w_=!1;if(Ga)try{var Ic={};Object.defineProperty(Ic,"passive",{get:function(){w_=!0}}),window.addEventListener("test",Ic,Ic),window.removeEventListener("test",Ic,Ic)}catch{w_=!1}function UF(e,t,r,n,i,a,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(p){this.onError(p)}}var xh=!1,b0=null,S0=!1,b_=null,jF={onError:function(e){xh=!0,b0=e}};function GF(e,t,r,n,i,a,o,l,s){xh=!1,b0=null,UF.apply(jF,arguments)}function HF(e,t,r,n,i,a,o,l,s){if(GF.apply(this,arguments),xh){if(xh){var c=b0;xh=!1,b0=null}else throw Error(ht(198));S0||(S0=!0,b_=c)}}function yl(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 yO(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 SS(e){if(yl(e)!==e)throw Error(ht(188))}function qF(e){var t=e.alternate;if(!t){if(t=yl(e),t===null)throw Error(ht(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 SS(i),e;if(a===n)return SS(i),t;a=a.sibling}throw Error(ht(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(ht(189))}}if(r.alternate!==n)throw Error(ht(190))}if(r.tag!==3)throw Error(ht(188));return r.stateNode.current===r?e:t}function xO(e){if(e=qF(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 ES(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var _O,S2,wO,bO,S_=!1,na=[],$o=null,Do=null,Bo=null,jh=new Map,Gh=new Map,Lc=[],AS="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 E_(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function TS(e,t){switch(e){case"focusin":case"focusout":$o=null;break;case"dragenter":case"dragleave":Do=null;break;case"mouseover":case"mouseout":Bo=null;break;case"pointerover":case"pointerout":jh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gh.delete(t.pointerId)}}function $c(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=E_(t,r,n,i,a),t!==null&&(t=_d(t),t!==null&&S2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function WF(e,t,r,n,i){switch(t){case"focusin":return $o=$c($o,e,t,r,n,i),!0;case"dragenter":return Do=$c(Do,e,t,r,n,i),!0;case"mouseover":return Bo=$c(Bo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return jh.set(a,$c(jh.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Gh.set(a,$c(Gh.get(a)||null,e,t,r,n,i)),!0}return!1}function VF(e){var t=Wu(e.target);if(t!==null){var r=yl(t);if(r!==null){if(t=r.tag,t===13){if(t=yO(r),t!==null){e.blockedOn=t,bO(e.lanePriority,function(){gn.unstable_runWithPriority(e.priority,function(){wO(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function e0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=C2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=_d(r),t!==null&&S2(t),e.blockedOn=r,!1;t.shift()}return!0}function CS(e,t,r){e0(e)&&r.delete(t)}function YF(){for(S_=!1;0<na.length;){var e=na[0];if(e.blockedOn!==null){e=_d(e.blockedOn),e!==null&&_O(e);break}for(var t=e.targetContainers;0<t.length;){var r=C2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&na.shift()}$o!==null&&e0($o)&&($o=null),Do!==null&&e0(Do)&&(Do=null),Bo!==null&&e0(Bo)&&(Bo=null),jh.forEach(CS),Gh.forEach(CS)}function Dc(e,t){e.blockedOn===t&&(e.blockedOn=null,S_||(S_=!0,gn.unstable_scheduleCallback(gn.unstable_NormalPriority,YF)))}function SO(e){function t(i){return Dc(i,e)}if(0<na.length){Dc(na[0],e);for(var r=1;r<na.length;r++){var n=na[r];n.blockedOn===e&&(n.blockedOn=null)}}for($o!==null&&Dc($o,e),Do!==null&&Dc(Do,e),Bo!==null&&Dc(Bo,e),jh.forEach(t),Gh.forEach(t),r=0;r<Lc.length;r++)n=Lc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Lc.length&&(r=Lc[0],r.blockedOn===null);)VF(r),r.blockedOn===null&&Lc.shift()}function fv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Af={animationend:fv("Animation","AnimationEnd"),animationiteration:fv("Animation","AnimationIteration"),animationstart:fv("Animation","AnimationStart"),transitionend:fv("Transition","TransitionEnd")},by={},EO={};Ga&&(EO=document.createElement("div").style,"AnimationEvent"in window||(delete Af.animationend.animation,delete Af.animationiteration.animation,delete Af.animationstart.animation),"TransitionEvent"in window||delete Af.transitionend.transition);function Rm(e){if(by[e])return by[e];if(!Af[e])return e;var t=Af[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in EO)return by[e]=t[r];return e}var AO=Rm("animationend"),TO=Rm("animationiteration"),CO=Rm("animationstart"),OO=Rm("transitionend"),kO=new Map,E2=new Map,XF=["abort","abort",AO,"animationEnd",TO,"animationIteration",CO,"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",OO,"transitionEnd","waiting","waiting"];function A2(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)),E2.set(n,t),kO.set(n,i),ml(i,[n])}}var QF=gn.unstable_now;QF();var Fr=8;function _f(e){if(1&e)return Fr=15,1;if(2&e)return Fr=14,2;if(4&e)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):e&32?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):e&256?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):e&4096?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):e&134217728?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):1073741824&e?(Fr=1,1073741824):(Fr=8,e))))))}function ZF(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 KF(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(ht(358,e))}}function Hh(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=_f(s),i=Fr):(l&=a,l!==0&&(n=_f(l),i=Fr))}else a=r&~o,a!==0?(n=_f(a),i=Fr):l!==0&&(n=_f(l),i=Fr);if(n===0)return 0;if(n=31-Vo(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(_f(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Vo(t),i=1<<r,n|=e[r],t&=~i;return n}function MO(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function E0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=wf(24&~t),e===0?E0(10,t):e;case 10:return e=wf(192&~t),e===0?E0(8,t):e;case 8:return e=wf(3584&~t),e===0&&(e=wf(4186112&~t),e===0&&(e=512)),e;case 2:return t=wf(805306368&~t),t===0&&(t=268435456),t}throw Error(ht(358,e))}function wf(e){return e&-e}function Sy(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Pm(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Vo(t),e[t]=r}var Vo=Math.clz32?Math.clz32:tN,JF=Math.log,eN=Math.LN2;function tN(e){return e===0?32:31-(JF(e)/eN|0)|0}var rN=gn.unstable_UserBlockingPriority,nN=gn.unstable_runWithPriority,t0=!0;function iN(e,t,r,n){qu||w2();var i=T2,a=qu;qu=!0;try{mO(i,e,t,r,n)}finally{(qu=a)||b2()}}function aN(e,t,r,n){nN(rN,T2.bind(null,e,t,r,n))}function T2(e,t,r,n){if(t0){var i;if((i=(t&4)===0)&&0<na.length&&-1<AS.indexOf(e))e=E_(null,e,t,r,n),na.push(e);else{var a=C2(e,t,r,n);if(a===null)i&&TS(e,n);else{if(i){if(-1<AS.indexOf(e)){e=E_(a,e,t,r,n),na.push(e);return}if(WF(a,e,t,r,n))return;TS(e,n)}GO(e,t,n,null,r)}}}}function C2(e,t,r,n){var i=x2(n);if(i=Wu(i),i!==null){var a=yl(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=yO(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return GO(e,t,n,i,r),null}var Ro=null,O2=null,r0=null;function RO(){if(r0)return r0;var e,t=O2,r=t.length,n,i="value"in Ro?Ro.value:Ro.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return r0=i.slice(e,1<n?1-n:void 0)}function n0(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 sv(){return!0}function OS(){return!1}function ci(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?sv:OS,this.isPropagationStopped=OS,this}return zr(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=sv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=sv)},persist:function(){},isPersistent:sv}),t}var ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},k2=ci(ps),xd=zr({},ps,{view:0,detail:0}),oN=ci(xd),Ey,Ay,Bc,Fm=zr({},xd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:M2,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!==Bc&&(Bc&&e.type==="mousemove"?(Ey=e.screenX-Bc.screenX,Ay=e.screenY-Bc.screenY):Ay=Ey=0,Bc=e),Ey)},movementY:function(e){return"movementY"in e?e.movementY:Ay}}),kS=ci(Fm),uN=zr({},Fm,{dataTransfer:0}),lN=ci(uN),fN=zr({},xd,{relatedTarget:0}),Ty=ci(fN),sN=zr({},ps,{animationName:0,elapsedTime:0,pseudoElement:0}),cN=ci(sN),hN=zr({},ps,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dN=ci(hN),pN=zr({},ps,{data:0}),MS=ci(pN),vN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mN={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"},gN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gN[e])?!!t[e]:!1}function M2(){return yN}var xN=zr({},xd,{key:function(e){if(e.key){var t=vN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=n0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:M2,charCode:function(e){return e.type==="keypress"?n0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?n0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_N=ci(xN),wN=zr({},Fm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),RS=ci(wN),bN=zr({},xd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:M2}),SN=ci(bN),EN=zr({},ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),AN=ci(EN),TN=zr({},Fm,{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}),CN=ci(TN),ON=[9,13,27,32],R2=Ga&&"CompositionEvent"in window,_h=null;Ga&&"documentMode"in document&&(_h=document.documentMode);var kN=Ga&&"TextEvent"in window&&!_h,PO=Ga&&(!R2||_h&&8<_h&&11>=_h),PS=String.fromCharCode(32),FS=!1;function FO(e,t){switch(e){case"keyup":return ON.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tf=!1;function MN(e,t){switch(e){case"compositionend":return NO(t);case"keypress":return t.which!==32?null:(FS=!0,PS);case"textInput":return e=t.data,e===PS&&FS?null:e;default:return null}}function RN(e,t){if(Tf)return e==="compositionend"||!R2&&FO(e,t)?(e=RO(),r0=O2=Ro=null,Tf=!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 PO&&t.locale!=="ko"?null:t.data;default:return null}}var PN={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 NS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!PN[e.type]:t==="textarea"}function IO(e,t,r,n){pO(n),t=A0(t,"onChange"),0<t.length&&(r=new k2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var wh=null,qh=null;function FN(e){zO(e,0)}function Nm(e){var t=Of(e);if(uO(t))return e}function NN(e,t){if(e==="change")return t}var LO=!1;if(Ga){var Cy;if(Ga){var Oy="oninput"in document;if(!Oy){var IS=document.createElement("div");IS.setAttribute("oninput","return;"),Oy=typeof IS.oninput=="function"}Cy=Oy}else Cy=!1;LO=Cy&&(!document.documentMode||9<document.documentMode)}function LS(){wh&&(wh.detachEvent("onpropertychange",$O),qh=wh=null)}function $O(e){if(e.propertyName==="value"&&Nm(qh)){var t=[];if(IO(t,qh,e,x2(e)),e=FN,qu)e(t);else{qu=!0;try{_2(e,t)}finally{qu=!1,b2()}}}}function IN(e,t,r){e==="focusin"?(LS(),wh=t,qh=r,wh.attachEvent("onpropertychange",$O)):e==="focusout"&&LS()}function LN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nm(qh)}function $N(e,t){if(e==="click")return Nm(t)}function DN(e,t){if(e==="input"||e==="change")return Nm(t)}function BN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wi=typeof Object.is=="function"?Object.is:BN,zN=Object.prototype.hasOwnProperty;function Wh(e,t){if(wi(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(!zN.call(t,r[n])||!wi(e[r[n]],t[r[n]]))return!1;return!0}function $S(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function DS(e,t){var r=$S(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=$S(r)}}function DO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?DO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function BS(){for(var e=window,t=w0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=w0(e.document)}return t}function A_(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 UN=Ga&&"documentMode"in document&&11>=document.documentMode,Cf=null,T_=null,bh=null,C_=!1;function zS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;C_||Cf==null||Cf!==w0(n)||(n=Cf,"selectionStart"in n&&A_(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}),bh&&Wh(bh,n)||(bh=n,n=A0(T_,"onSelect"),0<n.length&&(t=new k2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Cf)))}A2("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);A2("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);A2(XF,2);for(var US="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ky=0;ky<US.length;ky++)E2.set(US[ky],0);Zf("onMouseEnter",["mouseout","mouseover"]);Zf("onMouseLeave",["mouseout","mouseover"]);Zf("onPointerEnter",["pointerout","pointerover"]);Zf("onPointerLeave",["pointerout","pointerover"]);ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),BO=new Set("cancel close invalid load scroll toggle".split(" ").concat(lh));function jS(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,HF(n,t,void 0,e),e.currentTarget=null}function zO(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;jS(i,l,c),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;jS(i,l,c),a=s}}}if(S0)throw e=b_,S0=!1,b_=null,e}function Nr(e,t){var r=qO(t),n=e+"__bubble";r.has(n)||(jO(t,e,2,!1),r.add(n))}var GS="_reactListening"+Math.random().toString(36).slice(2);function UO(e){e[GS]||(e[GS]=!0,iO.forEach(function(t){BO.has(t)||HS(t,!1,e,null),HS(t,!0,e,null)}))}function HS(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&&BO.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=qO(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),jO(a,e,i,t),o.add(l))}function jO(e,t,r,n){var i=E2.get(t);switch(i===void 0?2:i){case 0:i=iN;break;case 1:i=aN;break;default:i=T2}r=i.bind(null,t,r,e),i=void 0,!w_||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 GO(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Wu(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}zF(function(){var c=a,p=x2(r),x=[];e:{var g=kO.get(e);if(g!==void 0){var y=k2,C=e;switch(e){case"keypress":if(n0(r)===0)break e;case"keydown":case"keyup":y=_N;break;case"focusin":C="focus",y=Ty;break;case"focusout":C="blur",y=Ty;break;case"beforeblur":case"afterblur":y=Ty;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=kS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=lN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=SN;break;case AO:case TO:case CO:y=cN;break;case OO:y=AN;break;case"scroll":y=oN;break;case"wheel":y=CN;break;case"copy":case"cut":case"paste":y=dN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=RS}var P=(t&4)!==0,b=!P&&e==="scroll",_=P?g!==null?g+"Capture":null:g;P=[];for(var E=c,k;E!==null;){k=E;var F=k.stateNode;if(k.tag===5&&F!==null&&(k=F,_!==null&&(F=Uh(E,_),F!=null&&P.push(Vh(E,F,k)))),b)break;E=E.return}0<P.length&&(g=new y(g,C,null,r,p),x.push({event:g,listeners:P}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",g&&!(t&16)&&(C=r.relatedTarget||r.fromElement)&&(Wu(C)||C[vs]))break e;if((y||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,y?(C=r.relatedTarget||r.toElement,y=c,C=C?Wu(C):null,C!==null&&(b=yl(C),C!==b||C.tag!==5&&C.tag!==6)&&(C=null)):(y=null,C=c),y!==C)){if(P=kS,F="onMouseLeave",_="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=RS,F="onPointerLeave",_="onPointerEnter",E="pointer"),b=y==null?g:Of(y),k=C==null?g:Of(C),g=new P(F,E+"leave",y,r,p),g.target=b,g.relatedTarget=k,F=null,Wu(p)===c&&(P=new P(_,E+"enter",C,r,p),P.target=k,P.relatedTarget=b,F=P),b=F,y&&C)t:{for(P=y,_=C,E=0,k=P;k;k=df(k))E++;for(k=0,F=_;F;F=df(F))k++;for(;0<E-k;)P=df(P),E--;for(;0<k-E;)_=df(_),k--;for(;E--;){if(P===_||_!==null&&P===_.alternate)break t;P=df(P),_=df(_)}P=null}else P=null;y!==null&&qS(x,g,y,P,!1),C!==null&&b!==null&&qS(x,b,C,P,!0)}}e:{if(g=c?Of(c):window,y=g.nodeName&&g.nodeName.toLowerCase(),y==="select"||y==="input"&&g.type==="file")var I=NN;else if(NS(g))if(LO)I=DN;else{I=LN;var $=IN}else(y=g.nodeName)&&y.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(I=$N);if(I&&(I=I(e,c))){IO(x,I,r,p);break e}$&&$(e,g,c),e==="focusout"&&($=g._wrapperState)&&$.controlled&&g.type==="number"&&d_(g,"number",g.value)}switch($=c?Of(c):window,e){case"focusin":(NS($)||$.contentEditable==="true")&&(Cf=$,T_=c,bh=null);break;case"focusout":bh=T_=Cf=null;break;case"mousedown":C_=!0;break;case"contextmenu":case"mouseup":case"dragend":C_=!1,zS(x,r,p);break;case"selectionchange":if(UN)break;case"keydown":case"keyup":zS(x,r,p)}var ne;if(R2)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Tf?FO(e,r)&&(V="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(V="onCompositionStart");V&&(PO&&r.locale!=="ko"&&(Tf||V!=="onCompositionStart"?V==="onCompositionEnd"&&Tf&&(ne=RO()):(Ro=p,O2="value"in Ro?Ro.value:Ro.textContent,Tf=!0)),$=A0(c,V),0<$.length&&(V=new MS(V,e,null,r,p),x.push({event:V,listeners:$}),ne?V.data=ne:(ne=NO(r),ne!==null&&(V.data=ne)))),(ne=kN?MN(e,r):RN(e,r))&&(c=A0(c,"onBeforeInput"),0<c.length&&(p=new MS("onBeforeInput","beforeinput",null,r,p),x.push({event:p,listeners:c}),p.data=ne))}zO(x,t)})}function Vh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function A0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Uh(e,r),a!=null&&n.unshift(Vh(e,a,i)),a=Uh(e,t),a!=null&&n.push(Vh(e,a,i))),e=e.return}return n}function df(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qS(e,t,r,n,i){for(var a=t._reactName,o=[];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=Uh(r,a),s!=null&&o.unshift(Vh(r,s,l))):i||(s=Uh(r,a),s!=null&&o.push(Vh(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function T0(){}var My=null,Ry=null;function HO(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function O_(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 WS=typeof setTimeout=="function"?setTimeout:void 0,jN=typeof clearTimeout=="function"?clearTimeout:void 0;function P2(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Bf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function VS(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 Py=0;function GN(e){return{$$typeof:g2,toString:e,valueOf:e}}var Im=Math.random().toString(36).slice(2),Po="__reactFiber$"+Im,C0="__reactProps$"+Im,vs="__reactContainer$"+Im,YS="__reactEvents$"+Im;function Wu(e){var t=e[Po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vs]||r[Po]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=VS(e);e!==null;){if(r=e[Po])return r;e=VS(e)}return t}e=r,r=e.parentNode}return null}function _d(e){return e=e[Po]||e[vs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Of(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ht(33))}function Lm(e){return e[C0]||null}function qO(e){var t=e[YS];return t===void 0&&(t=e[YS]=new Set),t}var k_=[],kf=-1;function ru(e){return{current:e}}function Lr(e){0>kf||(e.current=k_[kf],k_[kf]=null,kf--)}function Wr(e,t){kf++,k_[kf]=e.current,e.current=t}var Yo={},In=ru(Yo),Zn=ru(!1),nl=Yo;function Kf(e,t){var r=e.type.contextTypes;if(!r)return Yo;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 Kn(e){return e=e.childContextTypes,e!=null}function O0(){Lr(Zn),Lr(In)}function XS(e,t,r){if(In.current!==Yo)throw Error(ht(168));Wr(In,t),Wr(Zn,r)}function WO(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(ht(108,If(t)||"Unknown",i));return zr({},r,n)}function i0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,nl=In.current,Wr(In,e),Wr(Zn,Zn.current),!0}function QS(e,t,r){var n=e.stateNode;if(!n)throw Error(ht(169));r?(e=WO(e,t,nl),n.__reactInternalMemoizedMergedChildContext=e,Lr(Zn),Lr(In),Wr(In,e)):Lr(Zn),Wr(Zn,r)}var F2=null,Ku=null,HN=gn.unstable_runWithPriority,N2=gn.unstable_scheduleCallback,M_=gn.unstable_cancelCallback,qN=gn.unstable_shouldYield,ZS=gn.unstable_requestPaint,R_=gn.unstable_now,WN=gn.unstable_getCurrentPriorityLevel,$m=gn.unstable_ImmediatePriority,VO=gn.unstable_UserBlockingPriority,YO=gn.unstable_NormalPriority,XO=gn.unstable_LowPriority,QO=gn.unstable_IdlePriority,Fy={},VN=ZS!==void 0?ZS:function(){},La=null,a0=null,Ny=!1,KS=R_(),Fn=1e4>KS?R_:function(){return R_()-KS};function Jf(){switch(WN()){case $m:return 99;case VO:return 98;case YO:return 97;case XO:return 96;case QO:return 95;default:throw Error(ht(332))}}function ZO(e){switch(e){case 99:return $m;case 98:return VO;case 97:return YO;case 96:return XO;case 95:return QO;default:throw Error(ht(332))}}function il(e,t){return e=ZO(e),HN(e,t)}function Yh(e,t,r){return e=ZO(e),N2(e,t,r)}function ha(){if(a0!==null){var e=a0;a0=null,M_(e)}KO()}function KO(){if(!Ny&&La!==null){Ny=!0;var e=0;try{var t=La;il(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),La=null}catch(r){throw La!==null&&(La=La.slice(e+1)),N2($m,ha),r}finally{Ny=!1}}}var YN=gl.ReactCurrentBatchConfig;function Bi(e,t){if(e&&e.defaultProps){t=zr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var k0=ru(null),M0=null,Mf=null,R0=null;function I2(){R0=Mf=M0=null}function L2(e){var t=k0.current;Lr(k0),e.type._context._currentValue=t}function JO(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 zf(e,t){M0=e,R0=Mf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ui=!0),e.firstContext=null)}function Ei(e,t){if(R0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(R0=e,t=1073741823),t={context:e,observedBits:t,next:null},Mf===null){if(M0===null)throw Error(ht(308));Mf=t,M0.dependencies={lanes:0,firstContext:t,responders:null}}else Mf=Mf.next=t;return e._currentValue}var To=!1;function $2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ek(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(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 JS(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Xh(e,t,r,n){var i=e.updateQueue;To=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?a=c:o.next=c,o=s;var p=e.alternate;if(p!==null){p=p.updateQueue;var x=p.lastBaseUpdate;x!==o&&(x===null?p.firstBaseUpdate=c:x.next=c,p.lastBaseUpdate=s)}}if(a!==null){x=i.baseState,o=0,p=c=s=null;do{l=a.lane;var g=a.eventTime;if((n&l)===l){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,C=a;switch(l=t,g=r,C.tag){case 1:if(y=C.payload,typeof y=="function"){x=y.call(g,x,l);break e}x=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=C.payload,l=typeof y=="function"?y.call(g,x,l):y,l==null)break e;x=zr({},x,l);break e;case 2:To=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else g={eventTime:g,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(c=p=g,s=x):p=p.next=g,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);p===null&&(s=x),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=p,bd|=o,e.lanes=o,e.memoizedState=x}}function eE(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(ht(191,i));i.call(n)}}}var tk=new Om.Component().refs;function P0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:zr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Dm={isMounted:function(e){return(e=e._reactInternals)?yl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=fi(),i=jo(e),a=zo(n,i);a.payload=t,r!=null&&(a.callback=r),Uo(e,a),Go(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=fi(),i=jo(e),a=zo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Uo(e,a),Go(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fi(),n=jo(e),i=zo(r,n);i.tag=2,t!=null&&(i.callback=t),Uo(e,i),Go(e,n,r)}};function tE(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Wh(r,n)||!Wh(i,a):!0}function rk(e,t,r){var n=!1,i=Yo,a=t.contextType;return typeof a=="object"&&a!==null?a=Ei(a):(i=Kn(t)?nl:In.current,n=t.contextTypes,a=(n=n!=null)?Kf(e,i):Yo),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dm,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function rE(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&&Dm.enqueueReplaceState(t,t.state,null)}function P_(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=tk,$2(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ei(a):(a=Kn(t)?nl:In.current,i.context=Kf(e,a)),Xh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(P0(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&&Dm.enqueueReplaceState(i,i.state,null),Xh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var cv=Array.isArray;function zc(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(ht(309));var n=r.stateNode}if(!n)throw Error(ht(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===tk&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(ht(284));if(!r._owner)throw Error(ht(290,e))}return e}function hv(e,t){if(e.type!=="textarea")throw Error(ht(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function nk(e){function t(b,_){if(e){var E=b.lastEffect;E!==null?(E.nextEffect=_,b.lastEffect=_):b.firstEffect=b.lastEffect=_,_.nextEffect=null,_.flags=8}}function r(b,_){if(!e)return null;for(;_!==null;)t(b,_),_=_.sibling;return null}function n(b,_){for(b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function i(b,_){return b=Qo(b,_),b.index=0,b.sibling=null,b}function a(b,_,E){return b.index=E,e?(E=b.alternate,E!==null?(E=E.index,E<_?(b.flags=2,_):E):(b.flags=2,_)):_}function o(b){return e&&b.alternate===null&&(b.flags=2),b}function l(b,_,E,k){return _===null||_.tag!==6?(_=By(E,b.mode,k),_.return=b,_):(_=i(_,E),_.return=b,_)}function s(b,_,E,k){return _!==null&&_.elementType===E.type?(k=i(_,E.props),k.ref=zc(b,_,E),k.return=b,k):(k=f0(E.type,E.key,E.props,null,b.mode,k),k.ref=zc(b,_,E),k.return=b,k)}function c(b,_,E,k){return _===null||_.tag!==4||_.stateNode.containerInfo!==E.containerInfo||_.stateNode.implementation!==E.implementation?(_=zy(E,b.mode,k),_.return=b,_):(_=i(_,E.children||[]),_.return=b,_)}function p(b,_,E,k,F){return _===null||_.tag!==7?(_=Hf(E,b.mode,k,F),_.return=b,_):(_=i(_,E),_.return=b,_)}function x(b,_,E){if(typeof _=="string"||typeof _=="number")return _=By(""+_,b.mode,E),_.return=b,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case oh:return E=f0(_.type,_.key,_.props,null,b.mode,E),E.ref=zc(b,null,_),E.return=b,E;case Hu:return _=zy(_,b.mode,E),_.return=b,_}if(cv(_)||Nc(_))return _=Hf(_,b.mode,E,null),_.return=b,_;hv(b,_)}return null}function g(b,_,E,k){var F=_!==null?_.key:null;if(typeof E=="string"||typeof E=="number")return F!==null?null:l(b,_,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case oh:return E.key===F?E.type===ko?p(b,_,E.props.children,k,F):s(b,_,E,k):null;case Hu:return E.key===F?c(b,_,E,k):null}if(cv(E)||Nc(E))return F!==null?null:p(b,_,E,k,null);hv(b,E)}return null}function y(b,_,E,k,F){if(typeof k=="string"||typeof k=="number")return b=b.get(E)||null,l(_,b,""+k,F);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case oh:return b=b.get(k.key===null?E:k.key)||null,k.type===ko?p(_,b,k.props.children,F,k.key):s(_,b,k,F);case Hu:return b=b.get(k.key===null?E:k.key)||null,c(_,b,k,F)}if(cv(k)||Nc(k))return b=b.get(E)||null,p(_,b,k,F,null);hv(_,k)}return null}function C(b,_,E,k){for(var F=null,I=null,$=_,ne=_=0,V=null;$!==null&&ne<E.length;ne++){$.index>ne?(V=$,$=null):V=$.sibling;var ae=g(b,$,E[ne],k);if(ae===null){$===null&&($=V);break}e&&$&&ae.alternate===null&&t(b,$),_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae,$=V}if(ne===E.length)return r(b,$),F;if($===null){for(;ne<E.length;ne++)$=x(b,E[ne],k),$!==null&&(_=a($,_,ne),I===null?F=$:I.sibling=$,I=$);return F}for($=n(b,$);ne<E.length;ne++)V=y($,b,ne,E[ne],k),V!==null&&(e&&V.alternate!==null&&$.delete(V.key===null?ne:V.key),_=a(V,_,ne),I===null?F=V:I.sibling=V,I=V);return e&&$.forEach(function(Ce){return t(b,Ce)}),F}function P(b,_,E,k){var F=Nc(E);if(typeof F!="function")throw Error(ht(150));if(E=F.call(E),E==null)throw Error(ht(151));for(var I=F=null,$=_,ne=_=0,V=null,ae=E.next();$!==null&&!ae.done;ne++,ae=E.next()){$.index>ne?(V=$,$=null):V=$.sibling;var Ce=g(b,$,ae.value,k);if(Ce===null){$===null&&($=V);break}e&&$&&Ce.alternate===null&&t(b,$),_=a(Ce,_,ne),I===null?F=Ce:I.sibling=Ce,I=Ce,$=V}if(ae.done)return r(b,$),F;if($===null){for(;!ae.done;ne++,ae=E.next())ae=x(b,ae.value,k),ae!==null&&(_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae);return F}for($=n(b,$);!ae.done;ne++,ae=E.next())ae=y($,b,ne,ae.value,k),ae!==null&&(e&&ae.alternate!==null&&$.delete(ae.key===null?ne:ae.key),_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae);return e&&$.forEach(function(Oe){return t(b,Oe)}),F}return function(b,_,E,k){var F=typeof E=="object"&&E!==null&&E.type===ko&&E.key===null;F&&(E=E.props.children);var I=typeof E=="object"&&E!==null;if(I)switch(E.$$typeof){case oh:e:{for(I=E.key,F=_;F!==null;){if(F.key===I){switch(F.tag){case 7:if(E.type===ko){r(b,F.sibling),_=i(F,E.props.children),_.return=b,b=_;break e}break;default:if(F.elementType===E.type){r(b,F.sibling),_=i(F,E.props),_.ref=zc(b,F,E),_.return=b,b=_;break e}}r(b,F);break}else t(b,F);F=F.sibling}E.type===ko?(_=Hf(E.props.children,b.mode,k,E.key),_.return=b,b=_):(k=f0(E.type,E.key,E.props,null,b.mode,k),k.ref=zc(b,_,E),k.return=b,b=k)}return o(b);case Hu:e:{for(F=E.key;_!==null;){if(_.key===F)if(_.tag===4&&_.stateNode.containerInfo===E.containerInfo&&_.stateNode.implementation===E.implementation){r(b,_.sibling),_=i(_,E.children||[]),_.return=b,b=_;break e}else{r(b,_);break}else t(b,_);_=_.sibling}_=zy(E,b.mode,k),_.return=b,b=_}return o(b)}if(typeof E=="string"||typeof E=="number")return E=""+E,_!==null&&_.tag===6?(r(b,_.sibling),_=i(_,E),_.return=b,b=_):(r(b,_),_=By(E,b.mode,k),_.return=b,b=_),o(b);if(cv(E))return C(b,_,E,k);if(Nc(E))return P(b,_,E,k);if(I&&hv(b,E),typeof E>"u"&&!F)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(ht(152,If(b.type)||"Component"))}return r(b,_)}}var F0=nk(!0),ik=nk(!1),wd={},ua=ru(wd),Qh=ru(wd),Zh=ru(wd);function Vu(e){if(e===wd)throw Error(ht(174));return e}function F_(e,t){switch(Wr(Zh,t),Wr(Qh,e),Wr(ua,wd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:g_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=g_(t,e)}Lr(ua),Wr(ua,t)}function es(){Lr(ua),Lr(Qh),Lr(Zh)}function nE(e){Vu(Zh.current);var t=Vu(ua.current),r=g_(t,e.type);t!==r&&(Wr(Qh,e),Wr(ua,r))}function D2(e){Qh.current===e&&(Lr(ua),Lr(Qh))}var Hr=ru(0);function N0(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 Da=null,Fo=null,la=!1;function ak(e,t){var r=bi(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 iE(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 N_(e){if(la){var t=Fo;if(t){var r=t;if(!iE(e,t)){if(t=Bf(r.nextSibling),!t||!iE(e,t)){e.flags=e.flags&-1025|2,la=!1,Da=e;return}ak(Da,r)}Da=e,Fo=Bf(t.firstChild)}else e.flags=e.flags&-1025|2,la=!1,Da=e}}function aE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Da=e}function dv(e){if(e!==Da)return!1;if(!la)return aE(e),la=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!O_(t,e.memoizedProps))for(t=Fo;t;)ak(e,t),t=Bf(t.nextSibling);if(aE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ht(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fo=Bf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fo=null}}else Fo=Da?Bf(e.stateNode.nextSibling):null;return!0}function Iy(){Fo=Da=null,la=!1}var Uf=[];function B2(){for(var e=0;e<Uf.length;e++)Uf[e]._workInProgressVersionPrimary=null;Uf.length=0}var Sh=gl.ReactCurrentDispatcher,Si=gl.ReactCurrentBatchConfig,Kh=0,Qr=null,Pn=null,An=null,I0=!1,Eh=!1;function Yn(){throw Error(ht(321))}function z2(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!wi(e[r],t[r]))return!1;return!0}function U2(e,t,r,n,i,a){if(Kh=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Sh.current=e===null||e.memoizedState===null?QN:ZN,e=r(n,i),Eh){a=0;do{if(Eh=!1,!(25>a))throw Error(ht(301));a+=1,An=Pn=null,t.updateQueue=null,Sh.current=KN,e=r(n,i)}while(Eh)}if(Sh.current=B0,t=Pn!==null&&Pn.next!==null,Kh=0,An=Pn=Qr=null,I0=!1,t)throw Error(ht(300));return e}function Yu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?Qr.memoizedState=An=e:An=An.next=e,An}function xl(){if(Pn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Pn.next;var t=An===null?Qr.memoizedState:An.next;if(t!==null)An=t,Pn=e;else{if(e===null)throw Error(ht(310));Pn=e,e={memoizedState:Pn.memoizedState,baseState:Pn.baseState,baseQueue:Pn.baseQueue,queue:Pn.queue,next:null},An===null?Qr.memoizedState=An=e:An=An.next=e}return An}function ia(e,t){return typeof t=="function"?t(e):t}function Uc(e){var t=xl(),r=t.queue;if(r===null)throw Error(ht(311));r.lastRenderedReducer=e;var n=Pn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var c=s.lane;if((Kh&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 p={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=p,a=n):l=l.next=p,Qr.lanes|=c,bd|=c}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,wi(n,t.memoizedState)||(Ui=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function jc(e){var t=xl(),r=t.queue;if(r===null)throw Error(ht(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);wi(a,t.memoizedState)||(Ui=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function oE(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=(Kh&e)===e)&&(t._workInProgressVersionPrimary=n,Uf.push(t))),e)return r(t._source);throw Uf.push(t),Error(ht(350))}function ok(e,t,r,n){var i=Un;if(i===null)throw Error(ht(349));var a=t._getVersion,o=a(t._source),l=Sh.current,s=l.useState(function(){return oE(i,t,r)}),c=s[1],p=s[0];s=An;var x=e.memoizedState,g=x.refs,y=g.getSnapshot,C=x.source;x=x.subscribe;var P=Qr;return e.memoizedState={refs:g,source:t,subscribe:n},l.useEffect(function(){g.getSnapshot=r,g.setSnapshot=c;var b=a(t._source);if(!wi(o,b)){b=r(t._source),wi(p,b)||(c(b),b=jo(P),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var _=i.entanglements,E=b;0<E;){var k=31-Vo(E),F=1<<k;_[k]|=b,E&=~F}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var b=g.getSnapshot,_=g.setSnapshot;try{_(b(t._source));var E=jo(P);i.mutableReadLanes|=E&i.pendingLanes}catch(k){_(function(){throw k})}})},[t,n]),wi(y,r)&&wi(C,t)&&wi(x,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:p},e.dispatch=c=H2.bind(null,Qr,e),s.queue=e,s.baseQueue=null,p=oE(i,t,r),s.memoizedState=s.baseState=p),p}function uk(e,t,r){var n=xl();return ok(n,e,t,r)}function Gc(e){var t=Yu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},e=e.dispatch=H2.bind(null,Qr,e),[t.memoizedState,e]}function L0(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 uE(e){var t=Yu();return e={current:e},t.memoizedState=e}function $0(){return xl().memoizedState}function I_(e,t,r,n){var i=Yu();Qr.flags|=e,i.memoizedState=L0(1|t,r,void 0,n===void 0?null:n)}function j2(e,t,r,n){var i=xl();n=n===void 0?null:n;var a=void 0;if(Pn!==null){var o=Pn.memoizedState;if(a=o.destroy,n!==null&&z2(n,o.deps)){L0(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=L0(1|t,r,a,n)}function lE(e,t){return I_(516,4,e,t)}function D0(e,t){return j2(516,4,e,t)}function lk(e,t){return j2(4,2,e,t)}function fk(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 sk(e,t,r){return r=r!=null?r.concat([e]):null,j2(4,2,fk.bind(null,t,e),r)}function G2(){}function ck(e,t){var r=xl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&z2(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function hk(e,t){var r=xl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&z2(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function XN(e,t){var r=Jf();il(98>r?98:r,function(){e(!0)}),il(97<r?97:r,function(){var n=Si.transition;Si.transition=1;try{e(!1),t()}finally{Si.transition=n}})}function H2(e,t,r){var n=fi(),i=jo(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Eh=I0=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,wi(s,l))return}catch{}finally{}Go(e,i,n)}}var B0={readContext:Ei,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useOpaqueIdentifier:Yn,unstable_isNewReconciler:!1},QN={readContext:Ei,useCallback:function(e,t){return Yu().memoizedState=[e,t===void 0?null:t],e},useContext:Ei,useEffect:lE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,I_(4,2,fk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return I_(4,2,e,t)},useMemo:function(e,t){var r=Yu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Yu();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=H2.bind(null,Qr,e),[n.memoizedState,e]},useRef:uE,useState:Gc,useDebugValue:G2,useDeferredValue:function(e){var t=Gc(e),r=t[0],n=t[1];return lE(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=Gc(!1),t=e[0];return e=XN.bind(null,e[1]),uE(e),[e,t]},useMutableSource:function(e,t,r){var n=Yu();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},ok(n,e,t,r)},useOpaqueIdentifier:function(){if(la){var e=!1,t=GN(function(){throw e||(e=!0,r("r:"+(Py++).toString(36))),Error(ht(355))}),r=Gc(t)[1];return!(Qr.mode&2)&&(Qr.flags|=516,L0(5,function(){r("r:"+(Py++).toString(36))},void 0,null)),t}return t="r:"+(Py++).toString(36),Gc(t),t},unstable_isNewReconciler:!1},ZN={readContext:Ei,useCallback:ck,useContext:Ei,useEffect:D0,useImperativeHandle:sk,useLayoutEffect:lk,useMemo:hk,useReducer:Uc,useRef:$0,useState:function(){return Uc(ia)},useDebugValue:G2,useDeferredValue:function(e){var t=Uc(ia),r=t[0],n=t[1];return D0(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=Uc(ia)[0];return[$0().current,e]},useMutableSource:uk,useOpaqueIdentifier:function(){return Uc(ia)[0]},unstable_isNewReconciler:!1},KN={readContext:Ei,useCallback:ck,useContext:Ei,useEffect:D0,useImperativeHandle:sk,useLayoutEffect:lk,useMemo:hk,useReducer:jc,useRef:$0,useState:function(){return jc(ia)},useDebugValue:G2,useDeferredValue:function(e){var t=jc(ia),r=t[0],n=t[1];return D0(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=jc(ia)[0];return[$0().current,e]},useMutableSource:uk,useOpaqueIdentifier:function(){return jc(ia)[0]},unstable_isNewReconciler:!1},JN=gl.ReactCurrentOwner,Ui=!1;function Xn(e,t,r,n){t.child=e===null?ik(t,null,r,n):F0(t,e.child,r,n)}function fE(e,t,r,n,i){r=r.render;var a=t.ref;return zf(t,i),n=U2(e,t,r,n,a,i),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ba(e,t,i)):(t.flags|=1,Xn(e,t,n,i),t.child)}function sE(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!Q2(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,dk(e,t,o,n,i,a)):(e=f0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,!(i&a)&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:Wh,r(i,n)&&e.ref===t.ref)?Ba(e,t,a):(t.flags|=1,e=Qo(o,n),e.ref=t.ref,e.return=t,t.child=e)}function dk(e,t,r,n,i,a){if(e!==null&&Wh(e.memoizedProps,n)&&e.ref===t.ref)if(Ui=!1,(a&i)!==0)e.flags&16384&&(Ui=!0);else return t.lanes=e.lanes,Ba(e,t,a);return L_(e,t,r,n,a)}function Ly(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},vv(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},vv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,vv(t,n);return Xn(e,t,i,r),t.child}function pk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function L_(e,t,r,n,i){var a=Kn(r)?nl:In.current;return a=Kf(t,a),zf(t,i),r=U2(e,t,r,n,a,i),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ba(e,t,i)):(t.flags|=1,Xn(e,t,r,i),t.child)}function cE(e,t,r,n,i){if(Kn(r)){var a=!0;i0(t)}else a=!1;if(zf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),rk(t,r,n),P_(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ei(c):(c=Kn(r)?nl:In.current,c=Kf(t,c));var p=r.getDerivedStateFromProps,x=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";x||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==c)&&rE(t,o,n,c),To=!1;var g=t.memoizedState;o.state=g,Xh(t,n,o,i),s=t.memoizedState,l!==n||g!==s||Zn.current||To?(typeof p=="function"&&(P0(t,r,p,n),s=t.memoizedState),(l=To||tE(t,r,l,n,g,s,c))?(x||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,ek(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Bi(t.type,l),o.props=c,x=t.pendingProps,g=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ei(s):(s=Kn(r)?nl:In.current,s=Kf(t,s));var y=r.getDerivedStateFromProps;(p=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==x||g!==s)&&rE(t,o,n,s),To=!1,g=t.memoizedState,o.state=g,Xh(t,n,o,i);var C=t.memoizedState;l!==x||g!==C||Zn.current||To?(typeof y=="function"&&(P0(t,r,y,n),C=t.memoizedState),(c=To||tE(t,r,c,n,g,C,s))?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,C,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,C,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=C),o.props=n,o.state=C,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),n=!1)}return $_(e,t,r,n,a,i)}function $_(e,t,r,n,i,a){pk(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&QS(t,r,!1),Ba(e,t,a);n=t.stateNode,JN.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=F0(t,e.child,null,a),t.child=F0(t,null,l,a)):Xn(e,t,l,a),t.memoizedState=n.state,i&&QS(t,r,!0),t.child}function hE(e){var t=e.stateNode;t.pendingContext?XS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&XS(e,t.context,!1),F_(e,t.containerInfo)}var pv={dehydrated:null,retryLane:0};function dE(e,t,r){var n=t.pendingProps,i=Hr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Wr(Hr,i&1),e===null?(n.fallback!==void 0&&N_(t),e=n.children,i=n.fallback,a?(e=pE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=pv,e):typeof n.unstable_expectedLoadTime=="number"?(e=pE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=pv,t.lanes=33554432,e):(r=Z2({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=mE(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=pv,n):(r=vE(e,t,n.children,r),t.memoizedState=null,r):a?(n=mE(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=pv,n):(r=vE(e,t,n.children,r),t.memoizedState=null,r)}function pE(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=Z2(t,i,0,null),r=Hf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function vE(e,t,r,n){var i=e.child;return e=i.sibling,r=Qo(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 mE(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Qo(o,l),e!==null?n=Qo(e,n):(n=Hf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function gE(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),JO(e.return,t)}function $y(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function yE(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Xn(e,t,n.children,r),n=Hr.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gE(e,r);else if(e.tag===19)gE(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(Wr(Hr,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&N0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),$y(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&&N0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}$y(t,!0,r,null,a,t.lastEffect);break;case"together":$y(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ba(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bd|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(ht(153));if(t.child!==null){for(e=t.child,r=Qo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Qo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var vk,D_,mk,gk;vk=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}};D_=function(){};mk=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Vu(ua.current);var a=null;switch(r){case"input":i=c_(e,i),n=c_(e,n),a=[];break;case"option":i=p_(e,i),n=p_(e,n),a=[];break;case"select":i=zr({},i,{value:void 0}),n=zr({},n,{value:void 0}),a=[];break;case"textarea":i=v_(e,i),n=v_(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=T0)}y_(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Bh.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(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(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"&&(Bh.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Nr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===g2?s.toString():(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};gk=function(e,t,r,n){r!==n&&(t.flags|=4)};function Hc(e,t){if(!la)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 e6(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 Kn(t.type)&&O0(),null;case 3:return es(),Lr(Zn),Lr(In),B2(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),D_(t),null;case 5:D2(t);var i=Vu(Zh.current);if(r=t.type,e!==null&&t.stateNode!=null)mk(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(ht(166));return null}if(e=Vu(ua.current),dv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Po]=t,n[C0]=a,r){case"dialog":Nr("cancel",n),Nr("close",n);break;case"iframe":case"object":case"embed":Nr("load",n);break;case"video":case"audio":for(e=0;e<lh.length;e++)Nr(lh[e],n);break;case"source":Nr("error",n);break;case"img":case"image":case"link":Nr("error",n),Nr("load",n);break;case"details":Nr("toggle",n);break;case"input":yS(n,a),Nr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",n);break;case"textarea":_S(n,a),Nr("invalid",n)}y_(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):Bh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Nr("scroll",n));switch(r){case"input":uv(n),xS(n,a,!0);break;case"textarea":uv(n),wS(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=T0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===m_.html&&(e=sO(r)),e===m_.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Po]=t,e[C0]=n,vk(e,t,!1,!1),t.stateNode=e,o=x_(r,n),r){case"dialog":Nr("cancel",e),Nr("close",e),i=n;break;case"iframe":case"object":case"embed":Nr("load",e),i=n;break;case"video":case"audio":for(i=0;i<lh.length;i++)Nr(lh[i],e);i=n;break;case"source":Nr("error",e),i=n;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=n;break;case"details":Nr("toggle",e),i=n;break;case"input":yS(e,n),i=c_(e,n),Nr("invalid",e);break;case"option":i=p_(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=zr({},n,{value:void 0}),Nr("invalid",e);break;case"textarea":_S(e,n),i=v_(e,n),Nr("invalid",e);break;default:i=n}y_(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?dO(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&cO(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&zh(e,s):typeof s=="number"&&zh(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Bh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Nr("scroll",e):s!=null&&c2(e,a,s,o))}switch(r){case"input":uv(e),xS(e,n,!1);break;case"textarea":uv(e),wS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Wo(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Lf(e,!!n.multiple,a,!1):n.defaultValue!=null&&Lf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=T0)}HO(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)gk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ht(166));r=Vu(Zh.current),Vu(ua.current),dv(t)?(n=t.stateNode,r=t.memoizedProps,n[Po]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Po]=t,t.stateNode=n)}return null;case 13:return Lr(Hr),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&dv(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Hr.current&1?Cn===0&&(Cn=3):((Cn===0||Cn===3)&&(Cn=4),Un===null||!(bd&134217727)&&!(gs&134217727)||jf(Un,Nn))),(n||r)&&(t.flags|=4),null);case 4:return es(),D_(t),e===null&&UO(t.stateNode.containerInfo),null;case 10:return L2(t),null;case 17:return Kn(t.type)&&O0(),null;case 19:if(Lr(Hr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)Hc(n,!1);else{if(Cn!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=N0(e),o!==null){for(t.flags|=64,Hc(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Wr(Hr,Hr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Fn()>H_&&(t.flags|=64,a=!0,Hc(n,!1),t.lanes=33554432)}else{if(!a)if(e=N0(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Hc(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!la)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Fn()-n.renderingStartTime>H_&&r!==1073741824&&(t.flags|=64,a=!0,Hc(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Fn(),r.sibling=null,t=Hr.current,Wr(Hr,a?t&1|2:t&1),r):null;case 23:case 24:return X2(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(ht(156,t.tag))}function t6(e){switch(e.tag){case 1:Kn(e.type)&&O0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(es(),Lr(Zn),Lr(In),B2(),t=e.flags,t&64)throw Error(ht(285));return e.flags=t&-4097|64,e;case 5:return D2(e),null;case 13:return Lr(Hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Lr(Hr),null;case 4:return es(),null;case 10:return L2(e),null;case 23:case 24:return X2(),null;default:return null}}function q2(e,t){try{var r="",n=t;do r+=IF(n),n=n.return;while(n);var i=r}catch(a){i=`
37
+ `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{wy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?uh(e):""}function $F(e){switch(e.tag){case 5:return uh(e.type);case 16:return uh("Lazy");case 13:return uh("Suspense");case 19:return uh("SuspenseList");case 0:case 2:case 15:return e=ov(e.type,!1),e;case 11:return e=ov(e.type.render,!1),e;case 22:return e=ov(e.type._render,!1),e;case 1:return e=ov(e.type,!0),e;default:return""}}function If(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 ko:return"Fragment";case Hu:return"Portal";case mh:return"Profiler";case p2:return"StrictMode";case gh:return"Suspense";case w0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m2:return(e.displayName||"Context")+".Consumer";case v2:return(e._context.displayName||"Context")+".Provider";case Mm:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Rm:return If(e.type);case y2:return If(e._render);case g2:t=e._payload,e=e._init;try{return If(e(t))}catch{}}return null}function Wo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function lO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DF(e){var t=lO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uv(e){e._valueTracker||(e._valueTracker=DF(e))}function fO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function b0(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 h_(e,t){var r=t.checked;return zr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _S(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wo(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 sO(e,t){t=t.checked,t!=null&&d2(e,"checked",t,!1)}function d_(e,t){sO(e,t);var r=Wo(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")?p_(e,t.type,r):t.hasOwnProperty("defaultValue")&&p_(e,t.type,Wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wS(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 p_(e,t,r){(t!=="number"||b0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function BF(e){var t="";return km.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function v_(e,t){return e=zr({children:void 0},t),(t=BF(t.children))&&(e.children=t),e}function Lf(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=""+Wo(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 m_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ht(91));return zr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bS(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ht(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(ht(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Wo(r)}}function cO(e,t){var r=Wo(t.value),n=Wo(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 SS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var g_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function hO(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 y_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lv,dO=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!==g_.svg||"innerHTML"in e)e.innerHTML=t;else{for(lv=lv||document.createElement("div"),lv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var yh={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},zF=["Webkit","ms","Moz","O"];Object.keys(yh).forEach(function(e){zF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yh[t]=yh[e]})});function pO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||yh.hasOwnProperty(e)&&yh[e]?(""+t).trim():t+"px"}function vO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=pO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var UF=zr({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 x_(e,t){if(t){if(UF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ht(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ht(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(ht(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ht(62))}}function __(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 w2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var w_=null,$f=null,Df=null;function ES(e){if(e=_d(e)){if(typeof w_!="function")throw Error(ht(280));var t=e.stateNode;t&&(t=$m(t),w_(e.stateNode,e.type,t))}}function mO(e){$f?Df?Df.push(e):Df=[e]:$f=e}function gO(){if($f){var e=$f,t=Df;if(Df=$f=null,ES(e),t)for(e=0;e<t.length;e++)ES(t[e])}}function b2(e,t){return e(t)}function yO(e,t,r,n,i){return e(t,r,n,i)}function S2(){}var xO=b2,qu=!1,by=!1;function E2(){($f!==null||Df!==null)&&(S2(),gO())}function jF(e,t,r){if(by)return e(t,r);by=!0;try{return xO(e,t,r)}finally{by=!1,E2()}}function Uh(e,t){var r=e.stateNode;if(r===null)return null;var n=$m(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(ht(231,t,typeof r));return r}var b_=!1;if(Ga)try{var Ic={};Object.defineProperty(Ic,"passive",{get:function(){b_=!0}}),window.addEventListener("test",Ic,Ic),window.removeEventListener("test",Ic,Ic)}catch{b_=!1}function GF(e,t,r,n,i,a,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(p){this.onError(p)}}var xh=!1,S0=null,E0=!1,S_=null,HF={onError:function(e){xh=!0,S0=e}};function qF(e,t,r,n,i,a,o,l,s){xh=!1,S0=null,GF.apply(HF,arguments)}function WF(e,t,r,n,i,a,o,l,s){if(qF.apply(this,arguments),xh){if(xh){var c=S0;xh=!1,S0=null}else throw Error(ht(198));E0||(E0=!0,S_=c)}}function yl(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 _O(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 AS(e){if(yl(e)!==e)throw Error(ht(188))}function VF(e){var t=e.alternate;if(!t){if(t=yl(e),t===null)throw Error(ht(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 AS(i),e;if(a===n)return AS(i),t;a=a.sibling}throw Error(ht(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(ht(189))}}if(r.alternate!==n)throw Error(ht(190))}if(r.tag!==3)throw Error(ht(188));return r.stateNode.current===r?e:t}function wO(e){if(e=VF(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 CS(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var bO,A2,SO,EO,E_=!1,na=[],$o=null,Do=null,Bo=null,jh=new Map,Gh=new Map,Lc=[],TS="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 A_(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function OS(e,t){switch(e){case"focusin":case"focusout":$o=null;break;case"dragenter":case"dragleave":Do=null;break;case"mouseover":case"mouseout":Bo=null;break;case"pointerover":case"pointerout":jh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gh.delete(t.pointerId)}}function $c(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=A_(t,r,n,i,a),t!==null&&(t=_d(t),t!==null&&A2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function YF(e,t,r,n,i){switch(t){case"focusin":return $o=$c($o,e,t,r,n,i),!0;case"dragenter":return Do=$c(Do,e,t,r,n,i),!0;case"mouseover":return Bo=$c(Bo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return jh.set(a,$c(jh.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Gh.set(a,$c(Gh.get(a)||null,e,t,r,n,i)),!0}return!1}function XF(e){var t=Wu(e.target);if(t!==null){var r=yl(t);if(r!==null){if(t=r.tag,t===13){if(t=_O(r),t!==null){e.blockedOn=t,EO(e.lanePriority,function(){gn.unstable_runWithPriority(e.priority,function(){SO(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function t0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=k2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=_d(r),t!==null&&A2(t),e.blockedOn=r,!1;t.shift()}return!0}function kS(e,t,r){t0(e)&&r.delete(t)}function QF(){for(E_=!1;0<na.length;){var e=na[0];if(e.blockedOn!==null){e=_d(e.blockedOn),e!==null&&bO(e);break}for(var t=e.targetContainers;0<t.length;){var r=k2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&na.shift()}$o!==null&&t0($o)&&($o=null),Do!==null&&t0(Do)&&(Do=null),Bo!==null&&t0(Bo)&&(Bo=null),jh.forEach(kS),Gh.forEach(kS)}function Dc(e,t){e.blockedOn===t&&(e.blockedOn=null,E_||(E_=!0,gn.unstable_scheduleCallback(gn.unstable_NormalPriority,QF)))}function AO(e){function t(i){return Dc(i,e)}if(0<na.length){Dc(na[0],e);for(var r=1;r<na.length;r++){var n=na[r];n.blockedOn===e&&(n.blockedOn=null)}}for($o!==null&&Dc($o,e),Do!==null&&Dc(Do,e),Bo!==null&&Dc(Bo,e),jh.forEach(t),Gh.forEach(t),r=0;r<Lc.length;r++)n=Lc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Lc.length&&(r=Lc[0],r.blockedOn===null);)XF(r),r.blockedOn===null&&Lc.shift()}function fv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Af={animationend:fv("Animation","AnimationEnd"),animationiteration:fv("Animation","AnimationIteration"),animationstart:fv("Animation","AnimationStart"),transitionend:fv("Transition","TransitionEnd")},Sy={},CO={};Ga&&(CO=document.createElement("div").style,"AnimationEvent"in window||(delete Af.animationend.animation,delete Af.animationiteration.animation,delete Af.animationstart.animation),"TransitionEvent"in window||delete Af.transitionend.transition);function Pm(e){if(Sy[e])return Sy[e];if(!Af[e])return e;var t=Af[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in CO)return Sy[e]=t[r];return e}var TO=Pm("animationend"),OO=Pm("animationiteration"),kO=Pm("animationstart"),MO=Pm("transitionend"),RO=new Map,C2=new Map,ZF=["abort","abort",TO,"animationEnd",OO,"animationIteration",kO,"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",MO,"transitionEnd","waiting","waiting"];function T2(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)),C2.set(n,t),RO.set(n,i),ml(i,[n])}}var KF=gn.unstable_now;KF();var Fr=8;function _f(e){if(1&e)return Fr=15,1;if(2&e)return Fr=14,2;if(4&e)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):e&32?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):e&256?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):e&4096?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):e&134217728?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):1073741824&e?(Fr=1,1073741824):(Fr=8,e))))))}function JF(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 eN(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(ht(358,e))}}function Hh(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=_f(s),i=Fr):(l&=a,l!==0&&(n=_f(l),i=Fr))}else a=r&~o,a!==0?(n=_f(a),i=Fr):l!==0&&(n=_f(l),i=Fr);if(n===0)return 0;if(n=31-Vo(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(_f(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Vo(t),i=1<<r,n|=e[r],t&=~i;return n}function PO(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function A0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=wf(24&~t),e===0?A0(10,t):e;case 10:return e=wf(192&~t),e===0?A0(8,t):e;case 8:return e=wf(3584&~t),e===0&&(e=wf(4186112&~t),e===0&&(e=512)),e;case 2:return t=wf(805306368&~t),t===0&&(t=268435456),t}throw Error(ht(358,e))}function wf(e){return e&-e}function Ey(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Fm(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Vo(t),e[t]=r}var Vo=Math.clz32?Math.clz32:nN,tN=Math.log,rN=Math.LN2;function nN(e){return e===0?32:31-(tN(e)/rN|0)|0}var iN=gn.unstable_UserBlockingPriority,aN=gn.unstable_runWithPriority,r0=!0;function oN(e,t,r,n){qu||S2();var i=O2,a=qu;qu=!0;try{yO(i,e,t,r,n)}finally{(qu=a)||E2()}}function uN(e,t,r,n){aN(iN,O2.bind(null,e,t,r,n))}function O2(e,t,r,n){if(r0){var i;if((i=(t&4)===0)&&0<na.length&&-1<TS.indexOf(e))e=A_(null,e,t,r,n),na.push(e);else{var a=k2(e,t,r,n);if(a===null)i&&OS(e,n);else{if(i){if(-1<TS.indexOf(e)){e=A_(a,e,t,r,n),na.push(e);return}if(YF(a,e,t,r,n))return;OS(e,n)}qO(e,t,n,null,r)}}}}function k2(e,t,r,n){var i=w2(n);if(i=Wu(i),i!==null){var a=yl(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=_O(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return qO(e,t,n,i,r),null}var Ro=null,M2=null,n0=null;function FO(){if(n0)return n0;var e,t=M2,r=t.length,n,i="value"in Ro?Ro.value:Ro.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return n0=i.slice(e,1<n?1-n:void 0)}function i0(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 sv(){return!0}function MS(){return!1}function ci(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?sv:MS,this.isPropagationStopped=MS,this}return zr(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=sv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=sv)},persist:function(){},isPersistent:sv}),t}var ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},R2=ci(ps),xd=zr({},ps,{view:0,detail:0}),lN=ci(xd),Ay,Cy,Bc,Nm=zr({},xd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:P2,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!==Bc&&(Bc&&e.type==="mousemove"?(Ay=e.screenX-Bc.screenX,Cy=e.screenY-Bc.screenY):Cy=Ay=0,Bc=e),Ay)},movementY:function(e){return"movementY"in e?e.movementY:Cy}}),RS=ci(Nm),fN=zr({},Nm,{dataTransfer:0}),sN=ci(fN),cN=zr({},xd,{relatedTarget:0}),Ty=ci(cN),hN=zr({},ps,{animationName:0,elapsedTime:0,pseudoElement:0}),dN=ci(hN),pN=zr({},ps,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vN=ci(pN),mN=zr({},ps,{data:0}),PS=ci(mN),gN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yN={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"},xN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _N(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xN[e])?!!t[e]:!1}function P2(){return _N}var wN=zr({},xd,{key:function(e){if(e.key){var t=gN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=i0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:P2,charCode:function(e){return e.type==="keypress"?i0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?i0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bN=ci(wN),SN=zr({},Nm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),FS=ci(SN),EN=zr({},xd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:P2}),AN=ci(EN),CN=zr({},ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),TN=ci(CN),ON=zr({},Nm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kN=ci(ON),MN=[9,13,27,32],F2=Ga&&"CompositionEvent"in window,_h=null;Ga&&"documentMode"in document&&(_h=document.documentMode);var RN=Ga&&"TextEvent"in window&&!_h,NO=Ga&&(!F2||_h&&8<_h&&11>=_h),NS=String.fromCharCode(32),IS=!1;function IO(e,t){switch(e){case"keyup":return MN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cf=!1;function PN(e,t){switch(e){case"compositionend":return LO(t);case"keypress":return t.which!==32?null:(IS=!0,NS);case"textInput":return e=t.data,e===NS&&IS?null:e;default:return null}}function FN(e,t){if(Cf)return e==="compositionend"||!F2&&IO(e,t)?(e=FO(),n0=M2=Ro=null,Cf=!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 NO&&t.locale!=="ko"?null:t.data;default:return null}}var NN={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 LS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!NN[e.type]:t==="textarea"}function $O(e,t,r,n){mO(n),t=C0(t,"onChange"),0<t.length&&(r=new R2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var wh=null,qh=null;function IN(e){jO(e,0)}function Im(e){var t=Of(e);if(fO(t))return e}function LN(e,t){if(e==="change")return t}var DO=!1;if(Ga){var Oy;if(Ga){var ky="oninput"in document;if(!ky){var $S=document.createElement("div");$S.setAttribute("oninput","return;"),ky=typeof $S.oninput=="function"}Oy=ky}else Oy=!1;DO=Oy&&(!document.documentMode||9<document.documentMode)}function DS(){wh&&(wh.detachEvent("onpropertychange",BO),qh=wh=null)}function BO(e){if(e.propertyName==="value"&&Im(qh)){var t=[];if($O(t,qh,e,w2(e)),e=IN,qu)e(t);else{qu=!0;try{b2(e,t)}finally{qu=!1,E2()}}}}function $N(e,t,r){e==="focusin"?(DS(),wh=t,qh=r,wh.attachEvent("onpropertychange",BO)):e==="focusout"&&DS()}function DN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Im(qh)}function BN(e,t){if(e==="click")return Im(t)}function zN(e,t){if(e==="input"||e==="change")return Im(t)}function UN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wi=typeof Object.is=="function"?Object.is:UN,jN=Object.prototype.hasOwnProperty;function Wh(e,t){if(wi(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(!jN.call(t,r[n])||!wi(e[r[n]],t[r[n]]))return!1;return!0}function BS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zS(e,t){var r=BS(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=BS(r)}}function zO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function US(){for(var e=window,t=b0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=b0(e.document)}return t}function C_(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 GN=Ga&&"documentMode"in document&&11>=document.documentMode,Tf=null,T_=null,bh=null,O_=!1;function jS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;O_||Tf==null||Tf!==b0(n)||(n=Tf,"selectionStart"in n&&C_(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}),bh&&Wh(bh,n)||(bh=n,n=C0(T_,"onSelect"),0<n.length&&(t=new R2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Tf)))}T2("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);T2("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);T2(ZF,2);for(var GS="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),My=0;My<GS.length;My++)C2.set(GS[My],0);Zf("onMouseEnter",["mouseout","mouseover"]);Zf("onMouseLeave",["mouseout","mouseover"]);Zf("onPointerEnter",["pointerout","pointerover"]);Zf("onPointerLeave",["pointerout","pointerover"]);ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),UO=new Set("cancel close invalid load scroll toggle".split(" ").concat(lh));function HS(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,WF(n,t,void 0,e),e.currentTarget=null}function jO(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;HS(i,l,c),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;HS(i,l,c),a=s}}}if(E0)throw e=S_,E0=!1,S_=null,e}function Nr(e,t){var r=VO(t),n=e+"__bubble";r.has(n)||(HO(t,e,2,!1),r.add(n))}var qS="_reactListening"+Math.random().toString(36).slice(2);function GO(e){e[qS]||(e[qS]=!0,oO.forEach(function(t){UO.has(t)||WS(t,!1,e,null),WS(t,!0,e,null)}))}function WS(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&&UO.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=VO(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),HO(a,e,i,t),o.add(l))}function HO(e,t,r,n){var i=C2.get(t);switch(i===void 0?2:i){case 0:i=oN;break;case 1:i=uN;break;default:i=O2}r=i.bind(null,t,r,e),i=void 0,!b_||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 qO(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Wu(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}jF(function(){var c=a,p=w2(r),x=[];e:{var g=RO.get(e);if(g!==void 0){var y=R2,T=e;switch(e){case"keypress":if(i0(r)===0)break e;case"keydown":case"keyup":y=bN;break;case"focusin":T="focus",y=Ty;break;case"focusout":T="blur",y=Ty;break;case"beforeblur":case"afterblur":y=Ty;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=RS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=sN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=AN;break;case TO:case OO:case kO:y=dN;break;case MO:y=TN;break;case"scroll":y=lN;break;case"wheel":y=kN;break;case"copy":case"cut":case"paste":y=vN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=FS}var P=(t&4)!==0,b=!P&&e==="scroll",_=P?g!==null?g+"Capture":null:g;P=[];for(var E=c,k;E!==null;){k=E;var F=k.stateNode;if(k.tag===5&&F!==null&&(k=F,_!==null&&(F=Uh(E,_),F!=null&&P.push(Vh(E,F,k)))),b)break;E=E.return}0<P.length&&(g=new y(g,T,null,r,p),x.push({event:g,listeners:P}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",g&&!(t&16)&&(T=r.relatedTarget||r.fromElement)&&(Wu(T)||T[vs]))break e;if((y||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,y?(T=r.relatedTarget||r.toElement,y=c,T=T?Wu(T):null,T!==null&&(b=yl(T),T!==b||T.tag!==5&&T.tag!==6)&&(T=null)):(y=null,T=c),y!==T)){if(P=RS,F="onMouseLeave",_="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=FS,F="onPointerLeave",_="onPointerEnter",E="pointer"),b=y==null?g:Of(y),k=T==null?g:Of(T),g=new P(F,E+"leave",y,r,p),g.target=b,g.relatedTarget=k,F=null,Wu(p)===c&&(P=new P(_,E+"enter",T,r,p),P.target=k,P.relatedTarget=b,F=P),b=F,y&&T)t:{for(P=y,_=T,E=0,k=P;k;k=df(k))E++;for(k=0,F=_;F;F=df(F))k++;for(;0<E-k;)P=df(P),E--;for(;0<k-E;)_=df(_),k--;for(;E--;){if(P===_||_!==null&&P===_.alternate)break t;P=df(P),_=df(_)}P=null}else P=null;y!==null&&VS(x,g,y,P,!1),T!==null&&b!==null&&VS(x,b,T,P,!0)}}e:{if(g=c?Of(c):window,y=g.nodeName&&g.nodeName.toLowerCase(),y==="select"||y==="input"&&g.type==="file")var I=LN;else if(LS(g))if(DO)I=zN;else{I=DN;var $=$N}else(y=g.nodeName)&&y.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(I=BN);if(I&&(I=I(e,c))){$O(x,I,r,p);break e}$&&$(e,g,c),e==="focusout"&&($=g._wrapperState)&&$.controlled&&g.type==="number"&&p_(g,"number",g.value)}switch($=c?Of(c):window,e){case"focusin":(LS($)||$.contentEditable==="true")&&(Tf=$,T_=c,bh=null);break;case"focusout":bh=T_=Tf=null;break;case"mousedown":O_=!0;break;case"contextmenu":case"mouseup":case"dragend":O_=!1,jS(x,r,p);break;case"selectionchange":if(GN)break;case"keydown":case"keyup":jS(x,r,p)}var ne;if(F2)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Cf?IO(e,r)&&(V="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(V="onCompositionStart");V&&(NO&&r.locale!=="ko"&&(Cf||V!=="onCompositionStart"?V==="onCompositionEnd"&&Cf&&(ne=FO()):(Ro=p,M2="value"in Ro?Ro.value:Ro.textContent,Cf=!0)),$=C0(c,V),0<$.length&&(V=new PS(V,e,null,r,p),x.push({event:V,listeners:$}),ne?V.data=ne:(ne=LO(r),ne!==null&&(V.data=ne)))),(ne=RN?PN(e,r):FN(e,r))&&(c=C0(c,"onBeforeInput"),0<c.length&&(p=new PS("onBeforeInput","beforeinput",null,r,p),x.push({event:p,listeners:c}),p.data=ne))}jO(x,t)})}function Vh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function C0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Uh(e,r),a!=null&&n.unshift(Vh(e,a,i)),a=Uh(e,t),a!=null&&n.push(Vh(e,a,i))),e=e.return}return n}function df(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function VS(e,t,r,n,i){for(var a=t._reactName,o=[];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=Uh(r,a),s!=null&&o.unshift(Vh(r,s,l))):i||(s=Uh(r,a),s!=null&&o.push(Vh(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function T0(){}var Ry=null,Py=null;function WO(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function k_(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 YS=typeof setTimeout=="function"?setTimeout:void 0,HN=typeof clearTimeout=="function"?clearTimeout:void 0;function N2(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Bf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function XS(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 Fy=0;function qN(e){return{$$typeof:x2,toString:e,valueOf:e}}var Lm=Math.random().toString(36).slice(2),Po="__reactFiber$"+Lm,O0="__reactProps$"+Lm,vs="__reactContainer$"+Lm,QS="__reactEvents$"+Lm;function Wu(e){var t=e[Po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vs]||r[Po]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=XS(e);e!==null;){if(r=e[Po])return r;e=XS(e)}return t}e=r,r=e.parentNode}return null}function _d(e){return e=e[Po]||e[vs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Of(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ht(33))}function $m(e){return e[O0]||null}function VO(e){var t=e[QS];return t===void 0&&(t=e[QS]=new Set),t}var M_=[],kf=-1;function ru(e){return{current:e}}function Lr(e){0>kf||(e.current=M_[kf],M_[kf]=null,kf--)}function Wr(e,t){kf++,M_[kf]=e.current,e.current=t}var Yo={},In=ru(Yo),Zn=ru(!1),nl=Yo;function Kf(e,t){var r=e.type.contextTypes;if(!r)return Yo;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 Kn(e){return e=e.childContextTypes,e!=null}function k0(){Lr(Zn),Lr(In)}function ZS(e,t,r){if(In.current!==Yo)throw Error(ht(168));Wr(In,t),Wr(Zn,r)}function YO(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(ht(108,If(t)||"Unknown",i));return zr({},r,n)}function a0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,nl=In.current,Wr(In,e),Wr(Zn,Zn.current),!0}function KS(e,t,r){var n=e.stateNode;if(!n)throw Error(ht(169));r?(e=YO(e,t,nl),n.__reactInternalMemoizedMergedChildContext=e,Lr(Zn),Lr(In),Wr(In,e)):Lr(Zn),Wr(Zn,r)}var I2=null,Ku=null,WN=gn.unstable_runWithPriority,L2=gn.unstable_scheduleCallback,R_=gn.unstable_cancelCallback,VN=gn.unstable_shouldYield,JS=gn.unstable_requestPaint,P_=gn.unstable_now,YN=gn.unstable_getCurrentPriorityLevel,Dm=gn.unstable_ImmediatePriority,XO=gn.unstable_UserBlockingPriority,QO=gn.unstable_NormalPriority,ZO=gn.unstable_LowPriority,KO=gn.unstable_IdlePriority,Ny={},XN=JS!==void 0?JS:function(){},La=null,o0=null,Iy=!1,eE=P_(),Fn=1e4>eE?P_:function(){return P_()-eE};function Jf(){switch(YN()){case Dm:return 99;case XO:return 98;case QO:return 97;case ZO:return 96;case KO:return 95;default:throw Error(ht(332))}}function JO(e){switch(e){case 99:return Dm;case 98:return XO;case 97:return QO;case 96:return ZO;case 95:return KO;default:throw Error(ht(332))}}function il(e,t){return e=JO(e),WN(e,t)}function Yh(e,t,r){return e=JO(e),L2(e,t,r)}function ha(){if(o0!==null){var e=o0;o0=null,R_(e)}ek()}function ek(){if(!Iy&&La!==null){Iy=!0;var e=0;try{var t=La;il(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),La=null}catch(r){throw La!==null&&(La=La.slice(e+1)),L2(Dm,ha),r}finally{Iy=!1}}}var QN=gl.ReactCurrentBatchConfig;function Bi(e,t){if(e&&e.defaultProps){t=zr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var M0=ru(null),R0=null,Mf=null,P0=null;function $2(){P0=Mf=R0=null}function D2(e){var t=M0.current;Lr(M0),e.type._context._currentValue=t}function tk(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 zf(e,t){R0=e,P0=Mf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ui=!0),e.firstContext=null)}function Ei(e,t){if(P0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(P0=e,t=1073741823),t={context:e,observedBits:t,next:null},Mf===null){if(R0===null)throw Error(ht(308));Mf=t,R0.dependencies={lanes:0,firstContext:t,responders:null}}else Mf=Mf.next=t;return e._currentValue}var Co=!1;function B2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function rk(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(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 tE(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Xh(e,t,r,n){var i=e.updateQueue;Co=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?a=c:o.next=c,o=s;var p=e.alternate;if(p!==null){p=p.updateQueue;var x=p.lastBaseUpdate;x!==o&&(x===null?p.firstBaseUpdate=c:x.next=c,p.lastBaseUpdate=s)}}if(a!==null){x=i.baseState,o=0,p=c=s=null;do{l=a.lane;var g=a.eventTime;if((n&l)===l){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,T=a;switch(l=t,g=r,T.tag){case 1:if(y=T.payload,typeof y=="function"){x=y.call(g,x,l);break e}x=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=T.payload,l=typeof y=="function"?y.call(g,x,l):y,l==null)break e;x=zr({},x,l);break e;case 2:Co=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else g={eventTime:g,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(c=p=g,s=x):p=p.next=g,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);p===null&&(s=x),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=p,bd|=o,e.lanes=o,e.memoizedState=x}}function rE(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(ht(191,i));i.call(n)}}}var nk=new km.Component().refs;function F0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:zr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bm={isMounted:function(e){return(e=e._reactInternals)?yl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=fi(),i=jo(e),a=zo(n,i);a.payload=t,r!=null&&(a.callback=r),Uo(e,a),Go(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=fi(),i=jo(e),a=zo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Uo(e,a),Go(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fi(),n=jo(e),i=zo(r,n);i.tag=2,t!=null&&(i.callback=t),Uo(e,i),Go(e,n,r)}};function nE(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Wh(r,n)||!Wh(i,a):!0}function ik(e,t,r){var n=!1,i=Yo,a=t.contextType;return typeof a=="object"&&a!==null?a=Ei(a):(i=Kn(t)?nl:In.current,n=t.contextTypes,a=(n=n!=null)?Kf(e,i):Yo),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bm,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function iE(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&&Bm.enqueueReplaceState(t,t.state,null)}function F_(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=nk,B2(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ei(a):(a=Kn(t)?nl:In.current,i.context=Kf(e,a)),Xh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(F0(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&&Bm.enqueueReplaceState(i,i.state,null),Xh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var cv=Array.isArray;function zc(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(ht(309));var n=r.stateNode}if(!n)throw Error(ht(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===nk&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(ht(284));if(!r._owner)throw Error(ht(290,e))}return e}function hv(e,t){if(e.type!=="textarea")throw Error(ht(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ak(e){function t(b,_){if(e){var E=b.lastEffect;E!==null?(E.nextEffect=_,b.lastEffect=_):b.firstEffect=b.lastEffect=_,_.nextEffect=null,_.flags=8}}function r(b,_){if(!e)return null;for(;_!==null;)t(b,_),_=_.sibling;return null}function n(b,_){for(b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function i(b,_){return b=Qo(b,_),b.index=0,b.sibling=null,b}function a(b,_,E){return b.index=E,e?(E=b.alternate,E!==null?(E=E.index,E<_?(b.flags=2,_):E):(b.flags=2,_)):_}function o(b){return e&&b.alternate===null&&(b.flags=2),b}function l(b,_,E,k){return _===null||_.tag!==6?(_=zy(E,b.mode,k),_.return=b,_):(_=i(_,E),_.return=b,_)}function s(b,_,E,k){return _!==null&&_.elementType===E.type?(k=i(_,E.props),k.ref=zc(b,_,E),k.return=b,k):(k=s0(E.type,E.key,E.props,null,b.mode,k),k.ref=zc(b,_,E),k.return=b,k)}function c(b,_,E,k){return _===null||_.tag!==4||_.stateNode.containerInfo!==E.containerInfo||_.stateNode.implementation!==E.implementation?(_=Uy(E,b.mode,k),_.return=b,_):(_=i(_,E.children||[]),_.return=b,_)}function p(b,_,E,k,F){return _===null||_.tag!==7?(_=Hf(E,b.mode,k,F),_.return=b,_):(_=i(_,E),_.return=b,_)}function x(b,_,E){if(typeof _=="string"||typeof _=="number")return _=zy(""+_,b.mode,E),_.return=b,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case oh:return E=s0(_.type,_.key,_.props,null,b.mode,E),E.ref=zc(b,null,_),E.return=b,E;case Hu:return _=Uy(_,b.mode,E),_.return=b,_}if(cv(_)||Nc(_))return _=Hf(_,b.mode,E,null),_.return=b,_;hv(b,_)}return null}function g(b,_,E,k){var F=_!==null?_.key:null;if(typeof E=="string"||typeof E=="number")return F!==null?null:l(b,_,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case oh:return E.key===F?E.type===ko?p(b,_,E.props.children,k,F):s(b,_,E,k):null;case Hu:return E.key===F?c(b,_,E,k):null}if(cv(E)||Nc(E))return F!==null?null:p(b,_,E,k,null);hv(b,E)}return null}function y(b,_,E,k,F){if(typeof k=="string"||typeof k=="number")return b=b.get(E)||null,l(_,b,""+k,F);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case oh:return b=b.get(k.key===null?E:k.key)||null,k.type===ko?p(_,b,k.props.children,F,k.key):s(_,b,k,F);case Hu:return b=b.get(k.key===null?E:k.key)||null,c(_,b,k,F)}if(cv(k)||Nc(k))return b=b.get(E)||null,p(_,b,k,F,null);hv(_,k)}return null}function T(b,_,E,k){for(var F=null,I=null,$=_,ne=_=0,V=null;$!==null&&ne<E.length;ne++){$.index>ne?(V=$,$=null):V=$.sibling;var ae=g(b,$,E[ne],k);if(ae===null){$===null&&($=V);break}e&&$&&ae.alternate===null&&t(b,$),_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae,$=V}if(ne===E.length)return r(b,$),F;if($===null){for(;ne<E.length;ne++)$=x(b,E[ne],k),$!==null&&(_=a($,_,ne),I===null?F=$:I.sibling=$,I=$);return F}for($=n(b,$);ne<E.length;ne++)V=y($,b,ne,E[ne],k),V!==null&&(e&&V.alternate!==null&&$.delete(V.key===null?ne:V.key),_=a(V,_,ne),I===null?F=V:I.sibling=V,I=V);return e&&$.forEach(function(Te){return t(b,Te)}),F}function P(b,_,E,k){var F=Nc(E);if(typeof F!="function")throw Error(ht(150));if(E=F.call(E),E==null)throw Error(ht(151));for(var I=F=null,$=_,ne=_=0,V=null,ae=E.next();$!==null&&!ae.done;ne++,ae=E.next()){$.index>ne?(V=$,$=null):V=$.sibling;var Te=g(b,$,ae.value,k);if(Te===null){$===null&&($=V);break}e&&$&&Te.alternate===null&&t(b,$),_=a(Te,_,ne),I===null?F=Te:I.sibling=Te,I=Te,$=V}if(ae.done)return r(b,$),F;if($===null){for(;!ae.done;ne++,ae=E.next())ae=x(b,ae.value,k),ae!==null&&(_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae);return F}for($=n(b,$);!ae.done;ne++,ae=E.next())ae=y($,b,ne,ae.value,k),ae!==null&&(e&&ae.alternate!==null&&$.delete(ae.key===null?ne:ae.key),_=a(ae,_,ne),I===null?F=ae:I.sibling=ae,I=ae);return e&&$.forEach(function(Oe){return t(b,Oe)}),F}return function(b,_,E,k){var F=typeof E=="object"&&E!==null&&E.type===ko&&E.key===null;F&&(E=E.props.children);var I=typeof E=="object"&&E!==null;if(I)switch(E.$$typeof){case oh:e:{for(I=E.key,F=_;F!==null;){if(F.key===I){switch(F.tag){case 7:if(E.type===ko){r(b,F.sibling),_=i(F,E.props.children),_.return=b,b=_;break e}break;default:if(F.elementType===E.type){r(b,F.sibling),_=i(F,E.props),_.ref=zc(b,F,E),_.return=b,b=_;break e}}r(b,F);break}else t(b,F);F=F.sibling}E.type===ko?(_=Hf(E.props.children,b.mode,k,E.key),_.return=b,b=_):(k=s0(E.type,E.key,E.props,null,b.mode,k),k.ref=zc(b,_,E),k.return=b,b=k)}return o(b);case Hu:e:{for(F=E.key;_!==null;){if(_.key===F)if(_.tag===4&&_.stateNode.containerInfo===E.containerInfo&&_.stateNode.implementation===E.implementation){r(b,_.sibling),_=i(_,E.children||[]),_.return=b,b=_;break e}else{r(b,_);break}else t(b,_);_=_.sibling}_=Uy(E,b.mode,k),_.return=b,b=_}return o(b)}if(typeof E=="string"||typeof E=="number")return E=""+E,_!==null&&_.tag===6?(r(b,_.sibling),_=i(_,E),_.return=b,b=_):(r(b,_),_=zy(E,b.mode,k),_.return=b,b=_),o(b);if(cv(E))return T(b,_,E,k);if(Nc(E))return P(b,_,E,k);if(I&&hv(b,E),typeof E>"u"&&!F)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(ht(152,If(b.type)||"Component"))}return r(b,_)}}var N0=ak(!0),ok=ak(!1),wd={},ua=ru(wd),Qh=ru(wd),Zh=ru(wd);function Vu(e){if(e===wd)throw Error(ht(174));return e}function N_(e,t){switch(Wr(Zh,t),Wr(Qh,e),Wr(ua,wd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:y_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=y_(t,e)}Lr(ua),Wr(ua,t)}function es(){Lr(ua),Lr(Qh),Lr(Zh)}function aE(e){Vu(Zh.current);var t=Vu(ua.current),r=y_(t,e.type);t!==r&&(Wr(Qh,e),Wr(ua,r))}function z2(e){Qh.current===e&&(Lr(ua),Lr(Qh))}var Hr=ru(0);function I0(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 Da=null,Fo=null,la=!1;function uk(e,t){var r=bi(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 oE(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 I_(e){if(la){var t=Fo;if(t){var r=t;if(!oE(e,t)){if(t=Bf(r.nextSibling),!t||!oE(e,t)){e.flags=e.flags&-1025|2,la=!1,Da=e;return}uk(Da,r)}Da=e,Fo=Bf(t.firstChild)}else e.flags=e.flags&-1025|2,la=!1,Da=e}}function uE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Da=e}function dv(e){if(e!==Da)return!1;if(!la)return uE(e),la=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!k_(t,e.memoizedProps))for(t=Fo;t;)uk(e,t),t=Bf(t.nextSibling);if(uE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ht(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fo=Bf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fo=null}}else Fo=Da?Bf(e.stateNode.nextSibling):null;return!0}function Ly(){Fo=Da=null,la=!1}var Uf=[];function U2(){for(var e=0;e<Uf.length;e++)Uf[e]._workInProgressVersionPrimary=null;Uf.length=0}var Sh=gl.ReactCurrentDispatcher,Si=gl.ReactCurrentBatchConfig,Kh=0,Qr=null,Pn=null,An=null,L0=!1,Eh=!1;function Yn(){throw Error(ht(321))}function j2(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!wi(e[r],t[r]))return!1;return!0}function G2(e,t,r,n,i,a){if(Kh=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Sh.current=e===null||e.memoizedState===null?KN:JN,e=r(n,i),Eh){a=0;do{if(Eh=!1,!(25>a))throw Error(ht(301));a+=1,An=Pn=null,t.updateQueue=null,Sh.current=e6,e=r(n,i)}while(Eh)}if(Sh.current=z0,t=Pn!==null&&Pn.next!==null,Kh=0,An=Pn=Qr=null,L0=!1,t)throw Error(ht(300));return e}function Yu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?Qr.memoizedState=An=e:An=An.next=e,An}function xl(){if(Pn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Pn.next;var t=An===null?Qr.memoizedState:An.next;if(t!==null)An=t,Pn=e;else{if(e===null)throw Error(ht(310));Pn=e,e={memoizedState:Pn.memoizedState,baseState:Pn.baseState,baseQueue:Pn.baseQueue,queue:Pn.queue,next:null},An===null?Qr.memoizedState=An=e:An=An.next=e}return An}function ia(e,t){return typeof t=="function"?t(e):t}function Uc(e){var t=xl(),r=t.queue;if(r===null)throw Error(ht(311));r.lastRenderedReducer=e;var n=Pn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var c=s.lane;if((Kh&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 p={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=p,a=n):l=l.next=p,Qr.lanes|=c,bd|=c}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,wi(n,t.memoizedState)||(Ui=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function jc(e){var t=xl(),r=t.queue;if(r===null)throw Error(ht(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);wi(a,t.memoizedState)||(Ui=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function lE(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=(Kh&e)===e)&&(t._workInProgressVersionPrimary=n,Uf.push(t))),e)return r(t._source);throw Uf.push(t),Error(ht(350))}function lk(e,t,r,n){var i=Un;if(i===null)throw Error(ht(349));var a=t._getVersion,o=a(t._source),l=Sh.current,s=l.useState(function(){return lE(i,t,r)}),c=s[1],p=s[0];s=An;var x=e.memoizedState,g=x.refs,y=g.getSnapshot,T=x.source;x=x.subscribe;var P=Qr;return e.memoizedState={refs:g,source:t,subscribe:n},l.useEffect(function(){g.getSnapshot=r,g.setSnapshot=c;var b=a(t._source);if(!wi(o,b)){b=r(t._source),wi(p,b)||(c(b),b=jo(P),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var _=i.entanglements,E=b;0<E;){var k=31-Vo(E),F=1<<k;_[k]|=b,E&=~F}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var b=g.getSnapshot,_=g.setSnapshot;try{_(b(t._source));var E=jo(P);i.mutableReadLanes|=E&i.pendingLanes}catch(k){_(function(){throw k})}})},[t,n]),wi(y,r)&&wi(T,t)&&wi(x,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:p},e.dispatch=c=W2.bind(null,Qr,e),s.queue=e,s.baseQueue=null,p=lE(i,t,r),s.memoizedState=s.baseState=p),p}function fk(e,t,r){var n=xl();return lk(n,e,t,r)}function Gc(e){var t=Yu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},e=e.dispatch=W2.bind(null,Qr,e),[t.memoizedState,e]}function $0(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 fE(e){var t=Yu();return e={current:e},t.memoizedState=e}function D0(){return xl().memoizedState}function L_(e,t,r,n){var i=Yu();Qr.flags|=e,i.memoizedState=$0(1|t,r,void 0,n===void 0?null:n)}function H2(e,t,r,n){var i=xl();n=n===void 0?null:n;var a=void 0;if(Pn!==null){var o=Pn.memoizedState;if(a=o.destroy,n!==null&&j2(n,o.deps)){$0(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=$0(1|t,r,a,n)}function sE(e,t){return L_(516,4,e,t)}function B0(e,t){return H2(516,4,e,t)}function sk(e,t){return H2(4,2,e,t)}function ck(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 hk(e,t,r){return r=r!=null?r.concat([e]):null,H2(4,2,ck.bind(null,t,e),r)}function q2(){}function dk(e,t){var r=xl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&j2(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function pk(e,t){var r=xl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&j2(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function ZN(e,t){var r=Jf();il(98>r?98:r,function(){e(!0)}),il(97<r?97:r,function(){var n=Si.transition;Si.transition=1;try{e(!1),t()}finally{Si.transition=n}})}function W2(e,t,r){var n=fi(),i=jo(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Eh=L0=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,wi(s,l))return}catch{}finally{}Go(e,i,n)}}var z0={readContext:Ei,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useOpaqueIdentifier:Yn,unstable_isNewReconciler:!1},KN={readContext:Ei,useCallback:function(e,t){return Yu().memoizedState=[e,t===void 0?null:t],e},useContext:Ei,useEffect:sE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,L_(4,2,ck.bind(null,t,e),r)},useLayoutEffect:function(e,t){return L_(4,2,e,t)},useMemo:function(e,t){var r=Yu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Yu();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=W2.bind(null,Qr,e),[n.memoizedState,e]},useRef:fE,useState:Gc,useDebugValue:q2,useDeferredValue:function(e){var t=Gc(e),r=t[0],n=t[1];return sE(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=Gc(!1),t=e[0];return e=ZN.bind(null,e[1]),fE(e),[e,t]},useMutableSource:function(e,t,r){var n=Yu();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},lk(n,e,t,r)},useOpaqueIdentifier:function(){if(la){var e=!1,t=qN(function(){throw e||(e=!0,r("r:"+(Fy++).toString(36))),Error(ht(355))}),r=Gc(t)[1];return!(Qr.mode&2)&&(Qr.flags|=516,$0(5,function(){r("r:"+(Fy++).toString(36))},void 0,null)),t}return t="r:"+(Fy++).toString(36),Gc(t),t},unstable_isNewReconciler:!1},JN={readContext:Ei,useCallback:dk,useContext:Ei,useEffect:B0,useImperativeHandle:hk,useLayoutEffect:sk,useMemo:pk,useReducer:Uc,useRef:D0,useState:function(){return Uc(ia)},useDebugValue:q2,useDeferredValue:function(e){var t=Uc(ia),r=t[0],n=t[1];return B0(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=Uc(ia)[0];return[D0().current,e]},useMutableSource:fk,useOpaqueIdentifier:function(){return Uc(ia)[0]},unstable_isNewReconciler:!1},e6={readContext:Ei,useCallback:dk,useContext:Ei,useEffect:B0,useImperativeHandle:hk,useLayoutEffect:sk,useMemo:pk,useReducer:jc,useRef:D0,useState:function(){return jc(ia)},useDebugValue:q2,useDeferredValue:function(e){var t=jc(ia),r=t[0],n=t[1];return B0(function(){var i=Si.transition;Si.transition=1;try{n(e)}finally{Si.transition=i}},[e]),r},useTransition:function(){var e=jc(ia)[0];return[D0().current,e]},useMutableSource:fk,useOpaqueIdentifier:function(){return jc(ia)[0]},unstable_isNewReconciler:!1},t6=gl.ReactCurrentOwner,Ui=!1;function Xn(e,t,r,n){t.child=e===null?ok(t,null,r,n):N0(t,e.child,r,n)}function cE(e,t,r,n,i){r=r.render;var a=t.ref;return zf(t,i),n=G2(e,t,r,n,a,i),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ba(e,t,i)):(t.flags|=1,Xn(e,t,n,i),t.child)}function hE(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!K2(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,vk(e,t,o,n,i,a)):(e=s0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,!(i&a)&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:Wh,r(i,n)&&e.ref===t.ref)?Ba(e,t,a):(t.flags|=1,e=Qo(o,n),e.ref=t.ref,e.return=t,t.child=e)}function vk(e,t,r,n,i,a){if(e!==null&&Wh(e.memoizedProps,n)&&e.ref===t.ref)if(Ui=!1,(a&i)!==0)e.flags&16384&&(Ui=!0);else return t.lanes=e.lanes,Ba(e,t,a);return $_(e,t,r,n,a)}function $y(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},vv(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},vv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,vv(t,n);return Xn(e,t,i,r),t.child}function mk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function $_(e,t,r,n,i){var a=Kn(r)?nl:In.current;return a=Kf(t,a),zf(t,i),r=G2(e,t,r,n,a,i),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ba(e,t,i)):(t.flags|=1,Xn(e,t,r,i),t.child)}function dE(e,t,r,n,i){if(Kn(r)){var a=!0;a0(t)}else a=!1;if(zf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),ik(t,r,n),F_(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ei(c):(c=Kn(r)?nl:In.current,c=Kf(t,c));var p=r.getDerivedStateFromProps,x=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";x||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==c)&&iE(t,o,n,c),Co=!1;var g=t.memoizedState;o.state=g,Xh(t,n,o,i),s=t.memoizedState,l!==n||g!==s||Zn.current||Co?(typeof p=="function"&&(F0(t,r,p,n),s=t.memoizedState),(l=Co||nE(t,r,l,n,g,s,c))?(x||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,rk(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Bi(t.type,l),o.props=c,x=t.pendingProps,g=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ei(s):(s=Kn(r)?nl:In.current,s=Kf(t,s));var y=r.getDerivedStateFromProps;(p=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==x||g!==s)&&iE(t,o,n,s),Co=!1,g=t.memoizedState,o.state=g,Xh(t,n,o,i);var T=t.memoizedState;l!==x||g!==T||Zn.current||Co?(typeof y=="function"&&(F0(t,r,y,n),T=t.memoizedState),(c=Co||nE(t,r,c,n,g,T,s))?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,T,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,T,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=T),o.props=n,o.state=T,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),n=!1)}return D_(e,t,r,n,a,i)}function D_(e,t,r,n,i,a){mk(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&KS(t,r,!1),Ba(e,t,a);n=t.stateNode,t6.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=N0(t,e.child,null,a),t.child=N0(t,null,l,a)):Xn(e,t,l,a),t.memoizedState=n.state,i&&KS(t,r,!0),t.child}function pE(e){var t=e.stateNode;t.pendingContext?ZS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ZS(e,t.context,!1),N_(e,t.containerInfo)}var pv={dehydrated:null,retryLane:0};function vE(e,t,r){var n=t.pendingProps,i=Hr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Wr(Hr,i&1),e===null?(n.fallback!==void 0&&I_(t),e=n.children,i=n.fallback,a?(e=mE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=pv,e):typeof n.unstable_expectedLoadTime=="number"?(e=mE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=pv,t.lanes=33554432,e):(r=J2({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=yE(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=pv,n):(r=gE(e,t,n.children,r),t.memoizedState=null,r):a?(n=yE(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=pv,n):(r=gE(e,t,n.children,r),t.memoizedState=null,r)}function mE(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=J2(t,i,0,null),r=Hf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function gE(e,t,r,n){var i=e.child;return e=i.sibling,r=Qo(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 yE(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Qo(o,l),e!==null?n=Qo(e,n):(n=Hf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function xE(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tk(e.return,t)}function Dy(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function _E(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Xn(e,t,n.children,r),n=Hr.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xE(e,r);else if(e.tag===19)xE(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(Wr(Hr,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&I0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Dy(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&&I0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Dy(t,!0,r,null,a,t.lastEffect);break;case"together":Dy(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ba(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bd|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(ht(153));if(t.child!==null){for(e=t.child,r=Qo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Qo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var gk,B_,yk,xk;gk=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}};B_=function(){};yk=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Vu(ua.current);var a=null;switch(r){case"input":i=h_(e,i),n=h_(e,n),a=[];break;case"option":i=v_(e,i),n=v_(e,n),a=[];break;case"select":i=zr({},i,{value:void 0}),n=zr({},n,{value:void 0}),a=[];break;case"textarea":i=m_(e,i),n=m_(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=T0)}x_(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Bh.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(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(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"&&(Bh.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Nr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===x2?s.toString():(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};xk=function(e,t,r,n){r!==n&&(t.flags|=4)};function Hc(e,t){if(!la)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 r6(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 Kn(t.type)&&k0(),null;case 3:return es(),Lr(Zn),Lr(In),U2(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),B_(t),null;case 5:z2(t);var i=Vu(Zh.current);if(r=t.type,e!==null&&t.stateNode!=null)yk(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(ht(166));return null}if(e=Vu(ua.current),dv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Po]=t,n[O0]=a,r){case"dialog":Nr("cancel",n),Nr("close",n);break;case"iframe":case"object":case"embed":Nr("load",n);break;case"video":case"audio":for(e=0;e<lh.length;e++)Nr(lh[e],n);break;case"source":Nr("error",n);break;case"img":case"image":case"link":Nr("error",n),Nr("load",n);break;case"details":Nr("toggle",n);break;case"input":_S(n,a),Nr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",n);break;case"textarea":bS(n,a),Nr("invalid",n)}x_(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):Bh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Nr("scroll",n));switch(r){case"input":uv(n),wS(n,a,!0);break;case"textarea":uv(n),SS(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=T0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===g_.html&&(e=hO(r)),e===g_.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Po]=t,e[O0]=n,gk(e,t,!1,!1),t.stateNode=e,o=__(r,n),r){case"dialog":Nr("cancel",e),Nr("close",e),i=n;break;case"iframe":case"object":case"embed":Nr("load",e),i=n;break;case"video":case"audio":for(i=0;i<lh.length;i++)Nr(lh[i],e);i=n;break;case"source":Nr("error",e),i=n;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=n;break;case"details":Nr("toggle",e),i=n;break;case"input":_S(e,n),i=h_(e,n),Nr("invalid",e);break;case"option":i=v_(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=zr({},n,{value:void 0}),Nr("invalid",e);break;case"textarea":bS(e,n),i=m_(e,n),Nr("invalid",e);break;default:i=n}x_(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?vO(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&dO(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&zh(e,s):typeof s=="number"&&zh(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Bh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Nr("scroll",e):s!=null&&d2(e,a,s,o))}switch(r){case"input":uv(e),wS(e,n,!1);break;case"textarea":uv(e),SS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Wo(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Lf(e,!!n.multiple,a,!1):n.defaultValue!=null&&Lf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=T0)}WO(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)xk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ht(166));r=Vu(Zh.current),Vu(ua.current),dv(t)?(n=t.stateNode,r=t.memoizedProps,n[Po]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Po]=t,t.stateNode=n)}return null;case 13:return Lr(Hr),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&dv(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Hr.current&1?Tn===0&&(Tn=3):((Tn===0||Tn===3)&&(Tn=4),Un===null||!(bd&134217727)&&!(gs&134217727)||jf(Un,Nn))),(n||r)&&(t.flags|=4),null);case 4:return es(),B_(t),e===null&&GO(t.stateNode.containerInfo),null;case 10:return D2(t),null;case 17:return Kn(t.type)&&k0(),null;case 19:if(Lr(Hr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)Hc(n,!1);else{if(Tn!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=I0(e),o!==null){for(t.flags|=64,Hc(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Wr(Hr,Hr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Fn()>q_&&(t.flags|=64,a=!0,Hc(n,!1),t.lanes=33554432)}else{if(!a)if(e=I0(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Hc(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!la)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Fn()-n.renderingStartTime>q_&&r!==1073741824&&(t.flags|=64,a=!0,Hc(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Fn(),r.sibling=null,t=Hr.current,Wr(Hr,a?t&1|2:t&1),r):null;case 23:case 24:return Z2(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(ht(156,t.tag))}function n6(e){switch(e.tag){case 1:Kn(e.type)&&k0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(es(),Lr(Zn),Lr(In),U2(),t=e.flags,t&64)throw Error(ht(285));return e.flags=t&-4097|64,e;case 5:return z2(e),null;case 13:return Lr(Hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Lr(Hr),null;case 4:return es(),null;case 10:return D2(e),null;case 23:case 24:return Z2(),null;default:return null}}function V2(e,t){try{var r="",n=t;do r+=$F(n),n=n.return;while(n);var i=r}catch(a){i=`
38
38
  Error generating stack: `+a.message+`
39
- `+a.stack}return{value:e,source:t,stack:i}}function B_(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var r6=typeof WeakMap=="function"?WeakMap:Map;function yk(e,t,r){r=zo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){U0||(U0=!0,q_=n),B_(e,t)},r}function xk(e,t,r){r=zo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return B_(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(aa===null?aa=new Set([this]):aa.add(this),B_(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var n6=typeof WeakSet=="function"?WeakSet:Set;function xE(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ho(e,r)}else t.current=null}function i6(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:Bi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&P2(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ht(163))}function a6(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&&(Ok(r,e),d6(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:Bi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&eE(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}eE(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&HO(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&&SO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ht(163))}function _E(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=hO("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 wE(e,t){if(Ku&&typeof Ku.onCommitFiberUnmount=="function")try{Ku.onCommitFiberUnmount(F2,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)Ok(t,r);else{n=t;try{i()}catch(a){Ho(n,a)}}r=r.next}while(r!==e)}break;case 1:if(xE(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ho(t,a)}break;case 5:xE(t);break;case 4:_k(e,t)}}function bE(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 SE(e){return e.tag===5||e.tag===3||e.tag===4}function EE(e){e:{for(var t=e.return;t!==null;){if(SE(t))break e;t=t.return}throw Error(ht(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(ht(161))}r.flags&16&&(zh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||SE(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?z_(e,r,t):U_(e,r,t)}function z_(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=T0));else if(n!==4&&(e=e.child,e!==null))for(z_(e,t,r),e=e.sibling;e!==null;)z_(e,t,r),e=e.sibling}function U_(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(U_(e,t,r),e=e.sibling;e!==null;)U_(e,t,r),e=e.sibling}function _k(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(ht(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(wE(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(wE(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 Dy(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[C0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&lO(r,n),x_(e,i),t=x_(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?dO(r,l):o==="dangerouslySetInnerHTML"?cO(r,l):o==="children"?zh(r,l):c2(r,o,l,t)}switch(e){case"input":h_(r,n);break;case"textarea":fO(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?Lf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?Lf(r,!!n.multiple,n.defaultValue,!0):Lf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(ht(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,SO(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Y2=Fn(),_E(t.child,!0)),AE(t);return;case 19:AE(t);return;case 17:return;case 23:case 24:_E(t,t.memoizedState!==null);return}throw Error(ht(163))}function AE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new n6),t.forEach(function(n){var i=m6.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function o6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var u6=Math.ceil,z0=gl.ReactCurrentDispatcher,W2=gl.ReactCurrentOwner,Kt=0,Un=null,fn=null,Nn=0,al=0,j_=ru(0),Cn=0,Bm=null,ms=0,bd=0,gs=0,V2=0,G_=null,Y2=0,H_=1/0;function ys(){H_=Fn()+500}var Dt=null,U0=!1,q_=null,aa=null,Xo=!1,Ah=null,fh=90,W_=[],V_=[],ja=null,Th=0,Y_=null,o0=-1,$a=0,u0=0,Ch=null,l0=!1;function fi(){return Kt&48?Fn():o0!==-1?o0:o0=Fn()}function jo(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Jf()===99?1:2;if($a===0&&($a=ms),YN.transition!==0){u0!==0&&(u0=G_!==null?G_.pendingLanes:0),e=$a;var t=4186112&~u0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Jf(),Kt&4&&e===98?e=E0(12,$a):(e=ZF(e),e=E0(e,$a)),e}function Go(e,t,r){if(50<Th)throw Th=0,Y_=null,Error(ht(185));if(e=zm(e,t),e===null)return null;Pm(e,t,r),e===Un&&(gs|=t,Cn===4&&jf(e,Nn));var n=Jf();t===1?Kt&8&&!(Kt&48)?X_(e):(Ai(e,r),Kt===0&&(ys(),ha())):(!(Kt&4)||n!==98&&n!==99||(ja===null?ja=new Set([e]):ja.add(e)),Ai(e,r)),G_=e}function zm(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 Ai(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Vo(o),s=1<<l,c=a[l];if(c===-1){if(!(s&n)||s&i){c=t,_f(s);var p=Fr;a[l]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);o&=~s}if(n=Hh(e,e===Un?Nn:0),t=Fr,n===0)r!==null&&(r!==Fy&&M_(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Fy&&M_(r)}t===15?(r=X_.bind(null,e),La===null?(La=[r],a0=N2($m,KO)):La.push(r),r=Fy):t===14?r=Yh(99,X_.bind(null,e)):(r=KF(t),r=Yh(r,wk.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function wk(e){if(o0=-1,u0=$a=0,Kt&48)throw Error(ht(327));var t=e.callbackNode;if(nu()&&e.callbackNode!==t)return null;var r=Hh(e,e===Un?Nn:0);if(r===0)return null;var n=r,i=Kt;Kt|=16;var a=Ak();(Un!==e||Nn!==n)&&(ys(),Gf(e,n));do try{s6();break}catch(l){Ek(e,l)}while(1);if(I2(),z0.current=a,Kt=i,fn!==null?n=0:(Un=null,Nn=0,n=Cn),ms&gs)Gf(e,0);else if(n!==0){if(n===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,P2(e.containerInfo)),r=MO(e),r!==0&&(n=sh(e,r))),n===1)throw t=Bm,Gf(e,0),jf(e,r),Ai(e,Fn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(ht(345));case 2:Du(e);break;case 3:if(jf(e,r),(r&62914560)===r&&(n=Y2+500-Fn(),10<n)){if(Hh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=WS(Du.bind(null,e),n);break}Du(e);break;case 4:if(jf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Vo(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*u6(r/1960))-r,10<r){e.timeoutHandle=WS(Du.bind(null,e),r);break}Du(e);break;case 5:Du(e);break;default:throw Error(ht(329))}}return Ai(e,Fn()),e.callbackNode===t?wk.bind(null,e):null}function jf(e,t){for(t&=~V2,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Vo(t),n=1<<r;e[r]=-1,t&=~n}}function X_(e){if(Kt&48)throw Error(ht(327));if(nu(),e===Un&&e.expiredLanes&Nn){var t=Nn,r=sh(e,t);ms&gs&&(t=Hh(e,t),r=sh(e,t))}else t=Hh(e,0),r=sh(e,t);if(e.tag!==0&&r===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,P2(e.containerInfo)),t=MO(e),t!==0&&(r=sh(e,t))),r===1)throw r=Bm,Gf(e,0),jf(e,t),Ai(e,Fn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Du(e),Ai(e,Fn()),null}function l6(){if(ja!==null){var e=ja;ja=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ai(t,Fn())})}ha()}function bk(e,t){var r=Kt;Kt|=1;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}}function Sk(e,t){var r=Kt;Kt&=-2,Kt|=8;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}}function vv(e,t){Wr(j_,al),al|=t,ms|=t}function X2(){al=j_.current,Lr(j_)}function Gf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,jN(r)),fn!==null)for(r=fn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&O0();break;case 3:es(),Lr(Zn),Lr(In),B2();break;case 5:D2(n);break;case 4:es();break;case 13:Lr(Hr);break;case 19:Lr(Hr);break;case 10:L2(n);break;case 23:case 24:X2()}r=r.return}Un=e,fn=Qo(e.current,null),Nn=al=ms=t,Cn=0,Bm=null,V2=gs=bd=0}function Ek(e,t){do{var r=fn;try{if(I2(),Sh.current=B0,I0){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}I0=!1}if(Kh=0,An=Pn=Qr=null,Eh=!1,W2.current=null,r===null||r.return===null){Cn=1,Bm=t,fn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Nn,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 p=l.alternate;p?(l.updateQueue=p.updateQueue,l.memoizedState=p.memoizedState,l.lanes=p.lanes):(l.updateQueue=null,l.memoizedState=null)}var x=(Hr.current&1)!==0,g=o;do{var y;if(y=g.tag===13){var C=g.memoizedState;if(C!==null)y=C.dehydrated!==null;else{var P=g.memoizedProps;y=P.fallback===void 0?!1:P.unstable_avoidThisFallback!==!0?!0:!x}}if(y){var b=g.updateQueue;if(b===null){var _=new Set;_.add(c),g.updateQueue=_}else b.add(c);if(!(g.mode&2)){if(g.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var E=zo(-1,1);E.tag=2,Uo(l,E)}l.lanes|=1;break e}s=void 0,l=t;var k=a.pingCache;if(k===null?(k=a.pingCache=new r6,s=new Set,k.set(c,s)):(s=k.get(c),s===void 0&&(s=new Set,k.set(c,s))),!s.has(l)){s.add(l);var F=v6.bind(null,a,c,l);c.then(F,F)}g.flags|=4096,g.lanes=t;break e}g=g.return}while(g!==null);s=Error((If(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
39
+ `+a.stack}return{value:e,source:t,stack:i}}function z_(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var i6=typeof WeakMap=="function"?WeakMap:Map;function _k(e,t,r){r=zo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){j0||(j0=!0,W_=n),z_(e,t)},r}function wk(e,t,r){r=zo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return z_(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(aa===null?aa=new Set([this]):aa.add(this),z_(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var a6=typeof WeakSet=="function"?WeakSet:Set;function wE(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ho(e,r)}else t.current=null}function o6(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:Bi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&N2(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ht(163))}function u6(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&&(Mk(r,e),v6(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:Bi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&rE(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}rE(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&WO(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&&AO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ht(163))}function bE(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=pO("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 SE(e,t){if(Ku&&typeof Ku.onCommitFiberUnmount=="function")try{Ku.onCommitFiberUnmount(I2,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)Mk(t,r);else{n=t;try{i()}catch(a){Ho(n,a)}}r=r.next}while(r!==e)}break;case 1:if(wE(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ho(t,a)}break;case 5:wE(t);break;case 4:bk(e,t)}}function EE(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 AE(e){return e.tag===5||e.tag===3||e.tag===4}function CE(e){e:{for(var t=e.return;t!==null;){if(AE(t))break e;t=t.return}throw Error(ht(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(ht(161))}r.flags&16&&(zh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||AE(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?U_(e,r,t):j_(e,r,t)}function U_(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=T0));else if(n!==4&&(e=e.child,e!==null))for(U_(e,t,r),e=e.sibling;e!==null;)U_(e,t,r),e=e.sibling}function j_(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(j_(e,t,r),e=e.sibling;e!==null;)j_(e,t,r),e=e.sibling}function bk(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(ht(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(SE(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(SE(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 By(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[O0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&sO(r,n),__(e,i),t=__(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?vO(r,l):o==="dangerouslySetInnerHTML"?dO(r,l):o==="children"?zh(r,l):d2(r,o,l,t)}switch(e){case"input":d_(r,n);break;case"textarea":cO(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?Lf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?Lf(r,!!n.multiple,n.defaultValue,!0):Lf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(ht(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,AO(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Q2=Fn(),bE(t.child,!0)),TE(t);return;case 19:TE(t);return;case 17:return;case 23:case 24:bE(t,t.memoizedState!==null);return}throw Error(ht(163))}function TE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new a6),t.forEach(function(n){var i=y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function l6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var f6=Math.ceil,U0=gl.ReactCurrentDispatcher,Y2=gl.ReactCurrentOwner,Kt=0,Un=null,fn=null,Nn=0,al=0,G_=ru(0),Tn=0,zm=null,ms=0,bd=0,gs=0,X2=0,H_=null,Q2=0,q_=1/0;function ys(){q_=Fn()+500}var Dt=null,j0=!1,W_=null,aa=null,Xo=!1,Ah=null,fh=90,V_=[],Y_=[],ja=null,Ch=0,X_=null,u0=-1,$a=0,l0=0,Th=null,f0=!1;function fi(){return Kt&48?Fn():u0!==-1?u0:u0=Fn()}function jo(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Jf()===99?1:2;if($a===0&&($a=ms),QN.transition!==0){l0!==0&&(l0=H_!==null?H_.pendingLanes:0),e=$a;var t=4186112&~l0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Jf(),Kt&4&&e===98?e=A0(12,$a):(e=JF(e),e=A0(e,$a)),e}function Go(e,t,r){if(50<Ch)throw Ch=0,X_=null,Error(ht(185));if(e=Um(e,t),e===null)return null;Fm(e,t,r),e===Un&&(gs|=t,Tn===4&&jf(e,Nn));var n=Jf();t===1?Kt&8&&!(Kt&48)?Q_(e):(Ai(e,r),Kt===0&&(ys(),ha())):(!(Kt&4)||n!==98&&n!==99||(ja===null?ja=new Set([e]):ja.add(e)),Ai(e,r)),H_=e}function Um(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 Ai(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Vo(o),s=1<<l,c=a[l];if(c===-1){if(!(s&n)||s&i){c=t,_f(s);var p=Fr;a[l]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);o&=~s}if(n=Hh(e,e===Un?Nn:0),t=Fr,n===0)r!==null&&(r!==Ny&&R_(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Ny&&R_(r)}t===15?(r=Q_.bind(null,e),La===null?(La=[r],o0=L2(Dm,ek)):La.push(r),r=Ny):t===14?r=Yh(99,Q_.bind(null,e)):(r=eN(t),r=Yh(r,Sk.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function Sk(e){if(u0=-1,l0=$a=0,Kt&48)throw Error(ht(327));var t=e.callbackNode;if(nu()&&e.callbackNode!==t)return null;var r=Hh(e,e===Un?Nn:0);if(r===0)return null;var n=r,i=Kt;Kt|=16;var a=Tk();(Un!==e||Nn!==n)&&(ys(),Gf(e,n));do try{h6();break}catch(l){Ck(e,l)}while(1);if($2(),U0.current=a,Kt=i,fn!==null?n=0:(Un=null,Nn=0,n=Tn),ms&gs)Gf(e,0);else if(n!==0){if(n===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,N2(e.containerInfo)),r=PO(e),r!==0&&(n=sh(e,r))),n===1)throw t=zm,Gf(e,0),jf(e,r),Ai(e,Fn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(ht(345));case 2:Du(e);break;case 3:if(jf(e,r),(r&62914560)===r&&(n=Q2+500-Fn(),10<n)){if(Hh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YS(Du.bind(null,e),n);break}Du(e);break;case 4:if(jf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Vo(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f6(r/1960))-r,10<r){e.timeoutHandle=YS(Du.bind(null,e),r);break}Du(e);break;case 5:Du(e);break;default:throw Error(ht(329))}}return Ai(e,Fn()),e.callbackNode===t?Sk.bind(null,e):null}function jf(e,t){for(t&=~X2,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Vo(t),n=1<<r;e[r]=-1,t&=~n}}function Q_(e){if(Kt&48)throw Error(ht(327));if(nu(),e===Un&&e.expiredLanes&Nn){var t=Nn,r=sh(e,t);ms&gs&&(t=Hh(e,t),r=sh(e,t))}else t=Hh(e,0),r=sh(e,t);if(e.tag!==0&&r===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,N2(e.containerInfo)),t=PO(e),t!==0&&(r=sh(e,t))),r===1)throw r=zm,Gf(e,0),jf(e,t),Ai(e,Fn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Du(e),Ai(e,Fn()),null}function s6(){if(ja!==null){var e=ja;ja=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ai(t,Fn())})}ha()}function Ek(e,t){var r=Kt;Kt|=1;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}}function Ak(e,t){var r=Kt;Kt&=-2,Kt|=8;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}}function vv(e,t){Wr(G_,al),al|=t,ms|=t}function Z2(){al=G_.current,Lr(G_)}function Gf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,HN(r)),fn!==null)for(r=fn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&k0();break;case 3:es(),Lr(Zn),Lr(In),U2();break;case 5:z2(n);break;case 4:es();break;case 13:Lr(Hr);break;case 19:Lr(Hr);break;case 10:D2(n);break;case 23:case 24:Z2()}r=r.return}Un=e,fn=Qo(e.current,null),Nn=al=ms=t,Tn=0,zm=null,X2=gs=bd=0}function Ck(e,t){do{var r=fn;try{if($2(),Sh.current=z0,L0){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}L0=!1}if(Kh=0,An=Pn=Qr=null,Eh=!1,Y2.current=null,r===null||r.return===null){Tn=1,zm=t,fn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Nn,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 p=l.alternate;p?(l.updateQueue=p.updateQueue,l.memoizedState=p.memoizedState,l.lanes=p.lanes):(l.updateQueue=null,l.memoizedState=null)}var x=(Hr.current&1)!==0,g=o;do{var y;if(y=g.tag===13){var T=g.memoizedState;if(T!==null)y=T.dehydrated!==null;else{var P=g.memoizedProps;y=P.fallback===void 0?!1:P.unstable_avoidThisFallback!==!0?!0:!x}}if(y){var b=g.updateQueue;if(b===null){var _=new Set;_.add(c),g.updateQueue=_}else b.add(c);if(!(g.mode&2)){if(g.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var E=zo(-1,1);E.tag=2,Uo(l,E)}l.lanes|=1;break e}s=void 0,l=t;var k=a.pingCache;if(k===null?(k=a.pingCache=new i6,s=new Set,k.set(c,s)):(s=k.get(c),s===void 0&&(s=new Set,k.set(c,s))),!s.has(l)){s.add(l);var F=g6.bind(null,a,c,l);c.then(F,F)}g.flags|=4096,g.lanes=t;break e}g=g.return}while(g!==null);s=Error((If(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
40
 
41
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Cn!==5&&(Cn=2),s=q2(s,l),g=o;do{switch(g.tag){case 3:a=s,g.flags|=4096,t&=-t,g.lanes|=t;var I=yk(g,a,t);JS(g,I);break e;case 1:a=s;var $=g.type,ne=g.stateNode;if(!(g.flags&64)&&(typeof $.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(aa===null||!aa.has(ne)))){g.flags|=4096,t&=-t,g.lanes|=t;var V=xk(g,a,t);JS(g,V);break e}}g=g.return}while(g!==null)}Ck(r)}catch(ae){t=ae,fn===r&&r!==null&&(fn=r=r.return);continue}break}while(1)}function Ak(){var e=z0.current;return z0.current=B0,e===null?B0:e}function sh(e,t){var r=Kt;Kt|=16;var n=Ak();Un===e&&Nn===t||Gf(e,t);do try{f6();break}catch(i){Ek(e,i)}while(1);if(I2(),Kt=r,z0.current=n,fn!==null)throw Error(ht(261));return Un=null,Nn=0,Cn}function f6(){for(;fn!==null;)Tk(fn)}function s6(){for(;fn!==null&&!qN();)Tk(fn)}function Tk(e){var t=kk(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Ck(e):fn=t,W2.current=null}function Ck(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=t6(t),r!==null){r.flags&=2047,fn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=e6(r,t,al),r!==null){fn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||al&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){fn=t;return}fn=t=e}while(t!==null);Cn===0&&(Cn=5)}function Du(e){var t=Jf();return il(99,c6.bind(null,e,t)),null}function c6(e,t){do nu();while(Ah!==null);if(Kt&48)throw Error(ht(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ht(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-Vo(a),c=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~c}if(ja!==null&&!(n&24)&&ja.has(e)&&ja.delete(e),e===Un&&(fn=Un=null,Nn=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,W2.current=null,My=t0,o=BS(),A_(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.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 p=0,x=-1,g=-1,y=0,C=0,P=o,b=null;t:for(;;){for(var _;P!==l||a!==0&&P.nodeType!==3||(x=p+a),P!==s||c!==0&&P.nodeType!==3||(g=p+c),P.nodeType===3&&(p+=P.nodeValue.length),(_=P.firstChild)!==null;)b=P,P=_;for(;;){if(P===o)break t;if(b===l&&++y===a&&(x=p),b===s&&++C===c&&(g=p),(_=P.nextSibling)!==null)break;P=b,b=P.parentNode}P=_}l=x===-1||g===-1?null:{start:x,end:g}}else l=null;l=l||{start:0,end:0}}else l=null;Ry={focusedElem:o,selectionRange:l},t0=!1,Ch=null,l0=!1,Dt=n;do try{h6()}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);Ch=null,Dt=n;do try{for(o=e;Dt!==null;){var E=Dt.flags;if(E&16&&zh(Dt.stateNode,""),E&128){var k=Dt.alternate;if(k!==null){var F=k.ref;F!==null&&(typeof F=="function"?F(null):F.current=null)}}switch(E&1038){case 2:EE(Dt),Dt.flags&=-3;break;case 6:EE(Dt),Dt.flags&=-3,Dy(Dt.alternate,Dt);break;case 1024:Dt.flags&=-1025;break;case 1028:Dt.flags&=-1025,Dy(Dt.alternate,Dt);break;case 4:Dy(Dt.alternate,Dt);break;case 8:l=Dt,_k(o,l);var I=l.alternate;bE(l),I!==null&&bE(I)}Dt=Dt.nextEffect}}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);if(F=Ry,k=BS(),E=F.focusedElem,o=F.selectionRange,k!==E&&E&&E.ownerDocument&&DO(E.ownerDocument.documentElement,E)){for(o!==null&&A_(E)&&(k=o.start,F=o.end,F===void 0&&(F=k),"selectionStart"in E?(E.selectionStart=k,E.selectionEnd=Math.min(F,E.value.length)):(F=(k=E.ownerDocument||document)&&k.defaultView||window,F.getSelection&&(F=F.getSelection(),l=E.textContent.length,I=Math.min(o.start,l),o=o.end===void 0?I:Math.min(o.end,l),!F.extend&&I>o&&(l=o,o=I,I=l),l=DS(E,I),a=DS(E,o),l&&a&&(F.rangeCount!==1||F.anchorNode!==l.node||F.anchorOffset!==l.offset||F.focusNode!==a.node||F.focusOffset!==a.offset)&&(k=k.createRange(),k.setStart(l.node,l.offset),F.removeAllRanges(),I>o?(F.addRange(k),F.extend(a.node,a.offset)):(k.setEnd(a.node,a.offset),F.addRange(k)))))),k=[],F=E;F=F.parentNode;)F.nodeType===1&&k.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<k.length;E++)F=k[E],F.element.scrollLeft=F.left,F.element.scrollTop=F.top}t0=!!My,Ry=My=null,e.current=r,Dt=n;do try{for(E=e;Dt!==null;){var $=Dt.flags;if($&36&&a6(E,Dt.alternate,Dt),$&128){k=void 0;var ne=Dt.ref;if(ne!==null){var V=Dt.stateNode;switch(Dt.tag){case 5:k=V;break;default:k=V}typeof ne=="function"?ne(k):ne.current=k}}Dt=Dt.nextEffect}}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);Dt=null,VN(),Kt=i}else e.current=r;if(Xo)Xo=!1,Ah=e,fh=t;else for(Dt=n;Dt!==null;)t=Dt.nextEffect,Dt.nextEffect=null,Dt.flags&8&&($=Dt,$.sibling=null,$.stateNode=null),Dt=t;if(n=e.pendingLanes,n===0&&(aa=null),n===1?e===Y_?Th++:(Th=0,Y_=e):Th=0,r=r.stateNode,Ku&&typeof Ku.onCommitFiberRoot=="function")try{Ku.onCommitFiberRoot(F2,r,void 0,(r.current.flags&64)===64)}catch{}if(Ai(e,Fn()),U0)throw U0=!1,e=q_,q_=null,e;return Kt&8||ha(),null}function h6(){for(;Dt!==null;){var e=Dt.alternate;l0||Ch===null||(Dt.flags&8?ES(Dt,Ch)&&(l0=!0):Dt.tag===13&&o6(e,Dt)&&ES(Dt,Ch)&&(l0=!0));var t=Dt.flags;t&256&&i6(e,Dt),!(t&512)||Xo||(Xo=!0,Yh(97,function(){return nu(),null})),Dt=Dt.nextEffect}}function nu(){if(fh!==90){var e=97<fh?97:fh;return fh=90,il(e,p6)}return!1}function d6(e,t){W_.push(t,e),Xo||(Xo=!0,Yh(97,function(){return nu(),null}))}function Ok(e,t){V_.push(t,e),Xo||(Xo=!0,Yh(97,function(){return nu(),null}))}function p6(){if(Ah===null)return!1;var e=Ah;if(Ah=null,Kt&48)throw Error(ht(331));var t=Kt;Kt|=32;var r=V_;V_=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(ht(330));Ho(a,s)}}for(r=W_,W_=[],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(ht(330));Ho(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,ha(),!0}function TE(e,t,r){t=q2(r,t),t=yk(e,t,1),Uo(e,t),t=fi(),e=zm(e,1),e!==null&&(Pm(e,1,t),Ai(e,t))}function Ho(e,t){if(e.tag===3)TE(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){TE(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(aa===null||!aa.has(n))){e=q2(t,e);var i=xk(r,e,1);if(Uo(r,i),i=fi(),r=zm(r,1),r!==null)Pm(r,1,i),Ai(r,i);else if(typeof n.componentDidCatch=="function"&&(aa===null||!aa.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function v6(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=fi(),e.pingedLanes|=e.suspendedLanes&r,Un===e&&(Nn&r)===r&&(Cn===4||Cn===3&&(Nn&62914560)===Nn&&500>Fn()-Y2?Gf(e,0):V2|=r),Ai(e,t)}function m6(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?($a===0&&($a=ms),t=wf(62914560&~$a),t===0&&(t=4194304)):t=Jf()===99?1:2:t=1),r=fi(),e=zm(e,t),e!==null&&(Pm(e,t,r),Ai(e,r))}var kk;kk=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Ui=!0;else if(r&n)Ui=!!(e.flags&16384);else{switch(Ui=!1,t.tag){case 3:hE(t),Iy();break;case 5:nE(t);break;case 1:Kn(t.type)&&i0(t);break;case 4:F_(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Wr(k0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?dE(e,t,r):(Wr(Hr,Hr.current&1),t=Ba(e,t,r),t!==null?t.sibling:null);Wr(Hr,Hr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return yE(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wr(Hr,Hr.current),n)break;return null;case 23:case 24:return t.lanes=0,Ly(e,t,r)}return Ba(e,t,r)}else Ui=!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=Kf(t,In.current),zf(t,r),i=U2(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,Kn(n)){var a=!0;i0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$2(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&P0(t,n,o,e),i.updater=Dm,t.stateNode=i,i._reactInternals=t,P_(t,n,e,r),t=$_(null,t,n,!0,a,r)}else t.tag=0,Xn(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=y6(i),e=Bi(i,e),a){case 0:t=L_(null,t,i,e,r);break e;case 1:t=cE(null,t,i,e,r);break e;case 11:t=fE(null,t,i,e,r);break e;case 14:t=sE(null,t,i,Bi(i.type,e),n,r);break e}throw Error(ht(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),L_(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),cE(e,t,n,i,r);case 3:if(hE(t),n=t.updateQueue,e===null||n===null)throw Error(ht(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,ek(e,t),Xh(t,n,null,r),n=t.memoizedState.element,n===i)Iy(),t=Ba(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Fo=Bf(t.stateNode.containerInfo.firstChild),Da=t,a=la=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],Uf.push(a);for(r=ik(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Xn(e,t,n,r),Iy();t=t.child}return t;case 5:return nE(t),e===null&&N_(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,O_(n,i)?o=null:a!==null&&O_(n,a)&&(t.flags|=16),pk(e,t),Xn(e,t,o,r),t.child;case 6:return e===null&&N_(t),null;case 13:return dE(e,t,r);case 4:return F_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=F0(t,null,n,r):Xn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),fE(e,t,n,i,r);case 7:return Xn(e,t,t.pendingProps,r),t.child;case 8:return Xn(e,t,t.pendingProps.children,r),t.child;case 12:return Xn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Wr(k0,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=wi(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!Zn.current){t=Ba(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var c=s.firstContext;c!==null;){if(c.context===n&&c.observedBits&a){l.tag===1&&(c=zo(-1,r&-r),c.tag=2,Uo(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),JO(l.return,r),s.lanes|=r;break}c=c.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Xn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,zf(t,r),i=Ei(i,a.unstable_observedBits),n=n(i),t.flags|=1,Xn(e,t,n,r),t.child;case 14:return i=t.type,a=Bi(i,t.pendingProps),a=Bi(i.type,a),sE(e,t,i,a,n,r);case 15:return dk(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Kn(n)?(e=!0,i0(t)):e=!1,zf(t,r),rk(t,n,i),P_(t,n,i,r),$_(null,t,n,!0,e,r);case 19:return yE(e,t,r);case 23:return Ly(e,t,r);case 24:return Ly(e,t,r)}throw Error(ht(156,t.tag))};function g6(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 bi(e,t,r,n){return new g6(e,t,r,n)}function Q2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y6(e){if(typeof e=="function")return Q2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===km)return 11;if(e===Mm)return 14}return 2}function Qo(e,t){var r=e.alternate;return r===null?(r=bi(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 f0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Q2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ko:return Hf(r.children,i,a,t);case aO:o=8,i|=16;break;case h2:o=8,i|=1;break;case mh:return e=bi(12,r,t,i|8),e.elementType=mh,e.type=mh,e.lanes=a,e;case gh:return e=bi(13,r,t,i),e.type=gh,e.elementType=gh,e.lanes=a,e;case _0:return e=bi(19,r,t,i),e.elementType=_0,e.lanes=a,e;case y2:return Z2(r,i,a,t);case s_:return e=bi(24,r,t,i),e.elementType=s_,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case d2:o=10;break e;case p2:o=9;break e;case km:o=11;break e;case Mm:o=14;break e;case v2:o=16,n=null;break e;case m2:o=22;break e}throw Error(ht(130,e==null?e:typeof e,""))}return t=bi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Hf(e,t,r,n){return e=bi(7,e,n,t),e.lanes=r,e}function Z2(e,t,r,n){return e=bi(23,e,n,t),e.elementType=y2,e.lanes=r,e}function By(e,t,r){return e=bi(6,e,null,t),e.lanes=r,e}function zy(e,t,r){return t=bi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x6(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=Sy(0),this.expirationTimes=Sy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sy(0),this.mutableSourceEagerHydrationData=null}function _6(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function j0(e,t,r,n){var i=t.current,a=fi(),o=jo(i);e:if(r){r=r._reactInternals;t:{if(yl(r)!==r||r.tag!==1)throw Error(ht(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Kn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(ht(171))}if(r.tag===1){var s=r.type;if(Kn(s)){r=WO(r,s,l);break e}}r=l}else r=Yo;return t.context===null?t.context=r:t.pendingContext=r,t=zo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Uo(i,t),Go(i,o,a),o}function Uy(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 CE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function K2(e,t){CE(e,t),(e=e.alternate)&&CE(e,t)}function w6(){return null}function J2(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new x6(e,t,r!=null&&r.hydrate===!0),t=bi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,$2(t),e[vs]=r.current,UO(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}J2.prototype.render=function(e){j0(e,this._internalRoot,null,null)};J2.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;j0(null,e,null,function(){t[vs]=null})};function Sd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function b6(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 J2(e,0,t?{hydrate:!0}:void 0)}function Um(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=Uy(o);l.call(c)}}j0(t,o,e,i)}else{if(a=r._reactRootContainer=b6(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var c=Uy(o);s.call(c)}}Sk(function(){j0(t,o,e,i)})}return Uy(o)}_O=function(e){if(e.tag===13){var t=fi();Go(e,4,t),K2(e,4)}};S2=function(e){if(e.tag===13){var t=fi();Go(e,67108864,t),K2(e,67108864)}};wO=function(e){if(e.tag===13){var t=fi(),r=jo(e);Go(e,r,t),K2(e,r)}};bO=function(e,t){return t()};__=function(e,t,r){switch(t){case"input":if(h_(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=Lm(n);if(!i)throw Error(ht(90));uO(n),h_(n,i)}}}break;case"textarea":fO(e,r);break;case"select":t=r.value,t!=null&&Lf(e,!!r.multiple,t,!1)}};_2=bk;mO=function(e,t,r,n,i){var a=Kt;Kt|=4;try{return il(98,e.bind(null,t,r,n,i))}finally{Kt=a,Kt===0&&(ys(),ha())}};w2=function(){!(Kt&49)&&(l6(),nu())};gO=function(e,t){var r=Kt;Kt|=2;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}};function Mk(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sd(t))throw Error(ht(200));return _6(e,t,null,r)}var S6={Events:[_d,Of,Lm,pO,vO,nu,{current:!1}]},qc={findFiberByHostInstance:Wu,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},E6={bundleType:qc.bundleType,version:qc.version,rendererPackageName:qc.rendererPackageName,rendererConfig:qc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xO(e),e===null?null:e.stateNode},findFiberByHostInstance:qc.findFiberByHostInstance||w6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mv.isDisabled&&mv.supportsFiber)try{F2=mv.inject(E6),Ku=mv}catch{}}Ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S6;Ti.createPortal=Mk;Ti.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(ht(188)):Error(ht(268,Object.keys(e)));return e=xO(t),e=e===null?null:e.stateNode,e};Ti.flushSync=function(e,t){var r=Kt;if(r&48)return e(t);Kt|=1;try{if(e)return il(99,e.bind(null,t))}finally{Kt=r,ha()}};Ti.hydrate=function(e,t,r){if(!Sd(t))throw Error(ht(200));return Um(null,e,t,!0,r)};Ti.render=function(e,t,r){if(!Sd(t))throw Error(ht(200));return Um(null,e,t,!1,r)};Ti.unmountComponentAtNode=function(e){if(!Sd(e))throw Error(ht(40));return e._reactRootContainer?(Sk(function(){Um(null,null,e,!1,function(){e._reactRootContainer=null,e[vs]=null})}),!0):!1};Ti.unstable_batchedUpdates=bk;Ti.unstable_createPortal=function(e,t){return Mk(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ti.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sd(r))throw Error(ht(200));if(e==null||e._reactInternals===void 0)throw Error(ht(38));return Um(e,t,r,!1,n)};Ti.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=Ti})(kF);const gv=Cm(Dh);var fr={},A6={get exports(){return fr},set exports(e){fr=e}},T6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",C6=T6,O6=C6;function Rk(){}function Pk(){}Pk.resetWarningCache=Rk;var k6=function(){function e(n,i,a,o,l,s){if(s!==O6){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:Pk,resetWarningCache:Rk};return r.PropTypes=r,r};A6.exports=k6();var M6=function(){},R6=M6(),Qa=function(e){return e!==R6&&e!==null},P6=Qa,F6=Array.prototype.forEach,N6=Object.create,I6=function(e,t){var r;for(r in e)t[r]=e[r]},eb=function(e){var t=N6(null);return F6.call(arguments,function(r){P6(r)&&I6(Object(r),t)}),t},L6=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},jy,OE;function $6(){return OE||(OE=1,jy=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),jy}var D6=L6()?Math.sign:$6(),B6=D6,z6=Math.abs,U6=Math.floor,j6=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:B6(e)*U6(z6(e)))},G6=j6,H6=Math.max,_l=function(e){return H6(0,G6(e))},q6=_l,Fk=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:q6(e)},da=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},W6=Qa,Gi=function(e){if(!W6(e))throw new TypeError("Cannot use null or undefined");return e},V6=da,Y6=Gi,X6=Function.prototype.bind,kE=Function.prototype.call,Q6=Object.keys,Z6=Object.prototype.propertyIsEnumerable,K6=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Y6(r)),V6(n),i=Q6(r),o&&i.sort(typeof o=="function"?X6.call(o,r):void 0),typeof e!="function"&&(e=i[e]),kE.call(e,i,function(l,s){return Z6.call(r,l)?kE.call(n,a,r[l],l,r,s):t})}},jm=K6("forEach"),wl={},Q_={},J6={get exports(){return Q_},set exports(e){Q_=e}},e8=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")},Gy,ME;function t8(){return ME||(ME=1,Gy=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Gy}var Hy,RE;function r8(){if(RE)return Hy;RE=1;var e=Qa,t=Object.keys;return Hy=function(r){return t(e(r)?Object(r):r)},Hy}var qy,PE;function n8(){return PE||(PE=1,qy=t8()()?Object.keys:r8()),qy}var Wy,FE;function i8(){if(FE)return Wy;FE=1;var e=n8(),t=Gi,r=Math.max;return Wy=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(c){try{n[c]=i[c]}catch(p){a||(a=p)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},Wy}var Gm=e8()?Object.assign:i8(),a8=Qa,o8={function:!0,object:!0},tb=function(e){return a8(e)&&o8[typeof e]||!1};(function(e){var t=Gm,r=tb,n=Qa,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(J6);var G0={},NE={get exports(){return G0},set exports(e){G0=e}},Vy,IE;function Nk(){if(IE)return Vy;IE=1;var e=Gi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Vy=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(c){try{t(a,c,r(o,c))}catch(p){l=p}}),typeof i=="function"&&i(s).forEach(function(c){try{t(a,c,r(o,c))}catch(p){l=p}}),l!==void 0)throw l;return a},Vy}var LE=_l,Ik=function(e,t){return t},Yy,$E,DE,BE;try{Object.defineProperty(Ik,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}Ik.length===1?(Yy={configurable:!0,writable:!1,enumerable:!1},$E=Object.defineProperty,NE.exports=function(e,t){return t=LE(t),e.length===t?e:(Yy.value=t,$E(e,"length",Yy))}):(BE=Nk(),DE=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); };")}}(),NE.exports=function(e,t){var r;if(t=LE(t),e.length===t)return e;r=DE(t)(e);try{BE(r,e)}catch{}return r});var si={},u8={get exports(){return si},set exports(e){si=e}},l8=void 0,xs=function(e){return e!==l8&&e!==null},f8=xs,s8={object:!0,function:!0,undefined:!0},rb=function(e){return f8(e)?hasOwnProperty.call(s8,typeof e):!1},c8=rb,h8=function(e){if(!c8(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},d8=h8,p8=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!d8(e)},v8=p8,m8=/^\s*class[\s{/}]/,g8=Function.prototype.toString,Lk=function(e){return!(!v8(e)||m8.test(g8.call(e)))},Xy="razdwatrzy",y8=function(){return typeof Xy.contains!="function"?!1:Xy.contains("dwa")===!0&&Xy.contains("foo")===!1},Qy,zE;function x8(){if(zE)return Qy;zE=1;var e=String.prototype.indexOf;return Qy=function(t){return e.call(this,t,arguments[1])>-1},Qy}var $k=y8()?String.prototype.contains:x8(),s0=xs,UE=Lk,Dk=Gm,Bk=eb,Oh=$k,_8=u8.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],s0(e)?(r=Oh.call(e,"c"),n=Oh.call(e,"e"),i=Oh.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?Dk(Bk(a),o):o};_8.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],s0(t)?UE(t)?s0(r)?UE(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,s0(e)?(n=Oh.call(e,"c"),i=Oh.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?Dk(Bk(a),o):o};var H0={},w8={get exports(){return H0},set exports(e){H0=e}};(function(e,t){var r=si,n=da,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,p={configurable:!0,enumerable:!1,writable:!0},x,g,y,C,P,b,_;x=function(E,k){var F;return n(k),c.call(this,"__ee__")?F=this.__ee__:(F=p.value=o(null),l(this,"__ee__",p),p.value=null),F[E]?typeof F[E]=="object"?F[E].push(k):F[E]=[F[E],k]:F[E]=k,this},g=function(E,k){var F,I;return n(k),I=this,x.call(this,E,F=function(){y.call(I,E,F),i.call(k,this,arguments)}),F.__eeOnceListener__=k,this},y=function(E,k){var F,I,$,ne;if(n(k),!c.call(this,"__ee__"))return this;if(F=this.__ee__,!F[E])return this;if(I=F[E],typeof I=="object")for(ne=0;$=I[ne];++ne)($===k||$.__eeOnceListener__===k)&&(I.length===2?F[E]=I[ne?0:1]:I.splice(ne,1));else(I===k||I.__eeOnceListener__===k)&&delete F[E];return this},C=function(E){var k,F,I,$,ne;if(c.call(this,"__ee__")&&($=this.__ee__[E],!!$))if(typeof $=="object"){for(F=arguments.length,ne=new Array(F-1),k=1;k<F;++k)ne[k-1]=arguments[k];for($=$.slice(),k=0;I=$[k];++k)i.call(I,this,ne)}else switch(arguments.length){case 1:a.call($,this);break;case 2:a.call($,this,arguments[1]);break;case 3:a.call($,this,arguments[1],arguments[2]);break;default:for(F=arguments.length,ne=new Array(F-1),k=1;k<F;++k)ne[k-1]=arguments[k];i.call($,this,ne)}},P={on:x,once:g,off:y,emit:C},b={on:r(x),once:r(g),off:r(y),emit:r(C)},_=s({},b),e.exports=t=function(E){return E==null?o(_):s(Object(E),b)},t.methods=P})(w8,H0);var Zy,jE;function b8(){return jE||(jE=1,Zy=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"))}),Zy}var Ky,GE;function S8(){return GE||(GE=1,Ky=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),Ky}var Jy,HE;function E8(){if(HE)return Jy;HE=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 Jy=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__}}(),Jy}var e1,qE;function Hm(){return qE||(qE=1,e1=S8()()?globalThis:E8()),e1}var t1,WE;function A8(){if(WE)return t1;WE=1;var e=Hm(),t={object:!0,symbol:!0};return t1=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])},t1}var r1,VE;function T8(){return VE||(VE=1,r1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),r1}var n1,YE;function zk(){if(YE)return n1;YE=1;var e=T8();return n1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},n1}var i1,XE;function C8(){if(XE)return i1;XE=1;var e=si,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return i1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){s||(s=!0,r(this,l,e(c)),s=!1)})),l},i1}var a1,QE;function O8(){if(QE)return a1;QE=1;var e=si,t=Hm().Symbol;return a1=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"))})},a1}var o1,ZE;function k8(){if(ZE)return o1;ZE=1;var e=si,t=zk(),r=Object.create(null);return o1=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})})},o1}var u1,KE;function M8(){if(KE)return u1;KE=1;var e=si,t=zk(),r=Hm().Symbol,n=C8(),i=O8(),a=k8(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,c,p,x;if(typeof r=="function")try{String(r()),x=!0}catch{}else r=null;return p=function(y){if(this instanceof p)throw new TypeError("Symbol is not a constructor");return c(y)},u1=c=function g(y){var C;if(this instanceof g)throw new TypeError("Symbol is not a constructor");return x?r(y):(C=o(p.prototype),y=y===void 0?"":String(y),l(C,{__description__:e("",y),__name__:e("",n(y))}))},i(c),a(c),l(p.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 g=t(this);return typeof g=="symbol"?g:g.toString()})),s(c.prototype,c.toStringTag,e("c","Symbol")),s(p.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),s(p.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),u1}var l1,JE;function bl(){return JE||(JE=1,l1=A8()()?Hm().Symbol:M8()),l1}var f1,e3;function qm(){if(e3)return f1;e3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return f1=function(r){return e.call(r)===t},f1}var s1,t3;function R8(){if(t3)return s1;t3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return s1=function(r){return typeof r=="function"&&t(e.call(r))},s1}var c1,r3;function Wm(){if(r3)return c1;r3=1;var e=Object.prototype.toString,t=e.call("");return c1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},c1}var h1,n3;function P8(){if(n3)return h1;n3=1;var e=bl().iterator,t=qm(),r=R8(),n=_l,i=da,a=Gi,o=Qa,l=Wm(),s=Array.isArray,c=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},x=Object.defineProperty;return h1=function(g){var y=arguments[1],C=arguments[2],P,b,_,E,k,F,I,$,ne,V;if(g=Object(a(g)),o(y)&&i(y),!this||this===Array||!r(this)){if(!y){if(t(g))return k=g.length,k!==1?Array.apply(null,g):(E=new Array(1),E[0]=g[0],E);if(s(g)){for(E=new Array(k=g.length),b=0;b<k;++b)E[b]=g[b];return E}}E=[]}else P=this;if(!s(g)){if((ne=g[e])!==void 0){for(I=i(ne).call(g),P&&(E=new P),$=I.next(),b=0;!$.done;)V=y?c.call(y,C,$.value,b):$.value,P?(p.value=V,x(E,b,p)):E[b]=V,$=I.next(),++b;k=b}else if(l(g)){for(k=g.length,P&&(E=new P),b=0,_=0;b<k;++b)V=g[b],b+1<k&&(F=V.charCodeAt(0),F>=55296&&F<=56319&&(V+=g[++b])),V=y?c.call(y,C,V,_):V,P?(p.value=V,x(E,_,p)):E[_]=V,++_;k=_}}if(k===void 0)for(k=n(g.length),P&&(E=new P(k)),b=0;b<k;++b)V=y?c.call(y,C,g[b],b):g[b],P?(p.value=V,x(E,b,p)):E[b]=V;return P&&(p.value=null,E.length=k),E},h1}var d1,i3;function Vm(){return i3||(i3=1,d1=b8()()?Array.from:P8()),d1}var F8=Vm(),N8=Array.isArray,I8=function(e){return N8(e)?e:F8(e)},L8=I8,$8=Qa,D8=da,B8=Array.prototype.slice,Uk;Uk=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(B8.call(e,this.length))};var z8=function(e){return e=L8(e),e.forEach(function(t){$8(t)&&D8(t)}),Uk.bind(e)},yv=da,U8=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:yv(e.get)},e.set!==void 0?(t.set=yv(e.set),e.delete&&(t.delete=yv(e.delete)),e.clear&&(t.clear=yv(e.clear)),t):(t.set=t.get,t))},xv=Q_,_v=G0,Wc=si,jk=H0.methods,j8=z8,G8=U8,p1=Function.prototype.apply,v1=Function.prototype.call,a3=Object.create,H8=Object.defineProperties,q8=jk.on,W8=jk.emit,V8=function(e,t,r){var n=a3(null),i,a,o,l,s,c,p,x,g,y,C,P,b,_,E;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(y=G8(r.normalizer),o=y.get,l=y.set,s=y.delete,c=y.clear),r.resolvers!=null&&(E=j8(r.resolvers)),o?_=_v(function(k){var F,I,$=arguments;if(E&&($=E($)),F=o($),F!==null&&hasOwnProperty.call(n,F))return C&&i.emit("get",F,$,this),n[F];if($.length===1?I=v1.call(e,this,$[0]):I=p1.call(e,this,$),F===null){if(F=o($),F!==null)throw xv("Circular invocation","CIRCULAR_INVOCATION");F=l($)}else if(hasOwnProperty.call(n,F))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n[F]=I,P&&i.emit("set",F,null,I),I},a):t===0?_=function(){var k;if(hasOwnProperty.call(n,"data"))return C&&i.emit("get","data",arguments,this),n.data;if(arguments.length?k=p1.call(e,this,arguments):k=v1.call(e,this),hasOwnProperty.call(n,"data"))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n.data=k,P&&i.emit("set","data",null,k),k}:_=function(k){var F,I=arguments,$;if(E&&(I=E(arguments)),$=String(I[0]),hasOwnProperty.call(n,$))return C&&i.emit("get",$,I,this),n[$];if(I.length===1?F=v1.call(e,this,I[0]):F=p1.call(e,this,I),hasOwnProperty.call(n,$))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n[$]=F,P&&i.emit("set",$,null,F),F},i={original:e,memoized:_,profileName:r.profileName,get:function(k){return E&&(k=E(k)),o?o(k):String(k[0])},has:function(k){return hasOwnProperty.call(n,k)},delete:function(k){var F;hasOwnProperty.call(n,k)&&(s&&s(k),F=n[k],delete n[k],b&&i.emit("delete",k,F))},clear:function(){var k=n;c&&c(),n=a3(null),i.emit("clear",k)},on:function(k,F){return k==="get"?C=!0:k==="set"?P=!0:k==="delete"&&(b=!0),q8.call(this,k,F)},emit:W8,updateEnv:function(){e=i.original}},o?p=_v(function(k){var F,I=arguments;E&&(I=E(I)),F=o(I),F!==null&&i.delete(F)},a):t===0?p=function(){return i.delete("data")}:p=function(k){return E&&(k=E(arguments)[0]),i.delete(k)},x=_v(function(){var k,F=arguments;return t===0?n.data:(E&&(F=E(F)),o?k=o(F):k=String(F[0]),n[k])}),g=_v(function(){var k,F=arguments;return t===0?i.has("data"):(E&&(F=E(F)),o?k=o(F):k=String(F[0]),k===null?!1:i.has(k))}),H8(_,{__memoized__:Wc(!0),delete:Wc(p),clear:Wc(i.clear),_get:Wc(x),_has:Wc(g)}),i},Y8=da,X8=jm,o3=wl,Q8=V8,Z8=Fk,K8=function e(t){var r,n,i;if(Y8(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=Z8(r.length,t.length,r.async&&o3.async),i=Q8(t,n,r),X8(o3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},m1,u3;function J8(){return u3||(u3=1,m1=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),m1}var g1,l3;function eI(){return l3||(l3=1,g1=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),g1}var y1,f3;function tI(){return f3||(f3=1,y1=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),y1}var x1,s3;function rI(){return s3||(s3=1,x1=function(e){return e!==e}),x1}var _1,c3;function nI(){return c3||(c3=1,_1=tI()()?Number.isNaN:rI()),_1}var w1,h3;function nb(){if(h3)return w1;h3=1;var e=nI(),t=_l,r=Gi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return w1=function(l){var s,c,p,x;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),p=arguments[1],isNaN(p)?p=0:p>=0?p=o(p):p=t(this.length)-o(a(p)),s=p;s<c;++s)if(i.call(this,s)&&(x=this[s],e(x)))return s;return-1},w1}var b1,d3;function iI(){if(d3)return b1;d3=1;var e=nb(),t=Object.create;return b1=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;o<c-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];o<c-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,c=i[a],p=c.length,x=[];if(p===0)delete l[p];else if(l=l[p]){for(;o<p-1;){if(s=e.call(l[0],c[o]),s===-1)return;x.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],c[o]),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)}}},b1}var S1,p3;function aI(){if(p3)return S1;p3=1;var e=nb();return S1=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=[]}}},S1}var E1,v3;function oI(){if(v3)return E1;v3=1;var e=nb(),t=Object.create;return E1=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,c;l<r-1;){if(c=e.call(s[0],o[l]),c===-1)return null;s=s[1][c],++l}return c=e.call(s[0],o[l]),c===-1?null:s[1][c]||null},set:function(o){for(var l=0,s=i,c;l<r-1;)c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][c],++l;return c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1),s[1][c]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,c,p=[],x=a[o];l<r-1;){if(c=e.call(s[0],x[l]),c===-1)return;p.push(s,c),s=s[1][c],++l}if(c=e.call(s[0],x[l]),c!==-1){for(o=s[1][c],s[0].splice(c,1),s[1].splice(c,1);!s[0].length&&p.length;)c=p.pop(),s=p.pop(),s[0].splice(c,1),s[1].splice(c,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},E1}var m3={},A1,g3;function ib(){if(g3)return A1;g3=1;var e=da,t=jm,r=Function.prototype.call;return A1=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,c,p){a[s]=r.call(i,o,l,s,c,p)}),a},A1}var T1,y3;function ab(){if(y3)return T1;y3=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return T1=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}(),T1}var x3;function uI(){if(x3)return m3;x3=1;var e=Vm(),t=ib(),r=Nk(),n=G0,i=ab(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return wl.async=function(s,c){var p=l(null),x=l(null),g=c.memoized,y=c.original,C,P,b;c.memoized=n(function(_){var E=arguments,k=E[E.length-1];return typeof k=="function"&&(C=k,E=a.call(E,0,-1)),g.apply(P=this,b=E)},g);try{r(c.memoized,g)}catch{}c.on("get",function(_){var E,k,F;if(C){if(p[_]){typeof p[_]=="function"?p[_]=[p[_],C]:p[_].push(C),C=null;return}E=C,k=P,F=b,C=P=b=null,i(function(){var I;hasOwnProperty.call(x,_)?(I=x[_],c.emit("getasync",_,F,k),o.call(E,I.context,I.args)):(C=E,P=k,b=F,g.apply(k,F))})}}),c.original=function(){var _,E,k,F;return C?(_=e(arguments),E=function I($){var ne,V,ae=I.id;if(ae==null){i(o.bind(I,this,arguments));return}if(delete I.id,ne=p[ae],delete p[ae],!!ne)return V=e(arguments),c.has(ae)&&($?c.delete(ae):(x[ae]={context:this,args:V},c.emit("setasync",ae,typeof ne=="function"?1:ne.length))),typeof ne=="function"?F=o.call(ne,this,V):ne.forEach(function(Ce){F=o.call(Ce,this,V)},this),F},k=C,C=P=b=null,_.push(E),F=o.call(y,this,_),E.cb=k,C=E,F):o.call(y,this,arguments)},c.on("set",function(_){if(!C){c.delete(_);return}p[_]?typeof p[_]=="function"?p[_]=[p[_],C.cb]:p[_].push(C.cb):p[_]=C.cb,delete C.cb,C.id=_,C=null}),c.on("delete",function(_){var E;hasOwnProperty.call(p,_)||x[_]&&(E=x[_],delete x[_],c.emit("deleteasync",_,a.call(E.args,1)))}),c.on("clear",function(){var _=x;x=l(null),c.emit("clearasync",t(_,function(E){return a.call(E.args,1)}))})},m3}var _3={},C1,w3;function lI(){if(w3)return C1;w3=1;var e=Array.prototype.forEach,t=Object.create;return C1=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},C1}var O1,b3;function Gk(){return b3||(b3=1,O1=function(e){return typeof e=="function"}),O1}var k1,S3;function fI(){if(S3)return k1;S3=1;var e=Gk();return k1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},k1}var M1,E3;function sI(){if(E3)return M1;E3=1;var e=Gi,t=fI();return M1=function(r){return t(e(r))},M1}var R1,A3;function cI(){if(A3)return R1;A3=1;var e=Gk();return R1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},R1}var P1,T3;function hI(){if(T3)return P1;T3=1;var e=cI(),t=/[\n\r\u2028\u2029]/g;return P1=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},P1}var kh={},dI={get exports(){return kh},set exports(e){kh=e}},C3;function Hk(){if(C3)return kh;C3=1,dI.exports=e,kh.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return kh}var O3;function pI(){if(O3)return _3;O3=1;var e=ib(),t=lI(),r=sI(),n=hI(),i=Hk(),a=ab(),o=Object.create,l=t("then","then:finally","done","done:finally");return wl.promise=function(s,c){var p=o(null),x=o(null),g=o(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(y,C,P){var b=!1;if(!i(P)){x[y]=P,c.emit("setasync",y,1);return}p[y]=1,g[y]=P;var _=function(I){var $=p[y];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.`);$&&(delete p[y],x[y]=I,c.emit("setasync",y,$))},E=function(){b=!0,p[y]&&(delete p[y],delete g[y],c.delete(y))},k=s;if(k||(k="then"),k==="then"){var F=function(){a(E)};P=P.then(function(I){a(_.bind(this,I))},F),typeof P.finally=="function"&&P.finally(F)}else if(k==="done"){if(typeof P.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");P.done(_,E)}else if(k==="done:finally"){if(typeof P.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof P.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");P.done(_),P.finally(E)}}),c.on("get",function(y,C,P){var b;if(p[y]){++p[y];return}b=g[y];var _=function(){c.emit("getasync",y,C,P)};i(b)?typeof b.done=="function"?b.done(_):b.then(function(){a(_)}):_()}),c.on("delete",function(y){if(delete g[y],p[y]){delete p[y];return}if(hasOwnProperty.call(x,y)){var C=x[y];delete x[y],c.emit("deleteasync",y,[C])}}),c.on("clear",function(){var y=x;x=o(null),p=o(null),g=o(null),c.emit("clearasync",e(y,function(C){return[C]}))})},_3}var k3={},M3;function vI(){if(M3)return k3;M3=1;var e=da,t=jm,r=wl,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,c){n.call(i,null,c)}),a.on("clearasync",function(s){t(s,function(c,p){l(p,c)})});return}a.on("delete",l=function(s,c){i(c)}),a.on("clear",function(s){t(s,function(c,p){l(p,c)})})},k3}var R3={},F1,P3;function mI(){return P3||(P3=1,F1=2147483647),F1}var N1,F3;function gI(){if(F3)return N1;F3=1;var e=_l,t=mI();return N1=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},N1}var N3;function yI(){if(N3)return R3;N3=1;var e=Vm(),t=jm,r=ab(),n=Hk(),i=gI(),a=wl,o=Function.prototype,l=Math.max,s=Math.min,c=Object.create;return a.maxAge=function(p,x,g){var y,C,P,b;p=i(p),p&&(y=c(null),C=g.async&&a.async||g.promise&&a.promise?"async":"",x.on("set"+C,function(_){y[_]=setTimeout(function(){x.delete(_)},p),typeof y[_].unref=="function"&&y[_].unref(),b&&(b[_]&&b[_]!=="nextTick"&&clearTimeout(b[_]),b[_]=setTimeout(function(){delete b[_]},P),typeof b[_].unref=="function"&&b[_].unref())}),x.on("delete"+C,function(_){clearTimeout(y[_]),delete y[_],b&&(b[_]!=="nextTick"&&clearTimeout(b[_]),delete b[_])}),g.preFetch&&(g.preFetch===!0||isNaN(g.preFetch)?P=.333:P=l(s(Number(g.preFetch),1),0),P&&(b={},P=(1-P)*p,x.on("get"+C,function(_,E,k){b[_]||(b[_]="nextTick",r(function(){var F;b[_]==="nextTick"&&(delete b[_],x.delete(_),g.async&&(E=e(E),E.push(o)),F=x.memoized.apply(k,E),g.promise&&n(F)&&(typeof F.done=="function"?F.done(o,o):F.then(o,o)))}))}))),x.on("clear"+C,function(){t(y,function(_){clearTimeout(_)}),y={},b&&(t(b,function(_){_!=="nextTick"&&clearTimeout(_)}),b={})}))},R3}var I3={},I1,L3;function xI(){if(L3)return I1;L3=1;var e=_l,t=Object.create,r=Object.prototype.hasOwnProperty;return I1=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,c;return n=e(n),{hit:function(p){var x=l[p],g=++s;if(o[g]=p,l[p]=g,!x)return++i,i<=n?void 0:(p=o[a],c(p),p);if(delete o[x],a===x)for(;!r.call(o,++a););},delete:c=function(p){var x=l[p];if(x&&(delete o[x],delete l[p],--i,a===x)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},I1}var $3;function _I(){if($3)return I3;$3=1;var e=_l,t=xI(),r=wl;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},I3}var D3={},B3;function wI(){if(B3)return D3;B3=1;var e=si,t=wl,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(c,p){l[c]=p||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]})})},D3}var bI=eb,SI=Fk,EI=K8,aK=function(e){var t=bI(arguments[1]),r;return t.normalizer||(r=t.length=SI(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=J8():r>1&&(t.normalizer=eI()(r)):r===!1?t.normalizer=iI()():r===1?t.normalizer=aI()():t.normalizer=oI()(r))),t.async&&uI(),t.promise&&pI(),t.dispose&&vI(),t.maxAge&&yI(),t.max&&_I(),t.refCounter&&wI(),EI(e,t)},z3={},AI={get exports(){return z3},set exports(e){z3=e}};/*!
41
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Tn!==5&&(Tn=2),s=V2(s,l),g=o;do{switch(g.tag){case 3:a=s,g.flags|=4096,t&=-t,g.lanes|=t;var I=_k(g,a,t);tE(g,I);break e;case 1:a=s;var $=g.type,ne=g.stateNode;if(!(g.flags&64)&&(typeof $.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(aa===null||!aa.has(ne)))){g.flags|=4096,t&=-t,g.lanes|=t;var V=wk(g,a,t);tE(g,V);break e}}g=g.return}while(g!==null)}kk(r)}catch(ae){t=ae,fn===r&&r!==null&&(fn=r=r.return);continue}break}while(1)}function Tk(){var e=U0.current;return U0.current=z0,e===null?z0:e}function sh(e,t){var r=Kt;Kt|=16;var n=Tk();Un===e&&Nn===t||Gf(e,t);do try{c6();break}catch(i){Ck(e,i)}while(1);if($2(),Kt=r,U0.current=n,fn!==null)throw Error(ht(261));return Un=null,Nn=0,Tn}function c6(){for(;fn!==null;)Ok(fn)}function h6(){for(;fn!==null&&!VN();)Ok(fn)}function Ok(e){var t=Rk(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?kk(e):fn=t,Y2.current=null}function kk(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=n6(t),r!==null){r.flags&=2047,fn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=r6(r,t,al),r!==null){fn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||al&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){fn=t;return}fn=t=e}while(t!==null);Tn===0&&(Tn=5)}function Du(e){var t=Jf();return il(99,d6.bind(null,e,t)),null}function d6(e,t){do nu();while(Ah!==null);if(Kt&48)throw Error(ht(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ht(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-Vo(a),c=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~c}if(ja!==null&&!(n&24)&&ja.has(e)&&ja.delete(e),e===Un&&(fn=Un=null,Nn=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,Y2.current=null,Ry=r0,o=US(),C_(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.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 p=0,x=-1,g=-1,y=0,T=0,P=o,b=null;t:for(;;){for(var _;P!==l||a!==0&&P.nodeType!==3||(x=p+a),P!==s||c!==0&&P.nodeType!==3||(g=p+c),P.nodeType===3&&(p+=P.nodeValue.length),(_=P.firstChild)!==null;)b=P,P=_;for(;;){if(P===o)break t;if(b===l&&++y===a&&(x=p),b===s&&++T===c&&(g=p),(_=P.nextSibling)!==null)break;P=b,b=P.parentNode}P=_}l=x===-1||g===-1?null:{start:x,end:g}}else l=null;l=l||{start:0,end:0}}else l=null;Py={focusedElem:o,selectionRange:l},r0=!1,Th=null,f0=!1,Dt=n;do try{p6()}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);Th=null,Dt=n;do try{for(o=e;Dt!==null;){var E=Dt.flags;if(E&16&&zh(Dt.stateNode,""),E&128){var k=Dt.alternate;if(k!==null){var F=k.ref;F!==null&&(typeof F=="function"?F(null):F.current=null)}}switch(E&1038){case 2:CE(Dt),Dt.flags&=-3;break;case 6:CE(Dt),Dt.flags&=-3,By(Dt.alternate,Dt);break;case 1024:Dt.flags&=-1025;break;case 1028:Dt.flags&=-1025,By(Dt.alternate,Dt);break;case 4:By(Dt.alternate,Dt);break;case 8:l=Dt,bk(o,l);var I=l.alternate;EE(l),I!==null&&EE(I)}Dt=Dt.nextEffect}}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);if(F=Py,k=US(),E=F.focusedElem,o=F.selectionRange,k!==E&&E&&E.ownerDocument&&zO(E.ownerDocument.documentElement,E)){for(o!==null&&C_(E)&&(k=o.start,F=o.end,F===void 0&&(F=k),"selectionStart"in E?(E.selectionStart=k,E.selectionEnd=Math.min(F,E.value.length)):(F=(k=E.ownerDocument||document)&&k.defaultView||window,F.getSelection&&(F=F.getSelection(),l=E.textContent.length,I=Math.min(o.start,l),o=o.end===void 0?I:Math.min(o.end,l),!F.extend&&I>o&&(l=o,o=I,I=l),l=zS(E,I),a=zS(E,o),l&&a&&(F.rangeCount!==1||F.anchorNode!==l.node||F.anchorOffset!==l.offset||F.focusNode!==a.node||F.focusOffset!==a.offset)&&(k=k.createRange(),k.setStart(l.node,l.offset),F.removeAllRanges(),I>o?(F.addRange(k),F.extend(a.node,a.offset)):(k.setEnd(a.node,a.offset),F.addRange(k)))))),k=[],F=E;F=F.parentNode;)F.nodeType===1&&k.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<k.length;E++)F=k[E],F.element.scrollLeft=F.left,F.element.scrollTop=F.top}r0=!!Ry,Py=Ry=null,e.current=r,Dt=n;do try{for(E=e;Dt!==null;){var $=Dt.flags;if($&36&&u6(E,Dt.alternate,Dt),$&128){k=void 0;var ne=Dt.ref;if(ne!==null){var V=Dt.stateNode;switch(Dt.tag){case 5:k=V;break;default:k=V}typeof ne=="function"?ne(k):ne.current=k}}Dt=Dt.nextEffect}}catch(ae){if(Dt===null)throw Error(ht(330));Ho(Dt,ae),Dt=Dt.nextEffect}while(Dt!==null);Dt=null,XN(),Kt=i}else e.current=r;if(Xo)Xo=!1,Ah=e,fh=t;else for(Dt=n;Dt!==null;)t=Dt.nextEffect,Dt.nextEffect=null,Dt.flags&8&&($=Dt,$.sibling=null,$.stateNode=null),Dt=t;if(n=e.pendingLanes,n===0&&(aa=null),n===1?e===X_?Ch++:(Ch=0,X_=e):Ch=0,r=r.stateNode,Ku&&typeof Ku.onCommitFiberRoot=="function")try{Ku.onCommitFiberRoot(I2,r,void 0,(r.current.flags&64)===64)}catch{}if(Ai(e,Fn()),j0)throw j0=!1,e=W_,W_=null,e;return Kt&8||ha(),null}function p6(){for(;Dt!==null;){var e=Dt.alternate;f0||Th===null||(Dt.flags&8?CS(Dt,Th)&&(f0=!0):Dt.tag===13&&l6(e,Dt)&&CS(Dt,Th)&&(f0=!0));var t=Dt.flags;t&256&&o6(e,Dt),!(t&512)||Xo||(Xo=!0,Yh(97,function(){return nu(),null})),Dt=Dt.nextEffect}}function nu(){if(fh!==90){var e=97<fh?97:fh;return fh=90,il(e,m6)}return!1}function v6(e,t){V_.push(t,e),Xo||(Xo=!0,Yh(97,function(){return nu(),null}))}function Mk(e,t){Y_.push(t,e),Xo||(Xo=!0,Yh(97,function(){return nu(),null}))}function m6(){if(Ah===null)return!1;var e=Ah;if(Ah=null,Kt&48)throw Error(ht(331));var t=Kt;Kt|=32;var r=Y_;Y_=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(ht(330));Ho(a,s)}}for(r=V_,V_=[],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(ht(330));Ho(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,ha(),!0}function OE(e,t,r){t=V2(r,t),t=_k(e,t,1),Uo(e,t),t=fi(),e=Um(e,1),e!==null&&(Fm(e,1,t),Ai(e,t))}function Ho(e,t){if(e.tag===3)OE(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){OE(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(aa===null||!aa.has(n))){e=V2(t,e);var i=wk(r,e,1);if(Uo(r,i),i=fi(),r=Um(r,1),r!==null)Fm(r,1,i),Ai(r,i);else if(typeof n.componentDidCatch=="function"&&(aa===null||!aa.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function g6(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=fi(),e.pingedLanes|=e.suspendedLanes&r,Un===e&&(Nn&r)===r&&(Tn===4||Tn===3&&(Nn&62914560)===Nn&&500>Fn()-Q2?Gf(e,0):X2|=r),Ai(e,t)}function y6(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?($a===0&&($a=ms),t=wf(62914560&~$a),t===0&&(t=4194304)):t=Jf()===99?1:2:t=1),r=fi(),e=Um(e,t),e!==null&&(Fm(e,t,r),Ai(e,r))}var Rk;Rk=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Ui=!0;else if(r&n)Ui=!!(e.flags&16384);else{switch(Ui=!1,t.tag){case 3:pE(t),Ly();break;case 5:aE(t);break;case 1:Kn(t.type)&&a0(t);break;case 4:N_(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Wr(M0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?vE(e,t,r):(Wr(Hr,Hr.current&1),t=Ba(e,t,r),t!==null?t.sibling:null);Wr(Hr,Hr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return _E(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wr(Hr,Hr.current),n)break;return null;case 23:case 24:return t.lanes=0,$y(e,t,r)}return Ba(e,t,r)}else Ui=!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=Kf(t,In.current),zf(t,r),i=G2(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,Kn(n)){var a=!0;a0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,B2(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&F0(t,n,o,e),i.updater=Bm,t.stateNode=i,i._reactInternals=t,F_(t,n,e,r),t=D_(null,t,n,!0,a,r)}else t.tag=0,Xn(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=_6(i),e=Bi(i,e),a){case 0:t=$_(null,t,i,e,r);break e;case 1:t=dE(null,t,i,e,r);break e;case 11:t=cE(null,t,i,e,r);break e;case 14:t=hE(null,t,i,Bi(i.type,e),n,r);break e}throw Error(ht(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),$_(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),dE(e,t,n,i,r);case 3:if(pE(t),n=t.updateQueue,e===null||n===null)throw Error(ht(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,rk(e,t),Xh(t,n,null,r),n=t.memoizedState.element,n===i)Ly(),t=Ba(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Fo=Bf(t.stateNode.containerInfo.firstChild),Da=t,a=la=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],Uf.push(a);for(r=ok(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Xn(e,t,n,r),Ly();t=t.child}return t;case 5:return aE(t),e===null&&I_(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,k_(n,i)?o=null:a!==null&&k_(n,a)&&(t.flags|=16),mk(e,t),Xn(e,t,o,r),t.child;case 6:return e===null&&I_(t),null;case 13:return vE(e,t,r);case 4:return N_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=N0(t,null,n,r):Xn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),cE(e,t,n,i,r);case 7:return Xn(e,t,t.pendingProps,r),t.child;case 8:return Xn(e,t,t.pendingProps.children,r),t.child;case 12:return Xn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Wr(M0,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=wi(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!Zn.current){t=Ba(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var c=s.firstContext;c!==null;){if(c.context===n&&c.observedBits&a){l.tag===1&&(c=zo(-1,r&-r),c.tag=2,Uo(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),tk(l.return,r),s.lanes|=r;break}c=c.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Xn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,zf(t,r),i=Ei(i,a.unstable_observedBits),n=n(i),t.flags|=1,Xn(e,t,n,r),t.child;case 14:return i=t.type,a=Bi(i,t.pendingProps),a=Bi(i.type,a),hE(e,t,i,a,n,r);case 15:return vk(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Kn(n)?(e=!0,a0(t)):e=!1,zf(t,r),ik(t,n,i),F_(t,n,i,r),D_(null,t,n,!0,e,r);case 19:return _E(e,t,r);case 23:return $y(e,t,r);case 24:return $y(e,t,r)}throw Error(ht(156,t.tag))};function x6(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 bi(e,t,r,n){return new x6(e,t,r,n)}function K2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _6(e){if(typeof e=="function")return K2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mm)return 11;if(e===Rm)return 14}return 2}function Qo(e,t){var r=e.alternate;return r===null?(r=bi(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 s0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")K2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ko:return Hf(r.children,i,a,t);case uO:o=8,i|=16;break;case p2:o=8,i|=1;break;case mh:return e=bi(12,r,t,i|8),e.elementType=mh,e.type=mh,e.lanes=a,e;case gh:return e=bi(13,r,t,i),e.type=gh,e.elementType=gh,e.lanes=a,e;case w0:return e=bi(19,r,t,i),e.elementType=w0,e.lanes=a,e;case _2:return J2(r,i,a,t);case c_:return e=bi(24,r,t,i),e.elementType=c_,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v2:o=10;break e;case m2:o=9;break e;case Mm:o=11;break e;case Rm:o=14;break e;case g2:o=16,n=null;break e;case y2:o=22;break e}throw Error(ht(130,e==null?e:typeof e,""))}return t=bi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Hf(e,t,r,n){return e=bi(7,e,n,t),e.lanes=r,e}function J2(e,t,r,n){return e=bi(23,e,n,t),e.elementType=_2,e.lanes=r,e}function zy(e,t,r){return e=bi(6,e,null,t),e.lanes=r,e}function Uy(e,t,r){return t=bi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function w6(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=Ey(0),this.expirationTimes=Ey(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ey(0),this.mutableSourceEagerHydrationData=null}function b6(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function G0(e,t,r,n){var i=t.current,a=fi(),o=jo(i);e:if(r){r=r._reactInternals;t:{if(yl(r)!==r||r.tag!==1)throw Error(ht(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Kn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(ht(171))}if(r.tag===1){var s=r.type;if(Kn(s)){r=YO(r,s,l);break e}}r=l}else r=Yo;return t.context===null?t.context=r:t.pendingContext=r,t=zo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Uo(i,t),Go(i,o,a),o}function jy(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 kE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function eb(e,t){kE(e,t),(e=e.alternate)&&kE(e,t)}function S6(){return null}function tb(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new w6(e,t,r!=null&&r.hydrate===!0),t=bi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,B2(t),e[vs]=r.current,GO(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}tb.prototype.render=function(e){G0(e,this._internalRoot,null,null)};tb.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;G0(null,e,null,function(){t[vs]=null})};function Sd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function E6(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 tb(e,0,t?{hydrate:!0}:void 0)}function jm(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=jy(o);l.call(c)}}G0(t,o,e,i)}else{if(a=r._reactRootContainer=E6(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var c=jy(o);s.call(c)}}Ak(function(){G0(t,o,e,i)})}return jy(o)}bO=function(e){if(e.tag===13){var t=fi();Go(e,4,t),eb(e,4)}};A2=function(e){if(e.tag===13){var t=fi();Go(e,67108864,t),eb(e,67108864)}};SO=function(e){if(e.tag===13){var t=fi(),r=jo(e);Go(e,r,t),eb(e,r)}};EO=function(e,t){return t()};w_=function(e,t,r){switch(t){case"input":if(d_(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=$m(n);if(!i)throw Error(ht(90));fO(n),d_(n,i)}}}break;case"textarea":cO(e,r);break;case"select":t=r.value,t!=null&&Lf(e,!!r.multiple,t,!1)}};b2=Ek;yO=function(e,t,r,n,i){var a=Kt;Kt|=4;try{return il(98,e.bind(null,t,r,n,i))}finally{Kt=a,Kt===0&&(ys(),ha())}};S2=function(){!(Kt&49)&&(s6(),nu())};xO=function(e,t){var r=Kt;Kt|=2;try{return e(t)}finally{Kt=r,Kt===0&&(ys(),ha())}};function Pk(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sd(t))throw Error(ht(200));return b6(e,t,null,r)}var A6={Events:[_d,Of,$m,mO,gO,nu,{current:!1}]},qc={findFiberByHostInstance:Wu,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},C6={bundleType:qc.bundleType,version:qc.version,rendererPackageName:qc.rendererPackageName,rendererConfig:qc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wO(e),e===null?null:e.stateNode},findFiberByHostInstance:qc.findFiberByHostInstance||S6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mv.isDisabled&&mv.supportsFiber)try{I2=mv.inject(C6),Ku=mv}catch{}}Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A6;Ci.createPortal=Pk;Ci.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(ht(188)):Error(ht(268,Object.keys(e)));return e=wO(t),e=e===null?null:e.stateNode,e};Ci.flushSync=function(e,t){var r=Kt;if(r&48)return e(t);Kt|=1;try{if(e)return il(99,e.bind(null,t))}finally{Kt=r,ha()}};Ci.hydrate=function(e,t,r){if(!Sd(t))throw Error(ht(200));return jm(null,e,t,!0,r)};Ci.render=function(e,t,r){if(!Sd(t))throw Error(ht(200));return jm(null,e,t,!1,r)};Ci.unmountComponentAtNode=function(e){if(!Sd(e))throw Error(ht(40));return e._reactRootContainer?(Ak(function(){jm(null,null,e,!1,function(){e._reactRootContainer=null,e[vs]=null})}),!0):!1};Ci.unstable_batchedUpdates=Ek;Ci.unstable_createPortal=function(e,t){return Pk(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ci.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sd(r))throw Error(ht(200));if(e==null||e._reactInternals===void 0)throw Error(ht(38));return jm(e,t,r,!1,n)};Ci.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=Ci})(RF);const gv=Om(Dh);var fr={},T6={get exports(){return fr},set exports(e){fr=e}},O6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",k6=O6,M6=k6;function Fk(){}function Nk(){}Nk.resetWarningCache=Fk;var R6=function(){function e(n,i,a,o,l,s){if(s!==M6){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:Nk,resetWarningCache:Fk};return r.PropTypes=r,r};T6.exports=R6();var P6=function(){},F6=P6(),Qa=function(e){return e!==F6&&e!==null},N6=Qa,I6=Array.prototype.forEach,L6=Object.create,$6=function(e,t){var r;for(r in e)t[r]=e[r]},rb=function(e){var t=L6(null);return I6.call(arguments,function(r){N6(r)&&$6(Object(r),t)}),t},D6=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},Gy,ME;function B6(){return ME||(ME=1,Gy=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),Gy}var z6=D6()?Math.sign:B6(),U6=z6,j6=Math.abs,G6=Math.floor,H6=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:U6(e)*G6(j6(e)))},q6=H6,W6=Math.max,_l=function(e){return W6(0,q6(e))},V6=_l,Ik=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:V6(e)},da=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Y6=Qa,Gi=function(e){if(!Y6(e))throw new TypeError("Cannot use null or undefined");return e},X6=da,Q6=Gi,Z6=Function.prototype.bind,RE=Function.prototype.call,K6=Object.keys,J6=Object.prototype.propertyIsEnumerable,e8=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Q6(r)),X6(n),i=K6(r),o&&i.sort(typeof o=="function"?Z6.call(o,r):void 0),typeof e!="function"&&(e=i[e]),RE.call(e,i,function(l,s){return J6.call(r,l)?RE.call(n,a,r[l],l,r,s):t})}},Gm=e8("forEach"),wl={},Z_={},t8={get exports(){return Z_},set exports(e){Z_=e}},r8=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")},Hy,PE;function n8(){return PE||(PE=1,Hy=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Hy}var qy,FE;function i8(){if(FE)return qy;FE=1;var e=Qa,t=Object.keys;return qy=function(r){return t(e(r)?Object(r):r)},qy}var Wy,NE;function a8(){return NE||(NE=1,Wy=n8()()?Object.keys:i8()),Wy}var Vy,IE;function o8(){if(IE)return Vy;IE=1;var e=a8(),t=Gi,r=Math.max;return Vy=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(c){try{n[c]=i[c]}catch(p){a||(a=p)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},Vy}var Hm=r8()?Object.assign:o8(),u8=Qa,l8={function:!0,object:!0},nb=function(e){return u8(e)&&l8[typeof e]||!1};(function(e){var t=Hm,r=nb,n=Qa,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(t8);var H0={},LE={get exports(){return H0},set exports(e){H0=e}},Yy,$E;function Lk(){if($E)return Yy;$E=1;var e=Gi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Yy=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(c){try{t(a,c,r(o,c))}catch(p){l=p}}),typeof i=="function"&&i(s).forEach(function(c){try{t(a,c,r(o,c))}catch(p){l=p}}),l!==void 0)throw l;return a},Yy}var DE=_l,$k=function(e,t){return t},Xy,BE,zE,UE;try{Object.defineProperty($k,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}$k.length===1?(Xy={configurable:!0,writable:!1,enumerable:!1},BE=Object.defineProperty,LE.exports=function(e,t){return t=DE(t),e.length===t?e:(Xy.value=t,BE(e,"length",Xy))}):(UE=Lk(),zE=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); };")}}(),LE.exports=function(e,t){var r;if(t=DE(t),e.length===t)return e;r=zE(t)(e);try{UE(r,e)}catch{}return r});var si={},f8={get exports(){return si},set exports(e){si=e}},s8=void 0,xs=function(e){return e!==s8&&e!==null},c8=xs,h8={object:!0,function:!0,undefined:!0},ib=function(e){return c8(e)?hasOwnProperty.call(h8,typeof e):!1},d8=ib,p8=function(e){if(!d8(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},v8=p8,m8=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!v8(e)},g8=m8,y8=/^\s*class[\s{/}]/,x8=Function.prototype.toString,Dk=function(e){return!(!g8(e)||y8.test(x8.call(e)))},Qy="razdwatrzy",_8=function(){return typeof Qy.contains!="function"?!1:Qy.contains("dwa")===!0&&Qy.contains("foo")===!1},Zy,jE;function w8(){if(jE)return Zy;jE=1;var e=String.prototype.indexOf;return Zy=function(t){return e.call(this,t,arguments[1])>-1},Zy}var Bk=_8()?String.prototype.contains:w8(),c0=xs,GE=Dk,zk=Hm,Uk=rb,Oh=Bk,b8=f8.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],c0(e)?(r=Oh.call(e,"c"),n=Oh.call(e,"e"),i=Oh.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?zk(Uk(a),o):o};b8.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],c0(t)?GE(t)?c0(r)?GE(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,c0(e)?(n=Oh.call(e,"c"),i=Oh.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?zk(Uk(a),o):o};var q0={},S8={get exports(){return q0},set exports(e){q0=e}};(function(e,t){var r=si,n=da,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,p={configurable:!0,enumerable:!1,writable:!0},x,g,y,T,P,b,_;x=function(E,k){var F;return n(k),c.call(this,"__ee__")?F=this.__ee__:(F=p.value=o(null),l(this,"__ee__",p),p.value=null),F[E]?typeof F[E]=="object"?F[E].push(k):F[E]=[F[E],k]:F[E]=k,this},g=function(E,k){var F,I;return n(k),I=this,x.call(this,E,F=function(){y.call(I,E,F),i.call(k,this,arguments)}),F.__eeOnceListener__=k,this},y=function(E,k){var F,I,$,ne;if(n(k),!c.call(this,"__ee__"))return this;if(F=this.__ee__,!F[E])return this;if(I=F[E],typeof I=="object")for(ne=0;$=I[ne];++ne)($===k||$.__eeOnceListener__===k)&&(I.length===2?F[E]=I[ne?0:1]:I.splice(ne,1));else(I===k||I.__eeOnceListener__===k)&&delete F[E];return this},T=function(E){var k,F,I,$,ne;if(c.call(this,"__ee__")&&($=this.__ee__[E],!!$))if(typeof $=="object"){for(F=arguments.length,ne=new Array(F-1),k=1;k<F;++k)ne[k-1]=arguments[k];for($=$.slice(),k=0;I=$[k];++k)i.call(I,this,ne)}else switch(arguments.length){case 1:a.call($,this);break;case 2:a.call($,this,arguments[1]);break;case 3:a.call($,this,arguments[1],arguments[2]);break;default:for(F=arguments.length,ne=new Array(F-1),k=1;k<F;++k)ne[k-1]=arguments[k];i.call($,this,ne)}},P={on:x,once:g,off:y,emit:T},b={on:r(x),once:r(g),off:r(y),emit:r(T)},_=s({},b),e.exports=t=function(E){return E==null?o(_):s(Object(E),b)},t.methods=P})(S8,q0);var Ky,HE;function E8(){return HE||(HE=1,Ky=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"))}),Ky}var Jy,qE;function A8(){return qE||(qE=1,Jy=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),Jy}var e1,WE;function C8(){if(WE)return e1;WE=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 e1=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__}}(),e1}var t1,VE;function qm(){return VE||(VE=1,t1=A8()()?globalThis:C8()),t1}var r1,YE;function T8(){if(YE)return r1;YE=1;var e=qm(),t={object:!0,symbol:!0};return r1=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])},r1}var n1,XE;function O8(){return XE||(XE=1,n1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),n1}var i1,QE;function jk(){if(QE)return i1;QE=1;var e=O8();return i1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},i1}var a1,ZE;function k8(){if(ZE)return a1;ZE=1;var e=si,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return a1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){s||(s=!0,r(this,l,e(c)),s=!1)})),l},a1}var o1,KE;function M8(){if(KE)return o1;KE=1;var e=si,t=qm().Symbol;return o1=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"))})},o1}var u1,JE;function R8(){if(JE)return u1;JE=1;var e=si,t=jk(),r=Object.create(null);return u1=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})})},u1}var l1,e3;function P8(){if(e3)return l1;e3=1;var e=si,t=jk(),r=qm().Symbol,n=k8(),i=M8(),a=R8(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,c,p,x;if(typeof r=="function")try{String(r()),x=!0}catch{}else r=null;return p=function(y){if(this instanceof p)throw new TypeError("Symbol is not a constructor");return c(y)},l1=c=function g(y){var T;if(this instanceof g)throw new TypeError("Symbol is not a constructor");return x?r(y):(T=o(p.prototype),y=y===void 0?"":String(y),l(T,{__description__:e("",y),__name__:e("",n(y))}))},i(c),a(c),l(p.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 g=t(this);return typeof g=="symbol"?g:g.toString()})),s(c.prototype,c.toStringTag,e("c","Symbol")),s(p.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),s(p.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),l1}var f1,t3;function bl(){return t3||(t3=1,f1=T8()()?qm().Symbol:P8()),f1}var s1,r3;function Wm(){if(r3)return s1;r3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return s1=function(r){return e.call(r)===t},s1}var c1,n3;function F8(){if(n3)return c1;n3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return c1=function(r){return typeof r=="function"&&t(e.call(r))},c1}var h1,i3;function Vm(){if(i3)return h1;i3=1;var e=Object.prototype.toString,t=e.call("");return h1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},h1}var d1,a3;function N8(){if(a3)return d1;a3=1;var e=bl().iterator,t=Wm(),r=F8(),n=_l,i=da,a=Gi,o=Qa,l=Vm(),s=Array.isArray,c=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},x=Object.defineProperty;return d1=function(g){var y=arguments[1],T=arguments[2],P,b,_,E,k,F,I,$,ne,V;if(g=Object(a(g)),o(y)&&i(y),!this||this===Array||!r(this)){if(!y){if(t(g))return k=g.length,k!==1?Array.apply(null,g):(E=new Array(1),E[0]=g[0],E);if(s(g)){for(E=new Array(k=g.length),b=0;b<k;++b)E[b]=g[b];return E}}E=[]}else P=this;if(!s(g)){if((ne=g[e])!==void 0){for(I=i(ne).call(g),P&&(E=new P),$=I.next(),b=0;!$.done;)V=y?c.call(y,T,$.value,b):$.value,P?(p.value=V,x(E,b,p)):E[b]=V,$=I.next(),++b;k=b}else if(l(g)){for(k=g.length,P&&(E=new P),b=0,_=0;b<k;++b)V=g[b],b+1<k&&(F=V.charCodeAt(0),F>=55296&&F<=56319&&(V+=g[++b])),V=y?c.call(y,T,V,_):V,P?(p.value=V,x(E,_,p)):E[_]=V,++_;k=_}}if(k===void 0)for(k=n(g.length),P&&(E=new P(k)),b=0;b<k;++b)V=y?c.call(y,T,g[b],b):g[b],P?(p.value=V,x(E,b,p)):E[b]=V;return P&&(p.value=null,E.length=k),E},d1}var p1,o3;function Ym(){return o3||(o3=1,p1=E8()()?Array.from:N8()),p1}var I8=Ym(),L8=Array.isArray,$8=function(e){return L8(e)?e:I8(e)},D8=$8,B8=Qa,z8=da,U8=Array.prototype.slice,Gk;Gk=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(U8.call(e,this.length))};var j8=function(e){return e=D8(e),e.forEach(function(t){B8(t)&&z8(t)}),Gk.bind(e)},yv=da,G8=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:yv(e.get)},e.set!==void 0?(t.set=yv(e.set),e.delete&&(t.delete=yv(e.delete)),e.clear&&(t.clear=yv(e.clear)),t):(t.set=t.get,t))},xv=Z_,_v=H0,Wc=si,Hk=q0.methods,H8=j8,q8=G8,v1=Function.prototype.apply,m1=Function.prototype.call,u3=Object.create,W8=Object.defineProperties,V8=Hk.on,Y8=Hk.emit,X8=function(e,t,r){var n=u3(null),i,a,o,l,s,c,p,x,g,y,T,P,b,_,E;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(y=q8(r.normalizer),o=y.get,l=y.set,s=y.delete,c=y.clear),r.resolvers!=null&&(E=H8(r.resolvers)),o?_=_v(function(k){var F,I,$=arguments;if(E&&($=E($)),F=o($),F!==null&&hasOwnProperty.call(n,F))return T&&i.emit("get",F,$,this),n[F];if($.length===1?I=m1.call(e,this,$[0]):I=v1.call(e,this,$),F===null){if(F=o($),F!==null)throw xv("Circular invocation","CIRCULAR_INVOCATION");F=l($)}else if(hasOwnProperty.call(n,F))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n[F]=I,P&&i.emit("set",F,null,I),I},a):t===0?_=function(){var k;if(hasOwnProperty.call(n,"data"))return T&&i.emit("get","data",arguments,this),n.data;if(arguments.length?k=v1.call(e,this,arguments):k=m1.call(e,this),hasOwnProperty.call(n,"data"))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n.data=k,P&&i.emit("set","data",null,k),k}:_=function(k){var F,I=arguments,$;if(E&&(I=E(arguments)),$=String(I[0]),hasOwnProperty.call(n,$))return T&&i.emit("get",$,I,this),n[$];if(I.length===1?F=m1.call(e,this,I[0]):F=v1.call(e,this,I),hasOwnProperty.call(n,$))throw xv("Circular invocation","CIRCULAR_INVOCATION");return n[$]=F,P&&i.emit("set",$,null,F),F},i={original:e,memoized:_,profileName:r.profileName,get:function(k){return E&&(k=E(k)),o?o(k):String(k[0])},has:function(k){return hasOwnProperty.call(n,k)},delete:function(k){var F;hasOwnProperty.call(n,k)&&(s&&s(k),F=n[k],delete n[k],b&&i.emit("delete",k,F))},clear:function(){var k=n;c&&c(),n=u3(null),i.emit("clear",k)},on:function(k,F){return k==="get"?T=!0:k==="set"?P=!0:k==="delete"&&(b=!0),V8.call(this,k,F)},emit:Y8,updateEnv:function(){e=i.original}},o?p=_v(function(k){var F,I=arguments;E&&(I=E(I)),F=o(I),F!==null&&i.delete(F)},a):t===0?p=function(){return i.delete("data")}:p=function(k){return E&&(k=E(arguments)[0]),i.delete(k)},x=_v(function(){var k,F=arguments;return t===0?n.data:(E&&(F=E(F)),o?k=o(F):k=String(F[0]),n[k])}),g=_v(function(){var k,F=arguments;return t===0?i.has("data"):(E&&(F=E(F)),o?k=o(F):k=String(F[0]),k===null?!1:i.has(k))}),W8(_,{__memoized__:Wc(!0),delete:Wc(p),clear:Wc(i.clear),_get:Wc(x),_has:Wc(g)}),i},Q8=da,Z8=Gm,l3=wl,K8=X8,J8=Ik,eI=function e(t){var r,n,i;if(Q8(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=J8(r.length,t.length,r.async&&l3.async),i=K8(t,n,r),Z8(l3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},g1,f3;function tI(){return f3||(f3=1,g1=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),g1}var y1,s3;function rI(){return s3||(s3=1,y1=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),y1}var x1,c3;function nI(){return c3||(c3=1,x1=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),x1}var _1,h3;function iI(){return h3||(h3=1,_1=function(e){return e!==e}),_1}var w1,d3;function aI(){return d3||(d3=1,w1=nI()()?Number.isNaN:iI()),w1}var b1,p3;function ab(){if(p3)return b1;p3=1;var e=aI(),t=_l,r=Gi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return b1=function(l){var s,c,p,x;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),p=arguments[1],isNaN(p)?p=0:p>=0?p=o(p):p=t(this.length)-o(a(p)),s=p;s<c;++s)if(i.call(this,s)&&(x=this[s],e(x)))return s;return-1},b1}var S1,v3;function oI(){if(v3)return S1;v3=1;var e=ab(),t=Object.create;return S1=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;o<c-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];o<c-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,c=i[a],p=c.length,x=[];if(p===0)delete l[p];else if(l=l[p]){for(;o<p-1;){if(s=e.call(l[0],c[o]),s===-1)return;x.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],c[o]),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)}}},S1}var E1,m3;function uI(){if(m3)return E1;m3=1;var e=ab();return E1=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=[]}}},E1}var A1,g3;function lI(){if(g3)return A1;g3=1;var e=ab(),t=Object.create;return A1=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,c;l<r-1;){if(c=e.call(s[0],o[l]),c===-1)return null;s=s[1][c],++l}return c=e.call(s[0],o[l]),c===-1?null:s[1][c]||null},set:function(o){for(var l=0,s=i,c;l<r-1;)c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][c],++l;return c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1),s[1][c]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,c,p=[],x=a[o];l<r-1;){if(c=e.call(s[0],x[l]),c===-1)return;p.push(s,c),s=s[1][c],++l}if(c=e.call(s[0],x[l]),c!==-1){for(o=s[1][c],s[0].splice(c,1),s[1].splice(c,1);!s[0].length&&p.length;)c=p.pop(),s=p.pop(),s[0].splice(c,1),s[1].splice(c,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},A1}var y3={},C1,x3;function ob(){if(x3)return C1;x3=1;var e=da,t=Gm,r=Function.prototype.call;return C1=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,c,p){a[s]=r.call(i,o,l,s,c,p)}),a},C1}var T1,_3;function ub(){if(_3)return T1;_3=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return T1=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}(),T1}var w3;function fI(){if(w3)return y3;w3=1;var e=Ym(),t=ob(),r=Lk(),n=H0,i=ub(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return wl.async=function(s,c){var p=l(null),x=l(null),g=c.memoized,y=c.original,T,P,b;c.memoized=n(function(_){var E=arguments,k=E[E.length-1];return typeof k=="function"&&(T=k,E=a.call(E,0,-1)),g.apply(P=this,b=E)},g);try{r(c.memoized,g)}catch{}c.on("get",function(_){var E,k,F;if(T){if(p[_]){typeof p[_]=="function"?p[_]=[p[_],T]:p[_].push(T),T=null;return}E=T,k=P,F=b,T=P=b=null,i(function(){var I;hasOwnProperty.call(x,_)?(I=x[_],c.emit("getasync",_,F,k),o.call(E,I.context,I.args)):(T=E,P=k,b=F,g.apply(k,F))})}}),c.original=function(){var _,E,k,F;return T?(_=e(arguments),E=function I($){var ne,V,ae=I.id;if(ae==null){i(o.bind(I,this,arguments));return}if(delete I.id,ne=p[ae],delete p[ae],!!ne)return V=e(arguments),c.has(ae)&&($?c.delete(ae):(x[ae]={context:this,args:V},c.emit("setasync",ae,typeof ne=="function"?1:ne.length))),typeof ne=="function"?F=o.call(ne,this,V):ne.forEach(function(Te){F=o.call(Te,this,V)},this),F},k=T,T=P=b=null,_.push(E),F=o.call(y,this,_),E.cb=k,T=E,F):o.call(y,this,arguments)},c.on("set",function(_){if(!T){c.delete(_);return}p[_]?typeof p[_]=="function"?p[_]=[p[_],T.cb]:p[_].push(T.cb):p[_]=T.cb,delete T.cb,T.id=_,T=null}),c.on("delete",function(_){var E;hasOwnProperty.call(p,_)||x[_]&&(E=x[_],delete x[_],c.emit("deleteasync",_,a.call(E.args,1)))}),c.on("clear",function(){var _=x;x=l(null),c.emit("clearasync",t(_,function(E){return a.call(E.args,1)}))})},y3}var b3={},O1,S3;function sI(){if(S3)return O1;S3=1;var e=Array.prototype.forEach,t=Object.create;return O1=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},O1}var k1,E3;function qk(){return E3||(E3=1,k1=function(e){return typeof e=="function"}),k1}var M1,A3;function cI(){if(A3)return M1;A3=1;var e=qk();return M1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},M1}var R1,C3;function hI(){if(C3)return R1;C3=1;var e=Gi,t=cI();return R1=function(r){return t(e(r))},R1}var P1,T3;function dI(){if(T3)return P1;T3=1;var e=qk();return P1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},P1}var F1,O3;function pI(){if(O3)return F1;O3=1;var e=dI(),t=/[\n\r\u2028\u2029]/g;return F1=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},F1}var kh={},vI={get exports(){return kh},set exports(e){kh=e}},k3;function Wk(){if(k3)return kh;k3=1,vI.exports=e,kh.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return kh}var M3;function mI(){if(M3)return b3;M3=1;var e=ob(),t=sI(),r=hI(),n=pI(),i=Wk(),a=ub(),o=Object.create,l=t("then","then:finally","done","done:finally");return wl.promise=function(s,c){var p=o(null),x=o(null),g=o(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(y,T,P){var b=!1;if(!i(P)){x[y]=P,c.emit("setasync",y,1);return}p[y]=1,g[y]=P;var _=function(I){var $=p[y];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.`);$&&(delete p[y],x[y]=I,c.emit("setasync",y,$))},E=function(){b=!0,p[y]&&(delete p[y],delete g[y],c.delete(y))},k=s;if(k||(k="then"),k==="then"){var F=function(){a(E)};P=P.then(function(I){a(_.bind(this,I))},F),typeof P.finally=="function"&&P.finally(F)}else if(k==="done"){if(typeof P.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");P.done(_,E)}else if(k==="done:finally"){if(typeof P.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof P.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");P.done(_),P.finally(E)}}),c.on("get",function(y,T,P){var b;if(p[y]){++p[y];return}b=g[y];var _=function(){c.emit("getasync",y,T,P)};i(b)?typeof b.done=="function"?b.done(_):b.then(function(){a(_)}):_()}),c.on("delete",function(y){if(delete g[y],p[y]){delete p[y];return}if(hasOwnProperty.call(x,y)){var T=x[y];delete x[y],c.emit("deleteasync",y,[T])}}),c.on("clear",function(){var y=x;x=o(null),p=o(null),g=o(null),c.emit("clearasync",e(y,function(T){return[T]}))})},b3}var R3={},P3;function gI(){if(P3)return R3;P3=1;var e=da,t=Gm,r=wl,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,c){n.call(i,null,c)}),a.on("clearasync",function(s){t(s,function(c,p){l(p,c)})});return}a.on("delete",l=function(s,c){i(c)}),a.on("clear",function(s){t(s,function(c,p){l(p,c)})})},R3}var F3={},N1,N3;function yI(){return N3||(N3=1,N1=2147483647),N1}var I1,I3;function xI(){if(I3)return I1;I3=1;var e=_l,t=yI();return I1=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},I1}var L3;function _I(){if(L3)return F3;L3=1;var e=Ym(),t=Gm,r=ub(),n=Wk(),i=xI(),a=wl,o=Function.prototype,l=Math.max,s=Math.min,c=Object.create;return a.maxAge=function(p,x,g){var y,T,P,b;p=i(p),p&&(y=c(null),T=g.async&&a.async||g.promise&&a.promise?"async":"",x.on("set"+T,function(_){y[_]=setTimeout(function(){x.delete(_)},p),typeof y[_].unref=="function"&&y[_].unref(),b&&(b[_]&&b[_]!=="nextTick"&&clearTimeout(b[_]),b[_]=setTimeout(function(){delete b[_]},P),typeof b[_].unref=="function"&&b[_].unref())}),x.on("delete"+T,function(_){clearTimeout(y[_]),delete y[_],b&&(b[_]!=="nextTick"&&clearTimeout(b[_]),delete b[_])}),g.preFetch&&(g.preFetch===!0||isNaN(g.preFetch)?P=.333:P=l(s(Number(g.preFetch),1),0),P&&(b={},P=(1-P)*p,x.on("get"+T,function(_,E,k){b[_]||(b[_]="nextTick",r(function(){var F;b[_]==="nextTick"&&(delete b[_],x.delete(_),g.async&&(E=e(E),E.push(o)),F=x.memoized.apply(k,E),g.promise&&n(F)&&(typeof F.done=="function"?F.done(o,o):F.then(o,o)))}))}))),x.on("clear"+T,function(){t(y,function(_){clearTimeout(_)}),y={},b&&(t(b,function(_){_!=="nextTick"&&clearTimeout(_)}),b={})}))},F3}var $3={},L1,D3;function wI(){if(D3)return L1;D3=1;var e=_l,t=Object.create,r=Object.prototype.hasOwnProperty;return L1=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,c;return n=e(n),{hit:function(p){var x=l[p],g=++s;if(o[g]=p,l[p]=g,!x)return++i,i<=n?void 0:(p=o[a],c(p),p);if(delete o[x],a===x)for(;!r.call(o,++a););},delete:c=function(p){var x=l[p];if(x&&(delete o[x],delete l[p],--i,a===x)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},L1}var B3;function bI(){if(B3)return $3;B3=1;var e=_l,t=wI(),r=wl;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},$3}var z3={},U3;function SI(){if(U3)return z3;U3=1;var e=si,t=wl,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(c,p){l[c]=p||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]})})},z3}var EI=rb,AI=Ik,CI=eI,lK=function(e){var t=EI(arguments[1]),r;return t.normalizer||(r=t.length=AI(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=tI():r>1&&(t.normalizer=rI()(r)):r===!1?t.normalizer=oI()():r===1?t.normalizer=uI()():t.normalizer=lI()(r))),t.async&&fI(),t.promise&&mI(),t.dispose&&gI(),t.maxAge&&_I(),t.max&&bI(),t.refCounter&&SI(),CI(e,t)},j3={},TI={get exports(){return j3},set exports(e){j3=e}};/*!
43
43
  Copyright (c) 2018 Jed Watson.
44
44
  Licensed under the MIT License (MIT), see
45
45
  http://jedwatson.github.io/classnames
46
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(AI);var TI="Expected a function",U3=0/0,CI="[object Symbol]",OI=/^\s+|\s+$/g,kI=/^[-+]0x[0-9a-f]+$/i,MI=/^0b[01]+$/i,RI=/^0o[0-7]+$/i,PI=parseInt,FI=typeof tr=="object"&&tr&&tr.Object===Object&&tr,NI=typeof self=="object"&&self&&self.Object===Object&&self,II=FI||NI||Function("return this")(),LI=Object.prototype,$I=LI.toString,DI=Math.max,BI=Math.min,L1=function(){return II.Date.now()};function zI(e,t,r){var n,i,a,o,l,s,c=0,p=!1,x=!1,g=!0;if(typeof e!="function")throw new TypeError(TI);t=j3(t)||0,Z_(r)&&(p=!!r.leading,x="maxWait"in r,a=x?DI(j3(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function y($){var ne=n,V=i;return n=i=void 0,c=$,o=e.apply(V,ne),o}function C($){return c=$,l=setTimeout(_,t),p?y($):o}function P($){var ne=$-s,V=$-c,ae=t-ne;return x?BI(ae,a-V):ae}function b($){var ne=$-s,V=$-c;return s===void 0||ne>=t||ne<0||x&&V>=a}function _(){var $=L1();if(b($))return E($);l=setTimeout(_,P($))}function E($){return l=void 0,g&&n?y($):(n=i=void 0,o)}function k(){l!==void 0&&clearTimeout(l),c=0,n=s=i=l=void 0}function F(){return l===void 0?o:E(L1())}function I(){var $=L1(),ne=b($);if(n=arguments,i=this,s=$,ne){if(l===void 0)return C(s);if(x)return l=setTimeout(_,t),y(s)}return l===void 0&&(l=setTimeout(_,t)),o}return I.cancel=k,I.flush=F,I}function Z_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function UI(e){return!!e&&typeof e=="object"}function jI(e){return typeof e=="symbol"||UI(e)&&$I.call(e)==CI}function j3(e){if(typeof e=="number")return e;if(jI(e))return U3;if(Z_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(OI,"");var r=MI.test(e);return r||RI.test(e)?PI(e.slice(2),r?2:8):kI.test(e)?U3:+e}var oK=zI;function za(){return za=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},za.apply(this,arguments)}function ts(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 K_(e,t){return K_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},K_(e,t)}function qk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,K_(e,t)}function GI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function HI(e,t){e.classList?e.classList.add(t):GI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function G3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=G3(e.className,t):e.setAttribute("class",G3(e.className&&e.className.baseVal||"",t))}const H3={disabled:!1},Wk=Tn.createContext(null);var Vk=function(t){return t.scrollTop},ch="unmounted",Bu="exited",zu="entering",bf="entered",J_="exiting",Za=function(e){qk(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=Bu,a.appearStatus=zu):s=bf:n.unmountOnExit||n.mountOnEnter?s=ch:s=Bu,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ch?{status:Bu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==zu&&o!==bf&&(a=zu):(o===zu||o===bf)&&(a=J_)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:gv.findDOMNode(this);o&&Vk(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bu&&this.setState({status:ch})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[gv.findDOMNode(this),l],c=s[0],p=s[1],x=this.getTimeouts(),g=l?x.appear:x.enter;if(!i&&!o||H3.disabled){this.safeSetState({status:bf},function(){a.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:zu},function(){a.props.onEntering(c,p),a.onTransitionEnd(g,function(){a.safeSetState({status:bf},function(){a.props.onEntered(c,p)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:gv.findDOMNode(this);if(!a||H3.disabled){this.safeSetState({status:Bu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:J_},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Bu},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:gv.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],p=s[1];this.props.addEndListener(c,p)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ch)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=ts(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tn.createElement(Wk.Provider,{value:null},typeof o=="function"?o(i,l):Tn.cloneElement(Tn.Children.only(o),l))},t}(Tn.Component);Za.contextType=Wk;Za.propTypes={};function pf(){}Za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pf,onEntering:pf,onEntered:pf,onExit:pf,onExiting:pf,onExited:pf};Za.UNMOUNTED=ch;Za.EXITED=Bu;Za.ENTERING=zu;Za.ENTERED=bf;Za.EXITING=J_;const WI=Za;var VI=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return HI(t,n)})},$1=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return qI(t,n)})},ob=function(e){qk(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1];n.removeClasses(p,"exit"),n.addClass(p,x?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1],g=x?"appear":"enter";n.addClass(p,g,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1],g=x?"appear":"enter";n.removeClasses(p,g),n.addClass(p,g,"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",p=c&&s?s+"-":"",x=c?""+p+l:s[l],g=c?x+"-active":s[l+"Active"],y=c?x+"-done":s[l+"Done"];return{baseClassName:x,activeClassName:g,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),c=s.doneClassName;a==="appear"&&o==="done"&&c&&(l+=" "+c),o==="active"&&i&&Vk(i),l&&(this.appliedClasses[a][o]=l,VI(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,c=o.done;this.appliedClasses[a]={},l&&$1(i,l),s&&$1(i,s),c&&$1(i,c)},r.render=function(){var i=this.props;i.classNames;var a=ts(i,["classNames"]);return Tn.createElement(WI,za({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Tn.Component);ob.defaultProps={classNames:""};ob.propTypes={};const uK=ob;function q3(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 It(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q3(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q0(e){return q0=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},q0(e)}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W3(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 XI(e,t,r){return t&&W3(e.prototype,t),r&&W3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ub(e,t){return ZI(e)||JI(e,t)||Yk(e,t)||tL()}function Ed(e){return QI(e)||KI(e)||Yk(e)||eL()}function QI(e){if(Array.isArray(e))return ew(e)}function ZI(e){if(Array.isArray(e))return e}function KI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function Yk(e,t){if(e){if(typeof e=="string")return ew(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 ew(e,t)}}function ew(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 eL(){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 tL(){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 V3=function(){},lb={},Xk={},Qk=null,Zk={mark:V3,measure:V3};try{typeof window<"u"&&(lb=window),typeof document<"u"&&(Xk=document),typeof MutationObserver<"u"&&(Qk=MutationObserver),typeof performance<"u"&&(Zk=performance)}catch{}var rL=lb.navigator||{},Y3=rL.userAgent,X3=Y3===void 0?"":Y3,Zo=lb,$r=Xk,Q3=Qk,wv=Zk;Zo.document;var Ka=!!$r.documentElement&&!!$r.head&&typeof $r.addEventListener=="function"&&typeof $r.createElement=="function",Kk=~X3.indexOf("MSIE")||~X3.indexOf("Trident/"),bv,Sv,Ev,Av,Tv,Ha="___FONT_AWESOME___",tw=16,Jk="fa",eM="svg-inline--fa",ol="data-fa-i2svg",rw="data-fa-pseudo-element",nL="data-fa-pseudo-element-pending",fb="data-prefix",sb="data-icon",Z3="fontawesome-i2svg",iL="async",aL=["HTML","HEAD","STYLE","SCRIPT"],tM=function(){try{return!0}catch{return!1}}(),Ir="classic",qr="sharp",cb=[Ir,qr];function Ad(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Ir]}})}var Jh=Ad((bv={},sn(bv,Ir,{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"}),sn(bv,qr,{fa:"solid",fass:"solid","fa-solid":"solid"}),bv)),ed=Ad((Sv={},sn(Sv,Ir,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),sn(Sv,qr,{solid:"fass"}),Sv)),td=Ad((Ev={},sn(Ev,Ir,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),sn(Ev,qr,{fass:"fa-solid"}),Ev)),oL=Ad((Av={},sn(Av,Ir,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),sn(Av,qr,{"fa-solid":"fass"}),Av)),uL=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,rM="fa-layers-text",lL=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,fL=Ad((Tv={},sn(Tv,Ir,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),sn(Tv,qr,{900:"fass"}),Tv)),nM=[1,2,3,4,5,6,7,8,9,10],sL=nM.concat([11,12,13,14,15,16,17,18,19,20]),cL=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Xu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},rd=new Set;Object.keys(ed[Ir]).map(rd.add.bind(rd));Object.keys(ed[qr]).map(rd.add.bind(rd));var hL=[].concat(cb,Ed(rd),["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",Xu.GROUP,Xu.SWAP_OPACITY,Xu.PRIMARY,Xu.SECONDARY]).concat(nM.map(function(e){return"".concat(e,"x")})).concat(sL.map(function(e){return"w-".concat(e)})),Mh=Zo.FontAwesomeConfig||{};function dL(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function pL(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if($r&&typeof $r.querySelector=="function"){var vL=[["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"]];vL.forEach(function(e){var t=ub(e,2),r=t[0],n=t[1],i=pL(dL(r));i!=null&&(Mh[n]=i)})}var iM={styleDefault:"solid",familyDefault:"classic",cssPrefix:Jk,replacementClass:eM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Mh.familyPrefix&&(Mh.cssPrefix=Mh.familyPrefix);var rs=It(It({},iM),Mh);rs.autoReplaceSvg||(rs.observeMutations=!1);var Ut={};Object.keys(iM).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){rs[e]=r,Rh.forEach(function(n){return n(Ut)})},get:function(){return rs[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){rs.cssPrefix=t,Rh.forEach(function(r){return r(Ut)})},get:function(){return rs.cssPrefix}});Zo.FontAwesomeConfig=Ut;var Rh=[];function mL(e){return Rh.push(e),function(){Rh.splice(Rh.indexOf(e),1)}}var Eo=tw,oa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function gL(e){if(!(!e||!Ka)){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return $r.head.insertBefore(t,n),e}}var yL="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function nd(){for(var e=12,t="";e-- >0;)t+=yL[Math.random()*62|0];return t}function _s(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function hb(e){return e.classList?_s(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function aM(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xL(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(aM(e[r]),'" ')},"").trim()}function Ym(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function db(e){return e.size!==oa.size||e.x!==oa.x||e.y!==oa.y||e.rotate!==oa.rotate||e.flipX||e.flipY}function _L(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:c}}function wL(e){var t=e.transform,r=e.width,n=r===void 0?tw:r,i=e.height,a=i===void 0?tw:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&Kk?s+="translate(".concat(t.x/Eo-n/2,"em, ").concat(t.y/Eo-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/Eo,"em), calc(-50% + ").concat(t.y/Eo,"em)) "):s+="translate(".concat(t.x/Eo,"em, ").concat(t.y/Eo,"em) "),s+="scale(".concat(t.size/Eo*(t.flipX?-1:1),", ").concat(t.size/Eo*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var bL=`:root, :host {
46
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(TI);var OI="Expected a function",G3=0/0,kI="[object Symbol]",MI=/^\s+|\s+$/g,RI=/^[-+]0x[0-9a-f]+$/i,PI=/^0b[01]+$/i,FI=/^0o[0-7]+$/i,NI=parseInt,II=typeof tr=="object"&&tr&&tr.Object===Object&&tr,LI=typeof self=="object"&&self&&self.Object===Object&&self,$I=II||LI||Function("return this")(),DI=Object.prototype,BI=DI.toString,zI=Math.max,UI=Math.min,$1=function(){return $I.Date.now()};function jI(e,t,r){var n,i,a,o,l,s,c=0,p=!1,x=!1,g=!0;if(typeof e!="function")throw new TypeError(OI);t=H3(t)||0,K_(r)&&(p=!!r.leading,x="maxWait"in r,a=x?zI(H3(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function y($){var ne=n,V=i;return n=i=void 0,c=$,o=e.apply(V,ne),o}function T($){return c=$,l=setTimeout(_,t),p?y($):o}function P($){var ne=$-s,V=$-c,ae=t-ne;return x?UI(ae,a-V):ae}function b($){var ne=$-s,V=$-c;return s===void 0||ne>=t||ne<0||x&&V>=a}function _(){var $=$1();if(b($))return E($);l=setTimeout(_,P($))}function E($){return l=void 0,g&&n?y($):(n=i=void 0,o)}function k(){l!==void 0&&clearTimeout(l),c=0,n=s=i=l=void 0}function F(){return l===void 0?o:E($1())}function I(){var $=$1(),ne=b($);if(n=arguments,i=this,s=$,ne){if(l===void 0)return T(s);if(x)return l=setTimeout(_,t),y(s)}return l===void 0&&(l=setTimeout(_,t)),o}return I.cancel=k,I.flush=F,I}function K_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function GI(e){return!!e&&typeof e=="object"}function HI(e){return typeof e=="symbol"||GI(e)&&BI.call(e)==kI}function H3(e){if(typeof e=="number")return e;if(HI(e))return G3;if(K_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=K_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(MI,"");var r=PI.test(e);return r||FI.test(e)?NI(e.slice(2),r?2:8):RI.test(e)?G3:+e}var fK=jI;function za(){return za=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},za.apply(this,arguments)}function ts(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 J_(e,t){return J_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},J_(e,t)}function Vk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,J_(e,t)}function qI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function WI(e,t){e.classList?e.classList.add(t):qI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function q3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function VI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=q3(e.className,t):e.setAttribute("class",q3(e.className&&e.className.baseVal||"",t))}const W3={disabled:!1},Yk=Cn.createContext(null);var Xk=function(t){return t.scrollTop},ch="unmounted",Bu="exited",zu="entering",bf="entered",ew="exiting",Za=function(e){Vk(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=Bu,a.appearStatus=zu):s=bf:n.unmountOnExit||n.mountOnEnter?s=ch:s=Bu,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ch?{status:Bu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==zu&&o!==bf&&(a=zu):(o===zu||o===bf)&&(a=ew)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:gv.findDOMNode(this);o&&Xk(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bu&&this.setState({status:ch})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[gv.findDOMNode(this),l],c=s[0],p=s[1],x=this.getTimeouts(),g=l?x.appear:x.enter;if(!i&&!o||W3.disabled){this.safeSetState({status:bf},function(){a.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:zu},function(){a.props.onEntering(c,p),a.onTransitionEnd(g,function(){a.safeSetState({status:bf},function(){a.props.onEntered(c,p)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:gv.findDOMNode(this);if(!a||W3.disabled){this.safeSetState({status:Bu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ew},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Bu},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:gv.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],p=s[1];this.props.addEndListener(c,p)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ch)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=ts(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cn.createElement(Yk.Provider,{value:null},typeof o=="function"?o(i,l):Cn.cloneElement(Cn.Children.only(o),l))},t}(Cn.Component);Za.contextType=Yk;Za.propTypes={};function pf(){}Za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pf,onEntering:pf,onEntered:pf,onExit:pf,onExiting:pf,onExited:pf};Za.UNMOUNTED=ch;Za.EXITED=Bu;Za.ENTERING=zu;Za.ENTERED=bf;Za.EXITING=ew;const YI=Za;var XI=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return WI(t,n)})},D1=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return VI(t,n)})},lb=function(e){Vk(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1];n.removeClasses(p,"exit"),n.addClass(p,x?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1],g=x?"appear":"enter";n.addClass(p,g,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var c=n.resolveArguments(l,s),p=c[0],x=c[1],g=x?"appear":"enter";n.removeClasses(p,g),n.addClass(p,g,"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",p=c&&s?s+"-":"",x=c?""+p+l:s[l],g=c?x+"-active":s[l+"Active"],y=c?x+"-done":s[l+"Done"];return{baseClassName:x,activeClassName:g,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),c=s.doneClassName;a==="appear"&&o==="done"&&c&&(l+=" "+c),o==="active"&&i&&Xk(i),l&&(this.appliedClasses[a][o]=l,XI(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,c=o.done;this.appliedClasses[a]={},l&&D1(i,l),s&&D1(i,s),c&&D1(i,c)},r.render=function(){var i=this.props;i.classNames;var a=ts(i,["classNames"]);return Cn.createElement(YI,za({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Cn.Component);lb.defaultProps={classNames:""};lb.propTypes={};const sK=lb;function V3(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 It(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V3(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W0(e){return W0=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},W0(e)}function QI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y3(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 ZI(e,t,r){return t&&Y3(e.prototype,t),r&&Y3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fb(e,t){return JI(e)||tL(e,t)||Qk(e,t)||nL()}function Ed(e){return KI(e)||eL(e)||Qk(e)||rL()}function KI(e){if(Array.isArray(e))return tw(e)}function JI(e){if(Array.isArray(e))return e}function eL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function Qk(e,t){if(e){if(typeof e=="string")return tw(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 tw(e,t)}}function tw(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 rL(){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 nL(){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 X3=function(){},sb={},Zk={},Kk=null,Jk={mark:X3,measure:X3};try{typeof window<"u"&&(sb=window),typeof document<"u"&&(Zk=document),typeof MutationObserver<"u"&&(Kk=MutationObserver),typeof performance<"u"&&(Jk=performance)}catch{}var iL=sb.navigator||{},Q3=iL.userAgent,Z3=Q3===void 0?"":Q3,Zo=sb,$r=Zk,K3=Kk,wv=Jk;Zo.document;var Ka=!!$r.documentElement&&!!$r.head&&typeof $r.addEventListener=="function"&&typeof $r.createElement=="function",eM=~Z3.indexOf("MSIE")||~Z3.indexOf("Trident/"),bv,Sv,Ev,Av,Cv,Ha="___FONT_AWESOME___",rw=16,tM="fa",rM="svg-inline--fa",ol="data-fa-i2svg",nw="data-fa-pseudo-element",aL="data-fa-pseudo-element-pending",cb="data-prefix",hb="data-icon",J3="fontawesome-i2svg",oL="async",uL=["HTML","HEAD","STYLE","SCRIPT"],nM=function(){try{return!0}catch{return!1}}(),Ir="classic",qr="sharp",db=[Ir,qr];function Ad(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Ir]}})}var Jh=Ad((bv={},sn(bv,Ir,{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"}),sn(bv,qr,{fa:"solid",fass:"solid","fa-solid":"solid"}),bv)),ed=Ad((Sv={},sn(Sv,Ir,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),sn(Sv,qr,{solid:"fass"}),Sv)),td=Ad((Ev={},sn(Ev,Ir,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),sn(Ev,qr,{fass:"fa-solid"}),Ev)),lL=Ad((Av={},sn(Av,Ir,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),sn(Av,qr,{"fa-solid":"fass"}),Av)),fL=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,iM="fa-layers-text",sL=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,cL=Ad((Cv={},sn(Cv,Ir,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),sn(Cv,qr,{900:"fass"}),Cv)),aM=[1,2,3,4,5,6,7,8,9,10],hL=aM.concat([11,12,13,14,15,16,17,18,19,20]),dL=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Xu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},rd=new Set;Object.keys(ed[Ir]).map(rd.add.bind(rd));Object.keys(ed[qr]).map(rd.add.bind(rd));var pL=[].concat(db,Ed(rd),["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",Xu.GROUP,Xu.SWAP_OPACITY,Xu.PRIMARY,Xu.SECONDARY]).concat(aM.map(function(e){return"".concat(e,"x")})).concat(hL.map(function(e){return"w-".concat(e)})),Mh=Zo.FontAwesomeConfig||{};function vL(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function mL(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if($r&&typeof $r.querySelector=="function"){var gL=[["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"]];gL.forEach(function(e){var t=fb(e,2),r=t[0],n=t[1],i=mL(vL(r));i!=null&&(Mh[n]=i)})}var oM={styleDefault:"solid",familyDefault:"classic",cssPrefix:tM,replacementClass:rM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Mh.familyPrefix&&(Mh.cssPrefix=Mh.familyPrefix);var rs=It(It({},oM),Mh);rs.autoReplaceSvg||(rs.observeMutations=!1);var Ut={};Object.keys(oM).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){rs[e]=r,Rh.forEach(function(n){return n(Ut)})},get:function(){return rs[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){rs.cssPrefix=t,Rh.forEach(function(r){return r(Ut)})},get:function(){return rs.cssPrefix}});Zo.FontAwesomeConfig=Ut;var Rh=[];function yL(e){return Rh.push(e),function(){Rh.splice(Rh.indexOf(e),1)}}var Eo=rw,oa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xL(e){if(!(!e||!Ka)){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return $r.head.insertBefore(t,n),e}}var _L="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function nd(){for(var e=12,t="";e-- >0;)t+=_L[Math.random()*62|0];return t}function _s(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function pb(e){return e.classList?_s(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function uM(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function wL(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(uM(e[r]),'" ')},"").trim()}function Xm(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function vb(e){return e.size!==oa.size||e.x!==oa.x||e.y!==oa.y||e.rotate!==oa.rotate||e.flipX||e.flipY}function bL(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:c}}function SL(e){var t=e.transform,r=e.width,n=r===void 0?rw:r,i=e.height,a=i===void 0?rw:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&eM?s+="translate(".concat(t.x/Eo-n/2,"em, ").concat(t.y/Eo-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/Eo,"em), calc(-50% + ").concat(t.y/Eo,"em)) "):s+="translate(".concat(t.x/Eo,"em, ").concat(t.y/Eo,"em) "),s+="scale(".concat(t.size/Eo*(t.flipX?-1:1),", ").concat(t.size/Eo*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var EL=`:root, :host {
49
49
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
50
50
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
51
51
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -797,43 +797,43 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
797
797
  .fad.fa-inverse,
798
798
  .fa-duotone.fa-inverse {
799
799
  color: var(--fa-inverse, #fff);
800
- }`;function oM(){var e=Jk,t=eM,r=Ut.cssPrefix,n=Ut.replacementClass,i=bL;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var K3=!1;function D1(){Ut.autoAddCss&&!K3&&(gL(oM()),K3=!0)}var SL={mixout:function(){return{dom:{css:oM,insertCss:D1}}},hooks:function(){return{beforeDOMElementCreation:function(){D1()},beforeI2svg:function(){D1()}}}},qa=Zo||{};qa[Ha]||(qa[Ha]={});qa[Ha].styles||(qa[Ha].styles={});qa[Ha].hooks||(qa[Ha].hooks={});qa[Ha].shims||(qa[Ha].shims=[]);var ji=qa[Ha],uM=[],EL=function e(){$r.removeEventListener("DOMContentLoaded",e),W0=1,uM.map(function(t){return t()})},W0=!1;Ka&&(W0=($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState),W0||$r.addEventListener("DOMContentLoaded",EL));function AL(e){Ka&&(W0?setTimeout(e,0):uM.push(e))}function Td(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"?aM(e):"<".concat(t," ").concat(xL(n),">").concat(a.map(Td).join(""),"</").concat(t,">")}function J3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var TL=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},B1=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?TL(r,i):r,s,c,p;for(n===void 0?(s=1,p=t[a[0]]):(s=0,p=n);s<o;s++)c=a[s],p=l(p,t[c],c,t);return p};function CL(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 nw(e){var t=CL(e);return t.length===1?t[0].toString(16):null}function OL(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 eA(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 iw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=eA(t);typeof ji.hooks.addPack=="function"&&!i?ji.hooks.addPack(e,eA(t)):ji.styles[e]=It(It({},ji.styles[e]||{}),a),e==="fas"&&iw("fa",t)}var Cv,Ov,kv,Rf=ji.styles,kL=ji.shims,ML=(Cv={},sn(Cv,Ir,Object.values(td[Ir])),sn(Cv,qr,Object.values(td[qr])),Cv),pb=null,lM={},fM={},sM={},cM={},hM={},RL=(Ov={},sn(Ov,Ir,Object.keys(Jh[Ir])),sn(Ov,qr,Object.keys(Jh[qr])),Ov);function PL(e){return~hL.indexOf(e)}function FL(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!PL(i)?i:null}var dM=function(){var t=function(a){return B1(Rf,function(o,l,s){return o[s]=B1(l,a,{}),o},{})};lM=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),fM=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),hM=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Rf||Ut.autoFetchSvg,n=B1(kL,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});sM=n.names,cM=n.unicodes,pb=Xm(Ut.styleDefault,{family:Ut.familyDefault})};mL(function(e){pb=Xm(e.styleDefault,{family:Ut.familyDefault})});dM();function vb(e,t){return(lM[e]||{})[t]}function NL(e,t){return(fM[e]||{})[t]}function Qu(e,t){return(hM[e]||{})[t]}function pM(e){return sM[e]||{prefix:null,iconName:null}}function IL(e){var t=cM[e],r=vb("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Ko(){return pb}var mb=function(){return{prefix:null,iconName:null,rest:[]}};function Xm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Ir:r,i=Jh[n][e],a=ed[n][e]||ed[n][i],o=e in ji.styles?e:null;return a||o||null}var tA=(kv={},sn(kv,Ir,Object.keys(td[Ir])),sn(kv,qr,Object.keys(td[qr])),kv);function Qm(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},sn(t,Ir,"".concat(Ut.cssPrefix,"-").concat(Ir)),sn(t,qr,"".concat(Ut.cssPrefix,"-").concat(qr)),t),o=null,l=Ir;(e.includes(a[Ir])||e.some(function(c){return tA[Ir].includes(c)}))&&(l=Ir),(e.includes(a[qr])||e.some(function(c){return tA[qr].includes(c)}))&&(l=qr);var s=e.reduce(function(c,p){var x=FL(Ut.cssPrefix,p);if(Rf[p]?(p=ML[l].includes(p)?oL[l][p]:p,o=p,c.prefix=p):RL[l].indexOf(p)>-1?(o=p,c.prefix=Xm(p,{family:l})):x?c.iconName=x:p!==Ut.replacementClass&&p!==a[Ir]&&p!==a[qr]&&c.rest.push(p),!i&&c.prefix&&c.iconName){var g=o==="fa"?pM(c.iconName):{},y=Qu(c.prefix,c.iconName);g.prefix&&(o=null),c.iconName=g.iconName||y||c.iconName,c.prefix=g.prefix||c.prefix,c.prefix==="far"&&!Rf.far&&Rf.fas&&!Ut.autoFetchSvg&&(c.prefix="fas")}return c},mb());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===qr&&(Rf.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=Qu(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=Ko()||"fas"),s}var LL=function(){function e(){YI(this,e),this.definitions={}}return XI(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=It(It({},r.definitions[l]||{}),o[l]),iw(l,o[l]);var s=td[Ir][l];s&&iw(s,o[l]),dM()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,c=o.icon,p=c[2];r[l]||(r[l]={}),p.length>0&&p.forEach(function(x){typeof x=="string"&&(r[l][x]=c)}),r[l][s]=c}),r}}]),e}(),rA=[],Pf={},qf={},$L=Object.keys(qf);function DL(e,t){var r=t.mixoutsTo;return rA=e,Pf={},Object.keys(qf).forEach(function(n){$L.indexOf(n)===-1&&delete qf[n]}),rA.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),q0(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Pf[o]||(Pf[o]=[]),Pf[o].push(a[o])})}n.provides&&n.provides(qf)}),r}function aw(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=Pf[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function ul(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=Pf[e]||[];i.forEach(function(a){a.apply(null,r)})}function Wa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qf[e]?qf[e].apply(null,t):void 0}function ow(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Ko();if(t)return t=Qu(r,t)||t,J3(vM.definitions,r,t)||J3(ji.styles,r,t)}var vM=new LL,BL=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,ul("noAuto")},zL={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ka?(ul("beforeI2svg",t),Wa("pseudoElements2svg",t),Wa("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,AL(function(){jL({autoReplaceSvgRoot:r}),ul("watch",t)})}},UL={icon:function(t){if(t===null)return null;if(q0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Qu(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=Xm(t[0]);return{prefix:n,iconName:Qu(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(uL))){var i=Qm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ko(),iconName:Qu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Ko();return{prefix:a,iconName:Qu(a,t)||t}}}},hi={noAuto:BL,config:Ut,dom:zL,parse:UL,library:vM,findIconDefinition:ow,toHtml:Td},jL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?$r:r;(Object.keys(ji.styles).length>0||Ut.autoFetchSvg)&&Ka&&Ut.autoReplaceSvg&&hi.dom.i2svg({node:n})};function Zm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Td(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Ka){var n=$r.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function GL(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(db(o)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=Ym(It(It({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function HL(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Ut.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:It(It({},i),{},{id:o}),children:n}]}]}function gb(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,c=e.maskId,p=e.titleId,x=e.extra,g=e.watchable,y=g===void 0?!1:g,C=n.found?n:r,P=C.width,b=C.height,_=i==="fak",E=[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(" "),k={children:[],attributes:It(It({},x.attributes),{},{"data-prefix":i,"data-icon":a,class:E,role:x.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(P," ").concat(b)})},F=_&&!~x.classes.indexOf("fa-fw")?{width:"".concat(P/b*16*.0625,"em")}:{};y&&(k.attributes[ol]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(p||nd())},children:[s]}),delete k.attributes.title);var I=It(It({},k),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:o,symbol:l,styles:It(It({},F),x.styles)}),$=n.found&&r.found?Wa("generateAbstractMask",I)||{children:[],attributes:{}}:Wa("generateAbstractIcon",I)||{children:[],attributes:{}},ne=$.children,V=$.attributes;return I.children=ne,I.attributes=V,l?HL(I):GL(I)}function nA(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,c=It(It(It({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(c[ol]="");var p=It({},o.styles);db(i)&&(p.transform=wL({transform:i,startCentered:!0,width:r,height:n}),p["-webkit-transform"]=p.transform);var x=Ym(p);x.length>0&&(c.style=x);var g=[];return g.push({tag:"span",attributes:c,children:[t]}),a&&g.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),g}function qL(e){var t=e.content,r=e.title,n=e.extra,i=It(It(It({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Ym(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var z1=ji.styles;function uw(e){var t=e[0],r=e[1],n=e.slice(4),i=ub(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var WL={found:!1,width:512,height:512};function VL(e,t){!tM&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function lw(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=Ko()),new Promise(function(n,i){if(Wa("missingIconAbstract"),r==="fa"){var a=pM(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&z1[t]&&z1[t][e]){var o=z1[t][e];return n(uw(o))}VL(e,t),n(It(It({},WL),{},{icon:Ut.showMissingIcons&&e?Wa("missingIconAbstract")||{}:{}}))})}var iA=function(){},fw=Ut.measurePerformance&&wv&&wv.mark&&wv.measure?wv:{mark:iA,measure:iA},hh='FA "6.2.1"',YL=function(t){return fw.mark("".concat(hh," ").concat(t," begins")),function(){return mM(t)}},mM=function(t){fw.mark("".concat(hh," ").concat(t," ends")),fw.measure("".concat(hh," ").concat(t),"".concat(hh," ").concat(t," begins"),"".concat(hh," ").concat(t," ends"))},yb={begin:YL,end:mM},c0=function(){};function aA(e){var t=e.getAttribute?e.getAttribute(ol):null;return typeof t=="string"}function XL(e){var t=e.getAttribute?e.getAttribute(fb):null,r=e.getAttribute?e.getAttribute(sb):null;return t&&r}function QL(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function ZL(){if(Ut.autoReplaceSvg===!0)return h0.replace;var e=h0[Ut.autoReplaceSvg];return e||h0.replace}function KL(e){return $r.createElementNS("http://www.w3.org/2000/svg",e)}function JL(e){return $r.createElement(e)}function gM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?KL:JL:r;if(typeof e=="string")return $r.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(gM(o,{ceFn:n}))}),i}function e$(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var h0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(gM(i),r)}),r.getAttribute(ol)===null&&Ut.keepOriginalSource){var n=$r.createComment(e$(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~hb(r).indexOf(Ut.replacementClass))return h0.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 o=n.map(function(l){return Td(l)}).join(`
801
- `);r.setAttribute(ol,""),r.innerHTML=o}};function oA(e){e()}function yM(e,t){var r=typeof t=="function"?t:c0;if(e.length===0)r();else{var n=oA;Ut.mutateApproach===iL&&(n=Zo.requestAnimationFrame||oA),n(function(){var i=ZL(),a=yb.begin("mutate");e.map(i),a(),r()})}}var xb=!1;function xM(){xb=!0}function sw(){xb=!1}var V0=null;function uA(e){if(Q3&&Ut.observeMutations){var t=e.treeCallback,r=t===void 0?c0:t,n=e.nodeCallback,i=n===void 0?c0:n,a=e.pseudoElementsCallback,o=a===void 0?c0:a,l=e.observeMutationsRoot,s=l===void 0?$r:l;V0=new Q3(function(c){if(!xb){var p=Ko();_s(c).forEach(function(x){if(x.type==="childList"&&x.addedNodes.length>0&&!aA(x.addedNodes[0])&&(Ut.searchPseudoElements&&o(x.target),r(x.target)),x.type==="attributes"&&x.target.parentNode&&Ut.searchPseudoElements&&o(x.target.parentNode),x.type==="attributes"&&aA(x.target)&&~cL.indexOf(x.attributeName))if(x.attributeName==="class"&&XL(x.target)){var g=Qm(hb(x.target)),y=g.prefix,C=g.iconName;x.target.setAttribute(fb,y||p),C&&x.target.setAttribute(sb,C)}else QL(x.target)&&i(x.target)})}}),Ka&&V0.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function t$(){V0&&V0.disconnect()}function r$(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function n$(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Qm(hb(e));return i.prefix||(i.prefix=Ko()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=NL(i.prefix,e.innerText)||vb(i.prefix,nw(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function i$(e){var t=_s(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||nd()):(t["aria-hidden"]="true",t.focusable="false")),t}function a$(){return{iconName:null,title:null,titleId:null,prefix:null,transform:oa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function lA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=n$(e),n=r.iconName,i=r.prefix,a=r.rest,o=i$(e),l=aw("parseNodeAttributes",{},e),s=t.styleParser?r$(e):[];return It({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:oa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var o$=ji.styles;function _M(e){var t=Ut.autoReplaceSvg==="nest"?lA(e,{styleParser:!1}):lA(e);return~t.extra.classes.indexOf(rM)?Wa("generateLayersText",e,t):Wa("generateSvgReplacementMutation",e,t)}var Jo=new Set;cb.map(function(e){Jo.add("fa-".concat(e))});Object.keys(Jh[Ir]).map(Jo.add.bind(Jo));Object.keys(Jh[qr]).map(Jo.add.bind(Jo));Jo=Ed(Jo);function fA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ka)return Promise.resolve();var r=$r.documentElement.classList,n=function(x){return r.add("".concat(Z3,"-").concat(x))},i=function(x){return r.remove("".concat(Z3,"-").concat(x))},a=Ut.autoFetchSvg?Jo:cb.map(function(p){return"fa-".concat(p)}).concat(Object.keys(o$));a.includes("fa")||a.push("fa");var o=[".".concat(rM,":not([").concat(ol,"])")].concat(a.map(function(p){return".".concat(p,":not([").concat(ol,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=_s(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=yb.begin("onTree"),c=l.reduce(function(p,x){try{var g=_M(x);g&&p.push(g)}catch(y){tM||y.name==="MissingIcon"&&console.error(y)}return p},[]);return new Promise(function(p,x){Promise.all(c).then(function(g){yM(g,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),p()})}).catch(function(g){s(),x(g)})})}function u$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;_M(e).then(function(r){r&&yM([r],t)})}function l$(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:ow(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:ow(i||{})),e(n,It(It({},r),{},{mask:i}))}}var f$=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?oa:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,c=r.maskId,p=c===void 0?null:c,x=r.title,g=x===void 0?null:x,y=r.titleId,C=y===void 0?null:y,P=r.classes,b=P===void 0?[]:P,_=r.attributes,E=_===void 0?{}:_,k=r.styles,F=k===void 0?{}:k;if(t){var I=t.prefix,$=t.iconName,ne=t.icon;return Zm(It({type:"icon"},t),function(){return ul("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(g?E["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(C||nd()):(E["aria-hidden"]="true",E.focusable="false")),gb({icons:{main:uw(ne),mask:s?uw(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:I,iconName:$,transform:It(It({},oa),i),symbol:o,title:g,maskId:p,titleId:C,extra:{attributes:E,styles:F,classes:b}})})}},s$={mixout:function(){return{icon:l$(f$)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=fA,r.nodeCallback=u$,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?$r:n,a=r.callback,o=a===void 0?function(){}:a;return fA(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,c=n.symbol,p=n.mask,x=n.maskId,g=n.extra;return new Promise(function(y,C){Promise.all([lw(i,l),p.iconName?lw(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(P){var b=ub(P,2),_=b[0],E=b[1];y([r,gb({icons:{main:_,mask:E},prefix:l,iconName:i,transform:s,symbol:c,maskId:x,title:a,titleId:o,extra:g,watchable:!0})])}).catch(C)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=Ym(l);s.length>0&&(i.style=s);var c;return db(o)&&(c=Wa("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},c$={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 Zm({type:"layer"},function(){ul("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ut.cssPrefix,"-layers")].concat(Ed(a)).join(" ")},children:o}]})}}}},h$={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,c=s===void 0?{}:s,p=n.styles,x=p===void 0?{}:p;return Zm({type:"counter",content:r},function(){return ul("beforeDOMElementCreation",{content:r,params:n}),qL({content:r.toString(),title:a,extra:{attributes:c,styles:x,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(Ed(l))}})})}}}},d$={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?oa:i,o=n.title,l=o===void 0?null:o,s=n.classes,c=s===void 0?[]:s,p=n.attributes,x=p===void 0?{}:p,g=n.styles,y=g===void 0?{}:g;return Zm({type:"text",content:r},function(){return ul("beforeDOMElementCreation",{content:r,params:n}),nA({content:r,transform:It(It({},oa),a),title:l,extra:{attributes:x,styles:y,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(Ed(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(Kk){var c=parseInt(getComputedStyle(r).fontSize,10),p=r.getBoundingClientRect();l=p.width/c,s=p.height/c}return Ut.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,nA({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},p$=new RegExp('"',"ug"),sA=[1105920,1112319];function v$(e){var t=e.replace(p$,""),r=OL(t,0),n=r>=sA[0]&&r<=sA[1],i=t.length===2?t[0]===t[1]:!1;return{value:nw(i?t[0]:t),isSecondary:n||i}}function cA(e,t){var r="".concat(nL).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=_s(e.children),o=a.filter(function(ne){return ne.getAttribute(rw)===t})[0],l=Zo.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(lL),c=l.getPropertyValue("font-weight"),p=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&p!=="none"&&p!==""){var x=l.getPropertyValue("content"),g=~["Sharp"].indexOf(s[2])?qr:Ir,y=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?ed[g][s[2].toLowerCase()]:fL[g][c],C=v$(x),P=C.value,b=C.isSecondary,_=s[0].startsWith("FontAwesome"),E=vb(y,P),k=E;if(_){var F=IL(P);F.iconName&&F.prefix&&(E=F.iconName,y=F.prefix)}if(E&&!b&&(!o||o.getAttribute(fb)!==y||o.getAttribute(sb)!==k)){e.setAttribute(r,k),o&&e.removeChild(o);var I=a$(),$=I.extra;$.attributes[rw]=t,lw(E,y).then(function(ne){var V=gb(It(It({},I),{},{icons:{main:ne,mask:mb()},prefix:y,iconName:k,extra:$,watchable:!0})),ae=$r.createElement("svg");t==="::before"?e.insertBefore(ae,e.firstChild):e.appendChild(ae),ae.outerHTML=V.map(function(Ce){return Td(Ce)}).join(`
802
- `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function m$(e){return Promise.all([cA(e,"::before"),cA(e,"::after")])}function g$(e){return e.parentNode!==document.head&&!~aL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(rw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function hA(e){if(Ka)return new Promise(function(t,r){var n=_s(e.querySelectorAll("*")).filter(g$).map(m$),i=yb.begin("searchPseudoElements");xM(),Promise.all(n).then(function(){i(),sw(),t()}).catch(function(){i(),sw(),r()})})}var y$={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=hA,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?$r:n;Ut.searchPseudoElements&&hA(i)}}},dA=!1,x$={mixout:function(){return{dom:{unwatch:function(){xM(),dA=!0}}}},hooks:function(){return{bootstrap:function(){uA(aw("mutationObserverCallbacks",{}))},noAuto:function(){t$()},watch:function(r){var n=r.observeMutationsRoot;dA?sw():uA(aw("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},pA=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},_$={mixout:function(){return{parse:{transform:function(r){return pA(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=pA(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),x={transform:"".concat(s," ").concat(c," ").concat(p)},g={transform:"translate(".concat(o/2*-1," -256)")},y={outer:l,inner:x,path:g};return{tag:"g",attributes:It({},y.outer),children:[{tag:"g",attributes:It({},y.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:It(It({},n.icon.attributes),y.path)}]}]}}}},U1={x:0,y:0,width:"100%",height:"100%"};function vA(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 w$(e){return e.tag==="g"?e.children:[e]}var b$={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Qm(i.split(" ").map(function(o){return o.trim()})):mb();return a.prefix||(a.prefix=Ko()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,c=a.width,p=a.icon,x=o.width,g=o.icon,y=_L({transform:s,containerWidth:x,iconWidth:c}),C={tag:"rect",attributes:It(It({},U1),{},{fill:"white"})},P=p.children?{children:p.children.map(vA)}:{},b={tag:"g",attributes:It({},y.inner),children:[vA(It({tag:p.tag,attributes:It(It({},p.attributes),y.path)},P))]},_={tag:"g",attributes:It({},y.outer),children:[b]},E="mask-".concat(l||nd()),k="clip-".concat(l||nd()),F={tag:"mask",attributes:It(It({},U1),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[C,_]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:w$(g)},F]};return n.push(I,{tag:"rect",attributes:It({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(E,")")},U1)}),{children:n,attributes:i}}}},S$={provides:function(t){var r=!1;Zo.matchMedia&&(r=Zo.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:It(It({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=It(It({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:It(It({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:It(It({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:It(It({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:It(It({},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:It(It({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:It(It({},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:It(It({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},E$={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}}}},A$=[SL,s$,c$,h$,d$,y$,x$,_$,b$,S$,E$];DL(A$,{mixoutsTo:hi});hi.noAuto;hi.config;hi.library;hi.dom;var cw=hi.parse;hi.findIconDefinition;hi.toHtml;var T$=hi.icon;hi.layer;hi.text;hi.counter;function mA(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 No(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(r),!0).forEach(function(n){Ff(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y0(e){return Y0=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},Y0(e)}function Ff(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C$(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 O$(e,t){if(e==null)return{};var r=C$(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 hw(e){return k$(e)||M$(e)||R$(e)||P$()}function k$(e){if(Array.isArray(e))return dw(e)}function M$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function R$(e,t){if(e){if(typeof e=="string")return dw(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 dw(e,t)}}function dw(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 P$(){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 F$(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,p=e.spinReverse,x=e.pulse,g=e.fixedWidth,y=e.inverse,C=e.border,P=e.listItem,b=e.flip,_=e.size,E=e.rotation,k=e.pull,F=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":p,"fa-spin-pulse":c,"fa-pulse":x,"fa-fw":g,"fa-inverse":y,"fa-border":C,"fa-li":P,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Ff(t,"fa-".concat(_),typeof _<"u"&&_!==null),Ff(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Ff(t,"fa-pull-".concat(k),typeof k<"u"&&k!==null),Ff(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(F).map(function(I){return F[I]?I:null}).filter(function(I){return I})}function N$(e){return e=e-0,e===e}function wM(e){return N$(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var I$=["style"];function L$(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $$(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=wM(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[L$(i)]=a:t[i]=a,t},{})}function bM(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 bM(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var p=t.attributes[c];switch(c){case"class":s.attrs.className=p,delete t.attributes.class;break;case"style":s.attrs.style=$$(p);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=p:s.attrs[wM(c)]=p}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=O$(r,I$);return i.attrs.style=No(No({},i.attrs.style),o),e.apply(void 0,[t.tag,No(No({},i.attrs),l)].concat(hw(n)))}var SM=!1;try{SM=!0}catch{}function D$(){if(!SM&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function gA(e){if(e&&Y0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(cw.icon)return cw.icon(e);if(e===null)return null;if(e&&Y0(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 j1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ff({},e,t):{}}var Km=Tn.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,c=gA(r),p=j1("classes",[].concat(hw(F$(e)),hw(a.split(" ")))),x=j1("transform",typeof e.transform=="string"?cw.transform(e.transform):e.transform),g=j1("mask",gA(n)),y=T$(c,No(No(No(No({},p),x),g),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!y)return D$("Could not find icon",c),null;var C=y.abstract,P={ref:t};return Object.keys(e).forEach(function(b){Km.defaultProps.hasOwnProperty(b)||(P[b]=e[b])}),B$(C[0],P)});Km.displayName="FontAwesomeIcon";Km.propTypes={beat:fr.bool,border:fr.bool,beatFade:fr.bool,bounce:fr.bool,className:fr.string,fade:fr.bool,flash:fr.bool,mask:fr.oneOfType([fr.object,fr.array,fr.string]),maskId:fr.string,fixedWidth:fr.bool,inverse:fr.bool,flip:fr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:fr.oneOfType([fr.object,fr.array,fr.string]),listItem:fr.bool,pull:fr.oneOf(["right","left"]),pulse:fr.bool,rotation:fr.oneOf([0,90,180,270]),shake:fr.bool,size:fr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fr.bool,spinPulse:fr.bool,spinReverse:fr.bool,symbol:fr.oneOfType([fr.bool,fr.string]),title:fr.string,titleId:fr.string,transform:fr.oneOfType([fr.string,fr.object]),swapOpacity:fr.bool};Km.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 B$=bM.bind(null,Tn.createElement),pw={},z$={get exports(){return pw},set exports(e){pw=e}},vw={},U$={get exports(){return vw},set exports(e){vw=e}},d0=1;function j$(){return d0=(d0*9301+49297)%233280,d0/233280}function G$(e){d0=e}var H$={nextValue:j$,seed:G$},mw=H$,ju="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Io,yA,dh;function gw(){dh=!1}function EM(e){if(!e){Io!==ju&&(Io=ju,gw());return}if(e!==Io){if(e.length!==ju.length)throw new Error("Custom alphabet for shortid must be "+ju.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+ju.length+" unique characters. These characters were not unique: "+t.join(", "));Io=e,gw()}}function q$(e){return EM(e),Io}function W$(e){mw.seed(e),yA!==e&&(gw(),yA=e)}function V$(){Io||EM(ju);for(var e=Io.split(""),t=[],r=mw.nextValue(),n;e.length>0;)r=mw.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function AM(){return dh||(dh=V$(),dh)}function Y$(e){var t=AM();return t[e]}function X$(){return Io||ju}var _b={get:X$,characters:q$,seed:W$,lookup:Y$,shuffled:AM},G1=typeof window=="object"&&(window.crypto||window.msCrypto),yw;!G1||!G1.getRandomValues?yw=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:yw=function(e){return G1.getRandomValues(new Uint8Array(e))};var Q$=yw,Z$=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},K$=_b,J$=Q$,eD=Z$;function tD(e){for(var t=0,r,n="";!r;)n=n+eD(J$,K$.get(),1),r=e<Math.pow(16,t+1),t++;return n}var rD=tD,Mv=rD,nD=1567752802062,iD=7,Rv,xA;function aD(e){var t="",r=Math.floor((Date.now()-nD)*.001);return r===xA?Rv++:(Rv=0,xA=r),t=t+Mv(iD),t=t+Mv(e),Rv>0&&(t=t+Mv(Rv)),t=t+Mv(r),t}var oD=aD,uD=_b;function lD(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+uD.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var fD=lD;(function(e){var t=_b,r=oD,n=fD,i=0;function a(c){return t.seed(c),e.exports}function o(c){return i=c,e.exports}function l(c){return c!==void 0&&t.characters(c),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(U$);(function(e){e.exports=vw})(z$);const lK=Cm(pw);function id(e){return id=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},id(e)}function sD(e,t){if(id(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(id(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cD(e){var t=sD(e,"string");return id(t)==="symbol"?t:String(t)}function hD(e,t,r){return t=cD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _A(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 wA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(r),!0).forEach(function(n){hD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var bA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),H1=function(){return Math.random().toString(36).substring(7).split("").join(".")},ad={INIT:"@@redux/INIT"+H1(),REPLACE:"@@redux/REPLACE"+H1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+H1()}};function dD(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function wb(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(En(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(En(1));return r(wb)(e,t)}if(typeof e!="function")throw new Error(En(2));var i=e,a=t,o=[],l=o,s=!1;function c(){l===o&&(l=o.slice())}function p(){if(s)throw new Error(En(3));return a}function x(P){if(typeof P!="function")throw new Error(En(4));if(s)throw new Error(En(5));var b=!0;return c(),l.push(P),function(){if(b){if(s)throw new Error(En(6));b=!1,c();var E=l.indexOf(P);l.splice(E,1),o=null}}}function g(P){if(!dD(P))throw new Error(En(7));if(typeof P.type>"u")throw new Error(En(8));if(s)throw new Error(En(9));try{s=!0,a=i(a,P)}finally{s=!1}for(var b=o=l,_=0;_<b.length;_++){var E=b[_];E()}return P}function y(P){if(typeof P!="function")throw new Error(En(10));i=P,g({type:ad.REPLACE})}function C(){var P,b=x;return P={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(En(11));function k(){E.next&&E.next(p())}k();var F=b(k);return{unsubscribe:F}}},P[bA]=function(){return this},P}return g({type:ad.INIT}),n={dispatch:g,subscribe:x,getState:p,replaceReducer:y},n[bA]=C,n}var pD=wb;function vD(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ad.INIT});if(typeof n>"u")throw new Error(En(12));if(typeof r(void 0,{type:ad.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(En(13))})}function mD(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{vD(r)}catch(l){o=l}return function(s,c){if(s===void 0&&(s={}),o)throw o;for(var p=!1,x={},g=0;g<a.length;g++){var y=a[g],C=r[y],P=s[y],b=C(P,c);if(typeof b>"u")throw c&&c.type,new Error(En(14));x[y]=b,p=p||b!==P}return p=p||a.length!==Object.keys(s).length,p?x:s}}function SA(e,t){return function(){return t(e.apply(this,arguments))}}function gD(e,t){if(typeof e=="function")return SA(e,t);if(typeof e!="object"||e===null)throw new Error(En(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=SA(i,t))}return r}function TM(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function yD(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(En(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(s){return s(o)});return a=TM.apply(void 0,l)(i.dispatch),wA(wA({},i),{},{dispatch:a})}}}const fK=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:ad,applyMiddleware:yD,bindActionCreators:gD,combineReducers:mD,compose:TM,createStore:wb,legacy_createStore:pD},Symbol.toStringTag,{value:"Module"}));var ca=Tn.createContext(null);function xD(e){e()}var CM=xD,_D=function(t){return CM=t},wD=function(){return CM};function bD(){var e=wD(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var EA={notify:function(){},get:function(){return[]}};function bb(e,t){var r,n=EA;function i(x){return s(),n.subscribe(x)}function a(){n.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=bD())}function c(){r&&(r(),r=void 0,n.clear(),n=EA)}var p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return p}var X0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?vr.useLayoutEffect:vr.useEffect;function SD(e){var t=e.store,r=e.context,n=e.children,i=vr.useMemo(function(){var l=bb(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=vr.useMemo(function(){return t.getState()},[t]);X0(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||ca;return Tn.createElement(o.Provider,{value:i},n)}var xw={},ED={get exports(){return xw},set exports(e){xw=e}},Sr={};/** @license React v16.13.1
800
+ }`;function lM(){var e=tM,t=rM,r=Ut.cssPrefix,n=Ut.replacementClass,i=EL;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var eA=!1;function B1(){Ut.autoAddCss&&!eA&&(xL(lM()),eA=!0)}var AL={mixout:function(){return{dom:{css:lM,insertCss:B1}}},hooks:function(){return{beforeDOMElementCreation:function(){B1()},beforeI2svg:function(){B1()}}}},qa=Zo||{};qa[Ha]||(qa[Ha]={});qa[Ha].styles||(qa[Ha].styles={});qa[Ha].hooks||(qa[Ha].hooks={});qa[Ha].shims||(qa[Ha].shims=[]);var ji=qa[Ha],fM=[],CL=function e(){$r.removeEventListener("DOMContentLoaded",e),V0=1,fM.map(function(t){return t()})},V0=!1;Ka&&(V0=($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState),V0||$r.addEventListener("DOMContentLoaded",CL));function TL(e){Ka&&(V0?setTimeout(e,0):fM.push(e))}function Cd(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"?uM(e):"<".concat(t," ").concat(wL(n),">").concat(a.map(Cd).join(""),"</").concat(t,">")}function tA(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var OL=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},z1=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?OL(r,i):r,s,c,p;for(n===void 0?(s=1,p=t[a[0]]):(s=0,p=n);s<o;s++)c=a[s],p=l(p,t[c],c,t);return p};function kL(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 iw(e){var t=kL(e);return t.length===1?t[0].toString(16):null}function ML(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 rA(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 aw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=rA(t);typeof ji.hooks.addPack=="function"&&!i?ji.hooks.addPack(e,rA(t)):ji.styles[e]=It(It({},ji.styles[e]||{}),a),e==="fas"&&aw("fa",t)}var Tv,Ov,kv,Rf=ji.styles,RL=ji.shims,PL=(Tv={},sn(Tv,Ir,Object.values(td[Ir])),sn(Tv,qr,Object.values(td[qr])),Tv),mb=null,sM={},cM={},hM={},dM={},pM={},FL=(Ov={},sn(Ov,Ir,Object.keys(Jh[Ir])),sn(Ov,qr,Object.keys(Jh[qr])),Ov);function NL(e){return~pL.indexOf(e)}function IL(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!NL(i)?i:null}var vM=function(){var t=function(a){return z1(Rf,function(o,l,s){return o[s]=z1(l,a,{}),o},{})};sM=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),cM=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),pM=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Rf||Ut.autoFetchSvg,n=z1(RL,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});hM=n.names,dM=n.unicodes,mb=Qm(Ut.styleDefault,{family:Ut.familyDefault})};yL(function(e){mb=Qm(e.styleDefault,{family:Ut.familyDefault})});vM();function gb(e,t){return(sM[e]||{})[t]}function LL(e,t){return(cM[e]||{})[t]}function Qu(e,t){return(pM[e]||{})[t]}function mM(e){return hM[e]||{prefix:null,iconName:null}}function $L(e){var t=dM[e],r=gb("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Ko(){return mb}var yb=function(){return{prefix:null,iconName:null,rest:[]}};function Qm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Ir:r,i=Jh[n][e],a=ed[n][e]||ed[n][i],o=e in ji.styles?e:null;return a||o||null}var nA=(kv={},sn(kv,Ir,Object.keys(td[Ir])),sn(kv,qr,Object.keys(td[qr])),kv);function Zm(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},sn(t,Ir,"".concat(Ut.cssPrefix,"-").concat(Ir)),sn(t,qr,"".concat(Ut.cssPrefix,"-").concat(qr)),t),o=null,l=Ir;(e.includes(a[Ir])||e.some(function(c){return nA[Ir].includes(c)}))&&(l=Ir),(e.includes(a[qr])||e.some(function(c){return nA[qr].includes(c)}))&&(l=qr);var s=e.reduce(function(c,p){var x=IL(Ut.cssPrefix,p);if(Rf[p]?(p=PL[l].includes(p)?lL[l][p]:p,o=p,c.prefix=p):FL[l].indexOf(p)>-1?(o=p,c.prefix=Qm(p,{family:l})):x?c.iconName=x:p!==Ut.replacementClass&&p!==a[Ir]&&p!==a[qr]&&c.rest.push(p),!i&&c.prefix&&c.iconName){var g=o==="fa"?mM(c.iconName):{},y=Qu(c.prefix,c.iconName);g.prefix&&(o=null),c.iconName=g.iconName||y||c.iconName,c.prefix=g.prefix||c.prefix,c.prefix==="far"&&!Rf.far&&Rf.fas&&!Ut.autoFetchSvg&&(c.prefix="fas")}return c},yb());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===qr&&(Rf.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=Qu(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=Ko()||"fas"),s}var DL=function(){function e(){QI(this,e),this.definitions={}}return ZI(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=It(It({},r.definitions[l]||{}),o[l]),aw(l,o[l]);var s=td[Ir][l];s&&aw(s,o[l]),vM()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,c=o.icon,p=c[2];r[l]||(r[l]={}),p.length>0&&p.forEach(function(x){typeof x=="string"&&(r[l][x]=c)}),r[l][s]=c}),r}}]),e}(),iA=[],Pf={},qf={},BL=Object.keys(qf);function zL(e,t){var r=t.mixoutsTo;return iA=e,Pf={},Object.keys(qf).forEach(function(n){BL.indexOf(n)===-1&&delete qf[n]}),iA.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),W0(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Pf[o]||(Pf[o]=[]),Pf[o].push(a[o])})}n.provides&&n.provides(qf)}),r}function ow(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=Pf[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function ul(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=Pf[e]||[];i.forEach(function(a){a.apply(null,r)})}function Wa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qf[e]?qf[e].apply(null,t):void 0}function uw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Ko();if(t)return t=Qu(r,t)||t,tA(gM.definitions,r,t)||tA(ji.styles,r,t)}var gM=new DL,UL=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,ul("noAuto")},jL={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ka?(ul("beforeI2svg",t),Wa("pseudoElements2svg",t),Wa("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,TL(function(){HL({autoReplaceSvgRoot:r}),ul("watch",t)})}},GL={icon:function(t){if(t===null)return null;if(W0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Qu(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=Qm(t[0]);return{prefix:n,iconName:Qu(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(fL))){var i=Zm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ko(),iconName:Qu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Ko();return{prefix:a,iconName:Qu(a,t)||t}}}},hi={noAuto:UL,config:Ut,dom:jL,parse:GL,library:gM,findIconDefinition:uw,toHtml:Cd},HL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?$r:r;(Object.keys(ji.styles).length>0||Ut.autoFetchSvg)&&Ka&&Ut.autoReplaceSvg&&hi.dom.i2svg({node:n})};function Km(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Cd(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Ka){var n=$r.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function qL(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(vb(o)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=Xm(It(It({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function WL(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Ut.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:It(It({},i),{},{id:o}),children:n}]}]}function xb(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,c=e.maskId,p=e.titleId,x=e.extra,g=e.watchable,y=g===void 0?!1:g,T=n.found?n:r,P=T.width,b=T.height,_=i==="fak",E=[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(" "),k={children:[],attributes:It(It({},x.attributes),{},{"data-prefix":i,"data-icon":a,class:E,role:x.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(P," ").concat(b)})},F=_&&!~x.classes.indexOf("fa-fw")?{width:"".concat(P/b*16*.0625,"em")}:{};y&&(k.attributes[ol]=""),s&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(p||nd())},children:[s]}),delete k.attributes.title);var I=It(It({},k),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:o,symbol:l,styles:It(It({},F),x.styles)}),$=n.found&&r.found?Wa("generateAbstractMask",I)||{children:[],attributes:{}}:Wa("generateAbstractIcon",I)||{children:[],attributes:{}},ne=$.children,V=$.attributes;return I.children=ne,I.attributes=V,l?WL(I):qL(I)}function aA(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,c=It(It(It({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(c[ol]="");var p=It({},o.styles);vb(i)&&(p.transform=SL({transform:i,startCentered:!0,width:r,height:n}),p["-webkit-transform"]=p.transform);var x=Xm(p);x.length>0&&(c.style=x);var g=[];return g.push({tag:"span",attributes:c,children:[t]}),a&&g.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),g}function VL(e){var t=e.content,r=e.title,n=e.extra,i=It(It(It({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Xm(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var U1=ji.styles;function lw(e){var t=e[0],r=e[1],n=e.slice(4),i=fb(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Xu.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var YL={found:!1,width:512,height:512};function XL(e,t){!nM&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function fw(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=Ko()),new Promise(function(n,i){if(Wa("missingIconAbstract"),r==="fa"){var a=mM(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&U1[t]&&U1[t][e]){var o=U1[t][e];return n(lw(o))}XL(e,t),n(It(It({},YL),{},{icon:Ut.showMissingIcons&&e?Wa("missingIconAbstract")||{}:{}}))})}var oA=function(){},sw=Ut.measurePerformance&&wv&&wv.mark&&wv.measure?wv:{mark:oA,measure:oA},hh='FA "6.2.1"',QL=function(t){return sw.mark("".concat(hh," ").concat(t," begins")),function(){return yM(t)}},yM=function(t){sw.mark("".concat(hh," ").concat(t," ends")),sw.measure("".concat(hh," ").concat(t),"".concat(hh," ").concat(t," begins"),"".concat(hh," ").concat(t," ends"))},_b={begin:QL,end:yM},h0=function(){};function uA(e){var t=e.getAttribute?e.getAttribute(ol):null;return typeof t=="string"}function ZL(e){var t=e.getAttribute?e.getAttribute(cb):null,r=e.getAttribute?e.getAttribute(hb):null;return t&&r}function KL(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function JL(){if(Ut.autoReplaceSvg===!0)return d0.replace;var e=d0[Ut.autoReplaceSvg];return e||d0.replace}function e$(e){return $r.createElementNS("http://www.w3.org/2000/svg",e)}function t$(e){return $r.createElement(e)}function xM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?e$:t$:r;if(typeof e=="string")return $r.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(xM(o,{ceFn:n}))}),i}function r$(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var d0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(xM(i),r)}),r.getAttribute(ol)===null&&Ut.keepOriginalSource){var n=$r.createComment(r$(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~pb(r).indexOf(Ut.replacementClass))return d0.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 o=n.map(function(l){return Cd(l)}).join(`
801
+ `);r.setAttribute(ol,""),r.innerHTML=o}};function lA(e){e()}function _M(e,t){var r=typeof t=="function"?t:h0;if(e.length===0)r();else{var n=lA;Ut.mutateApproach===oL&&(n=Zo.requestAnimationFrame||lA),n(function(){var i=JL(),a=_b.begin("mutate");e.map(i),a(),r()})}}var wb=!1;function wM(){wb=!0}function cw(){wb=!1}var Y0=null;function fA(e){if(K3&&Ut.observeMutations){var t=e.treeCallback,r=t===void 0?h0:t,n=e.nodeCallback,i=n===void 0?h0:n,a=e.pseudoElementsCallback,o=a===void 0?h0:a,l=e.observeMutationsRoot,s=l===void 0?$r:l;Y0=new K3(function(c){if(!wb){var p=Ko();_s(c).forEach(function(x){if(x.type==="childList"&&x.addedNodes.length>0&&!uA(x.addedNodes[0])&&(Ut.searchPseudoElements&&o(x.target),r(x.target)),x.type==="attributes"&&x.target.parentNode&&Ut.searchPseudoElements&&o(x.target.parentNode),x.type==="attributes"&&uA(x.target)&&~dL.indexOf(x.attributeName))if(x.attributeName==="class"&&ZL(x.target)){var g=Zm(pb(x.target)),y=g.prefix,T=g.iconName;x.target.setAttribute(cb,y||p),T&&x.target.setAttribute(hb,T)}else KL(x.target)&&i(x.target)})}}),Ka&&Y0.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function n$(){Y0&&Y0.disconnect()}function i$(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function a$(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Zm(pb(e));return i.prefix||(i.prefix=Ko()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=LL(i.prefix,e.innerText)||gb(i.prefix,iw(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function o$(e){var t=_s(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||nd()):(t["aria-hidden"]="true",t.focusable="false")),t}function u$(){return{iconName:null,title:null,titleId:null,prefix:null,transform:oa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function sA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=a$(e),n=r.iconName,i=r.prefix,a=r.rest,o=o$(e),l=ow("parseNodeAttributes",{},e),s=t.styleParser?i$(e):[];return It({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:oa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var l$=ji.styles;function bM(e){var t=Ut.autoReplaceSvg==="nest"?sA(e,{styleParser:!1}):sA(e);return~t.extra.classes.indexOf(iM)?Wa("generateLayersText",e,t):Wa("generateSvgReplacementMutation",e,t)}var Jo=new Set;db.map(function(e){Jo.add("fa-".concat(e))});Object.keys(Jh[Ir]).map(Jo.add.bind(Jo));Object.keys(Jh[qr]).map(Jo.add.bind(Jo));Jo=Ed(Jo);function cA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ka)return Promise.resolve();var r=$r.documentElement.classList,n=function(x){return r.add("".concat(J3,"-").concat(x))},i=function(x){return r.remove("".concat(J3,"-").concat(x))},a=Ut.autoFetchSvg?Jo:db.map(function(p){return"fa-".concat(p)}).concat(Object.keys(l$));a.includes("fa")||a.push("fa");var o=[".".concat(iM,":not([").concat(ol,"])")].concat(a.map(function(p){return".".concat(p,":not([").concat(ol,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=_s(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=_b.begin("onTree"),c=l.reduce(function(p,x){try{var g=bM(x);g&&p.push(g)}catch(y){nM||y.name==="MissingIcon"&&console.error(y)}return p},[]);return new Promise(function(p,x){Promise.all(c).then(function(g){_M(g,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),p()})}).catch(function(g){s(),x(g)})})}function f$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bM(e).then(function(r){r&&_M([r],t)})}function s$(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:uw(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:uw(i||{})),e(n,It(It({},r),{},{mask:i}))}}var c$=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?oa:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,c=r.maskId,p=c===void 0?null:c,x=r.title,g=x===void 0?null:x,y=r.titleId,T=y===void 0?null:y,P=r.classes,b=P===void 0?[]:P,_=r.attributes,E=_===void 0?{}:_,k=r.styles,F=k===void 0?{}:k;if(t){var I=t.prefix,$=t.iconName,ne=t.icon;return Km(It({type:"icon"},t),function(){return ul("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(g?E["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(T||nd()):(E["aria-hidden"]="true",E.focusable="false")),xb({icons:{main:lw(ne),mask:s?lw(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:I,iconName:$,transform:It(It({},oa),i),symbol:o,title:g,maskId:p,titleId:T,extra:{attributes:E,styles:F,classes:b}})})}},h$={mixout:function(){return{icon:s$(c$)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=cA,r.nodeCallback=f$,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?$r:n,a=r.callback,o=a===void 0?function(){}:a;return cA(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,c=n.symbol,p=n.mask,x=n.maskId,g=n.extra;return new Promise(function(y,T){Promise.all([fw(i,l),p.iconName?fw(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(P){var b=fb(P,2),_=b[0],E=b[1];y([r,xb({icons:{main:_,mask:E},prefix:l,iconName:i,transform:s,symbol:c,maskId:x,title:a,titleId:o,extra:g,watchable:!0})])}).catch(T)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=Xm(l);s.length>0&&(i.style=s);var c;return vb(o)&&(c=Wa("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},d$={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 Km({type:"layer"},function(){ul("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ut.cssPrefix,"-layers")].concat(Ed(a)).join(" ")},children:o}]})}}}},p$={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,c=s===void 0?{}:s,p=n.styles,x=p===void 0?{}:p;return Km({type:"counter",content:r},function(){return ul("beforeDOMElementCreation",{content:r,params:n}),VL({content:r.toString(),title:a,extra:{attributes:c,styles:x,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(Ed(l))}})})}}}},v$={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?oa:i,o=n.title,l=o===void 0?null:o,s=n.classes,c=s===void 0?[]:s,p=n.attributes,x=p===void 0?{}:p,g=n.styles,y=g===void 0?{}:g;return Km({type:"text",content:r},function(){return ul("beforeDOMElementCreation",{content:r,params:n}),aA({content:r,transform:It(It({},oa),a),title:l,extra:{attributes:x,styles:y,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(Ed(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(eM){var c=parseInt(getComputedStyle(r).fontSize,10),p=r.getBoundingClientRect();l=p.width/c,s=p.height/c}return Ut.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,aA({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},m$=new RegExp('"',"ug"),hA=[1105920,1112319];function g$(e){var t=e.replace(m$,""),r=ML(t,0),n=r>=hA[0]&&r<=hA[1],i=t.length===2?t[0]===t[1]:!1;return{value:iw(i?t[0]:t),isSecondary:n||i}}function dA(e,t){var r="".concat(aL).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=_s(e.children),o=a.filter(function(ne){return ne.getAttribute(nw)===t})[0],l=Zo.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(sL),c=l.getPropertyValue("font-weight"),p=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&p!=="none"&&p!==""){var x=l.getPropertyValue("content"),g=~["Sharp"].indexOf(s[2])?qr:Ir,y=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?ed[g][s[2].toLowerCase()]:cL[g][c],T=g$(x),P=T.value,b=T.isSecondary,_=s[0].startsWith("FontAwesome"),E=gb(y,P),k=E;if(_){var F=$L(P);F.iconName&&F.prefix&&(E=F.iconName,y=F.prefix)}if(E&&!b&&(!o||o.getAttribute(cb)!==y||o.getAttribute(hb)!==k)){e.setAttribute(r,k),o&&e.removeChild(o);var I=u$(),$=I.extra;$.attributes[nw]=t,fw(E,y).then(function(ne){var V=xb(It(It({},I),{},{icons:{main:ne,mask:yb()},prefix:y,iconName:k,extra:$,watchable:!0})),ae=$r.createElement("svg");t==="::before"?e.insertBefore(ae,e.firstChild):e.appendChild(ae),ae.outerHTML=V.map(function(Te){return Cd(Te)}).join(`
802
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function y$(e){return Promise.all([dA(e,"::before"),dA(e,"::after")])}function x$(e){return e.parentNode!==document.head&&!~uL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(nw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function pA(e){if(Ka)return new Promise(function(t,r){var n=_s(e.querySelectorAll("*")).filter(x$).map(y$),i=_b.begin("searchPseudoElements");wM(),Promise.all(n).then(function(){i(),cw(),t()}).catch(function(){i(),cw(),r()})})}var _$={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=pA,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?$r:n;Ut.searchPseudoElements&&pA(i)}}},vA=!1,w$={mixout:function(){return{dom:{unwatch:function(){wM(),vA=!0}}}},hooks:function(){return{bootstrap:function(){fA(ow("mutationObserverCallbacks",{}))},noAuto:function(){n$()},watch:function(r){var n=r.observeMutationsRoot;vA?cw():fA(ow("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},mA=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},b$={mixout:function(){return{parse:{transform:function(r){return mA(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=mA(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),x={transform:"".concat(s," ").concat(c," ").concat(p)},g={transform:"translate(".concat(o/2*-1," -256)")},y={outer:l,inner:x,path:g};return{tag:"g",attributes:It({},y.outer),children:[{tag:"g",attributes:It({},y.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:It(It({},n.icon.attributes),y.path)}]}]}}}},j1={x:0,y:0,width:"100%",height:"100%"};function gA(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 S$(e){return e.tag==="g"?e.children:[e]}var E$={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Zm(i.split(" ").map(function(o){return o.trim()})):yb();return a.prefix||(a.prefix=Ko()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,c=a.width,p=a.icon,x=o.width,g=o.icon,y=bL({transform:s,containerWidth:x,iconWidth:c}),T={tag:"rect",attributes:It(It({},j1),{},{fill:"white"})},P=p.children?{children:p.children.map(gA)}:{},b={tag:"g",attributes:It({},y.inner),children:[gA(It({tag:p.tag,attributes:It(It({},p.attributes),y.path)},P))]},_={tag:"g",attributes:It({},y.outer),children:[b]},E="mask-".concat(l||nd()),k="clip-".concat(l||nd()),F={tag:"mask",attributes:It(It({},j1),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[T,_]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:S$(g)},F]};return n.push(I,{tag:"rect",attributes:It({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(E,")")},j1)}),{children:n,attributes:i}}}},A$={provides:function(t){var r=!1;Zo.matchMedia&&(r=Zo.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:It(It({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=It(It({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:It(It({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:It(It({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:It(It({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:It(It({},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:It(It({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:It(It({},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:It(It({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},C$={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}}}},T$=[AL,h$,d$,p$,v$,_$,w$,b$,E$,A$,C$];zL(T$,{mixoutsTo:hi});hi.noAuto;hi.config;hi.library;hi.dom;var hw=hi.parse;hi.findIconDefinition;hi.toHtml;var O$=hi.icon;hi.layer;hi.text;hi.counter;function yA(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 No(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(r),!0).forEach(function(n){Ff(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X0(e){return X0=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},X0(e)}function Ff(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(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 M$(e,t){if(e==null)return{};var r=k$(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 dw(e){return R$(e)||P$(e)||F$(e)||N$()}function R$(e){if(Array.isArray(e))return pw(e)}function P$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F$(e,t){if(e){if(typeof e=="string")return pw(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 pw(e,t)}}function pw(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 N$(){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 I$(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,p=e.spinReverse,x=e.pulse,g=e.fixedWidth,y=e.inverse,T=e.border,P=e.listItem,b=e.flip,_=e.size,E=e.rotation,k=e.pull,F=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":p,"fa-spin-pulse":c,"fa-pulse":x,"fa-fw":g,"fa-inverse":y,"fa-border":T,"fa-li":P,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Ff(t,"fa-".concat(_),typeof _<"u"&&_!==null),Ff(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Ff(t,"fa-pull-".concat(k),typeof k<"u"&&k!==null),Ff(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(F).map(function(I){return F[I]?I:null}).filter(function(I){return I})}function L$(e){return e=e-0,e===e}function SM(e){return L$(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var $$=["style"];function D$(e){return e.charAt(0).toUpperCase()+e.slice(1)}function B$(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=SM(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[D$(i)]=a:t[i]=a,t},{})}function EM(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 EM(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var p=t.attributes[c];switch(c){case"class":s.attrs.className=p,delete t.attributes.class;break;case"style":s.attrs.style=B$(p);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=p:s.attrs[SM(c)]=p}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=M$(r,$$);return i.attrs.style=No(No({},i.attrs.style),o),e.apply(void 0,[t.tag,No(No({},i.attrs),l)].concat(dw(n)))}var AM=!1;try{AM=!0}catch{}function z$(){if(!AM&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function xA(e){if(e&&X0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(hw.icon)return hw.icon(e);if(e===null)return null;if(e&&X0(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 G1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ff({},e,t):{}}var Jm=Cn.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,c=xA(r),p=G1("classes",[].concat(dw(I$(e)),dw(a.split(" ")))),x=G1("transform",typeof e.transform=="string"?hw.transform(e.transform):e.transform),g=G1("mask",xA(n)),y=O$(c,No(No(No(No({},p),x),g),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!y)return z$("Could not find icon",c),null;var T=y.abstract,P={ref:t};return Object.keys(e).forEach(function(b){Jm.defaultProps.hasOwnProperty(b)||(P[b]=e[b])}),U$(T[0],P)});Jm.displayName="FontAwesomeIcon";Jm.propTypes={beat:fr.bool,border:fr.bool,beatFade:fr.bool,bounce:fr.bool,className:fr.string,fade:fr.bool,flash:fr.bool,mask:fr.oneOfType([fr.object,fr.array,fr.string]),maskId:fr.string,fixedWidth:fr.bool,inverse:fr.bool,flip:fr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:fr.oneOfType([fr.object,fr.array,fr.string]),listItem:fr.bool,pull:fr.oneOf(["right","left"]),pulse:fr.bool,rotation:fr.oneOf([0,90,180,270]),shake:fr.bool,size:fr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fr.bool,spinPulse:fr.bool,spinReverse:fr.bool,symbol:fr.oneOfType([fr.bool,fr.string]),title:fr.string,titleId:fr.string,transform:fr.oneOfType([fr.string,fr.object]),swapOpacity:fr.bool};Jm.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 U$=EM.bind(null,Cn.createElement),vw={},j$={get exports(){return vw},set exports(e){vw=e}},mw={},G$={get exports(){return mw},set exports(e){mw=e}},p0=1;function H$(){return p0=(p0*9301+49297)%233280,p0/233280}function q$(e){p0=e}var W$={nextValue:H$,seed:q$},gw=W$,ju="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Io,_A,dh;function yw(){dh=!1}function CM(e){if(!e){Io!==ju&&(Io=ju,yw());return}if(e!==Io){if(e.length!==ju.length)throw new Error("Custom alphabet for shortid must be "+ju.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+ju.length+" unique characters. These characters were not unique: "+t.join(", "));Io=e,yw()}}function V$(e){return CM(e),Io}function Y$(e){gw.seed(e),_A!==e&&(yw(),_A=e)}function X$(){Io||CM(ju);for(var e=Io.split(""),t=[],r=gw.nextValue(),n;e.length>0;)r=gw.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function TM(){return dh||(dh=X$(),dh)}function Q$(e){var t=TM();return t[e]}function Z$(){return Io||ju}var bb={get:Z$,characters:V$,seed:Y$,lookup:Q$,shuffled:TM},H1=typeof window=="object"&&(window.crypto||window.msCrypto),xw;!H1||!H1.getRandomValues?xw=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:xw=function(e){return H1.getRandomValues(new Uint8Array(e))};var K$=xw,J$=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},eD=bb,tD=K$,rD=J$;function nD(e){for(var t=0,r,n="";!r;)n=n+rD(tD,eD.get(),1),r=e<Math.pow(16,t+1),t++;return n}var iD=nD,Mv=iD,aD=1567752802062,oD=7,Rv,wA;function uD(e){var t="",r=Math.floor((Date.now()-aD)*.001);return r===wA?Rv++:(Rv=0,wA=r),t=t+Mv(oD),t=t+Mv(e),Rv>0&&(t=t+Mv(Rv)),t=t+Mv(r),t}var lD=uD,fD=bb;function sD(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+fD.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var cD=sD;(function(e){var t=bb,r=lD,n=cD,i=0;function a(c){return t.seed(c),e.exports}function o(c){return i=c,e.exports}function l(c){return c!==void 0&&t.characters(c),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(G$);(function(e){e.exports=mw})(j$);const cK=Om(vw);function id(e){return id=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},id(e)}function hD(e,t){if(id(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(id(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dD(e){var t=hD(e,"string");return id(t)==="symbol"?t:String(t)}function pD(e,t,r){return t=dD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bA(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 SA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(r),!0).forEach(function(n){pD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var EA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),q1=function(){return Math.random().toString(36).substring(7).split("").join(".")},ad={INIT:"@@redux/INIT"+q1(),REPLACE:"@@redux/REPLACE"+q1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+q1()}};function vD(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Sb(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(En(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(En(1));return r(Sb)(e,t)}if(typeof e!="function")throw new Error(En(2));var i=e,a=t,o=[],l=o,s=!1;function c(){l===o&&(l=o.slice())}function p(){if(s)throw new Error(En(3));return a}function x(P){if(typeof P!="function")throw new Error(En(4));if(s)throw new Error(En(5));var b=!0;return c(),l.push(P),function(){if(b){if(s)throw new Error(En(6));b=!1,c();var E=l.indexOf(P);l.splice(E,1),o=null}}}function g(P){if(!vD(P))throw new Error(En(7));if(typeof P.type>"u")throw new Error(En(8));if(s)throw new Error(En(9));try{s=!0,a=i(a,P)}finally{s=!1}for(var b=o=l,_=0;_<b.length;_++){var E=b[_];E()}return P}function y(P){if(typeof P!="function")throw new Error(En(10));i=P,g({type:ad.REPLACE})}function T(){var P,b=x;return P={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(En(11));function k(){E.next&&E.next(p())}k();var F=b(k);return{unsubscribe:F}}},P[EA]=function(){return this},P}return g({type:ad.INIT}),n={dispatch:g,subscribe:x,getState:p,replaceReducer:y},n[EA]=T,n}var mD=Sb;function gD(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ad.INIT});if(typeof n>"u")throw new Error(En(12));if(typeof r(void 0,{type:ad.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(En(13))})}function yD(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{gD(r)}catch(l){o=l}return function(s,c){if(s===void 0&&(s={}),o)throw o;for(var p=!1,x={},g=0;g<a.length;g++){var y=a[g],T=r[y],P=s[y],b=T(P,c);if(typeof b>"u")throw c&&c.type,new Error(En(14));x[y]=b,p=p||b!==P}return p=p||a.length!==Object.keys(s).length,p?x:s}}function AA(e,t){return function(){return t(e.apply(this,arguments))}}function xD(e,t){if(typeof e=="function")return AA(e,t);if(typeof e!="object"||e===null)throw new Error(En(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=AA(i,t))}return r}function OM(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function _D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(En(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(s){return s(o)});return a=OM.apply(void 0,l)(i.dispatch),SA(SA({},i),{},{dispatch:a})}}}const hK=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:ad,applyMiddleware:_D,bindActionCreators:xD,combineReducers:yD,compose:OM,createStore:Sb,legacy_createStore:mD},Symbol.toStringTag,{value:"Module"}));var ca=Cn.createContext(null);function wD(e){e()}var kM=wD,bD=function(t){return kM=t},SD=function(){return kM};function ED(){var e=SD(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var CA={notify:function(){},get:function(){return[]}};function Eb(e,t){var r,n=CA;function i(x){return s(),n.subscribe(x)}function a(){n.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=ED())}function c(){r&&(r(),r=void 0,n.clear(),n=CA)}var p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return p}var Q0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?vr.useLayoutEffect:vr.useEffect;function AD(e){var t=e.store,r=e.context,n=e.children,i=vr.useMemo(function(){var l=Eb(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=vr.useMemo(function(){return t.getState()},[t]);Q0(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||ca;return Cn.createElement(o.Provider,{value:i},n)}var _w={},CD={get exports(){return _w},set exports(e){_w=e}},Sr={};/** @license React v16.13.1
804
804
  * react-is.production.min.js
805
805
  *
806
806
  * Copyright (c) Facebook, Inc. and its affiliates.
807
807
  *
808
808
  * This source code is licensed under the MIT license found in the
809
809
  * LICENSE file in the root directory of this source tree.
810
- */var yn=typeof Symbol=="function"&&Symbol.for,Sb=yn?Symbol.for("react.element"):60103,Eb=yn?Symbol.for("react.portal"):60106,Jm=yn?Symbol.for("react.fragment"):60107,eg=yn?Symbol.for("react.strict_mode"):60108,tg=yn?Symbol.for("react.profiler"):60114,rg=yn?Symbol.for("react.provider"):60109,ng=yn?Symbol.for("react.context"):60110,Ab=yn?Symbol.for("react.async_mode"):60111,ig=yn?Symbol.for("react.concurrent_mode"):60111,ag=yn?Symbol.for("react.forward_ref"):60112,og=yn?Symbol.for("react.suspense"):60113,AD=yn?Symbol.for("react.suspense_list"):60120,ug=yn?Symbol.for("react.memo"):60115,lg=yn?Symbol.for("react.lazy"):60116,TD=yn?Symbol.for("react.block"):60121,CD=yn?Symbol.for("react.fundamental"):60117,OD=yn?Symbol.for("react.responder"):60118,kD=yn?Symbol.for("react.scope"):60119;function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Sb:switch(e=e.type,e){case Ab:case ig:case Jm:case tg:case eg:case og:return e;default:switch(e=e&&e.$$typeof,e){case ng:case ag:case lg:case ug:case rg:return e;default:return t}}case Eb:return t}}}function OM(e){return di(e)===ig}Sr.AsyncMode=Ab;Sr.ConcurrentMode=ig;Sr.ContextConsumer=ng;Sr.ContextProvider=rg;Sr.Element=Sb;Sr.ForwardRef=ag;Sr.Fragment=Jm;Sr.Lazy=lg;Sr.Memo=ug;Sr.Portal=Eb;Sr.Profiler=tg;Sr.StrictMode=eg;Sr.Suspense=og;Sr.isAsyncMode=function(e){return OM(e)||di(e)===Ab};Sr.isConcurrentMode=OM;Sr.isContextConsumer=function(e){return di(e)===ng};Sr.isContextProvider=function(e){return di(e)===rg};Sr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sb};Sr.isForwardRef=function(e){return di(e)===ag};Sr.isFragment=function(e){return di(e)===Jm};Sr.isLazy=function(e){return di(e)===lg};Sr.isMemo=function(e){return di(e)===ug};Sr.isPortal=function(e){return di(e)===Eb};Sr.isProfiler=function(e){return di(e)===tg};Sr.isStrictMode=function(e){return di(e)===eg};Sr.isSuspense=function(e){return di(e)===og};Sr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jm||e===ig||e===tg||e===eg||e===og||e===AD||typeof e=="object"&&e!==null&&(e.$$typeof===lg||e.$$typeof===ug||e.$$typeof===rg||e.$$typeof===ng||e.$$typeof===ag||e.$$typeof===CD||e.$$typeof===OD||e.$$typeof===kD||e.$$typeof===TD)};Sr.typeOf=di;(function(e){e.exports=Sr})(ED);var Tb=xw,MD={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RD={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},PD={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cb={};Cb[Tb.ForwardRef]=PD;Cb[Tb.Memo]=kM;function AA(e){return Tb.isMemo(e)?kM:Cb[e.$$typeof]||MD}var FD=Object.defineProperty,ND=Object.getOwnPropertyNames,TA=Object.getOwnPropertySymbols,ID=Object.getOwnPropertyDescriptor,LD=Object.getPrototypeOf,CA=Object.prototype;function MM(e,t,r){if(typeof t!="string"){if(CA){var n=LD(t);n&&n!==CA&&MM(e,n,r)}var i=ND(t);TA&&(i=i.concat(TA(t)));for(var a=AA(e),o=AA(t),l=0;l<i.length;++l){var s=i[l];if(!RD[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var c=ID(t,s);try{FD(e,s,c)}catch{}}}}return e}var OA=MM,_w={},$D={get exports(){return _w},set exports(e){_w=e}},Or={};/** @license React v17.0.2
810
+ */var yn=typeof Symbol=="function"&&Symbol.for,Ab=yn?Symbol.for("react.element"):60103,Cb=yn?Symbol.for("react.portal"):60106,eg=yn?Symbol.for("react.fragment"):60107,tg=yn?Symbol.for("react.strict_mode"):60108,rg=yn?Symbol.for("react.profiler"):60114,ng=yn?Symbol.for("react.provider"):60109,ig=yn?Symbol.for("react.context"):60110,Tb=yn?Symbol.for("react.async_mode"):60111,ag=yn?Symbol.for("react.concurrent_mode"):60111,og=yn?Symbol.for("react.forward_ref"):60112,ug=yn?Symbol.for("react.suspense"):60113,TD=yn?Symbol.for("react.suspense_list"):60120,lg=yn?Symbol.for("react.memo"):60115,fg=yn?Symbol.for("react.lazy"):60116,OD=yn?Symbol.for("react.block"):60121,kD=yn?Symbol.for("react.fundamental"):60117,MD=yn?Symbol.for("react.responder"):60118,RD=yn?Symbol.for("react.scope"):60119;function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ab:switch(e=e.type,e){case Tb:case ag:case eg:case rg:case tg:case ug:return e;default:switch(e=e&&e.$$typeof,e){case ig:case og:case fg:case lg:case ng:return e;default:return t}}case Cb:return t}}}function MM(e){return di(e)===ag}Sr.AsyncMode=Tb;Sr.ConcurrentMode=ag;Sr.ContextConsumer=ig;Sr.ContextProvider=ng;Sr.Element=Ab;Sr.ForwardRef=og;Sr.Fragment=eg;Sr.Lazy=fg;Sr.Memo=lg;Sr.Portal=Cb;Sr.Profiler=rg;Sr.StrictMode=tg;Sr.Suspense=ug;Sr.isAsyncMode=function(e){return MM(e)||di(e)===Tb};Sr.isConcurrentMode=MM;Sr.isContextConsumer=function(e){return di(e)===ig};Sr.isContextProvider=function(e){return di(e)===ng};Sr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ab};Sr.isForwardRef=function(e){return di(e)===og};Sr.isFragment=function(e){return di(e)===eg};Sr.isLazy=function(e){return di(e)===fg};Sr.isMemo=function(e){return di(e)===lg};Sr.isPortal=function(e){return di(e)===Cb};Sr.isProfiler=function(e){return di(e)===rg};Sr.isStrictMode=function(e){return di(e)===tg};Sr.isSuspense=function(e){return di(e)===ug};Sr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eg||e===ag||e===rg||e===tg||e===ug||e===TD||typeof e=="object"&&e!==null&&(e.$$typeof===fg||e.$$typeof===lg||e.$$typeof===ng||e.$$typeof===ig||e.$$typeof===og||e.$$typeof===kD||e.$$typeof===MD||e.$$typeof===RD||e.$$typeof===OD)};Sr.typeOf=di;(function(e){e.exports=Sr})(CD);var Ob=_w,PD={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},FD={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ND={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},RM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kb={};kb[Ob.ForwardRef]=ND;kb[Ob.Memo]=RM;function TA(e){return Ob.isMemo(e)?RM:kb[e.$$typeof]||PD}var ID=Object.defineProperty,LD=Object.getOwnPropertyNames,OA=Object.getOwnPropertySymbols,$D=Object.getOwnPropertyDescriptor,DD=Object.getPrototypeOf,kA=Object.prototype;function PM(e,t,r){if(typeof t!="string"){if(kA){var n=DD(t);n&&n!==kA&&PM(e,n,r)}var i=LD(t);OA&&(i=i.concat(OA(t)));for(var a=TA(e),o=TA(t),l=0;l<i.length;++l){var s=i[l];if(!FD[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var c=$D(t,s);try{ID(e,s,c)}catch{}}}}return e}var MA=PM,ww={},BD={get exports(){return ww},set exports(e){ww=e}},Or={};/** @license React v17.0.2
811
811
  * react-is.production.min.js
812
812
  *
813
813
  * Copyright (c) Facebook, Inc. and its affiliates.
814
814
  *
815
815
  * This source code is licensed under the MIT license found in the
816
816
  * LICENSE file in the root directory of this source tree.
817
- */var fg=60103,sg=60106,Cd=60107,Od=60108,kd=60114,Md=60109,Rd=60110,Pd=60112,Fd=60113,Ob=60120,Nd=60115,Id=60116,RM=60121,PM=60122,FM=60117,NM=60129,IM=60131;if(typeof Symbol=="function"&&Symbol.for){var bn=Symbol.for;fg=bn("react.element"),sg=bn("react.portal"),Cd=bn("react.fragment"),Od=bn("react.strict_mode"),kd=bn("react.profiler"),Md=bn("react.provider"),Rd=bn("react.context"),Pd=bn("react.forward_ref"),Fd=bn("react.suspense"),Ob=bn("react.suspense_list"),Nd=bn("react.memo"),Id=bn("react.lazy"),RM=bn("react.block"),PM=bn("react.server.block"),FM=bn("react.fundamental"),NM=bn("react.debug_trace_mode"),IM=bn("react.legacy_hidden")}function Hi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fg:switch(e=e.type,e){case Cd:case kd:case Od:case Fd:case Ob:return e;default:switch(e=e&&e.$$typeof,e){case Rd:case Pd:case Id:case Nd:case Md:return e;default:return t}}case sg:return t}}}var DD=Md,BD=fg,zD=Pd,UD=Cd,jD=Id,GD=Nd,HD=sg,qD=kd,WD=Od,VD=Fd;Or.ContextConsumer=Rd;Or.ContextProvider=DD;Or.Element=BD;Or.ForwardRef=zD;Or.Fragment=UD;Or.Lazy=jD;Or.Memo=GD;Or.Portal=HD;Or.Profiler=qD;Or.StrictMode=WD;Or.Suspense=VD;Or.isAsyncMode=function(){return!1};Or.isConcurrentMode=function(){return!1};Or.isContextConsumer=function(e){return Hi(e)===Rd};Or.isContextProvider=function(e){return Hi(e)===Md};Or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fg};Or.isForwardRef=function(e){return Hi(e)===Pd};Or.isFragment=function(e){return Hi(e)===Cd};Or.isLazy=function(e){return Hi(e)===Id};Or.isMemo=function(e){return Hi(e)===Nd};Or.isPortal=function(e){return Hi(e)===sg};Or.isProfiler=function(e){return Hi(e)===kd};Or.isStrictMode=function(e){return Hi(e)===Od};Or.isSuspense=function(e){return Hi(e)===Fd};Or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cd||e===kd||e===NM||e===Od||e===Fd||e===Ob||e===IM||typeof e=="object"&&e!==null&&(e.$$typeof===Id||e.$$typeof===Nd||e.$$typeof===Md||e.$$typeof===Rd||e.$$typeof===Pd||e.$$typeof===FM||e.$$typeof===RM||e[0]===PM)};Or.typeOf=Hi;(function(e){e.exports=Or})($D);var YD=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],XD=["reactReduxForwardedRef"],QD=[],ZD=[null,null];function KD(e,t){var r=e[1];return[t.payload,r+1]}function kA(e,t,r){X0(function(){return e.apply(void 0,t)},r)}function JD(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function eB(e,t,r,n,i,a,o,l,s,c){if(e){var p=!1,x=null,g=function(){if(!p){var P=t.getState(),b,_;try{b=n(P,i.current)}catch(E){_=E,x=E}_||(x=null),b===a.current?o.current||s():(a.current=b,l.current=b,o.current=!0,c({type:"STORE_UPDATED",payload:{error:_}}))}};r.onStateChange=g,r.trySubscribe(),g();var y=function(){if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,x)throw x};return y}}var tB=function(){return[null,0]};function LM(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(k){return"ConnectAdvanced("+k+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,p=c===void 0?!0:c,x=r.storeKey,g=x===void 0?"store":x;r.withRef;var y=r.forwardRef,C=y===void 0?!1:y,P=r.context,b=P===void 0?ca:P,_=ts(r,YD),E=b;return function(F){var I=F.displayName||F.name||"Component",$=i(I),ne=za({},_,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:p,storeKey:g,displayName:$,wrappedComponentName:I,WrappedComponent:F}),V=_.pure;function ae(Ue){return e(Ue.dispatch,ne)}var Ce=V?vr.useMemo:function(Ue){return Ue()};function Oe(Ue){var ft=vr.useMemo(function(){var se=Ue.reactReduxForwardedRef,Fe=ts(Ue,XD);return[Ue.context,se,Fe]},[Ue]),nt=ft[0],$e=ft[1],qe=ft[2],kt=vr.useMemo(function(){return nt&&nt.Consumer&&_w.isContextConsumer(Tn.createElement(nt.Consumer,null))?nt:E},[nt,E]),He=vr.useContext(kt),be=Boolean(Ue.store)&&Boolean(Ue.store.getState)&&Boolean(Ue.store.dispatch);Boolean(He)&&Boolean(He.store);var Ve=be?Ue.store:He.store,ct=vr.useMemo(function(){return ae(Ve)},[Ve]),et=vr.useMemo(function(){if(!p)return ZD;var se=bb(Ve,be?null:He.subscription),Fe=se.notifyNestedSubs.bind(se);return[se,Fe]},[Ve,be,He]),pt=et[0],wt=et[1],qt=vr.useMemo(function(){return be?He:za({},He,{subscription:pt})},[be,He,pt]),Vt=vr.useReducer(KD,QD,tB),Qe=Vt[0],Et=Qe[0],jt=Vt[1];if(Et&&Et.error)throw Et.error;var Ae=vr.useRef(),G=vr.useRef(qe),ie=vr.useRef(),O=vr.useRef(!1),S=Ce(function(){return ie.current&&qe===G.current?ie.current:ct(Ve.getState(),qe)},[Ve,Et,qe]);kA(JD,[G,Ae,O,qe,S,ie,wt]),kA(eB,[p,Ve,pt,ct,G,Ae,O,ie,wt,jt],[Ve,pt,ct]);var T=vr.useMemo(function(){return Tn.createElement(F,za({},S,{ref:$e}))},[$e,F,S]),D=vr.useMemo(function(){return p?Tn.createElement(kt.Provider,{value:qt},T):T},[kt,T,qt]);return D}var Pe=V?Tn.memo(Oe):Oe;if(Pe.WrappedComponent=F,Pe.displayName=Oe.displayName=$,C){var De=Tn.forwardRef(function(ft,nt){return Tn.createElement(Pe,za({},ft,{reactReduxForwardedRef:nt}))});return De.displayName=$,De.WrappedComponent=F,OA(De,F)}return OA(Pe,F)}}function MA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function p0(e,t){if(MA(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!MA(e[r[i]],t[r[i]]))return!1;return!0}function rB(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function kb(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function RA(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function $M(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=RA(e);var c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=RA(c),c=a(l,s)),c},a}}function nB(e){return typeof e=="function"?$M(e):void 0}function iB(e){return e?void 0:kb(function(t){return{dispatch:t}})}function aB(e){return e&&typeof e=="object"?kb(function(t){return rB(e,t)}):void 0}const oB=[nB,iB,aB];function uB(e){return typeof e=="function"?$M(e):void 0}function lB(e){return e?void 0:kb(function(){return{}})}const fB=[uB,lB];function sB(e,t,r){return za({},r,e,t)}function cB(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(c,p,x){var g=e(c,p,x);return o?(!i||!a(g,l))&&(l=g):(o=!0,l=g),l}}}function hB(e){return typeof e=="function"?cB(e):void 0}function dB(e){return e?void 0:function(){return sB}}const pB=[hB,dB];var vB=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function mB(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function gB(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,p,x,g,y;function C(k,F){return c=k,p=F,x=e(c,p),g=t(n,p),y=r(x,g,p),s=!0,y}function P(){return x=e(c,p),t.dependsOnOwnProps&&(g=t(n,p)),y=r(x,g,p),y}function b(){return e.dependsOnOwnProps&&(x=e(c,p)),t.dependsOnOwnProps&&(g=t(n,p)),y=r(x,g,p),y}function _(){var k=e(c,p),F=!l(k,x);return x=k,F&&(y=r(x,g,p)),y}function E(k,F){var I=!o(F,p),$=!a(k,c);return c=k,p=F,I&&$?P():I?b():$?_():y}return function(F,I){return s?E(F,I):C(F,I)}}function yB(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=ts(t,vB),o=r(e,a),l=n(e,a),s=i(e,a),c=a.pure?gB:mB;return c(o,l,s,e,a)}var xB=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q1(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function _B(e,t){return e===t}function wB(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?LM:r,i=t.mapStateToPropsFactories,a=i===void 0?fB:i,o=t.mapDispatchToPropsFactories,l=o===void 0?oB:o,s=t.mergePropsFactories,c=s===void 0?pB:s,p=t.selectorFactory,x=p===void 0?yB:p;return function(y,C,P,b){b===void 0&&(b={});var _=b,E=_.pure,k=E===void 0?!0:E,F=_.areStatesEqual,I=F===void 0?_B:F,$=_.areOwnPropsEqual,ne=$===void 0?p0:$,V=_.areStatePropsEqual,ae=V===void 0?p0:V,Ce=_.areMergedPropsEqual,Oe=Ce===void 0?p0:Ce,Pe=ts(_,xB),De=q1(y,a,"mapStateToProps"),Ue=q1(C,l,"mapDispatchToProps"),ft=q1(P,c,"mergeProps");return n(x,za({methodName:"connect",getDisplayName:function($e){return"Connect("+$e+")"},shouldHandleStateChanges:Boolean(y),initMapStateToProps:De,initMapDispatchToProps:Ue,initMergeProps:ft,pure:k,areStatesEqual:I,areOwnPropsEqual:ne,areStatePropsEqual:ae,areMergedPropsEqual:Oe},Pe))}}const bB=wB();function DM(){var e=vr.useContext(ca);return e}function Mb(e){e===void 0&&(e=ca);var t=e===ca?DM:function(){return vr.useContext(e)};return function(){var n=t(),i=n.store;return i}}var BM=Mb();function zM(e){e===void 0&&(e=ca);var t=e===ca?BM:Mb(e);return function(){var n=t();return n.dispatch}}var SB=zM(),EB=function(t,r){return t===r};function AB(e,t,r,n){var i=vr.useReducer(function(C){return C+1},0),a=i[1],o=vr.useMemo(function(){return bb(r,n)},[r,n]),l=vr.useRef(),s=vr.useRef(),c=vr.useRef(),p=vr.useRef(),x=r.getState(),g;try{if(e!==s.current||x!==c.current||l.current){var y=e(x);p.current===void 0||!t(y,p.current)?g=y:g=p.current}else g=p.current}catch(C){throw l.current&&(C.message+=`
817
+ */var sg=60103,cg=60106,Td=60107,Od=60108,kd=60114,Md=60109,Rd=60110,Pd=60112,Fd=60113,Mb=60120,Nd=60115,Id=60116,FM=60121,NM=60122,IM=60117,LM=60129,$M=60131;if(typeof Symbol=="function"&&Symbol.for){var bn=Symbol.for;sg=bn("react.element"),cg=bn("react.portal"),Td=bn("react.fragment"),Od=bn("react.strict_mode"),kd=bn("react.profiler"),Md=bn("react.provider"),Rd=bn("react.context"),Pd=bn("react.forward_ref"),Fd=bn("react.suspense"),Mb=bn("react.suspense_list"),Nd=bn("react.memo"),Id=bn("react.lazy"),FM=bn("react.block"),NM=bn("react.server.block"),IM=bn("react.fundamental"),LM=bn("react.debug_trace_mode"),$M=bn("react.legacy_hidden")}function Hi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sg:switch(e=e.type,e){case Td:case kd:case Od:case Fd:case Mb:return e;default:switch(e=e&&e.$$typeof,e){case Rd:case Pd:case Id:case Nd:case Md:return e;default:return t}}case cg:return t}}}var zD=Md,UD=sg,jD=Pd,GD=Td,HD=Id,qD=Nd,WD=cg,VD=kd,YD=Od,XD=Fd;Or.ContextConsumer=Rd;Or.ContextProvider=zD;Or.Element=UD;Or.ForwardRef=jD;Or.Fragment=GD;Or.Lazy=HD;Or.Memo=qD;Or.Portal=WD;Or.Profiler=VD;Or.StrictMode=YD;Or.Suspense=XD;Or.isAsyncMode=function(){return!1};Or.isConcurrentMode=function(){return!1};Or.isContextConsumer=function(e){return Hi(e)===Rd};Or.isContextProvider=function(e){return Hi(e)===Md};Or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sg};Or.isForwardRef=function(e){return Hi(e)===Pd};Or.isFragment=function(e){return Hi(e)===Td};Or.isLazy=function(e){return Hi(e)===Id};Or.isMemo=function(e){return Hi(e)===Nd};Or.isPortal=function(e){return Hi(e)===cg};Or.isProfiler=function(e){return Hi(e)===kd};Or.isStrictMode=function(e){return Hi(e)===Od};Or.isSuspense=function(e){return Hi(e)===Fd};Or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Td||e===kd||e===LM||e===Od||e===Fd||e===Mb||e===$M||typeof e=="object"&&e!==null&&(e.$$typeof===Id||e.$$typeof===Nd||e.$$typeof===Md||e.$$typeof===Rd||e.$$typeof===Pd||e.$$typeof===IM||e.$$typeof===FM||e[0]===NM)};Or.typeOf=Hi;(function(e){e.exports=Or})(BD);var QD=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ZD=["reactReduxForwardedRef"],KD=[],JD=[null,null];function eB(e,t){var r=e[1];return[t.payload,r+1]}function RA(e,t,r){Q0(function(){return e.apply(void 0,t)},r)}function tB(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function rB(e,t,r,n,i,a,o,l,s,c){if(e){var p=!1,x=null,g=function(){if(!p){var P=t.getState(),b,_;try{b=n(P,i.current)}catch(E){_=E,x=E}_||(x=null),b===a.current?o.current||s():(a.current=b,l.current=b,o.current=!0,c({type:"STORE_UPDATED",payload:{error:_}}))}};r.onStateChange=g,r.trySubscribe(),g();var y=function(){if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,x)throw x};return y}}var nB=function(){return[null,0]};function DM(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(k){return"ConnectAdvanced("+k+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,p=c===void 0?!0:c,x=r.storeKey,g=x===void 0?"store":x;r.withRef;var y=r.forwardRef,T=y===void 0?!1:y,P=r.context,b=P===void 0?ca:P,_=ts(r,QD),E=b;return function(F){var I=F.displayName||F.name||"Component",$=i(I),ne=za({},_,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:p,storeKey:g,displayName:$,wrappedComponentName:I,WrappedComponent:F}),V=_.pure;function ae(Ue){return e(Ue.dispatch,ne)}var Te=V?vr.useMemo:function(Ue){return Ue()};function Oe(Ue){var ft=vr.useMemo(function(){var se=Ue.reactReduxForwardedRef,Fe=ts(Ue,ZD);return[Ue.context,se,Fe]},[Ue]),nt=ft[0],$e=ft[1],qe=ft[2],kt=vr.useMemo(function(){return nt&&nt.Consumer&&ww.isContextConsumer(Cn.createElement(nt.Consumer,null))?nt:E},[nt,E]),He=vr.useContext(kt),be=Boolean(Ue.store)&&Boolean(Ue.store.getState)&&Boolean(Ue.store.dispatch);Boolean(He)&&Boolean(He.store);var Ve=be?Ue.store:He.store,ct=vr.useMemo(function(){return ae(Ve)},[Ve]),et=vr.useMemo(function(){if(!p)return JD;var se=Eb(Ve,be?null:He.subscription),Fe=se.notifyNestedSubs.bind(se);return[se,Fe]},[Ve,be,He]),pt=et[0],wt=et[1],qt=vr.useMemo(function(){return be?He:za({},He,{subscription:pt})},[be,He,pt]),Vt=vr.useReducer(eB,KD,nB),Qe=Vt[0],Et=Qe[0],jt=Vt[1];if(Et&&Et.error)throw Et.error;var Ae=vr.useRef(),G=vr.useRef(qe),ie=vr.useRef(),O=vr.useRef(!1),S=Te(function(){return ie.current&&qe===G.current?ie.current:ct(Ve.getState(),qe)},[Ve,Et,qe]);RA(tB,[G,Ae,O,qe,S,ie,wt]),RA(rB,[p,Ve,pt,ct,G,Ae,O,ie,wt,jt],[Ve,pt,ct]);var C=vr.useMemo(function(){return Cn.createElement(F,za({},S,{ref:$e}))},[$e,F,S]),D=vr.useMemo(function(){return p?Cn.createElement(kt.Provider,{value:qt},C):C},[kt,C,qt]);return D}var Pe=V?Cn.memo(Oe):Oe;if(Pe.WrappedComponent=F,Pe.displayName=Oe.displayName=$,T){var De=Cn.forwardRef(function(ft,nt){return Cn.createElement(Pe,za({},ft,{reactReduxForwardedRef:nt}))});return De.displayName=$,De.WrappedComponent=F,MA(De,F)}return MA(Pe,F)}}function PA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function v0(e,t){if(PA(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!PA(e[r[i]],t[r[i]]))return!1;return!0}function iB(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function Rb(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function FA(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function BM(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=FA(e);var c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=FA(c),c=a(l,s)),c},a}}function aB(e){return typeof e=="function"?BM(e):void 0}function oB(e){return e?void 0:Rb(function(t){return{dispatch:t}})}function uB(e){return e&&typeof e=="object"?Rb(function(t){return iB(e,t)}):void 0}const lB=[aB,oB,uB];function fB(e){return typeof e=="function"?BM(e):void 0}function sB(e){return e?void 0:Rb(function(){return{}})}const cB=[fB,sB];function hB(e,t,r){return za({},r,e,t)}function dB(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(c,p,x){var g=e(c,p,x);return o?(!i||!a(g,l))&&(l=g):(o=!0,l=g),l}}}function pB(e){return typeof e=="function"?dB(e):void 0}function vB(e){return e?void 0:function(){return hB}}const mB=[pB,vB];var gB=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function yB(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function xB(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,p,x,g,y;function T(k,F){return c=k,p=F,x=e(c,p),g=t(n,p),y=r(x,g,p),s=!0,y}function P(){return x=e(c,p),t.dependsOnOwnProps&&(g=t(n,p)),y=r(x,g,p),y}function b(){return e.dependsOnOwnProps&&(x=e(c,p)),t.dependsOnOwnProps&&(g=t(n,p)),y=r(x,g,p),y}function _(){var k=e(c,p),F=!l(k,x);return x=k,F&&(y=r(x,g,p)),y}function E(k,F){var I=!o(F,p),$=!a(k,c);return c=k,p=F,I&&$?P():I?b():$?_():y}return function(F,I){return s?E(F,I):T(F,I)}}function _B(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=ts(t,gB),o=r(e,a),l=n(e,a),s=i(e,a),c=a.pure?xB:yB;return c(o,l,s,e,a)}var wB=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function W1(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function bB(e,t){return e===t}function SB(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?DM:r,i=t.mapStateToPropsFactories,a=i===void 0?cB:i,o=t.mapDispatchToPropsFactories,l=o===void 0?lB:o,s=t.mergePropsFactories,c=s===void 0?mB:s,p=t.selectorFactory,x=p===void 0?_B:p;return function(y,T,P,b){b===void 0&&(b={});var _=b,E=_.pure,k=E===void 0?!0:E,F=_.areStatesEqual,I=F===void 0?bB:F,$=_.areOwnPropsEqual,ne=$===void 0?v0:$,V=_.areStatePropsEqual,ae=V===void 0?v0:V,Te=_.areMergedPropsEqual,Oe=Te===void 0?v0:Te,Pe=ts(_,wB),De=W1(y,a,"mapStateToProps"),Ue=W1(T,l,"mapDispatchToProps"),ft=W1(P,c,"mergeProps");return n(x,za({methodName:"connect",getDisplayName:function($e){return"Connect("+$e+")"},shouldHandleStateChanges:Boolean(y),initMapStateToProps:De,initMapDispatchToProps:Ue,initMergeProps:ft,pure:k,areStatesEqual:I,areOwnPropsEqual:ne,areStatePropsEqual:ae,areMergedPropsEqual:Oe},Pe))}}const EB=SB();function zM(){var e=vr.useContext(ca);return e}function Pb(e){e===void 0&&(e=ca);var t=e===ca?zM:function(){return vr.useContext(e)};return function(){var n=t(),i=n.store;return i}}var UM=Pb();function jM(e){e===void 0&&(e=ca);var t=e===ca?UM:Pb(e);return function(){var n=t();return n.dispatch}}var AB=jM(),CB=function(t,r){return t===r};function TB(e,t,r,n){var i=vr.useReducer(function(T){return T+1},0),a=i[1],o=vr.useMemo(function(){return Eb(r,n)},[r,n]),l=vr.useRef(),s=vr.useRef(),c=vr.useRef(),p=vr.useRef(),x=r.getState(),g;try{if(e!==s.current||x!==c.current||l.current){var y=e(x);p.current===void 0||!t(y,p.current)?g=y:g=p.current}else g=p.current}catch(T){throw l.current&&(T.message+=`
818
818
  The error may be correlated with this previous error:
819
819
  `+l.current.stack+`
820
820
 
821
- `),C}return X0(function(){s.current=e,c.current=x,p.current=g,l.current=void 0}),X0(function(){function C(){try{var P=r.getState();if(P===c.current)return;var b=s.current(P);if(t(b,p.current))return;p.current=b,c.current=P}catch(_){l.current=_}a()}return o.onStateChange=C,o.trySubscribe(),C(),function(){return o.tryUnsubscribe()}},[r,o]),g}function UM(e){e===void 0&&(e=ca);var t=e===ca?DM:function(){return vr.useContext(e)};return function(n,i){i===void 0&&(i=EB);var a=t(),o=a.store,l=a.subscription,s=AB(n,i,o,l);return vr.useDebugValue(s),s}}var TB=UM();_D(Dh.unstable_batchedUpdates);const sK=Object.freeze(Object.defineProperty({__proto__:null,Provider:SD,ReactReduxContext:ca,batch:Dh.unstable_batchedUpdates,connect:bB,connectAdvanced:LM,createDispatchHook:zM,createSelectorHook:UM,createStoreHook:Mb,shallowEqual:p0,useDispatch:SB,useSelector:TB,useStore:BM},Symbol.toStringTag,{value:"Module"}));var PA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function CB(e,t){return!!(e===t||PA(e)&&PA(t))}function OB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!CB(e[r],t[r]))return!1;return!0}function cK(e,t){t===void 0&&(t=OB);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var FA=Object.prototype.toString,jM=function(t){var r=FA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&FA.call(t.callee)==="[object Function]"),n},W1,NA;function kB(){if(NA)return W1;NA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=jM,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(g){var y=g.constructor;return y&&y.prototype===g},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},p=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{s(window[g])}catch{return!0}}catch{return!0}return!1}(),x=function(g){if(typeof window>"u"||!p)return s(g);try{return s(g)}catch{return!1}};e=function(y){var C=y!==null&&typeof y=="object",P=r.call(y)==="[object Function]",b=n(y),_=C&&r.call(y)==="[object String]",E=[];if(!C&&!P&&!b)throw new TypeError("Object.keys called on a non-object");var k=o&&P;if(_&&y.length>0&&!t.call(y,0))for(var F=0;F<y.length;++F)E.push(String(F));if(b&&y.length>0)for(var I=0;I<y.length;++I)E.push(String(I));else for(var $ in y)!(k&&$==="prototype")&&t.call(y,$)&&E.push(String($));if(a)for(var ne=x(y),V=0;V<l.length;++V)!(ne&&l[V]==="constructor")&&t.call(y,l[V])&&E.push(l[V]);return E}}return W1=e,W1}var MB=Array.prototype.slice,RB=jM,IA=Object.keys,v0=IA?function(t){return IA(t)}:kB(),LA=Object.keys;v0.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 RB(n)?LA(MB.call(n)):LA(n)})}else Object.keys=v0;return Object.keys||v0};var Rb=v0,cg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},PB=cg,iu=function(){return PB()&&!!Symbol.toStringTag},$A=typeof Symbol<"u"&&Symbol,FB=cg,Pb=function(){return typeof $A!="function"||typeof Symbol!="function"||typeof $A("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:FB()},NB="Function.prototype.bind called on incompatible ",V1=Array.prototype.slice,IB=Object.prototype.toString,LB="[object Function]",$B=function(t){var r=this;if(typeof r!="function"||IB.call(r)!==LB)throw new TypeError(NB+r);for(var n=V1.call(arguments,1),i,a=function(){if(this instanceof i){var p=r.apply(this,n.concat(V1.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(V1.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},DB=$B,Fb=Function.prototype.bind||DB,BB=Fb,zB=BB.call(Function.call,Object.prototype.hasOwnProperty),mr,ns=SyntaxError,GM=Function,Wf=TypeError,Y1=function(e){try{return GM('"use strict"; return ('+e+").constructor;")()}catch{}},Ju=Object.getOwnPropertyDescriptor;if(Ju)try{Ju({},"")}catch{Ju=null}var X1=function(){throw new Wf},UB=Ju?function(){try{return arguments.callee,X1}catch{try{return Ju(arguments,"callee").get}catch{return X1}}}():X1,vf=Pb(),Co=Object.getPrototypeOf||function(e){return e.__proto__},Sf={},jB=typeof Uint8Array>"u"?mr:Co(Uint8Array),Vf={"%AggregateError%":typeof AggregateError>"u"?mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mr:ArrayBuffer,"%ArrayIteratorPrototype%":vf?Co([][Symbol.iterator]()):mr,"%AsyncFromSyncIteratorPrototype%":mr,"%AsyncFunction%":Sf,"%AsyncGenerator%":Sf,"%AsyncGeneratorFunction%":Sf,"%AsyncIteratorPrototype%":Sf,"%Atomics%":typeof Atomics>"u"?mr:Atomics,"%BigInt%":typeof BigInt>"u"?mr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?mr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mr:FinalizationRegistry,"%Function%":GM,"%GeneratorFunction%":Sf,"%Int8Array%":typeof Int8Array>"u"?mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vf?Co(Co([][Symbol.iterator]())):mr,"%JSON%":typeof JSON=="object"?JSON:mr,"%Map%":typeof Map>"u"?mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vf?mr:Co(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mr:Promise,"%Proxy%":typeof Proxy>"u"?mr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?mr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vf?mr:Co(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vf?Co(""[Symbol.iterator]()):mr,"%Symbol%":vf?Symbol:mr,"%SyntaxError%":ns,"%ThrowTypeError%":UB,"%TypedArray%":jB,"%TypeError%":Wf,"%Uint8Array%":typeof Uint8Array>"u"?mr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?mr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mr:WeakSet},GB=function e(t){var r;if(t==="%AsyncFunction%")r=Y1("async function () {}");else if(t==="%GeneratorFunction%")r=Y1("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Y1("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Co(i.prototype))}return Vf[t]=r,r},DA={"%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"]},Ld=Fb,Q0=zB,HB=Ld.call(Function.call,Array.prototype.concat),qB=Ld.call(Function.apply,Array.prototype.splice),BA=Ld.call(Function.call,String.prototype.replace),Z0=Ld.call(Function.call,String.prototype.slice),WB=Ld.call(Function.call,RegExp.prototype.exec),VB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,YB=/\\(\\)?/g,XB=function(t){var r=Z0(t,0,1),n=Z0(t,-1);if(r==="%"&&n!=="%")throw new ns("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ns("invalid intrinsic syntax, expected opening `%`");var i=[];return BA(t,VB,function(a,o,l,s){i[i.length]=l?BA(s,YB,"$1"):o||a}),i},QB=function(t,r){var n=t,i;if(Q0(DA,n)&&(i=DA[n],n="%"+i[0]+"%"),Q0(Vf,n)){var a=Vf[n];if(a===Sf&&(a=GB(n)),typeof a>"u"&&!r)throw new Wf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ns("intrinsic "+t+" does not exist!")},au=function(t,r){if(typeof t!="string"||t.length===0)throw new Wf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Wf('"allowMissing" argument must be a boolean');if(WB(/^%?[^%]*%?$/,t)===null)throw new ns("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=XB(t),i=n.length>0?n[0]:"",a=QB("%"+i+"%",r),o=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],qB(n,HB([0,1],c)));for(var p=1,x=!0;p<n.length;p+=1){var g=n[p],y=Z0(g,0,1),C=Z0(g,-1);if((y==='"'||y==="'"||y==="`"||C==='"'||C==="'"||C==="`")&&y!==C)throw new ns("property names with quotes must have matching quotes");if((g==="constructor"||!x)&&(s=!0),i+="."+g,o="%"+i+"%",Q0(Vf,o))l=Vf[o];else if(l!=null){if(!(g in l)){if(!r)throw new Wf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ju&&p+1>=n.length){var P=Ju(l,g);x=!!P,x&&"get"in P&&!("originalValue"in P.get)?l=P.get:l=l[g]}else x=Q0(l,g),l=l[g];x&&!s&&(Vf[o]=l)}}return l},is={},ZB={get exports(){return is},set exports(e){is=e}};(function(e){var t=Fb,r=au,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(x){var g=a(t,i,arguments);if(o&&l){var y=o(g,"length");y.configurable&&l(g,"length",{value:1+s(0,x.length-(arguments.length-1))})}return g};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(ZB);var HM=au,qM=is,KB=qM(HM("String.prototype.indexOf")),pa=function(t,r){var n=HM(t,!!r);return typeof n=="function"&&KB(t,".prototype.")>-1?qM(n):n},JB=iu(),e7=pa,ww=e7("Object.prototype.toString"),hg=function(t){return JB&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:ww(t)==="[object Arguments]"},WM=function(t){return hg(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ww(t)!=="[object Array]"&&ww(t.callee)==="[object Function]"},t7=function(){return hg(arguments)}();hg.isLegacyArguments=WM;var VM=t7?hg:WM,r7=au,bw=r7("%Object.defineProperty%",!0),Sw=function(){if(bw)try{return bw({},"a",{value:1}),!0}catch{return!1}return!1};Sw.hasArrayLengthDefineBug=function(){if(!Sw())return null;try{return bw([],"length",{value:1}).length!==1}catch{return!0}};var n7=Sw,i7=Rb,a7=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o7=Object.prototype.toString,u7=Array.prototype.concat,YM=Object.defineProperty,l7=function(e){return typeof e=="function"&&o7.call(e)==="[object Function]"},f7=n7(),XM=YM&&f7,s7=function(e,t,r,n){t in e&&(!l7(n)||!n())||(XM?YM(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},QM=function(e,t){var r=arguments.length>2?arguments[2]:{},n=i7(t);a7&&(n=u7.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)s7(e,n[i],t[n[i]],r[n[i]])};QM.supportsDescriptors=!!XM;var Sl=QM,zA=function(e){return e!==e},ZM=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||zA(t)&&zA(r))},c7=ZM,KM=function(){return typeof Object.is=="function"?Object.is:c7},h7=KM,d7=Sl,p7=function(){var t=h7();return d7(Object,{is:t},{is:function(){return Object.is!==t}}),t},v7=Sl,m7=is,g7=ZM,JM=KM,y7=p7,e4=m7(JM(),Object);v7(e4,{getPolyfill:JM,implementation:g7,shim:y7});var x7=e4,Ew=pa,t4=iu(),r4,n4,Aw,Tw;if(t4){r4=Ew("Object.prototype.hasOwnProperty"),n4=Ew("RegExp.prototype.exec"),Aw={};var Q1=function(){throw Aw};Tw={toString:Q1,valueOf:Q1},typeof Symbol.toPrimitive=="symbol"&&(Tw[Symbol.toPrimitive]=Q1)}var _7=Ew("Object.prototype.toString"),w7=Object.getOwnPropertyDescriptor,b7="[object RegExp]",S7=t4?function(t){if(!t||typeof t!="object")return!1;var r=w7(t,"lastIndex"),n=r&&r4(r,"value");if(!n)return!1;try{n4(t,Tw)}catch(i){return i===Aw}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:_7(t)===b7},K0={},E7={get exports(){return K0},set exports(e){K0=e}},od=function(){return typeof function(){}.name=="string"},Ph=Object.getOwnPropertyDescriptor;if(Ph)try{Ph([],"length")}catch{Ph=null}od.functionsHaveConfigurableNames=function(){if(!od()||!Ph)return!1;var t=Ph(function(){},"name");return!!t&&!!t.configurable};var A7=Function.prototype.bind;od.boundFunctionsHaveNames=function(){return od()&&typeof A7=="function"&&function(){}.bind().name!==""};var T7=od;(function(e){var t=T7.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"})})(E7);var C7=K0,O7=Sl.supportsDescriptors,k7=Object.getOwnPropertyDescriptor,i4=function(){if(O7&&/a/mig.flags==="gim"){var t=k7(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 C7},M7=Sl.supportsDescriptors,R7=i4,P7=Object.getOwnPropertyDescriptor,F7=Object.defineProperty,N7=TypeError,UA=Object.getPrototypeOf,I7=/a/,L7=function(){if(!M7||!UA)throw new N7("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=R7(),r=UA(I7),n=P7(r,"flags");return(!n||n.get!==t)&&F7(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},$7=Sl,D7=is,B7=K0,a4=i4,z7=L7,o4=D7(a4());$7(o4,{getPolyfill:a4,implementation:B7,shim:z7});var U7=o4,j7={}.toString,u4=Array.isArray||function(e){return j7.call(e)=="[object Array]"},G7=Date.prototype.getDay,H7=function(t){try{return G7.call(t),!0}catch{return!1}},q7=Object.prototype.toString,W7="[object Date]",V7=iu(),Y7=function(t){return typeof t!="object"||t===null?!1:V7?H7(t):q7.call(t)===W7},X7=String.prototype.valueOf,Q7=function(t){try{return X7.call(t),!0}catch{return!1}},Z7=Object.prototype.toString,K7="[object String]",J7=iu(),l4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:J7?Q7(t):Z7.call(t)===K7},e9=Number.prototype.toString,t9=function(t){try{return e9.call(t),!0}catch{return!1}},r9=Object.prototype.toString,n9="[object Number]",i9=iu(),a9=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:i9?t9(t):r9.call(t)===n9},f4=pa,o9=f4("Boolean.prototype.toString"),u9=f4("Object.prototype.toString"),l9=function(t){try{return o9(t),!0}catch{return!1}},f9="[object Boolean]",s9=iu(),c9=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:s9&&Symbol.toStringTag in t?l9(t):u9(t)===f9},Cw={},jA={get exports(){return Cw},set exports(e){Cw=e}},h9=Object.prototype.toString,d9=Pb();if(d9){var p9=Symbol.prototype.toString,v9=/^Symbol\(.*\)$/,m9=function(t){return typeof t.valueOf()!="symbol"?!1:v9.test(p9.call(t))};jA.exports=function(t){if(typeof t=="symbol")return!0;if(h9.call(t)!=="[object Symbol]")return!1;try{return m9(t)}catch{return!1}}}else jA.exports=function(t){return!1};var Ow={},GA={get exports(){return Ow},set exports(e){Ow=e}},HA=typeof BigInt<"u"&&BigInt,g9=function(){return typeof HA=="function"&&typeof BigInt=="function"&&typeof HA(42)=="bigint"&&typeof BigInt(42)=="bigint"},y9=g9();if(y9){var x9=BigInt.prototype.valueOf,_9=function(t){try{return x9.call(t),!0}catch{}return!1};GA.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:_9(t)}}else GA.exports=function(t){return!1};var w9=l4,b9=a9,S9=c9,E9=Cw,A9=Ow,T9=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(w9(t))return"String";if(b9(t))return"Number";if(S9(t))return"Boolean";if(E9(t))return"Symbol";if(A9(t))return"BigInt"},Nb=typeof Map=="function"&&Map.prototype?Map:null,C9=typeof Set=="function"&&Set.prototype?Set:null,J0;Nb||(J0=function(t){return!1});var s4=Nb?Map.prototype.has:null,qA=C9?Set.prototype.has:null;!J0&&!s4&&(J0=function(t){return!1});var c4=J0||function(t){if(!t||typeof t!="object")return!1;try{if(s4.call(t),qA)try{qA.call(t)}catch{return!0}return t instanceof Nb}catch{}return!1},O9=typeof Map=="function"&&Map.prototype?Map:null,Ib=typeof Set=="function"&&Set.prototype?Set:null,em;Ib||(em=function(t){return!1});var WA=O9?Map.prototype.has:null,h4=Ib?Set.prototype.has:null;!em&&!h4&&(em=function(t){return!1});var d4=em||function(t){if(!t||typeof t!="object")return!1;try{if(h4.call(t),WA)try{WA.call(t)}catch{return!0}return t instanceof Ib}catch{}return!1},tm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,VA=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,rm;tm||(rm=function(t){return!1});var kw=tm?tm.prototype.has:null,Z1=VA?VA.prototype.has:null;!rm&&!kw&&(rm=function(t){return!1});var k9=rm||function(t){if(!t||typeof t!="object")return!1;try{if(kw.call(t,kw),Z1)try{Z1.call(t,Z1)}catch{return!0}return t instanceof tm}catch{}return!1},Mw={},YA={get exports(){return Mw},set exports(e){Mw=e}},M9=au,p4=pa,R9=M9("%WeakSet%",!0),K1=p4("WeakSet.prototype.has",!0);if(K1){var J1=p4("WeakMap.prototype.has",!0);YA.exports=function(t){if(!t||typeof t!="object")return!1;try{if(K1(t,K1),J1)try{J1(t,J1)}catch{return!0}return t instanceof R9}catch{}return!1}}else YA.exports=function(t){return!1};var P9=c4,F9=d4,N9=k9,I9=Mw,L9=function(t){if(t&&typeof t=="object"){if(P9(t))return"Map";if(F9(t))return"Set";if(N9(t))return"WeakMap";if(I9(t))return"WeakSet"}return!1},Rw={},ex={get exports(){return Rw},set exports(e){Rw=e}},XA=VM;if(Pb()||cg()){var tx=Symbol.iterator;ex.exports=function(t){if(t!=null&&typeof t[tx]<"u")return t[tx]();if(XA(t))return Array.prototype[tx].call(t)}}else{var $9=u4,D9=l4,QA=au,B9=QA("%Map%",!0),z9=QA("%Set%",!0),Di=pa,ZA=Di("Array.prototype.push"),KA=Di("String.prototype.charCodeAt"),U9=Di("String.prototype.slice"),j9=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=KA(t,r);if(i<55296||i>56319)return r+1;var a=KA(t,r+1);return a<56320||a>57343?r+1:r+2},rx=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}}}},JA=function(t,r){if($9(t)||XA(t))return rx(t);if(D9(t)){var n=0;return{next:function(){var a=j9(t,n),o=U9(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!B9&&!z9)ex.exports=function(t){if(t!=null)return JA(t,!0)};else{var G9=c4,H9=d4,e5=Di("Map.prototype.forEach",!0),t5=Di("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var r5=Di("Map.prototype.iterator",!0),n5=Di("Set.prototype.iterator",!0),i5=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 a5=Di("Map.prototype.@@iterator",!0)||Di("Map.prototype._es6-shim iterator_",!0),o5=Di("Set.prototype.@@iterator",!0)||Di("Set.prototype._es6-shim iterator_",!0),q9=function(t){if(G9(t)){if(r5)return i5(r5(t));if(a5)return a5(t);if(e5){var r=[];return e5(t,function(i,a){ZA(r,[a,i])}),rx(r)}}if(H9(t)){if(n5)return i5(n5(t));if(o5)return o5(t);if(t5){var n=[];return t5(t,function(i){ZA(n,i)}),rx(n)}}};ex.exports=function(t){return q9(t)||JA(t)}}}const W9={},V9=Object.freeze(Object.defineProperty({__proto__:null,default:W9},Symbol.toStringTag,{value:"Module"})),Pw=pl(V9);var Lb=typeof Map=="function"&&Map.prototype,nx=Object.getOwnPropertyDescriptor&&Lb?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nm=Lb&&nx&&typeof nx.get=="function"?nx.get:null,Y9=Lb&&Map.prototype.forEach,$b=typeof Set=="function"&&Set.prototype,ix=Object.getOwnPropertyDescriptor&&$b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,im=$b&&ix&&typeof ix.get=="function"?ix.get:null,X9=$b&&Set.prototype.forEach,Q9=typeof WeakMap=="function"&&WeakMap.prototype,Fh=Q9?WeakMap.prototype.has:null,Z9=typeof WeakSet=="function"&&WeakSet.prototype,Nh=Z9?WeakSet.prototype.has:null,K9=typeof WeakRef=="function"&&WeakRef.prototype,u5=K9?WeakRef.prototype.deref:null,J9=Boolean.prototype.valueOf,ez=Object.prototype.toString,tz=Function.prototype.toString,rz=String.prototype.match,Db=String.prototype.slice,Lo=String.prototype.replace,nz=String.prototype.toUpperCase,l5=String.prototype.toLowerCase,v4=RegExp.prototype.test,f5=Array.prototype.concat,ea=Array.prototype.join,iz=Array.prototype.slice,s5=Math.floor,Fw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ax=Object.getOwnPropertySymbols,Nw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,as=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ln=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===as||"symbol")?Symbol.toStringTag:null,m4=Object.prototype.propertyIsEnumerable,c5=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function h5(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?-s5(-e):s5(e);if(n!==e){var i=String(n),a=Db.call(t,i.length+1);return Lo.call(i,r,"$&_")+"."+Lo.call(Lo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lo.call(t,r,"$&_")}var Iw=Pw,d5=Iw.custom,p5=y4(d5)?d5:null,az=function e(t,r,n,i){var a=r||{};if(Oo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Oo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Oo(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Oo(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(Oo(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?h5(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?h5(t,c):c}var p=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof t=="object")return Lw(t)?"[Array]":"[Object]";var x=Sz(a,n);if(typeof i>"u")i=[];else if(x4(i,t)>=0)return"[Circular]";function g(De,Ue,ft){if(Ue&&(i=iz.call(i),i.push(Ue)),ft){var nt={depth:a.depth};return Oo(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(De,nt,n+1,i)}return e(De,a,n+1,i)}if(typeof t=="function"&&!v5(t)){var y=pz(t),C=Pv(t,g);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(C.length>0?" { "+ea.call(C,", ")+" }":"")}if(y4(t)){var P=as?Lo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nw.call(t);return typeof t=="object"&&!as?Vc(P):P}if(_z(t)){for(var b="<"+l5.call(String(t.nodeName)),_=t.attributes||[],E=0;E<_.length;E++)b+=" "+_[E].name+"="+g4(oz(_[E].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+l5.call(String(t.nodeName))+">",b}if(Lw(t)){if(t.length===0)return"[]";var k=Pv(t,g);return x&&!bz(k)?"["+$w(k,x)+"]":"[ "+ea.call(k,", ")+" ]"}if(lz(t)){var F=Pv(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!m4.call(t,"cause")?"{ ["+String(t)+"] "+ea.call(f5.call("[cause]: "+g(t.cause),F),", ")+" }":F.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ea.call(F,", ")+" }"}if(typeof t=="object"&&o){if(p5&&typeof t[p5]=="function"&&Iw)return Iw(t,{depth:p-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(vz(t)){var I=[];return Y9.call(t,function(De,Ue){I.push(g(Ue,t,!0)+" => "+g(De,t))}),m5("Map",nm.call(t),I,x)}if(yz(t)){var $=[];return X9.call(t,function(De){$.push(g(De,t))}),m5("Set",im.call(t),$,x)}if(mz(t))return ox("WeakMap");if(xz(t))return ox("WeakSet");if(gz(t))return ox("WeakRef");if(sz(t))return Vc(g(Number(t)));if(hz(t))return Vc(g(Fw.call(t)));if(cz(t))return Vc(J9.call(t));if(fz(t))return Vc(g(String(t)));if(!uz(t)&&!v5(t)){var ne=Pv(t,g),V=c5?c5(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Ce=!V&&Ln&&Object(t)===t&&Ln in t?Db.call(ou(t),8,-1):ae?"Object":"",Oe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Pe=Oe+(Ce||ae?"["+ea.call(f5.call([],Ce||[],ae||[]),": ")+"] ":"");return ne.length===0?Pe+"{}":x?Pe+"{"+$w(ne,x)+"}":Pe+"{ "+ea.call(ne,", ")+" }"}return String(t)};function g4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function oz(e){return Lo.call(String(e),/"/g,"&quot;")}function Lw(e){return ou(e)==="[object Array]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function uz(e){return ou(e)==="[object Date]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function v5(e){return ou(e)==="[object RegExp]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function lz(e){return ou(e)==="[object Error]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function fz(e){return ou(e)==="[object String]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function sz(e){return ou(e)==="[object Number]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function cz(e){return ou(e)==="[object Boolean]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function y4(e){if(as)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nw)return!1;try{return Nw.call(e),!0}catch{}return!1}function hz(e){if(!e||typeof e!="object"||!Fw)return!1;try{return Fw.call(e),!0}catch{}return!1}var dz=Object.prototype.hasOwnProperty||function(e){return e in this};function Oo(e,t){return dz.call(e,t)}function ou(e){return ez.call(e)}function pz(e){if(e.name)return e.name;var t=rz.call(tz.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 vz(e){if(!nm||!e||typeof e!="object")return!1;try{nm.call(e);try{im.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function mz(e){if(!Fh||!e||typeof e!="object")return!1;try{Fh.call(e,Fh);try{Nh.call(e,Nh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function gz(e){if(!u5||!e||typeof e!="object")return!1;try{return u5.call(e),!0}catch{}return!1}function yz(e){if(!im||!e||typeof e!="object")return!1;try{im.call(e);try{nm.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function xz(e){if(!Nh||!e||typeof e!="object")return!1;try{Nh.call(e,Nh);try{Fh.call(e,Fh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function _z(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(Db.call(e,0,t.maxStringLength),t)+n}var i=Lo.call(Lo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wz);return g4(i,"single",t)}function wz(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":"")+nz.call(t.toString(16))}function Vc(e){return"Object("+e+")"}function ox(e){return e+" { ? }"}function m5(e,t,r,n){var i=n?$w(r,n):ea.call(r,", ");return e+" ("+t+") {"+i+"}"}function bz(e){for(var t=0;t<e.length;t++)if(x4(e[t],`
822
- `)>=0)return!1;return!0}function Sz(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ea.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ea.call(Array(t+1),r)}}function $w(e,t){if(e.length===0)return"";var r=`
821
+ `),T}return Q0(function(){s.current=e,c.current=x,p.current=g,l.current=void 0}),Q0(function(){function T(){try{var P=r.getState();if(P===c.current)return;var b=s.current(P);if(t(b,p.current))return;p.current=b,c.current=P}catch(_){l.current=_}a()}return o.onStateChange=T,o.trySubscribe(),T(),function(){return o.tryUnsubscribe()}},[r,o]),g}function GM(e){e===void 0&&(e=ca);var t=e===ca?zM:function(){return vr.useContext(e)};return function(n,i){i===void 0&&(i=CB);var a=t(),o=a.store,l=a.subscription,s=TB(n,i,o,l);return vr.useDebugValue(s),s}}var OB=GM();bD(Dh.unstable_batchedUpdates);const dK=Object.freeze(Object.defineProperty({__proto__:null,Provider:AD,ReactReduxContext:ca,batch:Dh.unstable_batchedUpdates,connect:EB,connectAdvanced:DM,createDispatchHook:jM,createSelectorHook:GM,createStoreHook:Pb,shallowEqual:v0,useDispatch:AB,useSelector:OB,useStore:UM},Symbol.toStringTag,{value:"Module"}));var NA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function kB(e,t){return!!(e===t||NA(e)&&NA(t))}function MB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!kB(e[r],t[r]))return!1;return!0}function pK(e,t){t===void 0&&(t=MB);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var IA=Object.prototype.toString,HM=function(t){var r=IA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&IA.call(t.callee)==="[object Function]"),n},V1,LA;function RB(){if(LA)return V1;LA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=HM,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(g){var y=g.constructor;return y&&y.prototype===g},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},p=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{s(window[g])}catch{return!0}}catch{return!0}return!1}(),x=function(g){if(typeof window>"u"||!p)return s(g);try{return s(g)}catch{return!1}};e=function(y){var T=y!==null&&typeof y=="object",P=r.call(y)==="[object Function]",b=n(y),_=T&&r.call(y)==="[object String]",E=[];if(!T&&!P&&!b)throw new TypeError("Object.keys called on a non-object");var k=o&&P;if(_&&y.length>0&&!t.call(y,0))for(var F=0;F<y.length;++F)E.push(String(F));if(b&&y.length>0)for(var I=0;I<y.length;++I)E.push(String(I));else for(var $ in y)!(k&&$==="prototype")&&t.call(y,$)&&E.push(String($));if(a)for(var ne=x(y),V=0;V<l.length;++V)!(ne&&l[V]==="constructor")&&t.call(y,l[V])&&E.push(l[V]);return E}}return V1=e,V1}var PB=Array.prototype.slice,FB=HM,$A=Object.keys,m0=$A?function(t){return $A(t)}:RB(),DA=Object.keys;m0.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 FB(n)?DA(PB.call(n)):DA(n)})}else Object.keys=m0;return Object.keys||m0};var Fb=m0,hg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},NB=hg,iu=function(){return NB()&&!!Symbol.toStringTag},BA=typeof Symbol<"u"&&Symbol,IB=hg,Nb=function(){return typeof BA!="function"||typeof Symbol!="function"||typeof BA("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IB()},LB="Function.prototype.bind called on incompatible ",Y1=Array.prototype.slice,$B=Object.prototype.toString,DB="[object Function]",BB=function(t){var r=this;if(typeof r!="function"||$B.call(r)!==DB)throw new TypeError(LB+r);for(var n=Y1.call(arguments,1),i,a=function(){if(this instanceof i){var p=r.apply(this,n.concat(Y1.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(Y1.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},zB=BB,Ib=Function.prototype.bind||zB,UB=Ib,jB=UB.call(Function.call,Object.prototype.hasOwnProperty),mr,ns=SyntaxError,qM=Function,Wf=TypeError,X1=function(e){try{return qM('"use strict"; return ('+e+").constructor;")()}catch{}},Ju=Object.getOwnPropertyDescriptor;if(Ju)try{Ju({},"")}catch{Ju=null}var Q1=function(){throw new Wf},GB=Ju?function(){try{return arguments.callee,Q1}catch{try{return Ju(arguments,"callee").get}catch{return Q1}}}():Q1,vf=Nb(),To=Object.getPrototypeOf||function(e){return e.__proto__},Sf={},HB=typeof Uint8Array>"u"?mr:To(Uint8Array),Vf={"%AggregateError%":typeof AggregateError>"u"?mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mr:ArrayBuffer,"%ArrayIteratorPrototype%":vf?To([][Symbol.iterator]()):mr,"%AsyncFromSyncIteratorPrototype%":mr,"%AsyncFunction%":Sf,"%AsyncGenerator%":Sf,"%AsyncGeneratorFunction%":Sf,"%AsyncIteratorPrototype%":Sf,"%Atomics%":typeof Atomics>"u"?mr:Atomics,"%BigInt%":typeof BigInt>"u"?mr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?mr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mr:FinalizationRegistry,"%Function%":qM,"%GeneratorFunction%":Sf,"%Int8Array%":typeof Int8Array>"u"?mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vf?To(To([][Symbol.iterator]())):mr,"%JSON%":typeof JSON=="object"?JSON:mr,"%Map%":typeof Map>"u"?mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vf?mr:To(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mr:Promise,"%Proxy%":typeof Proxy>"u"?mr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?mr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vf?mr:To(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vf?To(""[Symbol.iterator]()):mr,"%Symbol%":vf?Symbol:mr,"%SyntaxError%":ns,"%ThrowTypeError%":GB,"%TypedArray%":HB,"%TypeError%":Wf,"%Uint8Array%":typeof Uint8Array>"u"?mr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?mr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mr:WeakSet},qB=function e(t){var r;if(t==="%AsyncFunction%")r=X1("async function () {}");else if(t==="%GeneratorFunction%")r=X1("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=X1("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=To(i.prototype))}return Vf[t]=r,r},zA={"%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"]},Ld=Ib,Z0=jB,WB=Ld.call(Function.call,Array.prototype.concat),VB=Ld.call(Function.apply,Array.prototype.splice),UA=Ld.call(Function.call,String.prototype.replace),K0=Ld.call(Function.call,String.prototype.slice),YB=Ld.call(Function.call,RegExp.prototype.exec),XB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QB=/\\(\\)?/g,ZB=function(t){var r=K0(t,0,1),n=K0(t,-1);if(r==="%"&&n!=="%")throw new ns("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ns("invalid intrinsic syntax, expected opening `%`");var i=[];return UA(t,XB,function(a,o,l,s){i[i.length]=l?UA(s,QB,"$1"):o||a}),i},KB=function(t,r){var n=t,i;if(Z0(zA,n)&&(i=zA[n],n="%"+i[0]+"%"),Z0(Vf,n)){var a=Vf[n];if(a===Sf&&(a=qB(n)),typeof a>"u"&&!r)throw new Wf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ns("intrinsic "+t+" does not exist!")},au=function(t,r){if(typeof t!="string"||t.length===0)throw new Wf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Wf('"allowMissing" argument must be a boolean');if(YB(/^%?[^%]*%?$/,t)===null)throw new ns("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ZB(t),i=n.length>0?n[0]:"",a=KB("%"+i+"%",r),o=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],VB(n,WB([0,1],c)));for(var p=1,x=!0;p<n.length;p+=1){var g=n[p],y=K0(g,0,1),T=K0(g,-1);if((y==='"'||y==="'"||y==="`"||T==='"'||T==="'"||T==="`")&&y!==T)throw new ns("property names with quotes must have matching quotes");if((g==="constructor"||!x)&&(s=!0),i+="."+g,o="%"+i+"%",Z0(Vf,o))l=Vf[o];else if(l!=null){if(!(g in l)){if(!r)throw new Wf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ju&&p+1>=n.length){var P=Ju(l,g);x=!!P,x&&"get"in P&&!("originalValue"in P.get)?l=P.get:l=l[g]}else x=Z0(l,g),l=l[g];x&&!s&&(Vf[o]=l)}}return l},is={},JB={get exports(){return is},set exports(e){is=e}};(function(e){var t=Ib,r=au,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(x){var g=a(t,i,arguments);if(o&&l){var y=o(g,"length");y.configurable&&l(g,"length",{value:1+s(0,x.length-(arguments.length-1))})}return g};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(JB);var WM=au,VM=is,e7=VM(WM("String.prototype.indexOf")),pa=function(t,r){var n=WM(t,!!r);return typeof n=="function"&&e7(t,".prototype.")>-1?VM(n):n},t7=iu(),r7=pa,bw=r7("Object.prototype.toString"),dg=function(t){return t7&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:bw(t)==="[object Arguments]"},YM=function(t){return dg(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&bw(t)!=="[object Array]"&&bw(t.callee)==="[object Function]"},n7=function(){return dg(arguments)}();dg.isLegacyArguments=YM;var XM=n7?dg:YM,i7=au,Sw=i7("%Object.defineProperty%",!0),Ew=function(){if(Sw)try{return Sw({},"a",{value:1}),!0}catch{return!1}return!1};Ew.hasArrayLengthDefineBug=function(){if(!Ew())return null;try{return Sw([],"length",{value:1}).length!==1}catch{return!0}};var a7=Ew,o7=Fb,u7=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",l7=Object.prototype.toString,f7=Array.prototype.concat,QM=Object.defineProperty,s7=function(e){return typeof e=="function"&&l7.call(e)==="[object Function]"},c7=a7(),ZM=QM&&c7,h7=function(e,t,r,n){t in e&&(!s7(n)||!n())||(ZM?QM(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},KM=function(e,t){var r=arguments.length>2?arguments[2]:{},n=o7(t);u7&&(n=f7.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)h7(e,n[i],t[n[i]],r[n[i]])};KM.supportsDescriptors=!!ZM;var Sl=KM,jA=function(e){return e!==e},JM=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||jA(t)&&jA(r))},d7=JM,e4=function(){return typeof Object.is=="function"?Object.is:d7},p7=e4,v7=Sl,m7=function(){var t=p7();return v7(Object,{is:t},{is:function(){return Object.is!==t}}),t},g7=Sl,y7=is,x7=JM,t4=e4,_7=m7,r4=y7(t4(),Object);g7(r4,{getPolyfill:t4,implementation:x7,shim:_7});var w7=r4,Aw=pa,n4=iu(),i4,a4,Cw,Tw;if(n4){i4=Aw("Object.prototype.hasOwnProperty"),a4=Aw("RegExp.prototype.exec"),Cw={};var Z1=function(){throw Cw};Tw={toString:Z1,valueOf:Z1},typeof Symbol.toPrimitive=="symbol"&&(Tw[Symbol.toPrimitive]=Z1)}var b7=Aw("Object.prototype.toString"),S7=Object.getOwnPropertyDescriptor,E7="[object RegExp]",A7=n4?function(t){if(!t||typeof t!="object")return!1;var r=S7(t,"lastIndex"),n=r&&i4(r,"value");if(!n)return!1;try{a4(t,Tw)}catch(i){return i===Cw}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:b7(t)===E7},J0={},C7={get exports(){return J0},set exports(e){J0=e}},od=function(){return typeof function(){}.name=="string"},Ph=Object.getOwnPropertyDescriptor;if(Ph)try{Ph([],"length")}catch{Ph=null}od.functionsHaveConfigurableNames=function(){if(!od()||!Ph)return!1;var t=Ph(function(){},"name");return!!t&&!!t.configurable};var T7=Function.prototype.bind;od.boundFunctionsHaveNames=function(){return od()&&typeof T7=="function"&&function(){}.bind().name!==""};var O7=od;(function(e){var t=O7.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"})})(C7);var k7=J0,M7=Sl.supportsDescriptors,R7=Object.getOwnPropertyDescriptor,o4=function(){if(M7&&/a/mig.flags==="gim"){var t=R7(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 k7},P7=Sl.supportsDescriptors,F7=o4,N7=Object.getOwnPropertyDescriptor,I7=Object.defineProperty,L7=TypeError,GA=Object.getPrototypeOf,$7=/a/,D7=function(){if(!P7||!GA)throw new L7("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=F7(),r=GA($7),n=N7(r,"flags");return(!n||n.get!==t)&&I7(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},B7=Sl,z7=is,U7=J0,u4=o4,j7=D7,l4=z7(u4());B7(l4,{getPolyfill:u4,implementation:U7,shim:j7});var G7=l4,H7={}.toString,f4=Array.isArray||function(e){return H7.call(e)=="[object Array]"},q7=Date.prototype.getDay,W7=function(t){try{return q7.call(t),!0}catch{return!1}},V7=Object.prototype.toString,Y7="[object Date]",X7=iu(),Q7=function(t){return typeof t!="object"||t===null?!1:X7?W7(t):V7.call(t)===Y7},Z7=String.prototype.valueOf,K7=function(t){try{return Z7.call(t),!0}catch{return!1}},J7=Object.prototype.toString,e9="[object String]",t9=iu(),s4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:t9?K7(t):J7.call(t)===e9},r9=Number.prototype.toString,n9=function(t){try{return r9.call(t),!0}catch{return!1}},i9=Object.prototype.toString,a9="[object Number]",o9=iu(),u9=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:o9?n9(t):i9.call(t)===a9},c4=pa,l9=c4("Boolean.prototype.toString"),f9=c4("Object.prototype.toString"),s9=function(t){try{return l9(t),!0}catch{return!1}},c9="[object Boolean]",h9=iu(),d9=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:h9&&Symbol.toStringTag in t?s9(t):f9(t)===c9},Ow={},HA={get exports(){return Ow},set exports(e){Ow=e}},p9=Object.prototype.toString,v9=Nb();if(v9){var m9=Symbol.prototype.toString,g9=/^Symbol\(.*\)$/,y9=function(t){return typeof t.valueOf()!="symbol"?!1:g9.test(m9.call(t))};HA.exports=function(t){if(typeof t=="symbol")return!0;if(p9.call(t)!=="[object Symbol]")return!1;try{return y9(t)}catch{return!1}}}else HA.exports=function(t){return!1};var kw={},qA={get exports(){return kw},set exports(e){kw=e}},WA=typeof BigInt<"u"&&BigInt,x9=function(){return typeof WA=="function"&&typeof BigInt=="function"&&typeof WA(42)=="bigint"&&typeof BigInt(42)=="bigint"},_9=x9();if(_9){var w9=BigInt.prototype.valueOf,b9=function(t){try{return w9.call(t),!0}catch{}return!1};qA.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:b9(t)}}else qA.exports=function(t){return!1};var S9=s4,E9=u9,A9=d9,C9=Ow,T9=kw,O9=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(S9(t))return"String";if(E9(t))return"Number";if(A9(t))return"Boolean";if(C9(t))return"Symbol";if(T9(t))return"BigInt"},Lb=typeof Map=="function"&&Map.prototype?Map:null,k9=typeof Set=="function"&&Set.prototype?Set:null,em;Lb||(em=function(t){return!1});var h4=Lb?Map.prototype.has:null,VA=k9?Set.prototype.has:null;!em&&!h4&&(em=function(t){return!1});var d4=em||function(t){if(!t||typeof t!="object")return!1;try{if(h4.call(t),VA)try{VA.call(t)}catch{return!0}return t instanceof Lb}catch{}return!1},M9=typeof Map=="function"&&Map.prototype?Map:null,$b=typeof Set=="function"&&Set.prototype?Set:null,tm;$b||(tm=function(t){return!1});var YA=M9?Map.prototype.has:null,p4=$b?Set.prototype.has:null;!tm&&!p4&&(tm=function(t){return!1});var v4=tm||function(t){if(!t||typeof t!="object")return!1;try{if(p4.call(t),YA)try{YA.call(t)}catch{return!0}return t instanceof $b}catch{}return!1},rm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,XA=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,nm;rm||(nm=function(t){return!1});var Mw=rm?rm.prototype.has:null,K1=XA?XA.prototype.has:null;!nm&&!Mw&&(nm=function(t){return!1});var R9=nm||function(t){if(!t||typeof t!="object")return!1;try{if(Mw.call(t,Mw),K1)try{K1.call(t,K1)}catch{return!0}return t instanceof rm}catch{}return!1},Rw={},QA={get exports(){return Rw},set exports(e){Rw=e}},P9=au,m4=pa,F9=P9("%WeakSet%",!0),J1=m4("WeakSet.prototype.has",!0);if(J1){var ex=m4("WeakMap.prototype.has",!0);QA.exports=function(t){if(!t||typeof t!="object")return!1;try{if(J1(t,J1),ex)try{ex(t,ex)}catch{return!0}return t instanceof F9}catch{}return!1}}else QA.exports=function(t){return!1};var N9=d4,I9=v4,L9=R9,$9=Rw,D9=function(t){if(t&&typeof t=="object"){if(N9(t))return"Map";if(I9(t))return"Set";if(L9(t))return"WeakMap";if($9(t))return"WeakSet"}return!1},Pw={},tx={get exports(){return Pw},set exports(e){Pw=e}},ZA=XM;if(Nb()||hg()){var rx=Symbol.iterator;tx.exports=function(t){if(t!=null&&typeof t[rx]<"u")return t[rx]();if(ZA(t))return Array.prototype[rx].call(t)}}else{var B9=f4,z9=s4,KA=au,U9=KA("%Map%",!0),j9=KA("%Set%",!0),Di=pa,JA=Di("Array.prototype.push"),e5=Di("String.prototype.charCodeAt"),G9=Di("String.prototype.slice"),H9=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=e5(t,r);if(i<55296||i>56319)return r+1;var a=e5(t,r+1);return a<56320||a>57343?r+1:r+2},nx=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}}}},t5=function(t,r){if(B9(t)||ZA(t))return nx(t);if(z9(t)){var n=0;return{next:function(){var a=H9(t,n),o=G9(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!U9&&!j9)tx.exports=function(t){if(t!=null)return t5(t,!0)};else{var q9=d4,W9=v4,r5=Di("Map.prototype.forEach",!0),n5=Di("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var i5=Di("Map.prototype.iterator",!0),a5=Di("Set.prototype.iterator",!0),o5=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 u5=Di("Map.prototype.@@iterator",!0)||Di("Map.prototype._es6-shim iterator_",!0),l5=Di("Set.prototype.@@iterator",!0)||Di("Set.prototype._es6-shim iterator_",!0),V9=function(t){if(q9(t)){if(i5)return o5(i5(t));if(u5)return u5(t);if(r5){var r=[];return r5(t,function(i,a){JA(r,[a,i])}),nx(r)}}if(W9(t)){if(a5)return o5(a5(t));if(l5)return l5(t);if(n5){var n=[];return n5(t,function(i){JA(n,i)}),nx(n)}}};tx.exports=function(t){return V9(t)||t5(t)}}}const Y9={},X9=Object.freeze(Object.defineProperty({__proto__:null,default:Y9},Symbol.toStringTag,{value:"Module"})),Fw=pl(X9);var Db=typeof Map=="function"&&Map.prototype,ix=Object.getOwnPropertyDescriptor&&Db?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,im=Db&&ix&&typeof ix.get=="function"?ix.get:null,Q9=Db&&Map.prototype.forEach,Bb=typeof Set=="function"&&Set.prototype,ax=Object.getOwnPropertyDescriptor&&Bb?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,am=Bb&&ax&&typeof ax.get=="function"?ax.get:null,Z9=Bb&&Set.prototype.forEach,K9=typeof WeakMap=="function"&&WeakMap.prototype,Fh=K9?WeakMap.prototype.has:null,J9=typeof WeakSet=="function"&&WeakSet.prototype,Nh=J9?WeakSet.prototype.has:null,ez=typeof WeakRef=="function"&&WeakRef.prototype,f5=ez?WeakRef.prototype.deref:null,tz=Boolean.prototype.valueOf,rz=Object.prototype.toString,nz=Function.prototype.toString,iz=String.prototype.match,zb=String.prototype.slice,Lo=String.prototype.replace,az=String.prototype.toUpperCase,s5=String.prototype.toLowerCase,g4=RegExp.prototype.test,c5=Array.prototype.concat,ea=Array.prototype.join,oz=Array.prototype.slice,h5=Math.floor,Nw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ox=Object.getOwnPropertySymbols,Iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,as=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ln=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===as||"symbol")?Symbol.toStringTag:null,y4=Object.prototype.propertyIsEnumerable,d5=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function p5(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||g4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-h5(-e):h5(e);if(n!==e){var i=String(n),a=zb.call(t,i.length+1);return Lo.call(i,r,"$&_")+"."+Lo.call(Lo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lo.call(t,r,"$&_")}var Lw=Fw,v5=Lw.custom,m5=_4(v5)?v5:null,uz=function e(t,r,n,i){var a=r||{};if(Oo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Oo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Oo(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Oo(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(Oo(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 b4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?p5(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?p5(t,c):c}var p=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof t=="object")return $w(t)?"[Array]":"[Object]";var x=Az(a,n);if(typeof i>"u")i=[];else if(w4(i,t)>=0)return"[Circular]";function g(De,Ue,ft){if(Ue&&(i=oz.call(i),i.push(Ue)),ft){var nt={depth:a.depth};return Oo(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(De,nt,n+1,i)}return e(De,a,n+1,i)}if(typeof t=="function"&&!g5(t)){var y=mz(t),T=Pv(t,g);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(T.length>0?" { "+ea.call(T,", ")+" }":"")}if(_4(t)){var P=as?Lo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Iw.call(t);return typeof t=="object"&&!as?Vc(P):P}if(bz(t)){for(var b="<"+s5.call(String(t.nodeName)),_=t.attributes||[],E=0;E<_.length;E++)b+=" "+_[E].name+"="+x4(lz(_[E].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+s5.call(String(t.nodeName))+">",b}if($w(t)){if(t.length===0)return"[]";var k=Pv(t,g);return x&&!Ez(k)?"["+Dw(k,x)+"]":"[ "+ea.call(k,", ")+" ]"}if(sz(t)){var F=Pv(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!y4.call(t,"cause")?"{ ["+String(t)+"] "+ea.call(c5.call("[cause]: "+g(t.cause),F),", ")+" }":F.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ea.call(F,", ")+" }"}if(typeof t=="object"&&o){if(m5&&typeof t[m5]=="function"&&Lw)return Lw(t,{depth:p-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(gz(t)){var I=[];return Q9.call(t,function(De,Ue){I.push(g(Ue,t,!0)+" => "+g(De,t))}),y5("Map",im.call(t),I,x)}if(_z(t)){var $=[];return Z9.call(t,function(De){$.push(g(De,t))}),y5("Set",am.call(t),$,x)}if(yz(t))return ux("WeakMap");if(wz(t))return ux("WeakSet");if(xz(t))return ux("WeakRef");if(hz(t))return Vc(g(Number(t)));if(pz(t))return Vc(g(Nw.call(t)));if(dz(t))return Vc(tz.call(t));if(cz(t))return Vc(g(String(t)));if(!fz(t)&&!g5(t)){var ne=Pv(t,g),V=d5?d5(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Te=!V&&Ln&&Object(t)===t&&Ln in t?zb.call(ou(t),8,-1):ae?"Object":"",Oe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Pe=Oe+(Te||ae?"["+ea.call(c5.call([],Te||[],ae||[]),": ")+"] ":"");return ne.length===0?Pe+"{}":x?Pe+"{"+Dw(ne,x)+"}":Pe+"{ "+ea.call(ne,", ")+" }"}return String(t)};function x4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function lz(e){return Lo.call(String(e),/"/g,"&quot;")}function $w(e){return ou(e)==="[object Array]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function fz(e){return ou(e)==="[object Date]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function g5(e){return ou(e)==="[object RegExp]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function sz(e){return ou(e)==="[object Error]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function cz(e){return ou(e)==="[object String]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function hz(e){return ou(e)==="[object Number]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function dz(e){return ou(e)==="[object Boolean]"&&(!Ln||!(typeof e=="object"&&Ln in e))}function _4(e){if(as)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Iw)return!1;try{return Iw.call(e),!0}catch{}return!1}function pz(e){if(!e||typeof e!="object"||!Nw)return!1;try{return Nw.call(e),!0}catch{}return!1}var vz=Object.prototype.hasOwnProperty||function(e){return e in this};function Oo(e,t){return vz.call(e,t)}function ou(e){return rz.call(e)}function mz(e){if(e.name)return e.name;var t=iz.call(nz.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function w4(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 gz(e){if(!im||!e||typeof e!="object")return!1;try{im.call(e);try{am.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function yz(e){if(!Fh||!e||typeof e!="object")return!1;try{Fh.call(e,Fh);try{Nh.call(e,Nh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xz(e){if(!f5||!e||typeof e!="object")return!1;try{return f5.call(e),!0}catch{}return!1}function _z(e){if(!am||!e||typeof e!="object")return!1;try{am.call(e);try{im.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function wz(e){if(!Nh||!e||typeof e!="object")return!1;try{Nh.call(e,Nh);try{Fh.call(e,Fh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function bz(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function b4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return b4(zb.call(e,0,t.maxStringLength),t)+n}var i=Lo.call(Lo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Sz);return x4(i,"single",t)}function Sz(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":"")+az.call(t.toString(16))}function Vc(e){return"Object("+e+")"}function ux(e){return e+" { ? }"}function y5(e,t,r,n){var i=n?Dw(r,n):ea.call(r,", ");return e+" ("+t+") {"+i+"}"}function Ez(e){for(var t=0;t<e.length;t++)if(w4(e[t],`
822
+ `)>=0)return!1;return!0}function Az(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ea.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ea.call(Array(t+1),r)}}function Dw(e,t){if(e.length===0)return"";var r=`
823
823
  `+t.prev+t.base;return r+ea.call(e,","+r)+`
824
- `+t.prev}function Pv(e,t){var r=Lw(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Oo(e,i)?t(e[i],e):""}var a=typeof ax=="function"?ax(e):[],o;if(as){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)Oo(e,s)&&(r&&String(Number(s))===s&&s<e.length||as&&o["$"+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 ax=="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 Bb=au,ws=pa,Ez=az,Az=Bb("%TypeError%"),Fv=Bb("%WeakMap%",!0),Nv=Bb("%Map%",!0),Tz=ws("WeakMap.prototype.get",!0),Cz=ws("WeakMap.prototype.set",!0),Oz=ws("WeakMap.prototype.has",!0),kz=ws("Map.prototype.get",!0),Mz=ws("Map.prototype.set",!0),Rz=ws("Map.prototype.has",!0),zb=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},Pz=function(e,t){var r=zb(e,t);return r&&r.value},Fz=function(e,t,r){var n=zb(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Nz=function(e,t){return!!zb(e,t)},Iz=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new Az("Side channel does not contain "+Ez(a))},get:function(a){if(Fv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Tz(t,a)}else if(Nv){if(r)return kz(r,a)}else if(n)return Pz(n,a)},has:function(a){if(Fv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Oz(t,a)}else if(Nv){if(r)return Rz(r,a)}else if(n)return Nz(n,a);return!1},set:function(a,o){Fv&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Fv),Cz(t,a,o)):Nv?(r||(r=new Nv),Mz(r,a,o)):(n||(n={key:{},next:null}),Fz(n,a,o))}};return i},Lz=Object.prototype.hasOwnProperty,$z=Object.prototype.toString,w4=function(t,r,n){if($z.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)Lz.call(t,o)&&r.call(n,t[o],o,t)},ux=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Dz=typeof globalThis>"u"?tr:globalThis,b4=function(){for(var t=[],r=0;r<ux.length;r++)typeof Dz[ux[r]]=="function"&&(t[t.length]=ux[r]);return t},am={},Bz={get exports(){return am},set exports(e){am=e}},lx,g5;function zz(){if(g5)return lx;g5=1;var e=au,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return lx=t,lx}var y5;function S4(){return y5||(y5=1,function(e){e.exports=zz()}(Bz)),am}var fx,x5;function Uz(){if(x5)return fx;x5=1;var e=w4,t=b4,r=pa,n=r("Object.prototype.toString"),i=iu(),a=typeof globalThis>"u"?tr:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(C,P){for(var b=0;b<C.length;b+=1)if(C[b]===P)return b;return-1},s=r("String.prototype.slice"),c={},p=S4(),x=Object.getPrototypeOf;i&&p&&x&&e(o,function(y){var C=new a[y];if(Symbol.toStringTag in C){var P=x(C),b=p(P,Symbol.toStringTag);if(!b){var _=x(P);b=p(_,Symbol.toStringTag)}c[y]=b.get}});var g=function(C){var P=!1;return e(c,function(b,_){if(!P)try{P=b.call(C)===_}catch{}}),P};return fx=function(C){if(!C||typeof C!="object")return!1;if(!i||!(Symbol.toStringTag in C)){var P=s(n(C),8,-1);return l(o,P)>-1}return p?g(C):!1},fx}var E4=w4,jz=b4,A4=pa,Gz=A4("Object.prototype.toString"),T4=iu(),_5=typeof globalThis>"u"?tr:globalThis,Hz=jz(),qz=A4("String.prototype.slice"),C4={},sx=S4(),cx=Object.getPrototypeOf;T4&&sx&&cx&&E4(Hz,function(e){if(typeof _5[e]=="function"){var t=new _5[e];if(Symbol.toStringTag in t){var r=cx(t),n=sx(r,Symbol.toStringTag);if(!n){var i=cx(r);n=sx(i,Symbol.toStringTag)}C4[e]=n.get}}});var Wz=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},Vz=Uz(),Yz=function(t){return Vz(t)?!T4||!(Symbol.toStringTag in t)?qz(Gz(t),8,-1):Wz(t):!1},Xz=Rb,O4=cg(),k4=pa,w5=Object,Qz=k4("Array.prototype.push"),b5=k4("Object.prototype.propertyIsEnumerable"),Zz=O4?Object.getOwnPropertySymbols:null,M4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=w5(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=w5(arguments[i]),o=Xz(a),l=O4&&(Object.getOwnPropertySymbols||Zz);if(l)for(var s=l(a),c=0;c<s.length;++c){var p=s[c];b5(a,p)&&Qz(o,p)}for(var x=0;x<o.length;++x){var g=o[x];if(b5(a,g)){var y=a[g];n[g]=y}}}return n},hx=M4,Kz=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},Jz=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},R4=function(){return!Object.assign||Kz()||Jz()?hx:Object.assign},eU=Sl,tU=R4,rU=function(){var t=tU();return eU(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},nU=Sl,iU=is,aU=M4,P4=R4,oU=rU,uU=iU.apply(P4()),F4=function(t,r){return uU(Object,arguments)};nU(F4,{getPolyfill:P4,implementation:aU,shim:oU});var lU=F4,S5=Rb,E5=VM,A5=x7,T5=S7,C5=U7,O5=u4,k5=Y7,M5=T9,fU=au,Ja=pa,R5=L9,os=Rw,sU=Iz,P5=Yz,N4=lU,F5=Ja("Date.prototype.getTime"),dx=Object.getPrototypeOf,N5=Ja("Object.prototype.toString"),om=fU("%Set%",!0),Dw=Ja("Map.prototype.has",!0),um=Ja("Map.prototype.get",!0),I5=Ja("Map.prototype.size",!0),lm=Ja("Set.prototype.add",!0),I4=Ja("Set.prototype.delete",!0),fm=Ja("Set.prototype.has",!0),m0=Ja("Set.prototype.size",!0);function L5(e,t,r,n){for(var i=os(e),a;(a=i.next())&&!a.done;)if(Va(t,a.value,r,n))return I4(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 cU(e,t,r,n,i,a){var o=L4(r);if(o!=null)return o;var l=um(t,o),s=N4({},i,{strict:!1});return typeof l>"u"&&!Dw(t,o)||!Va(n,l,s,a)?!1:!Dw(e,o)&&Va(n,l,s,a)}function hU(e,t,r){var n=L4(r);return n??(fm(t,n)&&!fm(e,n))}function $5(e,t,r,n,i,a){for(var o=os(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,Va(r,s,i,a)&&Va(n,um(t,s),i,a))return I4(e,s),!0;return!1}function Va(e,t,r,n){var i=r||{};if(i.strict?A5(e,t):e===t)return!0;var a=M5(e),o=M5(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?A5(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),vU(e,t,i,n)}function D5(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 dU(e,t,r,n){if(m0(e)!==m0(t))return!1;for(var i=os(e),a=os(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new om),lm(s,o.value);else if(!fm(t,o.value)){if(r.strict||!hU(e,t,o.value))return!1;s||(s=new om),lm(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!L5(s,l.value,r.strict,n))return!1}else if(!r.strict&&!fm(e,l.value)&&!L5(s,l.value,r.strict,n))return!1;return m0(s)===0}return!0}function pU(e,t,r,n){if(I5(e)!==I5(t))return!1;for(var i=os(e),a=os(t),o,l,s,c,p,x;(o=i.next())&&!o.done;)if(c=o.value[0],p=o.value[1],c&&typeof c=="object")s||(s=new om),lm(s,c);else if(x=um(t,c),typeof x>"u"&&!Dw(t,c)||!Va(p,x,r,n)){if(r.strict||!cU(e,t,c,p,r,n))return!1;s||(s=new om),lm(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],x=l.value[1],c&&typeof c=="object"){if(!$5(s,e,c,x,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Va(um(e,c),x,r,n))&&!$5(s,e,c,x,N4({},r,{strict:!1}),n))return!1;return m0(s)===0}return!0}function vU(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||N5(e)!==N5(t)||E5(e)!==E5(t))return!1;var o=O5(e),l=O5(t);if(o!==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 p=T5(e),x=T5(t);if(p!==x||(p||x)&&(e.source!==t.source||C5(e)!==C5(t)))return!1;var g=k5(e),y=k5(t);if(g!==y||(g||y)&&F5(e)!==F5(t)||r.strict&&dx&&dx(e)!==dx(t)||P5(e)!==P5(t))return!1;var C=D5(e),P=D5(t);if(C!==P)return!1;if(C||P){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=S5(e),_=S5(t);if(b.length!==_.length)return!1;for(b.sort(),_.sort(),i=b.length-1;i>=0;i--)if(b[i]!=_[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Va(e[a],t[a],r,n))return!1;var E=R5(e),k=R5(t);return E!==k?!1:E==="Set"||k==="Set"?dU(e,t,r,n):E==="Map"?pU(e,t,r,n):!0}var hK=function(t,r,n){return Va(t,r,n,sU())},B5={},mU={get exports(){return B5},set exports(e){B5=e}};/*! Native Promise Only
824
+ `+t.prev}function Pv(e,t){var r=$w(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Oo(e,i)?t(e[i],e):""}var a=typeof ox=="function"?ox(e):[],o;if(as){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)Oo(e,s)&&(r&&String(Number(s))===s&&s<e.length||as&&o["$"+s]instanceof Symbol||(g4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof ox=="function")for(var c=0;c<a.length;c++)y4.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var Ub=au,ws=pa,Cz=uz,Tz=Ub("%TypeError%"),Fv=Ub("%WeakMap%",!0),Nv=Ub("%Map%",!0),Oz=ws("WeakMap.prototype.get",!0),kz=ws("WeakMap.prototype.set",!0),Mz=ws("WeakMap.prototype.has",!0),Rz=ws("Map.prototype.get",!0),Pz=ws("Map.prototype.set",!0),Fz=ws("Map.prototype.has",!0),jb=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},Nz=function(e,t){var r=jb(e,t);return r&&r.value},Iz=function(e,t,r){var n=jb(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Lz=function(e,t){return!!jb(e,t)},$z=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new Tz("Side channel does not contain "+Cz(a))},get:function(a){if(Fv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Oz(t,a)}else if(Nv){if(r)return Rz(r,a)}else if(n)return Nz(n,a)},has:function(a){if(Fv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Mz(t,a)}else if(Nv){if(r)return Fz(r,a)}else if(n)return Lz(n,a);return!1},set:function(a,o){Fv&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Fv),kz(t,a,o)):Nv?(r||(r=new Nv),Pz(r,a,o)):(n||(n={key:{},next:null}),Iz(n,a,o))}};return i},Dz=Object.prototype.hasOwnProperty,Bz=Object.prototype.toString,S4=function(t,r,n){if(Bz.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)Dz.call(t,o)&&r.call(n,t[o],o,t)},lx=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],zz=typeof globalThis>"u"?tr:globalThis,E4=function(){for(var t=[],r=0;r<lx.length;r++)typeof zz[lx[r]]=="function"&&(t[t.length]=lx[r]);return t},om={},Uz={get exports(){return om},set exports(e){om=e}},fx,x5;function jz(){if(x5)return fx;x5=1;var e=au,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return fx=t,fx}var _5;function A4(){return _5||(_5=1,function(e){e.exports=jz()}(Uz)),om}var sx,w5;function Gz(){if(w5)return sx;w5=1;var e=S4,t=E4,r=pa,n=r("Object.prototype.toString"),i=iu(),a=typeof globalThis>"u"?tr:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(T,P){for(var b=0;b<T.length;b+=1)if(T[b]===P)return b;return-1},s=r("String.prototype.slice"),c={},p=A4(),x=Object.getPrototypeOf;i&&p&&x&&e(o,function(y){var T=new a[y];if(Symbol.toStringTag in T){var P=x(T),b=p(P,Symbol.toStringTag);if(!b){var _=x(P);b=p(_,Symbol.toStringTag)}c[y]=b.get}});var g=function(T){var P=!1;return e(c,function(b,_){if(!P)try{P=b.call(T)===_}catch{}}),P};return sx=function(T){if(!T||typeof T!="object")return!1;if(!i||!(Symbol.toStringTag in T)){var P=s(n(T),8,-1);return l(o,P)>-1}return p?g(T):!1},sx}var C4=S4,Hz=E4,T4=pa,qz=T4("Object.prototype.toString"),O4=iu(),b5=typeof globalThis>"u"?tr:globalThis,Wz=Hz(),Vz=T4("String.prototype.slice"),k4={},cx=A4(),hx=Object.getPrototypeOf;O4&&cx&&hx&&C4(Wz,function(e){if(typeof b5[e]=="function"){var t=new b5[e];if(Symbol.toStringTag in t){var r=hx(t),n=cx(r,Symbol.toStringTag);if(!n){var i=hx(r);n=cx(i,Symbol.toStringTag)}k4[e]=n.get}}});var Yz=function(t){var r=!1;return C4(k4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},Xz=Gz(),Qz=function(t){return Xz(t)?!O4||!(Symbol.toStringTag in t)?Vz(qz(t),8,-1):Yz(t):!1},Zz=Fb,M4=hg(),R4=pa,S5=Object,Kz=R4("Array.prototype.push"),E5=R4("Object.prototype.propertyIsEnumerable"),Jz=M4?Object.getOwnPropertySymbols:null,P4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=S5(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=S5(arguments[i]),o=Zz(a),l=M4&&(Object.getOwnPropertySymbols||Jz);if(l)for(var s=l(a),c=0;c<s.length;++c){var p=s[c];E5(a,p)&&Kz(o,p)}for(var x=0;x<o.length;++x){var g=o[x];if(E5(a,g)){var y=a[g];n[g]=y}}}return n},dx=P4,eU=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},tU=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||eU()||tU()?dx:Object.assign},rU=Sl,nU=F4,iU=function(){var t=nU();return rU(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},aU=Sl,oU=is,uU=P4,N4=F4,lU=iU,fU=oU.apply(N4()),I4=function(t,r){return fU(Object,arguments)};aU(I4,{getPolyfill:N4,implementation:uU,shim:lU});var sU=I4,A5=Fb,C5=XM,T5=w7,O5=A7,k5=G7,M5=f4,R5=Q7,P5=O9,cU=au,Ja=pa,F5=D9,os=Pw,hU=$z,N5=Qz,L4=sU,I5=Ja("Date.prototype.getTime"),px=Object.getPrototypeOf,L5=Ja("Object.prototype.toString"),um=cU("%Set%",!0),Bw=Ja("Map.prototype.has",!0),lm=Ja("Map.prototype.get",!0),$5=Ja("Map.prototype.size",!0),fm=Ja("Set.prototype.add",!0),$4=Ja("Set.prototype.delete",!0),sm=Ja("Set.prototype.has",!0),g0=Ja("Set.prototype.size",!0);function D5(e,t,r,n){for(var i=os(e),a;(a=i.next())&&!a.done;)if(Va(t,a.value,r,n))return $4(e,a.value),!0;return!1}function D4(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 dU(e,t,r,n,i,a){var o=D4(r);if(o!=null)return o;var l=lm(t,o),s=L4({},i,{strict:!1});return typeof l>"u"&&!Bw(t,o)||!Va(n,l,s,a)?!1:!Bw(e,o)&&Va(n,l,s,a)}function pU(e,t,r){var n=D4(r);return n??(sm(t,n)&&!sm(e,n))}function B5(e,t,r,n,i,a){for(var o=os(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,Va(r,s,i,a)&&Va(n,lm(t,s),i,a))return $4(e,s),!0;return!1}function Va(e,t,r,n){var i=r||{};if(i.strict?T5(e,t):e===t)return!0;var a=P5(e),o=P5(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?T5(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),gU(e,t,i,n)}function z5(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 vU(e,t,r,n){if(g0(e)!==g0(t))return!1;for(var i=os(e),a=os(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new um),fm(s,o.value);else if(!sm(t,o.value)){if(r.strict||!pU(e,t,o.value))return!1;s||(s=new um),fm(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!D5(s,l.value,r.strict,n))return!1}else if(!r.strict&&!sm(e,l.value)&&!D5(s,l.value,r.strict,n))return!1;return g0(s)===0}return!0}function mU(e,t,r,n){if($5(e)!==$5(t))return!1;for(var i=os(e),a=os(t),o,l,s,c,p,x;(o=i.next())&&!o.done;)if(c=o.value[0],p=o.value[1],c&&typeof c=="object")s||(s=new um),fm(s,c);else if(x=lm(t,c),typeof x>"u"&&!Bw(t,c)||!Va(p,x,r,n)){if(r.strict||!dU(e,t,c,p,r,n))return!1;s||(s=new um),fm(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],x=l.value[1],c&&typeof c=="object"){if(!B5(s,e,c,x,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Va(lm(e,c),x,r,n))&&!B5(s,e,c,x,L4({},r,{strict:!1}),n))return!1;return g0(s)===0}return!0}function gU(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||L5(e)!==L5(t)||C5(e)!==C5(t))return!1;var o=M5(e),l=M5(t);if(o!==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 p=O5(e),x=O5(t);if(p!==x||(p||x)&&(e.source!==t.source||k5(e)!==k5(t)))return!1;var g=R5(e),y=R5(t);if(g!==y||(g||y)&&I5(e)!==I5(t)||r.strict&&px&&px(e)!==px(t)||N5(e)!==N5(t))return!1;var T=z5(e),P=z5(t);if(T!==P)return!1;if(T||P){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=A5(e),_=A5(t);if(b.length!==_.length)return!1;for(b.sort(),_.sort(),i=b.length-1;i>=0;i--)if(b[i]!=_[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Va(e[a],t[a],r,n))return!1;var E=F5(e),k=F5(t);return E!==k?!1:E==="Set"||k==="Set"?vU(e,t,r,n):E==="Map"?mU(e,t,r,n):!0}var vK=function(t,r,n){return Va(t,r,n,hU())},U5={},yU={get exports(){return U5},set exports(e){U5=e}};/*! Native Promise Only
825
825
  v0.8.1 (c) Kyle Simpson
826
826
  MIT License: http://getify.mit-license.org
827
- */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof tr<"u"?tr:tr,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,F,I,$){return Object.defineProperty(k,F,{value:I,writable:!0,configurable:$!==!1})}}catch{r=function(F,I,$){return F[I]=$,F}}i=function(){var k,F,I;function $(ne,V){this.fn=ne,this.self=V,this.next=void 0}return{add:function(V,ae){I=new $(V,ae),F?F.next=I:k=I,F=I,I=void 0},drain:function(){var V=k;for(k=F=n=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(E,k){i.add(E,k),n||(n=o(i.drain))}function s(E){var k,F=typeof E;return E!=null&&(F=="object"||F=="function")&&(k=E.then),typeof k=="function"?k:!1}function c(){for(var E=0;E<this.chain.length;E++)p(this,this.state===1?this.chain[E].success:this.chain[E].failure,this.chain[E]);this.chain.length=0}function p(E,k,F){var I,$;try{k===!1?F.reject(E.msg):(k===!0?I=E.msg:I=k.call(void 0,E.msg),I===F.promise?F.reject(TypeError("Promise-chain cycle")):($=s(I))?$.call(I,F.resolve,F.reject):F.resolve(I))}catch(ne){F.reject(ne)}}function x(E){var k,F=this;if(!F.triggered){F.triggered=!0,F.def&&(F=F.def);try{(k=s(E))?l(function(){var I=new C(F);try{k.call(E,function(){x.apply(I,arguments)},function(){g.apply(I,arguments)})}catch($){g.call(I,$)}}):(F.msg=E,F.state=1,F.chain.length>0&&l(c,F))}catch(I){g.call(new C(F),I)}}}function g(E){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=E,k.state=2,k.chain.length>0&&l(c,k))}function y(E,k,F,I){for(var $=0;$<k.length;$++)(function(V){E.resolve(k[V]).then(function(Ce){F(V,Ce)},I)})($)}function C(E){this.def=E,this.triggered=!1}function P(E){this.promise=E,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(E){if(typeof E!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var k=new P(this);this.then=function(I,$){var ne={success:typeof I=="function"?I:!0,failure:typeof $=="function"?$:!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}),k.chain.push(ne),k.state!==0&&l(c,k),ne.promise},this.catch=function(I){return this.then(void 0,I)};try{E.call(void 0,function(I){x.call(k,I)},function(I){g.call(k,I)})}catch(F){g.call(k,F)}}var _=r({},"constructor",b,!1);return b.prototype=_,r(_,"__NPO__",0,!1),r(b,"resolve",function(k){var F=this;return k&&typeof k=="object"&&k.__NPO__===1?k:new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");$(k)})}),r(b,"reject",function(k){return new this(function(I,$){if(typeof I!="function"||typeof $!="function")throw TypeError("Not a function");$(k)})}),r(b,"all",function(k){var F=this;return a.call(k)!="[object Array]"?F.reject(TypeError("Not an array")):k.length===0?F.resolve([]):new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");var V=k.length,ae=Array(V),Ce=0;y(F,k,function(Pe,De){ae[Pe]=De,++Ce===V&&$(ae)},ne)})}),r(b,"race",function(k){var F=this;return a.call(k)!="[object Array]"?F.reject(TypeError("Not an array")):new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");y(F,k,function(ae,Ce){$(Ce)},ne)})}),b})})(mU);var z5={},gU={get exports(){return z5},set exports(e){z5=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(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,p=this.CSSStyleDeclaration.prototype,x=p.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,d){c.call(this,f,h,d+"")},p.setProperty=function(f,h,d){x.call(this,f,h+"",d)}}t.ascending=g;function g(u,f){return u<f?-1:u>f?1:u>=f?0:NaN}t.descending=function(u,f){return f<u?-1:f>u?1:f>=u?0:NaN},t.min=function(u,f){var h=-1,d=u.length,v,m;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=m;break}for(;++h<d;)(m=u[h])!=null&&v>m&&(v=m)}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&v>m&&(v=m)}return v},t.max=function(u,f){var h=-1,d=u.length,v,m;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=m;break}for(;++h<d;)(m=u[h])!=null&&m>v&&(v=m)}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&m>v&&(v=m)}return v},t.extent=function(u,f){var h=-1,d=u.length,v,m,A;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=A=m;break}for(;++h<d;)(m=u[h])!=null&&(v>m&&(v=m),A<m&&(A=m))}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=A=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&(v>m&&(v=m),A<m&&(A=m))}return[v,A]};function y(u){return u===null?NaN:+u}function C(u){return!isNaN(u)}t.sum=function(u,f){var h=0,d=u.length,v,m=-1;if(arguments.length===1)for(;++m<d;)C(v=+u[m])&&(h+=v);else for(;++m<d;)C(v=+f.call(u,u[m],m))&&(h+=v);return h},t.mean=function(u,f){var h=0,d=u.length,v,m=-1,A=d;if(arguments.length===1)for(;++m<d;)C(v=y(u[m]))?h+=v:--A;else for(;++m<d;)C(v=y(f.call(u,u[m],m)))?h+=v:--A;if(A)return h/A},t.quantile=function(u,f){var h=(u.length-1)*f+1,d=Math.floor(h),v=+u[d-1],m=h-d;return m?v+m*(u[d]-v):v},t.median=function(u,f){var h=[],d=u.length,v,m=-1;if(arguments.length===1)for(;++m<d;)C(v=y(u[m]))&&h.push(v);else for(;++m<d;)C(v=y(f.call(u,u[m],m)))&&h.push(v);if(h.length)return t.quantile(h.sort(g),.5)},t.variance=function(u,f){var h=u.length,d=0,v,m,A=0,w=-1,M=0;if(arguments.length===1)for(;++w<h;)C(v=y(u[w]))&&(m=v-d,d+=m/++M,A+=m*(v-d));else for(;++w<h;)C(v=y(f.call(u,u[w],w)))&&(m=v-d,d+=m/++M,A+=m*(v-d));if(M>1)return A/(M-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function P(u){return{left:function(f,h,d,v){for(arguments.length<3&&(d=0),arguments.length<4&&(v=f.length);d<v;){var m=d+v>>>1;u(f[m],h)<0?d=m+1:v=m}return d},right:function(f,h,d,v){for(arguments.length<3&&(d=0),arguments.length<4&&(v=f.length);d<v;){var m=d+v>>>1;u(f[m],h)>0?v=m:d=m+1}return d}}}var b=P(g);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(u){return P(u.length===1?function(f,h){return g(u(f),h)}:u)},t.shuffle=function(u,f,h){(d=arguments.length)<3&&(h=u.length,d<2&&(f=0));for(var d=h-f,v,m;d;)m=Math.random()*d--|0,v=u[d+f],u[d+f]=u[m+f],u[m+f]=v;return u},t.permute=function(u,f){for(var h=f.length,d=new Array(h);h--;)d[h]=u[f[h]];return d},t.pairs=function(u){for(var f=0,h=u.length-1,d=u[0],v=new Array(h<0?0:h);f<h;)v[f]=[d,d=u[++f]];return v},t.transpose=function(u){if(!(m=u.length))return[];for(var f=-1,h=t.min(u,_),d=new Array(h);++f<h;)for(var v=-1,m,A=d[f]=new Array(m);++v<m;)A[v]=u[v][f];return d};function _(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var f=[];for(var h in u)f.push(h);return f},t.values=function(u){var f=[];for(var h in u)f.push(u[h]);return f},t.entries=function(u){var f=[];for(var h in u)f.push({key:h,value:u[h]});return f},t.merge=function(u){for(var f=u.length,h,d=-1,v=0,m,A;++d<f;)v+=u[d].length;for(m=new Array(v);--f>=0;)for(A=u[f],h=A.length;--h>=0;)m[--v]=A[h];return m};var E=Math.abs;t.range=function(u,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=u,u=0)),(f-u)/h===1/0)throw new Error("infinite range");var d=[],v=k(E(h)),m=-1,A;if(u*=v,f*=v,h*=v,h<0)for(;(A=u+h*++m)>f;)d.push(A/v);else for(;(A=u+h*++m)<f;)d.push(A/v);return d};function k(u){for(var f=1;u*f%1;)f*=10;return f}function F(u,f){for(var h in f)Object.defineProperty(u.prototype,h,{value:f[h],enumerable:!1})}t.map=function(u,f){var h=new I;if(u instanceof I)u.forEach(function(w,M){h.set(w,M)});else if(Array.isArray(u)){var d=-1,v=u.length,m;if(arguments.length===1)for(;++d<v;)h.set(d,u[d]);else for(;++d<v;)h.set(f.call(u,m=u[d],d),m)}else for(var A in u)h.set(A,u[A]);return h};function I(){this._=Object.create(null)}var $="__proto__",ne="\0";F(I,{has:Ce,get:function(u){return this._[V(u)]},set:function(u,f){return this._[V(u)]=f},remove:Oe,keys:Pe,values:function(){var u=[];for(var f in this._)u.push(this._[f]);return u},entries:function(){var u=[];for(var f in this._)u.push({key:ae(f),value:this._[f]});return u},size:De,empty:Ue,forEach:function(u){for(var f in this._)u.call(this,ae(f),this._[f])}});function V(u){return(u+="")===$||u[0]===ne?ne+u:u}function ae(u){return(u+="")[0]===ne?u.slice(1):u}function Ce(u){return V(u)in this._}function Oe(u){return(u=V(u))in this._&&delete this._[u]}function Pe(){var u=[];for(var f in this._)u.push(ae(f));return u}function De(){var u=0;for(var f in this._)++u;return u}function Ue(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},f=[],h=[],d,v;function m(w,M,N){if(N>=f.length)return v?v.call(u,M):d?M.sort(d):M;for(var L=-1,B=M.length,z=f[N++],re,oe,j,Y=new I,K;++L<B;)(K=Y.get(re=z(oe=M[L])))?K.push(oe):Y.set(re,[oe]);return w?(oe=w(),j=function(ue,le){oe.set(ue,m(w,le,N))}):(oe={},j=function(ue,le){oe[ue]=m(w,le,N)}),Y.forEach(j),oe}function A(w,M){if(M>=f.length)return w;var N=[],L=h[M++];return w.forEach(function(B,z){N.push({key:B,values:A(z,M)})}),L?N.sort(function(B,z){return L(B.key,z.key)}):N}return u.map=function(w,M){return m(M,w,0)},u.entries=function(w){return A(m(t.map,w,0),0)},u.key=function(w){return f.push(w),u},u.sortKeys=function(w){return h[f.length-1]=w,u},u.sortValues=function(w){return d=w,u},u.rollup=function(w){return v=w,u},u},t.set=function(u){var f=new ft;if(u)for(var h=0,d=u.length;h<d;++h)f.add(u[h]);return f};function ft(){this._=Object.create(null)}F(ft,{has:Ce,add:function(u){return this._[V(u+="")]=!0,u},remove:Oe,values:Pe,size:De,empty:Ue,forEach:function(u){for(var f in this._)u.call(this,ae(f))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,f){for(var h=1,d=arguments.length,v;++h<d;)u[v=arguments[h]]=$e(u,f,f[v]);return u};function $e(u,f,h){return function(){var d=h.apply(f,arguments);return d===f?u:d}}function qe(u,f){if(f in u)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,d=kt.length;h<d;++h){var v=kt[h]+f;if(v in u)return v}}var kt=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new be,f=-1,h=arguments.length;++f<h;)u[arguments[f]]=Ve(u);return u};function be(){}be.prototype.on=function(u,f){var h=u.indexOf("."),d="";if(h>=0&&(d=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(d):this[u].on(d,f);if(arguments.length===2){if(f==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(d,null);return this}};function Ve(u){var f=[],h=new I;function d(){for(var v=f,m=-1,A=v.length,w;++m<A;)(w=v[m].on)&&w.apply(this,arguments);return u}return d.on=function(v,m){var A=h.get(v),w;return arguments.length<2?A&&A.on:(A&&(A.on=null,f=f.slice(0,w=f.indexOf(A)).concat(f.slice(w+1)),h.remove(v)),m&&f.push(h.set(v,{on:m})),u)},d}t.event=null;function ct(){t.event.preventDefault()}function et(){for(var u=t.event,f;f=u.sourceEvent;)u=f;return u}function pt(u){for(var f=new be,h=0,d=arguments.length;++h<d;)f[arguments[h]]=Ve(f);return f.of=function(v,m){return function(A){try{var w=A.sourceEvent=t.event;A.target=u,t.event=A,f[A.type].apply(v,m)}finally{t.event=w}}},f}t.requote=function(u){return u.replace(wt,"\\$&")};var wt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qt={}.__proto__?function(u,f){u.__proto__=f}:function(u,f){for(var h in f)u[h]=f[h]};function Vt(u){return qt(u,Ae),u}var Qe=function(u,f){return f.querySelector(u)},Et=function(u,f){return f.querySelectorAll(u)},jt=function(u,f){var h=u.matches||u[qe(u,"matchesSelector")];return jt=function(d,v){return h.call(d,v)},jt(u,f)};typeof Sizzle=="function"&&(Qe=function(u,f){return Sizzle(u,f)[0]||null},Et=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ae=t.selection.prototype=[];Ae.select=function(u){var f=[],h,d,v,m;u=G(u);for(var A=-1,w=this.length;++A<w;){f.push(h=[]),h.parentNode=(v=this[A]).parentNode;for(var M=-1,N=v.length;++M<N;)(m=v[M])?(h.push(d=u.call(m,m.__data__,M,A)),d&&"__data__"in m&&(d.__data__=m.__data__)):h.push(null)}return Vt(f)};function G(u){return typeof u=="function"?u:function(){return Qe(u,this)}}Ae.selectAll=function(u){var f=[],h,d;u=ie(u);for(var v=-1,m=this.length;++v<m;)for(var A=this[v],w=-1,M=A.length;++w<M;)(d=A[w])&&(f.push(h=n(u.call(d,d.__data__,w,v))),h.parentNode=d);return Vt(f)};function ie(u){return typeof u=="function"?u:function(){return Et(u,this)}}var O="http://www.w3.org/1999/xhtml",S={svg:"http://www.w3.org/2000/svg",xhtml:O,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(u){var f=u.indexOf(":"),h=u;return f>=0&&(h=u.slice(0,f))!=="xmlns"&&(u=u.slice(f+1)),S.hasOwnProperty(h)?{space:S[h],local:u}:u}},Ae.attr=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(f in u)this.each(T(f,u[f]));return this}return this.each(T(u,f))};function T(u,f){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function d(){this.removeAttributeNS(u.space,u.local)}function v(){this.setAttribute(u,f)}function m(){this.setAttributeNS(u.space,u.local,f)}function A(){var M=f.apply(this,arguments);M==null?this.removeAttribute(u):this.setAttribute(u,M)}function w(){var M=f.apply(this,arguments);M==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,M)}return f==null?u.local?d:h:typeof f=="function"?u.local?w:A:u.local?m:v}function D(u){return u.trim().replace(/\s+/g," ")}Ae.classed=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),d=(u=Fe(u)).length,v=-1;if(f=h.classList){for(;++v<d;)if(!f.contains(u[v]))return!1}else for(f=h.getAttribute("class");++v<d;)if(!se(u[v]).test(f))return!1;return!0}for(f in u)this.each(Be(f,u[f]));return this}return this.each(Be(u,f))};function se(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Fe(u){return(u+"").trim().split(/^|\s+/)}function Be(u,f){u=Fe(u).map(Qt);var h=u.length;function d(){for(var m=-1;++m<h;)u[m](this,f)}function v(){for(var m=-1,A=f.apply(this,arguments);++m<h;)u[m](this,A)}return typeof f=="function"?v:d}function Qt(u){var f=se(u);return function(h,d){if(v=h.classList)return d?v.add(u):v.remove(u);var v=h.getAttribute("class")||"";d?(f.lastIndex=0,f.test(v)||h.setAttribute("class",D(v+" "+u))):h.setAttribute("class",D(v.replace(f," ")))}}Ae.style=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f="");for(h in u)this.each(sr(h,u[h],f));return this}if(d<2){var v=this.node();return o(v).getComputedStyle(v,null).getPropertyValue(u)}h=""}return this.each(sr(u,f,h))};function sr(u,f,h){function d(){this.style.removeProperty(u)}function v(){this.style.setProperty(u,f,h)}function m(){var A=f.apply(this,arguments);A==null?this.style.removeProperty(u):this.style.setProperty(u,A,h)}return f==null?d:typeof f=="function"?m:v}Ae.property=function(u,f){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(f in u)this.each(nr(f,u[f]));return this}return this.each(nr(u,f))};function nr(u,f){function h(){delete this[u]}function d(){this[u]=f}function v(){var m=f.apply(this,arguments);m==null?delete this[u]:this[u]=m}return f==null?h:typeof f=="function"?v:d}Ae.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.textContent=f??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ae.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.innerHTML=f??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ae.append=function(u){return u=Vr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Vr(u){function f(){var d=this.ownerDocument,v=this.namespaceURI;return v===O&&d.documentElement.namespaceURI===O?d.createElement(u):d.createElementNS(v,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:f}Ae.insert=function(u,f){return u=Vr(u),f=G(f),this.select(function(){return this.insertBefore(u.apply(this,arguments),f.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(kr)};function kr(){var u=this.parentNode;u&&u.removeChild(this)}Ae.data=function(u,f){var h=-1,d=this.length,v,m;if(!arguments.length){for(u=new Array(d=(v=this[0]).length);++h<d;)(m=v[h])&&(u[h]=m.__data__);return u}function A(L,B){var z,re=L.length,oe=B.length,j=Math.min(re,oe),Y=new Array(oe),K=new Array(oe),ue=new Array(re),le,ee;if(f){var Re=new I,ze=new Array(re),tt;for(z=-1;++z<re;)(le=L[z])&&(Re.has(tt=f.call(le,le.__data__,z))?ue[z]=le:Re.set(tt,le),ze[z]=tt);for(z=-1;++z<oe;)(le=Re.get(tt=f.call(B,ee=B[z],z)))?le!==!0&&(Y[z]=le,le.__data__=ee):K[z]=qi(ee),Re.set(tt,!0);for(z=-1;++z<re;)z in ze&&Re.get(ze[z])!==!0&&(ue[z]=L[z])}else{for(z=-1;++z<j;)le=L[z],ee=B[z],le?(le.__data__=ee,Y[z]=le):K[z]=qi(ee);for(;z<oe;++z)K[z]=qi(B[z]);for(;z<re;++z)ue[z]=L[z]}K.update=Y,K.parentNode=Y.parentNode=ue.parentNode=L.parentNode,w.push(K),M.push(Y),N.push(ue)}var w=Vd([]),M=Vt([]),N=Vt([]);if(typeof u=="function")for(;++h<d;)A(v=this[h],u.call(v,v.parentNode.__data__,h));else for(;++h<d;)A(v=this[h],u);return M.enter=function(){return w},M.exit=function(){return N},M};function qi(u){return{__data__:u}}Ae.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ae.filter=function(u){var f=[],h,d,v;typeof u!="function"&&(u=fu(u));for(var m=0,A=this.length;m<A;m++){f.push(h=[]),h.parentNode=(d=this[m]).parentNode;for(var w=0,M=d.length;w<M;w++)(v=d[w])&&u.call(v,v.__data__,w,m)&&h.push(v)}return Vt(f)};function fu(u){return function(){return jt(this,u)}}Ae.order=function(){for(var u=-1,f=this.length;++u<f;)for(var h=this[u],d=h.length-1,v=h[d],m;--d>=0;)(m=h[d])&&(v&&v!==m.nextSibling&&v.parentNode.insertBefore(m,v),v=m);return this},Ae.sort=function(u){u=va.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(u);return this.order()};function va(u){return arguments.length||(u=g),function(f,h){return f&&h?u(f.__data__,h.__data__):!f-!h}}Ae.each=function(u){return pi(this,function(f,h,d){u.call(f,f.__data__,h,d)})};function pi(u,f){for(var h=0,d=u.length;h<d;h++)for(var v=u[h],m=0,A=v.length,w;m<A;m++)(w=v[m])&&f(w,m,h);return u}Ae.call=function(u){var f=n(arguments);return u.apply(f[0]=this,f),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var u=0,f=this.length;u<f;u++)for(var h=this[u],d=0,v=h.length;d<v;d++){var m=h[d];if(m)return m}return null},Ae.size=function(){var u=0;return pi(this,function(){++u}),u};function Vd(u){return qt(u,Ci),u}var Ci=[];t.selection.enter=Vd,t.selection.enter.prototype=Ci,Ci.append=Ae.append,Ci.empty=Ae.empty,Ci.node=Ae.node,Ci.call=Ae.call,Ci.size=Ae.size,Ci.select=function(u){for(var f=[],h,d,v,m,A,w=-1,M=this.length;++w<M;){v=(m=this[w]).update,f.push(h=[]),h.parentNode=m.parentNode;for(var N=-1,L=m.length;++N<L;)(A=m[N])?(h.push(v[N]=d=u.call(m.parentNode,A.__data__,N,w)),d.__data__=A.__data__):h.push(null)}return Vt(f)},Ci.insert=function(u,f){return arguments.length<2&&(f=su(this)),Ae.insert.call(this,u,f)};function su(u){var f,h;return function(d,v,m){var A=u[m].update,w=A.length,M;for(m!=h&&(h=m,f=0),v>=f&&(f=v+1);!(M=A[f])&&++f<w;);return M}}t.select=function(u){var f;return typeof u=="string"?(f=[Qe(u,i)],f.parentNode=i.documentElement):(f=[u],f.parentNode=a(u)),Vt([f])},t.selectAll=function(u){var f;return typeof u=="string"?(f=n(Et(u,i)),f.parentNode=i.documentElement):(f=n(u),f.parentNode=null),Vt([f])},Ae.on=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f=!1);for(h in u)this.each(Cl(h,u[h],f));return this}if(d<2)return(d=this.node()["__on"+u])&&d._;h=!1}return this.each(Cl(u,f,h))};function Cl(u,f,h){var d="__on"+u,v=u.indexOf("."),m=kl;v>0&&(u=u.slice(0,v));var A=Ol.get(u);A&&(u=A,m=Lg);function w(){var L=this[d];L&&(this.removeEventListener(u,L,L.$),delete this[d])}function M(){var L=m(f,n(arguments));w.call(this),this.addEventListener(u,this[d]=L,L.$=h),L._=f}function N(){var L=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(L)){var re=this[z];this.removeEventListener(B[1],re,re.$),delete this[z]}}return v?f?M:w:f?He:N}var Ol=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ol.forEach(function(u){"on"+u in i&&Ol.remove(u)});function kl(u,f){return function(h){var d=t.event;t.event=h,f[0]=this.__data__;try{u.apply(this,f)}finally{t.event=d}}}function Lg(u,f){var h=kl(u,f);return function(d){var v=this,m=d.relatedTarget;(!m||m!==v&&!(m.compareDocumentPosition(v)&8))&&h.call(v,d)}}var ma,$g=0;function Ml(u){var f=".dragsuppress-"+ ++$g,h="click"+f,d=t.select(o(u)).on("touchmove"+f,ct).on("dragstart"+f,ct).on("selectstart"+f,ct);if(ma==null&&(ma="onselectstart"in u?!1:qe(u.style,"userSelect")),ma){var v=a(u).style,m=v[ma];v[ma]="none"}return function(A){if(d.on(f,null),ma&&(v[ma]=m),A){var w=function(){d.on(h,null)};d.on(h,function(){ct(),w()},!0),setTimeout(w,0)}}}t.mouse=function(u){return ei(u,et())};var Jr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ei(u,f){f.changedTouches&&(f=f.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var d=h.createSVGPoint();if(Jr<0){var v=o(u);if(v.scrollX||v.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();Jr=!(m.f||m.e),h.remove()}}return Jr?(d.x=f.pageX,d.y=f.pageY):(d.x=f.clientX,d.y=f.clientY),d=d.matrixTransform(u.getScreenCTM().inverse()),[d.x,d.y]}var A=u.getBoundingClientRect();return[f.clientX-A.left-u.clientLeft,f.clientY-A.top-u.clientTop]}t.touch=function(u,f,h){if(arguments.length<3&&(h=f,f=et().changedTouches),f){for(var d=0,v=f.length,m;d<v;++d)if((m=f[d]).identifier===h)return ei(u,m)}},t.behavior.drag=function(){var u=pt(v,"drag","dragstart","dragend"),f=null,h=m(He,t.mouse,o,"mousemove","mouseup"),d=m($n,t.touch,nt,"touchmove","touchend");function v(){this.on("mousedown.drag",h).on("touchstart.drag",d)}function m(A,w,M,N,L){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,re=B.parentNode,oe=u.of(B,arguments),j=0,Y=A(),K=".drag"+(Y==null?"":"-"+Y),ue,le=t.select(M(z)).on(N+K,ze).on(L+K,tt),ee=Ml(z),Re=w(re,Y);f?(ue=f.apply(B,arguments),ue=[ue.x-Re[0],ue.y-Re[1]]):ue=[0,0],oe({type:"dragstart"});function ze(){var je=w(re,Y),at,vt;je&&(at=je[0]-Re[0],vt=je[1]-Re[1],j|=at|vt,Re=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){w(re,Y)&&(le.on(N+K,null).on(L+K,null),ee(j),oe({type:"dragend"}))}}}return v.origin=function(A){return arguments.length?(f=A,v):f},t.rebind(v,u,"on")};function $n(){return t.event.changedTouches[0].identifier}t.touches=function(u,f){return arguments.length<2&&(f=et().touches),f?n(f).map(function(h){var d=ei(u,h);return d.identifier=h.identifier,d}):[]};var ir=1e-6,Yd=ir*ir,Oi=Math.PI,eo=2*Oi,Xd=eo-ir,vi=Oi/2,Qd=Oi/180,cu=180/Oi;function Dg(u,f,h){return(f[0]-u[0])*(h[1]-u[1])-(f[1]-u[1])*(h[0]-u[0])}function Zd(u){return u>1?vi:u<-1?-vi:Math.asin(u)}function Bg(u){return((u=Math.exp(u))-1/u)/2}function Kd(u){return((u=Math.exp(u))+1/u)/2}function zg(u){return((u=Math.exp(2*u))-1)/(u+1)}var hu=Math.SQRT2,Es=2,Jd=4;t.interpolateZoom=function(u,f){var h=u[0],d=u[1],v=u[2],m=f[0],A=f[1],w=f[2],M=m-h,N=A-d,L=M*M+N*N,B,z;if(L<Yd)z=Math.log(w/v)/hu,B=function(ue){return[h+ue*M,d+ue*N,v*Math.exp(hu*ue*z)]};else{var re=Math.sqrt(L),oe=(w*w-v*v+Jd*L)/(2*v*Es*re),j=(w*w-v*v-Jd*L)/(2*w*Es*re),Y=Math.log(Math.sqrt(oe*oe+1)-oe),K=Math.log(Math.sqrt(j*j+1)-j);z=(K-Y)/hu,B=function(ue){var le=ue*z,ee=Kd(Y),Re=v/(Es*re)*(ee*zg(hu*le+Y)-Bg(Y));return[h+Re*M,d+Re*N,v*ee/Kd(hu*le+Y)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},f,h,d,v=[960,500],m=du,A=250,w=0,M="mousedown.zoom",N="mousemove.zoom",L="mouseup.zoom",B,z="touchstart.zoom",re,oe=pt(le,"zoomstart","zoom","zoomend"),j,Y,K,ue;As||(As="onwheel"in i?(Rl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Rl=function(){return t.event.wheelDelta},"mousewheel"):(Rl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(M,zt).on(As+".zoom",Mr).on("dblclick.zoom",dr).on(z,ar)}le.event=function(rt){rt.each(function(){var Ht=oe.of(this,arguments),Yt=u;Ii?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Ht)}).tween("zoom:zoom",function(){var or=v[0],Er=v[1],Br=h?h[0]:or/2,Yr=h?h[1]:Er/2,hn=t.interpolateZoom([(Br-u.x)/u.k,(Yr-u.y)/u.k,or/u.k],[(Br-Yt.x)/Yt.k,(Yr-Yt.y)/Yt.k,or/Yt.k]);return function(_n){var rn=hn(_n),Mn=or/rn[2];this.__chart__=u={x:Br-rn[0]*Mn,y:Yr-rn[1]*Mn,k:Mn},Gt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=u,vt(Ht),Gt(Ht),xt(Ht))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},ze(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(m=rt==null?du:[+rt[0],+rt[1]],le):m},le.center=function(rt){return arguments.length?(d=rt&&[+rt[0],+rt[1]],le):d},le.size=function(rt){return arguments.length?(v=rt&&[+rt[0],+rt[1]],le):v},le.duration=function(rt){return arguments.length?(A=+rt,le):A},le.x=function(rt){return arguments.length?(Y=rt,j=rt.copy(),u={x:0,y:0,k:1},le):Y},le.y=function(rt){return arguments.length?(ue=rt,K=rt.copy(),u={x:0,y:0,k:1},le):ue};function ee(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Re(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function ze(rt){u.k=Math.max(m[0],Math.min(m[1],rt))}function tt(rt,Ht){Ht=Re(Ht),u.x+=rt[0]-Ht[0],u.y+=rt[1]-Ht[1]}function je(rt,Ht,Yt,or){rt.__chart__={x:u.x,y:u.y,k:u.k},ze(Math.pow(2,or)),tt(h=Ht,Yt),rt=t.select(rt),A>0&&(rt=rt.transition().duration(A)),rt.call(le.event)}function at(){Y&&Y.domain(j.range().map(function(rt){return(rt-u.x)/u.k}).map(j.invert)),ue&&ue.domain(K.range().map(function(rt){return(rt-u.y)/u.k}).map(K.invert))}function vt(rt){w++||rt({type:"zoomstart"})}function Gt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function xt(rt){--w||(rt({type:"zoomend"}),h=null)}function zt(){var rt=this,Ht=oe.of(rt,arguments),Yt=0,or=t.select(o(rt)).on(N,Yr).on(L,hn),Er=ee(t.mouse(rt)),Br=Ml(rt);sf.call(rt),vt(Ht);function Yr(){Yt=1,tt(t.mouse(rt),Er),Gt(Ht)}function hn(){or.on(N,null).on(L,null),Br(Yt),xt(Ht)}}function ar(){var rt=this,Ht=oe.of(rt,arguments),Yt={},or=0,Er,Br=".zoom-"+t.event.changedTouches[0].identifier,Yr="touchmove"+Br,hn="touchend"+Br,_n=[],rn=t.select(rt),Mn=Ml(rt);H(),vt(Ht),rn.on(M,null).on(z,H);function R(){var ke=t.touches(rt);return Er=u.k,ke.forEach(function(ge){ge.identifier in Yt&&(Yt[ge.identifier]=ee(ge))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Yr,Z).on(hn,we),_n.push(ke);for(var ge=t.event.changedTouches,xe=0,Ye=ge.length;xe<Ye;++xe)Yt[ge[xe].identifier]=null;var Xe=R(),Je=Date.now();if(Xe.length===1){if(Je-re<500){var lt=Xe[0];je(rt,lt,Yt[lt.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),ct()}re=Je}else if(Xe.length>1){var lt=Xe[0],Rt=Xe[1],bt=lt[0]-Rt[0],it=lt[1]-Rt[1];or=bt*bt+it*it}}function Z(){var ke=t.touches(rt),ge,xe,Ye,Xe;sf.call(rt);for(var Je=0,lt=ke.length;Je<lt;++Je,Xe=null)if(Ye=ke[Je],Xe=Yt[Ye.identifier]){if(xe)break;ge=Ye,xe=Xe}if(Xe){var Rt=(Rt=Ye[0]-ge[0])*Rt+(Rt=Ye[1]-ge[1])*Rt,bt=or&&Math.sqrt(Rt/or);ge=[(ge[0]+Ye[0])/2,(ge[1]+Ye[1])/2],xe=[(xe[0]+Xe[0])/2,(xe[1]+Xe[1])/2],ze(bt*Er)}re=null,tt(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 Yt[ke[ge].identifier];for(var Ye in Yt)return void R()}t.selectAll(_n).on(Br,null),rn.on(M,zt).on(z,ar),Mn(),xt(Ht)}}function Mr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(sf.call(this),f=ee(h=d||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,xt(rt)},50),ct(),ze(Math.pow(2,Rl()*.002)*u.k),tt(h,f),Gt(rt)}function dr(){var rt=t.mouse(this),Ht=Math.log(u.k)/Math.LN2;je(this,rt,ee(rt),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var du=[0,1/0],Rl,As;t.color=Wi;function Wi(){}Wi.prototype.toString=function(){return this.rgb()+""},t.hsl=Gn;function Gn(u,f,h){return this instanceof Gn?(this.h=+u,this.s=+f,void(this.l=+h)):arguments.length<2?u instanceof Gn?new Gn(u.h,u.s,u.l):ya(""+u,Ps,Gn):new Gn(u,f,h)}var Pl=Gn.prototype=new Wi;Pl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,this.l/u)},Pl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,u*this.l)},Pl.rgb=function(){return Fl(this.h,this.s,this.l)};function Fl(u,f,h){var d,v;u=isNaN(u)?0:(u%=360)<0?u+360:u,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,v=h<=.5?h*(1+f):h+f-h*f,d=2*h-v;function m(w){return w>360?w-=360:w<0&&(w+=360),w<60?d+(v-d)*w/60:w<180?v:w<240?d+(v-d)*(240-w)/60:d}function A(w){return Math.round(m(w)*255)}return new en(A(u+120),A(u),A(u-120))}t.hcl=ti;function ti(u,f,h){return this instanceof ti?(this.h=+u,this.c=+f,void(this.l=+h)):arguments.length<2?u instanceof ti?new ti(u.h,u.c,u.l):u instanceof Zr?rp(u.l,u.a,u.b):rp((u=xa((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new ti(u,f,h)}var pu=ti.prototype=new Wi;pu.brighter=function(u){return new ti(this.h,this.c,Math.min(100,this.l+ga*(arguments.length?u:1)))},pu.darker=function(u){return new ti(this.h,this.c,Math.max(0,this.l-ga*(arguments.length?u:1)))},pu.rgb=function(){return vu(this.h,this.c,this.l).rgb()};function vu(u,f,h){return isNaN(u)&&(u=0),isNaN(f)&&(f=0),new Zr(h,Math.cos(u*=Qd)*f,Math.sin(u)*f)}t.lab=Zr;function Zr(u,f,h){return this instanceof Zr?(this.l=+u,this.a=+f,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof ti?vu(u.h,u.c,u.l):xa((u=en(u)).r,u.g,u.b):new Zr(u,f,h)}var ga=18,Ts=.95047,Cs=1,ep=1.08883,Os=Zr.prototype=new Wi;Os.brighter=function(u){return new Zr(Math.min(100,this.l+ga*(arguments.length?u:1)),this.a,this.b)},Os.darker=function(u){return new Zr(Math.max(0,this.l-ga*(arguments.length?u:1)),this.a,this.b)},Os.rgb=function(){return tp(this.l,this.a,this.b)};function tp(u,f,h){var d=(u+16)/116,v=d+f/500,m=d-h/200;return v=ks(v)*Ts,d=ks(d)*Cs,m=ks(m)*ep,new en(Rs(3.2404542*v-1.5371385*d-.4985314*m),Rs(-.969266*v+1.8760108*d+.041556*m),Rs(.0556434*v-.2040259*d+1.0572252*m))}function rp(u,f,h){return u>0?new ti(Math.atan2(h,f)*cu,Math.sqrt(f*f+h*h),u):new ti(NaN,NaN,u)}function ks(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function Ms(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function Rs(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=en;function en(u,f,h){return this instanceof en?(this.r=~~u,this.g=~~f,void(this.b=~~h)):arguments.length<2?u instanceof en?new en(u.r,u.g,u.b):ya(""+u,en,Fl):new en(u,f,h)}function np(u){return new en(u>>16,u>>8&255,u&255)}function Nl(u){return np(u)+""}var Vi=en.prototype=new Wi;Vi.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var f=this.r,h=this.g,d=this.b,v=30;return!f&&!h&&!d?new en(v,v,v):(f&&f<v&&(f=v),h&&h<v&&(h=v),d&&d<v&&(d=v),new en(Math.min(255,f/u),Math.min(255,h/u),Math.min(255,d/u)))},Vi.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new en(u*this.r,u*this.g,u*this.b)},Vi.hsl=function(){return Ps(this.r,this.g,this.b)},Vi.toString=function(){return"#"+to(this.r)+to(this.g)+to(this.b)};function to(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function ya(u,f,h){var d=0,v=0,m=0,A,w,M;if(A=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),A)switch(w=A[2].split(","),A[1]){case"hsl":return h(parseFloat(w[0]),parseFloat(w[1])/100,parseFloat(w[2])/100);case"rgb":return f(Yi(w[0]),Yi(w[1]),Yi(w[2]))}return(M=ro.get(u))?f(M.r,M.g,M.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(M=parseInt(u.slice(1),16))&&(u.length===4?(d=(M&3840)>>4,d=d>>4|d,v=M&240,v=v>>4|v,m=M&15,m=m<<4|m):u.length===7&&(d=(M&16711680)>>16,v=(M&65280)>>8,m=M&255)),f(d,v,m))}function Ps(u,f,h){var d=Math.min(u/=255,f/=255,h/=255),v=Math.max(u,f,h),m=v-d,A,w,M=(v+d)/2;return m?(w=M<.5?m/(v+d):m/(2-v-d),u==v?A=(f-h)/m+(f<h?6:0):f==v?A=(h-u)/m+2:A=(u-f)/m+4,A*=60):(A=NaN,w=M>0&&M<1?0:A),new Gn(A,w,M)}function xa(u,f,h){u=Il(u),f=Il(f),h=Il(h);var d=Ms((.4124564*u+.3575761*f+.1804375*h)/Ts),v=Ms((.2126729*u+.7151522*f+.072175*h)/Cs),m=Ms((.0193339*u+.119192*f+.9503041*h)/ep);return Zr(116*v-16,500*(d-v),200*(v-m))}function Il(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function Yi(u){var f=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(f*2.55):f}var ro=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});ro.forEach(function(u,f){ro.set(u,np(f))});function gr(u){return typeof u=="function"?u:function(){return u}}t.functor=gr,t.xhr=Fs(nt);function Fs(u){return function(f,h,d){return arguments.length===2&&typeof h=="function"&&(d=h,h=null),Ll(f,h,u,d)}}function Ll(u,f,h,d){var v={},m=t.dispatch("beforesend","progress","load","error"),A={},w=new XMLHttpRequest,M=null;self.XDomainRequest&&!("withCredentials"in w)&&/^(http(s)?:)?\/\//.test(u)&&(w=new XDomainRequest),"onload"in w?w.onload=w.onerror=N:w.onreadystatechange=function(){w.readyState>3&&N()};function N(){var L=w.status,B;if(!L&&Ug(w)||L>=200&&L<300||L===304){try{B=h.call(v,w)}catch(z){m.error.call(v,z);return}m.load.call(v,B)}else m.error.call(v,w)}return w.onprogress=function(L){var B=t.event;t.event=L;try{m.progress.call(v,w)}finally{t.event=B}},v.header=function(L,B){return L=(L+"").toLowerCase(),arguments.length<2?A[L]:(B==null?delete A[L]:A[L]=B+"",v)},v.mimeType=function(L){return arguments.length?(f=L==null?null:L+"",v):f},v.responseType=function(L){return arguments.length?(M=L,v):M},v.response=function(L){return h=L,v},["get","post"].forEach(function(L){v[L]=function(){return v.send.apply(v,[L].concat(n(arguments)))}}),v.send=function(L,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),w.open(L,u,!0),f!=null&&!("accept"in A)&&(A.accept=f+",*/*"),w.setRequestHeader)for(var re in A)w.setRequestHeader(re,A[re]);return f!=null&&w.overrideMimeType&&w.overrideMimeType(f),M!=null&&(w.responseType=M),z!=null&&v.on("error",z).on("load",function(oe){z(null,oe)}),m.beforesend.call(v,w),w.send(B??null),v},v.abort=function(){return w.abort(),v},t.rebind(v,m,"on"),d==null?v:v.get(ip(d))}function ip(u){return u.length===1?function(f,h){u(f==null?h:null)}:u}function Ug(u){var f=u.responseType;return f&&f!=="text"?u.response:u.responseText}t.dsv=function(u,f){var h=new RegExp('["'+u+`
827
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof tr<"u"?tr:tr,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,F,I,$){return Object.defineProperty(k,F,{value:I,writable:!0,configurable:$!==!1})}}catch{r=function(F,I,$){return F[I]=$,F}}i=function(){var k,F,I;function $(ne,V){this.fn=ne,this.self=V,this.next=void 0}return{add:function(V,ae){I=new $(V,ae),F?F.next=I:k=I,F=I,I=void 0},drain:function(){var V=k;for(k=F=n=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(E,k){i.add(E,k),n||(n=o(i.drain))}function s(E){var k,F=typeof E;return E!=null&&(F=="object"||F=="function")&&(k=E.then),typeof k=="function"?k:!1}function c(){for(var E=0;E<this.chain.length;E++)p(this,this.state===1?this.chain[E].success:this.chain[E].failure,this.chain[E]);this.chain.length=0}function p(E,k,F){var I,$;try{k===!1?F.reject(E.msg):(k===!0?I=E.msg:I=k.call(void 0,E.msg),I===F.promise?F.reject(TypeError("Promise-chain cycle")):($=s(I))?$.call(I,F.resolve,F.reject):F.resolve(I))}catch(ne){F.reject(ne)}}function x(E){var k,F=this;if(!F.triggered){F.triggered=!0,F.def&&(F=F.def);try{(k=s(E))?l(function(){var I=new T(F);try{k.call(E,function(){x.apply(I,arguments)},function(){g.apply(I,arguments)})}catch($){g.call(I,$)}}):(F.msg=E,F.state=1,F.chain.length>0&&l(c,F))}catch(I){g.call(new T(F),I)}}}function g(E){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=E,k.state=2,k.chain.length>0&&l(c,k))}function y(E,k,F,I){for(var $=0;$<k.length;$++)(function(V){E.resolve(k[V]).then(function(Te){F(V,Te)},I)})($)}function T(E){this.def=E,this.triggered=!1}function P(E){this.promise=E,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(E){if(typeof E!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var k=new P(this);this.then=function(I,$){var ne={success:typeof I=="function"?I:!0,failure:typeof $=="function"?$:!1};return ne.promise=new this.constructor(function(ae,Te){if(typeof ae!="function"||typeof Te!="function")throw TypeError("Not a function");ne.resolve=ae,ne.reject=Te}),k.chain.push(ne),k.state!==0&&l(c,k),ne.promise},this.catch=function(I){return this.then(void 0,I)};try{E.call(void 0,function(I){x.call(k,I)},function(I){g.call(k,I)})}catch(F){g.call(k,F)}}var _=r({},"constructor",b,!1);return b.prototype=_,r(_,"__NPO__",0,!1),r(b,"resolve",function(k){var F=this;return k&&typeof k=="object"&&k.__NPO__===1?k:new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");$(k)})}),r(b,"reject",function(k){return new this(function(I,$){if(typeof I!="function"||typeof $!="function")throw TypeError("Not a function");$(k)})}),r(b,"all",function(k){var F=this;return a.call(k)!="[object Array]"?F.reject(TypeError("Not an array")):k.length===0?F.resolve([]):new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");var V=k.length,ae=Array(V),Te=0;y(F,k,function(Pe,De){ae[Pe]=De,++Te===V&&$(ae)},ne)})}),r(b,"race",function(k){var F=this;return a.call(k)!="[object Array]"?F.reject(TypeError("Not an array")):new F(function($,ne){if(typeof $!="function"||typeof ne!="function")throw TypeError("Not a function");y(F,k,function(ae,Te){$(Te)},ne)})}),b})})(yU);var j5={},xU={get exports(){return j5},set exports(e){j5=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(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,p=this.CSSStyleDeclaration.prototype,x=p.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,d){c.call(this,f,h,d+"")},p.setProperty=function(f,h,d){x.call(this,f,h+"",d)}}t.ascending=g;function g(u,f){return u<f?-1:u>f?1:u>=f?0:NaN}t.descending=function(u,f){return f<u?-1:f>u?1:f>=u?0:NaN},t.min=function(u,f){var h=-1,d=u.length,v,m;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=m;break}for(;++h<d;)(m=u[h])!=null&&v>m&&(v=m)}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&v>m&&(v=m)}return v},t.max=function(u,f){var h=-1,d=u.length,v,m;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=m;break}for(;++h<d;)(m=u[h])!=null&&m>v&&(v=m)}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&m>v&&(v=m)}return v},t.extent=function(u,f){var h=-1,d=u.length,v,m,A;if(arguments.length===1){for(;++h<d;)if((m=u[h])!=null&&m>=m){v=A=m;break}for(;++h<d;)(m=u[h])!=null&&(v>m&&(v=m),A<m&&(A=m))}else{for(;++h<d;)if((m=f.call(u,u[h],h))!=null&&m>=m){v=A=m;break}for(;++h<d;)(m=f.call(u,u[h],h))!=null&&(v>m&&(v=m),A<m&&(A=m))}return[v,A]};function y(u){return u===null?NaN:+u}function T(u){return!isNaN(u)}t.sum=function(u,f){var h=0,d=u.length,v,m=-1;if(arguments.length===1)for(;++m<d;)T(v=+u[m])&&(h+=v);else for(;++m<d;)T(v=+f.call(u,u[m],m))&&(h+=v);return h},t.mean=function(u,f){var h=0,d=u.length,v,m=-1,A=d;if(arguments.length===1)for(;++m<d;)T(v=y(u[m]))?h+=v:--A;else for(;++m<d;)T(v=y(f.call(u,u[m],m)))?h+=v:--A;if(A)return h/A},t.quantile=function(u,f){var h=(u.length-1)*f+1,d=Math.floor(h),v=+u[d-1],m=h-d;return m?v+m*(u[d]-v):v},t.median=function(u,f){var h=[],d=u.length,v,m=-1;if(arguments.length===1)for(;++m<d;)T(v=y(u[m]))&&h.push(v);else for(;++m<d;)T(v=y(f.call(u,u[m],m)))&&h.push(v);if(h.length)return t.quantile(h.sort(g),.5)},t.variance=function(u,f){var h=u.length,d=0,v,m,A=0,w=-1,M=0;if(arguments.length===1)for(;++w<h;)T(v=y(u[w]))&&(m=v-d,d+=m/++M,A+=m*(v-d));else for(;++w<h;)T(v=y(f.call(u,u[w],w)))&&(m=v-d,d+=m/++M,A+=m*(v-d));if(M>1)return A/(M-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function P(u){return{left:function(f,h,d,v){for(arguments.length<3&&(d=0),arguments.length<4&&(v=f.length);d<v;){var m=d+v>>>1;u(f[m],h)<0?d=m+1:v=m}return d},right:function(f,h,d,v){for(arguments.length<3&&(d=0),arguments.length<4&&(v=f.length);d<v;){var m=d+v>>>1;u(f[m],h)>0?v=m:d=m+1}return d}}}var b=P(g);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(u){return P(u.length===1?function(f,h){return g(u(f),h)}:u)},t.shuffle=function(u,f,h){(d=arguments.length)<3&&(h=u.length,d<2&&(f=0));for(var d=h-f,v,m;d;)m=Math.random()*d--|0,v=u[d+f],u[d+f]=u[m+f],u[m+f]=v;return u},t.permute=function(u,f){for(var h=f.length,d=new Array(h);h--;)d[h]=u[f[h]];return d},t.pairs=function(u){for(var f=0,h=u.length-1,d=u[0],v=new Array(h<0?0:h);f<h;)v[f]=[d,d=u[++f]];return v},t.transpose=function(u){if(!(m=u.length))return[];for(var f=-1,h=t.min(u,_),d=new Array(h);++f<h;)for(var v=-1,m,A=d[f]=new Array(m);++v<m;)A[v]=u[v][f];return d};function _(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var f=[];for(var h in u)f.push(h);return f},t.values=function(u){var f=[];for(var h in u)f.push(u[h]);return f},t.entries=function(u){var f=[];for(var h in u)f.push({key:h,value:u[h]});return f},t.merge=function(u){for(var f=u.length,h,d=-1,v=0,m,A;++d<f;)v+=u[d].length;for(m=new Array(v);--f>=0;)for(A=u[f],h=A.length;--h>=0;)m[--v]=A[h];return m};var E=Math.abs;t.range=function(u,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=u,u=0)),(f-u)/h===1/0)throw new Error("infinite range");var d=[],v=k(E(h)),m=-1,A;if(u*=v,f*=v,h*=v,h<0)for(;(A=u+h*++m)>f;)d.push(A/v);else for(;(A=u+h*++m)<f;)d.push(A/v);return d};function k(u){for(var f=1;u*f%1;)f*=10;return f}function F(u,f){for(var h in f)Object.defineProperty(u.prototype,h,{value:f[h],enumerable:!1})}t.map=function(u,f){var h=new I;if(u instanceof I)u.forEach(function(w,M){h.set(w,M)});else if(Array.isArray(u)){var d=-1,v=u.length,m;if(arguments.length===1)for(;++d<v;)h.set(d,u[d]);else for(;++d<v;)h.set(f.call(u,m=u[d],d),m)}else for(var A in u)h.set(A,u[A]);return h};function I(){this._=Object.create(null)}var $="__proto__",ne="\0";F(I,{has:Te,get:function(u){return this._[V(u)]},set:function(u,f){return this._[V(u)]=f},remove:Oe,keys:Pe,values:function(){var u=[];for(var f in this._)u.push(this._[f]);return u},entries:function(){var u=[];for(var f in this._)u.push({key:ae(f),value:this._[f]});return u},size:De,empty:Ue,forEach:function(u){for(var f in this._)u.call(this,ae(f),this._[f])}});function V(u){return(u+="")===$||u[0]===ne?ne+u:u}function ae(u){return(u+="")[0]===ne?u.slice(1):u}function Te(u){return V(u)in this._}function Oe(u){return(u=V(u))in this._&&delete this._[u]}function Pe(){var u=[];for(var f in this._)u.push(ae(f));return u}function De(){var u=0;for(var f in this._)++u;return u}function Ue(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},f=[],h=[],d,v;function m(w,M,N){if(N>=f.length)return v?v.call(u,M):d?M.sort(d):M;for(var L=-1,B=M.length,z=f[N++],re,oe,j,Y=new I,K;++L<B;)(K=Y.get(re=z(oe=M[L])))?K.push(oe):Y.set(re,[oe]);return w?(oe=w(),j=function(ue,le){oe.set(ue,m(w,le,N))}):(oe={},j=function(ue,le){oe[ue]=m(w,le,N)}),Y.forEach(j),oe}function A(w,M){if(M>=f.length)return w;var N=[],L=h[M++];return w.forEach(function(B,z){N.push({key:B,values:A(z,M)})}),L?N.sort(function(B,z){return L(B.key,z.key)}):N}return u.map=function(w,M){return m(M,w,0)},u.entries=function(w){return A(m(t.map,w,0),0)},u.key=function(w){return f.push(w),u},u.sortKeys=function(w){return h[f.length-1]=w,u},u.sortValues=function(w){return d=w,u},u.rollup=function(w){return v=w,u},u},t.set=function(u){var f=new ft;if(u)for(var h=0,d=u.length;h<d;++h)f.add(u[h]);return f};function ft(){this._=Object.create(null)}F(ft,{has:Te,add:function(u){return this._[V(u+="")]=!0,u},remove:Oe,values:Pe,size:De,empty:Ue,forEach:function(u){for(var f in this._)u.call(this,ae(f))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,f){for(var h=1,d=arguments.length,v;++h<d;)u[v=arguments[h]]=$e(u,f,f[v]);return u};function $e(u,f,h){return function(){var d=h.apply(f,arguments);return d===f?u:d}}function qe(u,f){if(f in u)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,d=kt.length;h<d;++h){var v=kt[h]+f;if(v in u)return v}}var kt=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new be,f=-1,h=arguments.length;++f<h;)u[arguments[f]]=Ve(u);return u};function be(){}be.prototype.on=function(u,f){var h=u.indexOf("."),d="";if(h>=0&&(d=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(d):this[u].on(d,f);if(arguments.length===2){if(f==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(d,null);return this}};function Ve(u){var f=[],h=new I;function d(){for(var v=f,m=-1,A=v.length,w;++m<A;)(w=v[m].on)&&w.apply(this,arguments);return u}return d.on=function(v,m){var A=h.get(v),w;return arguments.length<2?A&&A.on:(A&&(A.on=null,f=f.slice(0,w=f.indexOf(A)).concat(f.slice(w+1)),h.remove(v)),m&&f.push(h.set(v,{on:m})),u)},d}t.event=null;function ct(){t.event.preventDefault()}function et(){for(var u=t.event,f;f=u.sourceEvent;)u=f;return u}function pt(u){for(var f=new be,h=0,d=arguments.length;++h<d;)f[arguments[h]]=Ve(f);return f.of=function(v,m){return function(A){try{var w=A.sourceEvent=t.event;A.target=u,t.event=A,f[A.type].apply(v,m)}finally{t.event=w}}},f}t.requote=function(u){return u.replace(wt,"\\$&")};var wt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qt={}.__proto__?function(u,f){u.__proto__=f}:function(u,f){for(var h in f)u[h]=f[h]};function Vt(u){return qt(u,Ae),u}var Qe=function(u,f){return f.querySelector(u)},Et=function(u,f){return f.querySelectorAll(u)},jt=function(u,f){var h=u.matches||u[qe(u,"matchesSelector")];return jt=function(d,v){return h.call(d,v)},jt(u,f)};typeof Sizzle=="function"&&(Qe=function(u,f){return Sizzle(u,f)[0]||null},Et=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ae=t.selection.prototype=[];Ae.select=function(u){var f=[],h,d,v,m;u=G(u);for(var A=-1,w=this.length;++A<w;){f.push(h=[]),h.parentNode=(v=this[A]).parentNode;for(var M=-1,N=v.length;++M<N;)(m=v[M])?(h.push(d=u.call(m,m.__data__,M,A)),d&&"__data__"in m&&(d.__data__=m.__data__)):h.push(null)}return Vt(f)};function G(u){return typeof u=="function"?u:function(){return Qe(u,this)}}Ae.selectAll=function(u){var f=[],h,d;u=ie(u);for(var v=-1,m=this.length;++v<m;)for(var A=this[v],w=-1,M=A.length;++w<M;)(d=A[w])&&(f.push(h=n(u.call(d,d.__data__,w,v))),h.parentNode=d);return Vt(f)};function ie(u){return typeof u=="function"?u:function(){return Et(u,this)}}var O="http://www.w3.org/1999/xhtml",S={svg:"http://www.w3.org/2000/svg",xhtml:O,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(u){var f=u.indexOf(":"),h=u;return f>=0&&(h=u.slice(0,f))!=="xmlns"&&(u=u.slice(f+1)),S.hasOwnProperty(h)?{space:S[h],local:u}:u}},Ae.attr=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(f in u)this.each(C(f,u[f]));return this}return this.each(C(u,f))};function C(u,f){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function d(){this.removeAttributeNS(u.space,u.local)}function v(){this.setAttribute(u,f)}function m(){this.setAttributeNS(u.space,u.local,f)}function A(){var M=f.apply(this,arguments);M==null?this.removeAttribute(u):this.setAttribute(u,M)}function w(){var M=f.apply(this,arguments);M==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,M)}return f==null?u.local?d:h:typeof f=="function"?u.local?w:A:u.local?m:v}function D(u){return u.trim().replace(/\s+/g," ")}Ae.classed=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),d=(u=Fe(u)).length,v=-1;if(f=h.classList){for(;++v<d;)if(!f.contains(u[v]))return!1}else for(f=h.getAttribute("class");++v<d;)if(!se(u[v]).test(f))return!1;return!0}for(f in u)this.each(Be(f,u[f]));return this}return this.each(Be(u,f))};function se(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Fe(u){return(u+"").trim().split(/^|\s+/)}function Be(u,f){u=Fe(u).map(Qt);var h=u.length;function d(){for(var m=-1;++m<h;)u[m](this,f)}function v(){for(var m=-1,A=f.apply(this,arguments);++m<h;)u[m](this,A)}return typeof f=="function"?v:d}function Qt(u){var f=se(u);return function(h,d){if(v=h.classList)return d?v.add(u):v.remove(u);var v=h.getAttribute("class")||"";d?(f.lastIndex=0,f.test(v)||h.setAttribute("class",D(v+" "+u))):h.setAttribute("class",D(v.replace(f," ")))}}Ae.style=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f="");for(h in u)this.each(sr(h,u[h],f));return this}if(d<2){var v=this.node();return o(v).getComputedStyle(v,null).getPropertyValue(u)}h=""}return this.each(sr(u,f,h))};function sr(u,f,h){function d(){this.style.removeProperty(u)}function v(){this.style.setProperty(u,f,h)}function m(){var A=f.apply(this,arguments);A==null?this.style.removeProperty(u):this.style.setProperty(u,A,h)}return f==null?d:typeof f=="function"?m:v}Ae.property=function(u,f){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(f in u)this.each(nr(f,u[f]));return this}return this.each(nr(u,f))};function nr(u,f){function h(){delete this[u]}function d(){this[u]=f}function v(){var m=f.apply(this,arguments);m==null?delete this[u]:this[u]=m}return f==null?h:typeof f=="function"?v:d}Ae.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.textContent=f??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ae.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.innerHTML=f??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ae.append=function(u){return u=Vr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Vr(u){function f(){var d=this.ownerDocument,v=this.namespaceURI;return v===O&&d.documentElement.namespaceURI===O?d.createElement(u):d.createElementNS(v,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:f}Ae.insert=function(u,f){return u=Vr(u),f=G(f),this.select(function(){return this.insertBefore(u.apply(this,arguments),f.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(kr)};function kr(){var u=this.parentNode;u&&u.removeChild(this)}Ae.data=function(u,f){var h=-1,d=this.length,v,m;if(!arguments.length){for(u=new Array(d=(v=this[0]).length);++h<d;)(m=v[h])&&(u[h]=m.__data__);return u}function A(L,B){var z,re=L.length,oe=B.length,j=Math.min(re,oe),Y=new Array(oe),K=new Array(oe),ue=new Array(re),le,ee;if(f){var Re=new I,ze=new Array(re),tt;for(z=-1;++z<re;)(le=L[z])&&(Re.has(tt=f.call(le,le.__data__,z))?ue[z]=le:Re.set(tt,le),ze[z]=tt);for(z=-1;++z<oe;)(le=Re.get(tt=f.call(B,ee=B[z],z)))?le!==!0&&(Y[z]=le,le.__data__=ee):K[z]=qi(ee),Re.set(tt,!0);for(z=-1;++z<re;)z in ze&&Re.get(ze[z])!==!0&&(ue[z]=L[z])}else{for(z=-1;++z<j;)le=L[z],ee=B[z],le?(le.__data__=ee,Y[z]=le):K[z]=qi(ee);for(;z<oe;++z)K[z]=qi(B[z]);for(;z<re;++z)ue[z]=L[z]}K.update=Y,K.parentNode=Y.parentNode=ue.parentNode=L.parentNode,w.push(K),M.push(Y),N.push(ue)}var w=Vd([]),M=Vt([]),N=Vt([]);if(typeof u=="function")for(;++h<d;)A(v=this[h],u.call(v,v.parentNode.__data__,h));else for(;++h<d;)A(v=this[h],u);return M.enter=function(){return w},M.exit=function(){return N},M};function qi(u){return{__data__:u}}Ae.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ae.filter=function(u){var f=[],h,d,v;typeof u!="function"&&(u=fu(u));for(var m=0,A=this.length;m<A;m++){f.push(h=[]),h.parentNode=(d=this[m]).parentNode;for(var w=0,M=d.length;w<M;w++)(v=d[w])&&u.call(v,v.__data__,w,m)&&h.push(v)}return Vt(f)};function fu(u){return function(){return jt(this,u)}}Ae.order=function(){for(var u=-1,f=this.length;++u<f;)for(var h=this[u],d=h.length-1,v=h[d],m;--d>=0;)(m=h[d])&&(v&&v!==m.nextSibling&&v.parentNode.insertBefore(m,v),v=m);return this},Ae.sort=function(u){u=va.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(u);return this.order()};function va(u){return arguments.length||(u=g),function(f,h){return f&&h?u(f.__data__,h.__data__):!f-!h}}Ae.each=function(u){return pi(this,function(f,h,d){u.call(f,f.__data__,h,d)})};function pi(u,f){for(var h=0,d=u.length;h<d;h++)for(var v=u[h],m=0,A=v.length,w;m<A;m++)(w=v[m])&&f(w,m,h);return u}Ae.call=function(u){var f=n(arguments);return u.apply(f[0]=this,f),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var u=0,f=this.length;u<f;u++)for(var h=this[u],d=0,v=h.length;d<v;d++){var m=h[d];if(m)return m}return null},Ae.size=function(){var u=0;return pi(this,function(){++u}),u};function Vd(u){return qt(u,Ti),u}var Ti=[];t.selection.enter=Vd,t.selection.enter.prototype=Ti,Ti.append=Ae.append,Ti.empty=Ae.empty,Ti.node=Ae.node,Ti.call=Ae.call,Ti.size=Ae.size,Ti.select=function(u){for(var f=[],h,d,v,m,A,w=-1,M=this.length;++w<M;){v=(m=this[w]).update,f.push(h=[]),h.parentNode=m.parentNode;for(var N=-1,L=m.length;++N<L;)(A=m[N])?(h.push(v[N]=d=u.call(m.parentNode,A.__data__,N,w)),d.__data__=A.__data__):h.push(null)}return Vt(f)},Ti.insert=function(u,f){return arguments.length<2&&(f=su(this)),Ae.insert.call(this,u,f)};function su(u){var f,h;return function(d,v,m){var A=u[m].update,w=A.length,M;for(m!=h&&(h=m,f=0),v>=f&&(f=v+1);!(M=A[f])&&++f<w;);return M}}t.select=function(u){var f;return typeof u=="string"?(f=[Qe(u,i)],f.parentNode=i.documentElement):(f=[u],f.parentNode=a(u)),Vt([f])},t.selectAll=function(u){var f;return typeof u=="string"?(f=n(Et(u,i)),f.parentNode=i.documentElement):(f=n(u),f.parentNode=null),Vt([f])},Ae.on=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f=!1);for(h in u)this.each(Tl(h,u[h],f));return this}if(d<2)return(d=this.node()["__on"+u])&&d._;h=!1}return this.each(Tl(u,f,h))};function Tl(u,f,h){var d="__on"+u,v=u.indexOf("."),m=kl;v>0&&(u=u.slice(0,v));var A=Ol.get(u);A&&(u=A,m=$g);function w(){var L=this[d];L&&(this.removeEventListener(u,L,L.$),delete this[d])}function M(){var L=m(f,n(arguments));w.call(this),this.addEventListener(u,this[d]=L,L.$=h),L._=f}function N(){var L=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(L)){var re=this[z];this.removeEventListener(B[1],re,re.$),delete this[z]}}return v?f?M:w:f?He:N}var Ol=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ol.forEach(function(u){"on"+u in i&&Ol.remove(u)});function kl(u,f){return function(h){var d=t.event;t.event=h,f[0]=this.__data__;try{u.apply(this,f)}finally{t.event=d}}}function $g(u,f){var h=kl(u,f);return function(d){var v=this,m=d.relatedTarget;(!m||m!==v&&!(m.compareDocumentPosition(v)&8))&&h.call(v,d)}}var ma,Dg=0;function Ml(u){var f=".dragsuppress-"+ ++Dg,h="click"+f,d=t.select(o(u)).on("touchmove"+f,ct).on("dragstart"+f,ct).on("selectstart"+f,ct);if(ma==null&&(ma="onselectstart"in u?!1:qe(u.style,"userSelect")),ma){var v=a(u).style,m=v[ma];v[ma]="none"}return function(A){if(d.on(f,null),ma&&(v[ma]=m),A){var w=function(){d.on(h,null)};d.on(h,function(){ct(),w()},!0),setTimeout(w,0)}}}t.mouse=function(u){return ei(u,et())};var Jr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ei(u,f){f.changedTouches&&(f=f.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var d=h.createSVGPoint();if(Jr<0){var v=o(u);if(v.scrollX||v.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();Jr=!(m.f||m.e),h.remove()}}return Jr?(d.x=f.pageX,d.y=f.pageY):(d.x=f.clientX,d.y=f.clientY),d=d.matrixTransform(u.getScreenCTM().inverse()),[d.x,d.y]}var A=u.getBoundingClientRect();return[f.clientX-A.left-u.clientLeft,f.clientY-A.top-u.clientTop]}t.touch=function(u,f,h){if(arguments.length<3&&(h=f,f=et().changedTouches),f){for(var d=0,v=f.length,m;d<v;++d)if((m=f[d]).identifier===h)return ei(u,m)}},t.behavior.drag=function(){var u=pt(v,"drag","dragstart","dragend"),f=null,h=m(He,t.mouse,o,"mousemove","mouseup"),d=m($n,t.touch,nt,"touchmove","touchend");function v(){this.on("mousedown.drag",h).on("touchstart.drag",d)}function m(A,w,M,N,L){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,re=B.parentNode,oe=u.of(B,arguments),j=0,Y=A(),K=".drag"+(Y==null?"":"-"+Y),ue,le=t.select(M(z)).on(N+K,ze).on(L+K,tt),ee=Ml(z),Re=w(re,Y);f?(ue=f.apply(B,arguments),ue=[ue.x-Re[0],ue.y-Re[1]]):ue=[0,0],oe({type:"dragstart"});function ze(){var je=w(re,Y),at,vt;je&&(at=je[0]-Re[0],vt=je[1]-Re[1],j|=at|vt,Re=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){w(re,Y)&&(le.on(N+K,null).on(L+K,null),ee(j),oe({type:"dragend"}))}}}return v.origin=function(A){return arguments.length?(f=A,v):f},t.rebind(v,u,"on")};function $n(){return t.event.changedTouches[0].identifier}t.touches=function(u,f){return arguments.length<2&&(f=et().touches),f?n(f).map(function(h){var d=ei(u,h);return d.identifier=h.identifier,d}):[]};var ir=1e-6,Yd=ir*ir,Oi=Math.PI,eo=2*Oi,Xd=eo-ir,vi=Oi/2,Qd=Oi/180,cu=180/Oi;function Bg(u,f,h){return(f[0]-u[0])*(h[1]-u[1])-(f[1]-u[1])*(h[0]-u[0])}function Zd(u){return u>1?vi:u<-1?-vi:Math.asin(u)}function zg(u){return((u=Math.exp(u))-1/u)/2}function Kd(u){return((u=Math.exp(u))+1/u)/2}function Ug(u){return((u=Math.exp(2*u))-1)/(u+1)}var hu=Math.SQRT2,Es=2,Jd=4;t.interpolateZoom=function(u,f){var h=u[0],d=u[1],v=u[2],m=f[0],A=f[1],w=f[2],M=m-h,N=A-d,L=M*M+N*N,B,z;if(L<Yd)z=Math.log(w/v)/hu,B=function(ue){return[h+ue*M,d+ue*N,v*Math.exp(hu*ue*z)]};else{var re=Math.sqrt(L),oe=(w*w-v*v+Jd*L)/(2*v*Es*re),j=(w*w-v*v-Jd*L)/(2*w*Es*re),Y=Math.log(Math.sqrt(oe*oe+1)-oe),K=Math.log(Math.sqrt(j*j+1)-j);z=(K-Y)/hu,B=function(ue){var le=ue*z,ee=Kd(Y),Re=v/(Es*re)*(ee*Ug(hu*le+Y)-zg(Y));return[h+Re*M,d+Re*N,v*ee/Kd(hu*le+Y)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},f,h,d,v=[960,500],m=du,A=250,w=0,M="mousedown.zoom",N="mousemove.zoom",L="mouseup.zoom",B,z="touchstart.zoom",re,oe=pt(le,"zoomstart","zoom","zoomend"),j,Y,K,ue;As||(As="onwheel"in i?(Rl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Rl=function(){return t.event.wheelDelta},"mousewheel"):(Rl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(M,zt).on(As+".zoom",Mr).on("dblclick.zoom",dr).on(z,ar)}le.event=function(rt){rt.each(function(){var Ht=oe.of(this,arguments),Yt=u;Ii?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Ht)}).tween("zoom:zoom",function(){var or=v[0],Er=v[1],Br=h?h[0]:or/2,Yr=h?h[1]:Er/2,hn=t.interpolateZoom([(Br-u.x)/u.k,(Yr-u.y)/u.k,or/u.k],[(Br-Yt.x)/Yt.k,(Yr-Yt.y)/Yt.k,or/Yt.k]);return function(_n){var rn=hn(_n),Mn=or/rn[2];this.__chart__=u={x:Br-rn[0]*Mn,y:Yr-rn[1]*Mn,k:Mn},Gt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=u,vt(Ht),Gt(Ht),xt(Ht))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},ze(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(m=rt==null?du:[+rt[0],+rt[1]],le):m},le.center=function(rt){return arguments.length?(d=rt&&[+rt[0],+rt[1]],le):d},le.size=function(rt){return arguments.length?(v=rt&&[+rt[0],+rt[1]],le):v},le.duration=function(rt){return arguments.length?(A=+rt,le):A},le.x=function(rt){return arguments.length?(Y=rt,j=rt.copy(),u={x:0,y:0,k:1},le):Y},le.y=function(rt){return arguments.length?(ue=rt,K=rt.copy(),u={x:0,y:0,k:1},le):ue};function ee(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Re(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function ze(rt){u.k=Math.max(m[0],Math.min(m[1],rt))}function tt(rt,Ht){Ht=Re(Ht),u.x+=rt[0]-Ht[0],u.y+=rt[1]-Ht[1]}function je(rt,Ht,Yt,or){rt.__chart__={x:u.x,y:u.y,k:u.k},ze(Math.pow(2,or)),tt(h=Ht,Yt),rt=t.select(rt),A>0&&(rt=rt.transition().duration(A)),rt.call(le.event)}function at(){Y&&Y.domain(j.range().map(function(rt){return(rt-u.x)/u.k}).map(j.invert)),ue&&ue.domain(K.range().map(function(rt){return(rt-u.y)/u.k}).map(K.invert))}function vt(rt){w++||rt({type:"zoomstart"})}function Gt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function xt(rt){--w||(rt({type:"zoomend"}),h=null)}function zt(){var rt=this,Ht=oe.of(rt,arguments),Yt=0,or=t.select(o(rt)).on(N,Yr).on(L,hn),Er=ee(t.mouse(rt)),Br=Ml(rt);sf.call(rt),vt(Ht);function Yr(){Yt=1,tt(t.mouse(rt),Er),Gt(Ht)}function hn(){or.on(N,null).on(L,null),Br(Yt),xt(Ht)}}function ar(){var rt=this,Ht=oe.of(rt,arguments),Yt={},or=0,Er,Br=".zoom-"+t.event.changedTouches[0].identifier,Yr="touchmove"+Br,hn="touchend"+Br,_n=[],rn=t.select(rt),Mn=Ml(rt);H(),vt(Ht),rn.on(M,null).on(z,H);function R(){var ke=t.touches(rt);return Er=u.k,ke.forEach(function(ge){ge.identifier in Yt&&(Yt[ge.identifier]=ee(ge))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Yr,Z).on(hn,we),_n.push(ke);for(var ge=t.event.changedTouches,xe=0,Ye=ge.length;xe<Ye;++xe)Yt[ge[xe].identifier]=null;var Xe=R(),Je=Date.now();if(Xe.length===1){if(Je-re<500){var lt=Xe[0];je(rt,lt,Yt[lt.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),ct()}re=Je}else if(Xe.length>1){var lt=Xe[0],Rt=Xe[1],bt=lt[0]-Rt[0],it=lt[1]-Rt[1];or=bt*bt+it*it}}function Z(){var ke=t.touches(rt),ge,xe,Ye,Xe;sf.call(rt);for(var Je=0,lt=ke.length;Je<lt;++Je,Xe=null)if(Ye=ke[Je],Xe=Yt[Ye.identifier]){if(xe)break;ge=Ye,xe=Xe}if(Xe){var Rt=(Rt=Ye[0]-ge[0])*Rt+(Rt=Ye[1]-ge[1])*Rt,bt=or&&Math.sqrt(Rt/or);ge=[(ge[0]+Ye[0])/2,(ge[1]+Ye[1])/2],xe=[(xe[0]+Xe[0])/2,(xe[1]+Xe[1])/2],ze(bt*Er)}re=null,tt(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 Yt[ke[ge].identifier];for(var Ye in Yt)return void R()}t.selectAll(_n).on(Br,null),rn.on(M,zt).on(z,ar),Mn(),xt(Ht)}}function Mr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(sf.call(this),f=ee(h=d||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,xt(rt)},50),ct(),ze(Math.pow(2,Rl()*.002)*u.k),tt(h,f),Gt(rt)}function dr(){var rt=t.mouse(this),Ht=Math.log(u.k)/Math.LN2;je(this,rt,ee(rt),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var du=[0,1/0],Rl,As;t.color=Wi;function Wi(){}Wi.prototype.toString=function(){return this.rgb()+""},t.hsl=Gn;function Gn(u,f,h){return this instanceof Gn?(this.h=+u,this.s=+f,void(this.l=+h)):arguments.length<2?u instanceof Gn?new Gn(u.h,u.s,u.l):ya(""+u,Ps,Gn):new Gn(u,f,h)}var Pl=Gn.prototype=new Wi;Pl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,this.l/u)},Pl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,u*this.l)},Pl.rgb=function(){return Fl(this.h,this.s,this.l)};function Fl(u,f,h){var d,v;u=isNaN(u)?0:(u%=360)<0?u+360:u,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,v=h<=.5?h*(1+f):h+f-h*f,d=2*h-v;function m(w){return w>360?w-=360:w<0&&(w+=360),w<60?d+(v-d)*w/60:w<180?v:w<240?d+(v-d)*(240-w)/60:d}function A(w){return Math.round(m(w)*255)}return new en(A(u+120),A(u),A(u-120))}t.hcl=ti;function ti(u,f,h){return this instanceof ti?(this.h=+u,this.c=+f,void(this.l=+h)):arguments.length<2?u instanceof ti?new ti(u.h,u.c,u.l):u instanceof Zr?rp(u.l,u.a,u.b):rp((u=xa((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new ti(u,f,h)}var pu=ti.prototype=new Wi;pu.brighter=function(u){return new ti(this.h,this.c,Math.min(100,this.l+ga*(arguments.length?u:1)))},pu.darker=function(u){return new ti(this.h,this.c,Math.max(0,this.l-ga*(arguments.length?u:1)))},pu.rgb=function(){return vu(this.h,this.c,this.l).rgb()};function vu(u,f,h){return isNaN(u)&&(u=0),isNaN(f)&&(f=0),new Zr(h,Math.cos(u*=Qd)*f,Math.sin(u)*f)}t.lab=Zr;function Zr(u,f,h){return this instanceof Zr?(this.l=+u,this.a=+f,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof ti?vu(u.h,u.c,u.l):xa((u=en(u)).r,u.g,u.b):new Zr(u,f,h)}var ga=18,Cs=.95047,Ts=1,ep=1.08883,Os=Zr.prototype=new Wi;Os.brighter=function(u){return new Zr(Math.min(100,this.l+ga*(arguments.length?u:1)),this.a,this.b)},Os.darker=function(u){return new Zr(Math.max(0,this.l-ga*(arguments.length?u:1)),this.a,this.b)},Os.rgb=function(){return tp(this.l,this.a,this.b)};function tp(u,f,h){var d=(u+16)/116,v=d+f/500,m=d-h/200;return v=ks(v)*Cs,d=ks(d)*Ts,m=ks(m)*ep,new en(Rs(3.2404542*v-1.5371385*d-.4985314*m),Rs(-.969266*v+1.8760108*d+.041556*m),Rs(.0556434*v-.2040259*d+1.0572252*m))}function rp(u,f,h){return u>0?new ti(Math.atan2(h,f)*cu,Math.sqrt(f*f+h*h),u):new ti(NaN,NaN,u)}function ks(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function Ms(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function Rs(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=en;function en(u,f,h){return this instanceof en?(this.r=~~u,this.g=~~f,void(this.b=~~h)):arguments.length<2?u instanceof en?new en(u.r,u.g,u.b):ya(""+u,en,Fl):new en(u,f,h)}function np(u){return new en(u>>16,u>>8&255,u&255)}function Nl(u){return np(u)+""}var Vi=en.prototype=new Wi;Vi.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var f=this.r,h=this.g,d=this.b,v=30;return!f&&!h&&!d?new en(v,v,v):(f&&f<v&&(f=v),h&&h<v&&(h=v),d&&d<v&&(d=v),new en(Math.min(255,f/u),Math.min(255,h/u),Math.min(255,d/u)))},Vi.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new en(u*this.r,u*this.g,u*this.b)},Vi.hsl=function(){return Ps(this.r,this.g,this.b)},Vi.toString=function(){return"#"+to(this.r)+to(this.g)+to(this.b)};function to(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function ya(u,f,h){var d=0,v=0,m=0,A,w,M;if(A=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),A)switch(w=A[2].split(","),A[1]){case"hsl":return h(parseFloat(w[0]),parseFloat(w[1])/100,parseFloat(w[2])/100);case"rgb":return f(Yi(w[0]),Yi(w[1]),Yi(w[2]))}return(M=ro.get(u))?f(M.r,M.g,M.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(M=parseInt(u.slice(1),16))&&(u.length===4?(d=(M&3840)>>4,d=d>>4|d,v=M&240,v=v>>4|v,m=M&15,m=m<<4|m):u.length===7&&(d=(M&16711680)>>16,v=(M&65280)>>8,m=M&255)),f(d,v,m))}function Ps(u,f,h){var d=Math.min(u/=255,f/=255,h/=255),v=Math.max(u,f,h),m=v-d,A,w,M=(v+d)/2;return m?(w=M<.5?m/(v+d):m/(2-v-d),u==v?A=(f-h)/m+(f<h?6:0):f==v?A=(h-u)/m+2:A=(u-f)/m+4,A*=60):(A=NaN,w=M>0&&M<1?0:A),new Gn(A,w,M)}function xa(u,f,h){u=Il(u),f=Il(f),h=Il(h);var d=Ms((.4124564*u+.3575761*f+.1804375*h)/Cs),v=Ms((.2126729*u+.7151522*f+.072175*h)/Ts),m=Ms((.0193339*u+.119192*f+.9503041*h)/ep);return Zr(116*v-16,500*(d-v),200*(v-m))}function Il(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function Yi(u){var f=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(f*2.55):f}var ro=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});ro.forEach(function(u,f){ro.set(u,np(f))});function gr(u){return typeof u=="function"?u:function(){return u}}t.functor=gr,t.xhr=Fs(nt);function Fs(u){return function(f,h,d){return arguments.length===2&&typeof h=="function"&&(d=h,h=null),Ll(f,h,u,d)}}function Ll(u,f,h,d){var v={},m=t.dispatch("beforesend","progress","load","error"),A={},w=new XMLHttpRequest,M=null;self.XDomainRequest&&!("withCredentials"in w)&&/^(http(s)?:)?\/\//.test(u)&&(w=new XDomainRequest),"onload"in w?w.onload=w.onerror=N:w.onreadystatechange=function(){w.readyState>3&&N()};function N(){var L=w.status,B;if(!L&&jg(w)||L>=200&&L<300||L===304){try{B=h.call(v,w)}catch(z){m.error.call(v,z);return}m.load.call(v,B)}else m.error.call(v,w)}return w.onprogress=function(L){var B=t.event;t.event=L;try{m.progress.call(v,w)}finally{t.event=B}},v.header=function(L,B){return L=(L+"").toLowerCase(),arguments.length<2?A[L]:(B==null?delete A[L]:A[L]=B+"",v)},v.mimeType=function(L){return arguments.length?(f=L==null?null:L+"",v):f},v.responseType=function(L){return arguments.length?(M=L,v):M},v.response=function(L){return h=L,v},["get","post"].forEach(function(L){v[L]=function(){return v.send.apply(v,[L].concat(n(arguments)))}}),v.send=function(L,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),w.open(L,u,!0),f!=null&&!("accept"in A)&&(A.accept=f+",*/*"),w.setRequestHeader)for(var re in A)w.setRequestHeader(re,A[re]);return f!=null&&w.overrideMimeType&&w.overrideMimeType(f),M!=null&&(w.responseType=M),z!=null&&v.on("error",z).on("load",function(oe){z(null,oe)}),m.beforesend.call(v,w),w.send(B??null),v},v.abort=function(){return w.abort(),v},t.rebind(v,m,"on"),d==null?v:v.get(ip(d))}function ip(u){return u.length===1?function(f,h){u(f==null?h:null)}:u}function jg(u){var f=u.responseType;return f&&f!=="text"?u.response:u.responseText}t.dsv=function(u,f){var h=new RegExp('["'+u+`
828
828
  ]`),d=u.charCodeAt(0);function v(N,L,B){arguments.length<3&&(B=L,L=null);var z=Ll(N,f,L==null?m:A(L),B);return z.row=function(re){return arguments.length?z.response((L=re)==null?m:A(re)):L},z}function m(N){return v.parse(N.responseText)}function A(N){return function(L){return v.parse(L.responseText,N)}}v.parse=function(N,L){var B;return v.parseRows(N,function(z,re){if(B)return B(z,re-1);var oe=function(j){for(var Y={},K=z.length,ue=0;ue<K;++ue)Y[z[ue]]=j[ue];return Y};B=L?function(j,Y){return L(oe(j),Y)}:oe})},v.parseRows=function(N,L){var B={},z={},re=[],oe=N.length,j=0,Y=0,K,ue;function le(){if(j>=oe)return z;if(ue)return ue=!1,B;var Re=j;if(N.charCodeAt(Re)===34){for(var ze=Re;ze++<oe;)if(N.charCodeAt(ze)===34){if(N.charCodeAt(ze+1)!==34)break;++ze}j=ze+2;var tt=N.charCodeAt(ze+1);return tt===13?(ue=!0,N.charCodeAt(ze+2)===10&&++j):tt===10&&(ue=!0),N.slice(Re+1,ze).replace(/""/g,'"')}for(;j<oe;){var tt=N.charCodeAt(j++),je=1;if(tt===10)ue=!0;else if(tt===13)ue=!0,N.charCodeAt(j)===10&&(++j,++je);else if(tt!==d)continue;return N.slice(Re,j-je)}return N.slice(Re)}for(;(K=le())!==z;){for(var ee=[];K!==B&&K!==z;)ee.push(K),K=le();L&&(ee=L(ee,Y++))==null||re.push(ee)}return re},v.format=function(N){if(Array.isArray(N[0]))return v.formatRows(N);var L=new ft,B=[];return N.forEach(function(z){for(var re in z)L.has(re)||B.push(L.add(re))}),[B.map(M).join(u)].concat(N.map(function(z){return B.map(function(re){return M(z[re])}).join(u)})).join(`
829
829
  `)},v.formatRows=function(N){return N.map(w).join(`
830
- `)};function w(N){return N.map(M).join(u)}function M(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return v},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var $l,mu,ri,Dl,ni=this[qe(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){no.apply(this,arguments)};function no(u,f,h){var d=arguments.length;d<2&&(f=0),d<3&&(h=Date.now());var v=h+f,m={c:u,t:v,n:null};return mu?mu.n=m:$l=m,mu=m,ri||(Dl=clearTimeout(Dl),ri=1,ni(io)),m}function io(){var u=Xi(),f=Bl()-u;f>24?(isFinite(f)&&(clearTimeout(Dl),Dl=setTimeout(io,f)),ri=0):(ri=1,ni(io))}t.timer.flush=function(){Xi(),Bl()};function Xi(){for(var u=Date.now(),f=$l;f;)u>=f.t&&f.c(u-f.t)&&(f.c=null),f=f.n;return u}function Bl(){for(var u,f=$l,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(u=f).n):f=u?u.n=f.n:$l=f.n;return mu=u,h}t.round=function(u,f){return f?Math.round(u*(f=Math.pow(10,f)))/f:Math.round(u)},t.geom={};function ki(u){return u[0]}function Mi(u){return u[1]}t.geom.hull=function(u){var f=ki,h=Mi;if(arguments.length)return d(u);function d(v){if(v.length<3)return[];var m=gr(f),A=gr(h),w,M=v.length,N=[],L=[];for(w=0;w<M;w++)N.push([+m.call(this,v[w],w),+A.call(this,v[w],w),w]);for(N.sort(ap),w=0;w<M;w++)L.push([N[w][0],-N[w][1]]);var B=gu(N),z=gu(L),re=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],j=[];for(w=B.length-1;w>=0;--w)j.push(v[N[B[w]][2]]);for(w=+re;w<z.length-oe;++w)j.push(v[N[z[w]][2]]);return j}return d.x=function(v){return arguments.length?(f=v,d):f},d.y=function(v){return arguments.length?(h=v,d):h},d};function gu(u){for(var f=u.length,h=[0,1],d=2,v=2;v<f;v++){for(;d>1&&Dg(u[h[d-2]],u[h[d-1]],u[v])<=0;)--d;h[d++]=v}return h.slice(0,d)}function ap(u,f){return u[0]-f[0]||u[1]-f[1]}t.geom.polygon=function(u){return qt(u,ao),u};var ao=t.geom.polygon.prototype=[];ao.area=function(){for(var u=-1,f=this.length,h,d=this[f-1],v=0;++u<f;)h=d,d=this[u],v+=h[1]*d[0]-h[0]*d[1];return v*.5},ao.centroid=function(u){var f=-1,h=this.length,d=0,v=0,m,A=this[h-1],w;for(arguments.length||(u=-1/(6*this.area()));++f<h;)m=A,A=this[f],w=m[0]*A[1]-A[0]*m[1],d+=(m[0]+A[0])*w,v+=(m[1]+A[1])*w;return[d*u,v*u]},ao.clip=function(u){for(var f,h=op(u),d=-1,v=this.length-op(this),m,A,w=this[v-1],M,N,L;++d<v;){for(f=u.slice(),u.length=0,M=this[d],N=f[(A=f.length-h)-1],m=-1;++m<A;)L=f[m],zl(L,w,M)?(zl(N,w,M)||u.push(Ns(N,L,w,M)),u.push(L)):zl(N,w,M)&&u.push(Ns(N,L,w,M)),N=L;h&&u.push(u[0]),w=M}return u};function zl(u,f,h){return(h[0]-f[0])*(u[1]-f[1])<(h[1]-f[1])*(u[0]-f[0])}function Ns(u,f,h,d){var v=u[0],m=h[0],A=f[0]-v,w=d[0]-m,M=u[1],N=h[1],L=f[1]-M,B=d[1]-N,z=(w*(M-N)-B*(v-m))/(B*A-w*L);return[v+z*A,M+z*L]}function op(u){var f=u[0],h=u[u.length-1];return!(f[0]-h[0]||f[1]-h[1])}var oo,_a,Qi,yu=[],xu,wa,ba=[];function Is(){Gl(this),this.edge=this.site=this.circle=null}function Ul(u){var f=yu.pop()||new Is;return f.site=u,f}function _u(u){ii(u),Qi.remove(u),yu.push(u),Gl(u)}function Ls(u){var f=u.circle,h=f.x,d=f.cy,v={x:h,y:d},m=u.P,A=u.N,w=[u];_u(u);for(var M=m;M.circle&&E(h-M.circle.x)<ir&&E(d-M.circle.cy)<ir;)m=M.P,w.unshift(M),_u(M),M=m;w.unshift(M),ii(M);for(var N=A;N.circle&&E(h-N.circle.x)<ir&&E(d-N.circle.cy)<ir;)A=N.N,w.push(N),_u(N),N=A;w.push(N),ii(N);var L=w.length,B;for(B=1;B<L;++B)N=w[B],M=w[B-1],uo(N.edge,M.site,N.site,v);M=w[0],N=w[L-1],N.edge=bu(M.site,N.site,null,v),Sa(M),Sa(N)}function up(u){for(var f=u.x,h=u.y,d,v,m,A,w=Qi._;w;)if(m=$s(w,h)-f,m>ir)w=w.L;else if(A=f-lp(w,h),A>ir){if(!w.R){d=w;break}w=w.R}else{m>-ir?(d=w.P,v=w):A>-ir?(d=w,v=w.N):d=v=w;break}var M=Ul(u);if(Qi.insert(d,M),!(!d&&!v)){if(d===v){ii(d),v=Ul(d.site),Qi.insert(M,v),M.edge=v.edge=bu(d.site,M.site),Sa(d),Sa(v);return}if(!v){M.edge=bu(d.site,M.site);return}ii(d),ii(v);var N=d.site,L=N.x,B=N.y,z=u.x-L,re=u.y-B,oe=v.site,j=oe.x-L,Y=oe.y-B,K=2*(z*Y-re*j),ue=z*z+re*re,le=j*j+Y*Y,ee={x:(Y*ue-re*le)/K+L,y:(z*le-j*ue)/K+B};uo(v.edge,N,oe,ee),M.edge=bu(N,u,null,ee),v.edge=bu(u,oe,null,ee),Sa(d),Sa(v)}}function $s(u,f){var h=u.site,d=h.x,v=h.y,m=v-f;if(!m)return d;var A=u.P;if(!A)return-1/0;h=A.site;var w=h.x,M=h.y,N=M-f;if(!N)return w;var L=w-d,B=1/m-1/N,z=L/N;return B?(-z+Math.sqrt(z*z-2*B*(L*L/(-2*N)-M+N/2+v-m/2)))/B+d:(d+w)/2}function lp(u,f){var h=u.N;if(h)return $s(h,f);var d=u.site;return d.y===f?d.x:1/0}function Ds(u){this.site=u,this.edges=[]}Ds.prototype.prepare=function(){for(var u=this.edges,f=u.length,h;f--;)h=u[f].edge,(!h.b||!h.a)&&u.splice(f,1);return u.sort(Bs),u.length};function fp(u){for(var f=u[0][0],h=u[1][0],d=u[0][1],v=u[1][1],m,A,w,M,N=_a,L=N.length,B,z,re,oe,j,Y;L--;)if(B=N[L],!(!B||!B.prepare()))for(re=B.edges,oe=re.length,z=0;z<oe;)Y=re[z].end(),w=Y.x,M=Y.y,j=re[++z%oe].start(),m=j.x,A=j.y,(E(w-m)>ir||E(M-A)>ir)&&(re.splice(z,0,new jl(jg(B.site,Y,E(w-f)<ir&&v-M>ir?{x:f,y:E(m-f)<ir?A:v}:E(M-v)<ir&&h-w>ir?{x:E(A-v)<ir?m:h,y:v}:E(w-h)<ir&&M-d>ir?{x:h,y:E(m-h)<ir?A:d}:E(M-d)<ir&&w-f>ir?{x:E(A-d)<ir?m:f,y:d}:null),B.site,null)),++oe)}function Bs(u,f){return f.angle-u.angle}function sp(){Gl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sa(u){var f=u.P,h=u.N;if(!(!f||!h)){var d=f.site,v=u.site,m=h.site;if(d!==m){var A=v.x,w=v.y,M=d.x-A,N=d.y-w,L=m.x-A,Y=m.y-w,B=2*(M*Y-N*L);if(!(B>=-Yd)){var z=M*M+N*N,re=L*L+Y*Y,oe=(Y*z-N*re)/B,j=(M*re-L*z)/B,Y=j+w,K=ba.pop()||new sp;K.arc=u,K.site=v,K.x=oe+A,K.y=Y+Math.sqrt(oe*oe+j*j),K.cy=Y,u.circle=K;for(var ue=null,le=wa._;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}wa.insert(ue,K),ue||(xu=K)}}}}function ii(u){var f=u.circle;f&&(f.P||(xu=f.N),wa.remove(f),ba.push(f),Gl(f),u.circle=null)}function zs(u,f,h,d){return function(v){var m=v.a,A=v.b,w=m.x,M=m.y,N=A.x,L=A.y,B=0,z=1,re=N-w,oe=L-M,j;if(j=u-w,!(!re&&j>0)){if(j/=re,re<0){if(j<B)return;j<z&&(z=j)}else if(re>0){if(j>z)return;j>B&&(B=j)}if(j=h-w,!(!re&&j<0)){if(j/=re,re<0){if(j>z)return;j>B&&(B=j)}else if(re>0){if(j<B)return;j<z&&(z=j)}if(j=f-M,!(!oe&&j>0)){if(j/=oe,oe<0){if(j<B)return;j<z&&(z=j)}else if(oe>0){if(j>z)return;j>B&&(B=j)}if(j=d-M,!(!oe&&j<0)){if(j/=oe,oe<0){if(j>z)return;j>B&&(B=j)}else if(oe>0){if(j<B)return;j<z&&(z=j)}return B>0&&(v.a={x:w+B*re,y:M+B*oe}),z<1&&(v.b={x:w+z*re,y:M+z*oe}),v}}}}}}function Us(u){for(var f=oo,h=zs(u[0][0],u[0][1],u[1][0],u[1][1]),d=f.length,v;d--;)v=f[d],(!wu(v,u)||!h(v)||E(v.a.x-v.b.x)<ir&&E(v.a.y-v.b.y)<ir)&&(v.a=v.b=null,f.splice(d,1))}function wu(u,f){var h=u.b;if(h)return!0;var d=u.a,v=f[0][0],m=f[1][0],A=f[0][1],w=f[1][1],M=u.l,N=u.r,L=M.x,B=M.y,z=N.x,re=N.y,oe=(L+z)/2,j=(B+re)/2,Y,K;if(re===B){if(oe<v||oe>=m)return;if(L>z){if(!d)d={x:oe,y:A};else if(d.y>=w)return;h={x:oe,y:w}}else{if(!d)d={x:oe,y:w};else if(d.y<A)return;h={x:oe,y:A}}}else if(Y=(L-z)/(re-B),K=j-Y*oe,Y<-1||Y>1)if(L>z){if(!d)d={x:(A-K)/Y,y:A};else if(d.y>=w)return;h={x:(w-K)/Y,y:w}}else{if(!d)d={x:(w-K)/Y,y:w};else if(d.y<A)return;h={x:(A-K)/Y,y:A}}else if(B<re){if(!d)d={x:v,y:Y*v+K};else if(d.x>=m)return;h={x:m,y:Y*m+K}}else{if(!d)d={x:m,y:Y*m+K};else if(d.x<v)return;h={x:v,y:Y*v+K}}return u.a=d,u.b=h,!0}function cp(u,f){this.l=u,this.r=f,this.a=this.b=null}function bu(u,f,h,d){var v=new cp(u,f);return oo.push(v),h&&uo(v,u,f,h),d&&uo(v,f,u,d),_a[u.i].edges.push(new jl(v,u,f)),_a[f.i].edges.push(new jl(v,f,u)),v}function jg(u,f,h){var d=new cp(u,null);return d.a=f,d.b=h,oo.push(d),d}function uo(u,f,h,d){!u.a&&!u.b?(u.a=d,u.l=f,u.r=h):u.l===h?u.b=d:u.a=d}function jl(u,f,h){var d=u.a,v=u.b;this.edge=u,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):u.l===f?Math.atan2(v.x-d.x,d.y-v.y):Math.atan2(d.x-v.x,v.y-d.y)}jl.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 js(){this._=null}function Gl(u){u.U=u.C=u.L=u.R=u.P=u.N=null}js.prototype={insert:function(u,f){var h,d,v;if(u){if(f.P=u,f.N=u.N,u.N&&(u.N.P=f),u.N=f,u.R){for(u=u.R;u.L;)u=u.L;u.L=f}else u.R=f;h=u}else this._?(u=Hl(this._),f.P=null,f.N=u,u.P=u.L=f,h=u):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,u=f;h&&h.C;)d=h.U,h===d.L?(v=d.R,v&&v.C?(h.C=v.C=!1,d.C=!0,u=d):(u===h.R&&(Ea(this,h),u=h,h=u.U),h.C=!1,d.C=!0,Su(this,d))):(v=d.L,v&&v.C?(h.C=v.C=!1,d.C=!0,u=d):(u===h.L&&(Su(this,h),u=h,h=u.U),h.C=!1,d.C=!0,Ea(this,d))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var f=u.U,h,d=u.L,v=u.R,m,A;if(d?v?m=Hl(v):m=d:m=v,f?f.L===u?f.L=m:f.R=m:this._=m,d&&v?(A=m.C,m.C=u.C,m.L=d,d.U=m,m!==v?(f=m.U,m.U=u.U,u=m.R,f.L=u,m.R=v,v.U=m):(m.U=f,f=m,u=m.R)):(A=u.C,u=m),u&&(u.U=f),!A){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,Ea(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,Su(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,Ea(this,f),u=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,Su(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,Ea(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,Su(this,f),u=this._;break}h.C=!0,u=f,f=f.U}while(!u.C);u&&(u.C=!1)}}};function Ea(u,f){var h=f,d=f.R,v=h.U;v?v.L===h?v.L=d:v.R=d:u._=d,d.U=v,h.U=d,h.R=d.L,h.R&&(h.R.U=h),d.L=h}function Su(u,f){var h=f,d=f.L,v=h.U;v?v.L===h?v.L=d:v.R=d:u._=d,d.U=v,h.U=d,h.L=d.R,h.L&&(h.L.U=h),d.R=h}function Hl(u){for(;u.L;)u=u.L;return u}function ql(u,f){var h=u.sort(hp).pop(),d,v,m;for(oo=[],_a=new Array(u.length),Qi=new js,wa=new js;;)if(m=xu,h&&(!m||h.y<m.y||h.y===m.y&&h.x<m.x))(h.x!==d||h.y!==v)&&(_a[h.i]=new Ds(h),up(h),d=h.x,v=h.y),h=u.pop();else if(m)Ls(m.arc);else break;f&&(Us(f),fp(f));var A={cells:_a,edges:oo};return Qi=wa=oo=_a=null,A}function hp(u,f){return f.y-u.y||f.x-u.x}t.geom.voronoi=function(u){var f=ki,h=Mi,d=f,v=h,m=lo;if(u)return A(u);function A(M){var N=new Array(M.length),L=m[0][0],B=m[0][1],z=m[1][0],re=m[1][1];return ql(w(M),m).cells.forEach(function(oe,j){var Y=oe.edges,K=oe.site,ue=N[j]=Y.length?Y.map(function(le){var ee=le.start();return[ee.x,ee.y]}):K.x>=L&&K.x<=z&&K.y>=B&&K.y<=re?[[L,re],[z,re],[z,B],[L,B]]:[];ue.point=M[j]}),N}function w(M){return M.map(function(N,L){return{x:Math.round(d(N,L)/ir)*ir,y:Math.round(v(N,L)/ir)*ir,i:L}})}return A.links=function(M){return ql(w(M)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:M[N.l.i],target:M[N.r.i]}})},A.triangles=function(M){var N=[];return ql(w(M)).cells.forEach(function(L,B){for(var z=L.site,re=L.edges.sort(Bs),oe=-1,j=re.length,Y,K=re[j-1].edge,ue=K.l===z?K.r:K.l;++oe<j;)Y=ue,K=re[oe].edge,ue=K.l===z?K.r:K.l,B<Y.i&&B<ue.i&&Gg(z,Y,ue)<0&&N.push([M[B],M[Y.i],M[ue.i]])}),N},A.x=function(M){return arguments.length?(d=gr(f=M),A):f},A.y=function(M){return arguments.length?(v=gr(h=M),A):h},A.clipExtent=function(M){return arguments.length?(m=M??lo,A):m===lo?null:m},A.size=function(M){return arguments.length?A.clipExtent(M&&[[0,0],M]):m===lo?null:m&&m[1]},A};var lo=[[-1e6,-1e6],[1e6,1e6]];function Gg(u,f,h){return(u.x-h.x)*(f.y-u.y)-(u.x-f.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,f,h,d,v){var m=ki,A=Mi,w;if(w=arguments.length)return m=Wl,A=Hg,w===3&&(v=h,d=f,h=f=0),M(u);function M(N){var L,B=gr(m),z=gr(A),re,oe,j,Y,K,ue,le,ee;if(f!=null)K=f,ue=h,le=d,ee=v;else if(le=ee=-(K=ue=1/0),re=[],oe=[],Y=N.length,w)for(j=0;j<Y;++j)L=N[j],L.x<K&&(K=L.x),L.y<ue&&(ue=L.y),L.x>le&&(le=L.x),L.y>ee&&(ee=L.y),re.push(L.x),oe.push(L.y);else for(j=0;j<Y;++j){var Re=+B(L=N[j],j),ze=+z(L,j);Re<K&&(K=Re),ze<ue&&(ue=ze),Re>le&&(le=Re),ze>ee&&(ee=ze),re.push(Re),oe.push(ze)}var tt=le-K,je=ee-ue;tt>je?ee=ue+tt:le=K+je;function at(xt,zt,ar,Mr,dr,rt,Ht,Yt){if(!(isNaN(ar)||isNaN(Mr)))if(xt.leaf){var or=xt.x,Er=xt.y;if(or!=null)if(E(or-ar)+E(Er-Mr)<.01)vt(xt,zt,ar,Mr,dr,rt,Ht,Yt);else{var Br=xt.point;xt.x=xt.y=xt.point=null,vt(xt,Br,or,Er,dr,rt,Ht,Yt),vt(xt,zt,ar,Mr,dr,rt,Ht,Yt)}else xt.x=ar,xt.y=Mr,xt.point=zt}else vt(xt,zt,ar,Mr,dr,rt,Ht,Yt)}function vt(xt,zt,ar,Mr,dr,rt,Ht,Yt){var or=(dr+Ht)*.5,Er=(rt+Yt)*.5,Br=ar>=or,Yr=Mr>=Er,hn=Yr<<1|Br;xt.leaf=!1,xt=xt.nodes[hn]||(xt.nodes[hn]=dp()),Br?dr=or:Ht=or,Yr?rt=Er:Yt=Er,at(xt,zt,ar,Mr,dr,rt,Ht,Yt)}var Gt=dp();if(Gt.add=function(xt){at(Gt,xt,+B(xt,++j),+z(xt,j),K,ue,le,ee)},Gt.visit=function(xt){Eu(xt,Gt,K,ue,le,ee)},Gt.find=function(xt){return qg(Gt,xt[0],xt[1],K,ue,le,ee)},j=-1,f==null){for(;++j<Y;)at(Gt,N[j],re[j],oe[j],K,ue,le,ee);--j}else N.forEach(Gt.add);return re=oe=N=L=null,Gt}return M.x=function(N){return arguments.length?(m=N,M):m},M.y=function(N){return arguments.length?(A=N,M):A},M.extent=function(N){return arguments.length?(N==null?f=h=d=v=null:(f=+N[0][0],h=+N[0][1],d=+N[1][0],v=+N[1][1]),M):f==null?null:[[f,h],[d,v]]},M.size=function(N){return arguments.length?(N==null?f=h=d=v=null:(f=h=0,d=+N[0],v=+N[1]),M):f==null?null:[d-f,v-h]},M};function Wl(u){return u.x}function Hg(u){return u.y}function dp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Eu(u,f,h,d,v,m){if(!u(f,h,d,v,m)){var A=(h+v)*.5,w=(d+m)*.5,M=f.nodes;M[0]&&Eu(u,M[0],h,d,A,w),M[1]&&Eu(u,M[1],A,d,v,w),M[2]&&Eu(u,M[2],h,w,A,m),M[3]&&Eu(u,M[3],A,w,v,m)}}function qg(u,f,h,d,v,m,A){var w=1/0,M;return function N(L,B,z,re,oe){if(!(B>m||z>A||re<d||oe<v)){if(j=L.point){var j,Y=f-L.x,K=h-L.y,ue=Y*Y+K*K;if(ue<w){var le=Math.sqrt(w=ue);d=f-le,v=h-le,m=f+le,A=h+le,M=j}}for(var ee=L.nodes,Re=(B+re)*.5,ze=(z+oe)*.5,tt=f>=Re,je=h>=ze,at=je<<1|tt,vt=at+4;at<vt;++at)if(L=ee[at&3])switch(at&3){case 0:N(L,B,z,Re,ze);break;case 1:N(L,Re,z,re,ze);break;case 2:N(L,B,ze,Re,oe);break;case 3:N(L,Re,ze,re,oe);break}}}(u,d,v,m,A),M}t.interpolateRgb=Gs;function Gs(u,f){u=t.rgb(u),f=t.rgb(f);var h=u.r,d=u.g,v=u.b,m=f.r-h,A=f.g-d,w=f.b-v;return function(M){return"#"+to(Math.round(h+m*M))+to(Math.round(d+A*M))+to(Math.round(v+w*M))}}t.interpolateObject=pp;function pp(u,f){var h={},d={},v;for(v in u)v in f?h[v]=mi(u[v],f[v]):d[v]=u[v];for(v in f)v in u||(d[v]=f[v]);return function(m){for(v in h)d[v]=h[v](m);return d}}t.interpolateNumber=Ri;function Ri(u,f){return u=+u,f=+f,function(h){return u*(1-h)+f*h}}t.interpolateString=Hs;function Hs(u,f){var h=Aa.lastIndex=qs.lastIndex=0,d,v,m,A=-1,w=[],M=[];for(u=u+"",f=f+"";(d=Aa.exec(u))&&(v=qs.exec(f));)(m=v.index)>h&&(m=f.slice(h,m),w[A]?w[A]+=m:w[++A]=m),(d=d[0])===(v=v[0])?w[A]?w[A]+=v:w[++A]=v:(w[++A]=null,M.push({i:A,x:Ri(d,v)})),h=qs.lastIndex;return h<f.length&&(m=f.slice(h),w[A]?w[A]+=m:w[++A]=m),w.length<2?M[0]?(f=M[0].x,function(N){return f(N)+""}):function(){return f}:(f=M.length,function(N){for(var L=0,B;L<f;++L)w[(B=M[L]).i]=B.x(N);return w.join("")})}var Aa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qs=new RegExp(Aa.source,"g");t.interpolate=mi;function mi(u,f){for(var h=t.interpolators.length,d;--h>=0&&!(d=t.interpolators[h](u,f)););return d}t.interpolators=[function(u,f){var h=typeof f;return(h==="string"?ro.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?Gs:Hs:f instanceof Wi?Gs:Array.isArray(f)?kn:h==="object"&&isNaN(f)?pp:Ri)(u,f)}],t.interpolateArray=kn;function kn(u,f){var h=[],d=[],v=u.length,m=f.length,A=Math.min(u.length,f.length),w;for(w=0;w<A;++w)h.push(mi(u[w],f[w]));for(;w<v;++w)d[w]=u[w];for(;w<m;++w)d[w]=f[w];return function(M){for(w=0;w<A;++w)d[w]=h[w](M);return d}}var Ta=function(){return nt},vp=t.map({linear:Ta,poly:Kr,quad:function(){return yp},cubic:function(){return Wg},sin:function(){return xp},exp:function(){return _p},circle:function(){return Ca},elastic:wp,back:bp,bounce:function(){return Vg}}),mp=t.map({in:nt,out:Ws,"in-out":Vs,"out-in":function(u){return Vs(Ws(u))}});t.ease=function(u){var f=u.indexOf("-"),h=f>=0?u.slice(0,f):u,d=f>=0?u.slice(f+1):"in";return h=vp.get(h)||Ta,d=mp.get(d)||nt,gp(d(h.apply(null,r.call(arguments,1))))};function gp(u){return function(f){return f<=0?0:f>=1?1:u(f)}}function Ws(u){return function(f){return 1-u(1-f)}}function Vs(u){return function(f){return .5*(f<.5?u(2*f):2-u(2-2*f))}}function yp(u){return u*u}function Wg(u){return u*u*u}function fo(u){if(u<=0)return 0;if(u>=1)return 1;var f=u*u,h=f*u;return 4*(u<.5?h:3*(u-f)+h-.75)}function Kr(u){return function(f){return Math.pow(f,u)}}function xp(u){return 1-Math.cos(u*vi)}function _p(u){return Math.pow(2,10*(u-1))}function Ca(u){return 1-Math.sqrt(1-u*u)}function wp(u,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/eo*Math.asin(1/u):(u=1,h=f/4),function(d){return 1+u*Math.pow(2,-10*d)*Math.sin((d-h)*eo/f)}}function bp(u){return u||(u=1.70158),function(f){return f*f*((u+1)*f-u)}}function Vg(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Yg;function Yg(u,f){u=t.hcl(u),f=t.hcl(f);var h=u.h,d=u.c,v=u.l,m=f.h-h,A=f.c-d,w=f.l-v;return isNaN(A)&&(A=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(M){return vu(h+m*M,d+A*M,v+w*M)+""}}t.interpolateHsl=Xg;function Xg(u,f){u=t.hsl(u),f=t.hsl(f);var h=u.h,d=u.s,v=u.l,m=f.h-h,A=f.s-d,w=f.l-v;return isNaN(A)&&(A=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(M){return Fl(h+m*M,d+A*M,v+w*M)+""}}t.interpolateLab=Qg;function Qg(u,f){u=t.lab(u),f=t.lab(f);var h=u.l,d=u.a,v=u.b,m=f.l-h,A=f.a-d,w=f.b-v;return function(M){return tp(h+m*M,d+A*M,v+w*M)+""}}t.interpolateRound=Vl;function Vl(u,f){return f-=u,function(h){return Math.round(u+f*h)}}t.transform=function(u){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 Ys(d?d.matrix:Zg)})(u)};function Ys(u){var f=[u.a,u.b],h=[u.c,u.d],d=Xs(f),v=Sp(f,h),m=Xs(Ep(h,f,-v))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,d*=-1,v*=-1),this.rotate=(d?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*cu,this.translate=[u.e,u.f],this.scale=[d,m],this.skew=m?Math.atan2(v,m)*cu:0}Ys.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Sp(u,f){return u[0]*f[0]+u[1]*f[1]}function Xs(u){var f=Math.sqrt(Sp(u,u));return f&&(u[0]/=f,u[1]/=f),f}function Ep(u,f,h){return u[0]+=h*f[0],u[1]+=h*f[1],u}var Zg={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Qs;function Pi(u){return u.length?u.pop()+",":""}function Kg(u,f,h,d){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push("translate(",null,",",null,")");d.push({i:v-4,x:Ri(u[0],f[0])},{i:v-2,x:Ri(u[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function Zi(u,f,h,d){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),d.push({i:h.push(Pi(h)+"rotate(",null,")")-2,x:Ri(u,f)})):f&&h.push(Pi(h)+"rotate("+f+")")}function Yl(u,f,h,d){u!==f?d.push({i:h.push(Pi(h)+"skewX(",null,")")-2,x:Ri(u,f)}):f&&h.push(Pi(h)+"skewX("+f+")")}function Ap(u,f,h,d){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push(Pi(h)+"scale(",null,",",null,")");d.push({i:v-4,x:Ri(u[0],f[0])},{i:v-2,x:Ri(u[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Pi(h)+"scale("+f+")")}function Qs(u,f){var h=[],d=[];return u=t.transform(u),f=t.transform(f),Kg(u.translate,f.translate,h,d),Zi(u.rotate,f.rotate,h,d),Yl(u.skew,f.skew,h,d),Ap(u.scale,f.scale,h,d),u=f=null,function(v){for(var m=-1,A=d.length,w;++m<A;)h[(w=d[m]).i]=w.x(v);return h.join("")}}function Tp(u,f){return f=(f-=u=+u)||1/f,function(h){return(h-u)/f}}function Cp(u,f){return f=(f-=u=+u)||1/f,function(h){return Math.max(0,Math.min(1,(h-u)/f))}}t.layout={},t.layout.bundle=function(){return function(u){for(var f=[],h=-1,d=u.length;++h<d;)f.push(Op(u[h]));return f}};function Op(u){for(var f=u.source,h=u.target,d=kp(f,h),v=[f];f!==d;)f=f.parent,v.push(f);for(var m=v.length;h!==d;)v.splice(m,0,h),h=h.parent;return v}function Zs(u){for(var f=[],h=u.parent;h!=null;)f.push(u),u=h,h=h.parent;return f.push(u),f}function kp(u,f){if(u===f)return u;for(var h=Zs(u),d=Zs(f),v=h.pop(),m=d.pop(),A=null;v===m;)A=v,v=h.pop(),m=d.pop();return A}t.layout.chord=function(){var u={},f,h,d,v,m=0,A,w,M;function N(){var B={},z=[],re=t.range(v),oe=[],j,Y,K,ue,le;for(f=[],h=[],j=0,ue=-1;++ue<v;){for(Y=0,le=-1;++le<v;)Y+=d[ue][le];z.push(Y),oe.push(t.range(v)),j+=Y}for(A&&re.sort(function(Gt,xt){return A(z[Gt],z[xt])}),w&&oe.forEach(function(Gt,xt){Gt.sort(function(zt,ar){return w(d[xt][zt],d[xt][ar])})}),j=(eo-m*v)/j,Y=0,ue=-1;++ue<v;){for(K=Y,le=-1;++le<v;){var ee=re[ue],Re=oe[ee][le],ze=d[ee][Re],tt=Y,je=Y+=ze*j;B[ee+"-"+Re]={index:ee,subindex:Re,startAngle:tt,endAngle:je,value:ze}}h[ee]={index:ee,startAngle:K,endAngle:Y,value:z[ee]},Y+=m}for(ue=-1;++ue<v;)for(le=ue-1;++le<v;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&f.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}M&&L()}function L(){f.sort(function(B,z){return M((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(v=(d=B)&&d.length,f=h=null,u):d},u.padding=function(B){return arguments.length?(m=B,f=h=null,u):m},u.sortGroups=function(B){return arguments.length?(A=B,f=h=null,u):A},u.sortSubgroups=function(B){return arguments.length?(w=B,f=null,u):w},u.sortChords=function(B){return arguments.length?(M=B,f&&L(),u):M},u.chords=function(){return f||N(),f},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},f=t.dispatch("start","tick","end"),h,d=[1,1],v,m,A=.9,w=Fi,M=Ks,N=-30,L=so,B=.1,z=.64,re=[],oe=[],j,Y,K;function ue(ee){return function(Re,ze,tt,je){if(Re.point!==ee){var at=Re.cx-ee.x,vt=Re.cy-ee.y,Gt=je-ze,xt=at*at+vt*vt;if(Gt*Gt/z<xt){if(xt<L){var zt=Re.charge/xt;ee.px-=at*zt,ee.py-=vt*zt}return!0}if(Re.point&&xt&&xt<L){var zt=Re.pointCharge/xt;ee.px-=at*zt,ee.py-=vt*zt}}return!Re.charge}}u.tick=function(){if((m*=.99)<.005)return h=null,f.end({type:"end",alpha:m=0}),!0;var ee=re.length,Re=oe.length,ze,tt,je,at,vt,Gt,xt,zt,ar;for(tt=0;tt<Re;++tt)je=oe[tt],at=je.source,vt=je.target,zt=vt.x-at.x,ar=vt.y-at.y,(Gt=zt*zt+ar*ar)&&(Gt=m*Y[tt]*((Gt=Math.sqrt(Gt))-j[tt])/Gt,zt*=Gt,ar*=Gt,vt.x-=zt*(xt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=ar*xt,at.x+=zt*(xt=1-xt),at.y+=ar*xt);if((xt=m*B)&&(zt=d[0]/2,ar=d[1]/2,tt=-1,xt))for(;++tt<ee;)je=re[tt],je.x+=(zt-je.x)*xt,je.y+=(ar-je.y)*xt;if(N)for(Fp(ze=t.geom.quadtree(re),m,K),tt=-1;++tt<ee;)(je=re[tt]).fixed||ze.visit(ue(je));for(tt=-1;++tt<ee;)je=re[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*A,je.y-=(je.py-(je.py=je.y))*A);f.tick({type:"tick",alpha:m})},u.nodes=function(ee){return arguments.length?(re=ee,u):re},u.links=function(ee){return arguments.length?(oe=ee,u):oe},u.size=function(ee){return arguments.length?(d=ee,u):d},u.linkDistance=function(ee){return arguments.length?(w=typeof ee=="function"?ee:+ee,u):w},u.distance=u.linkDistance,u.linkStrength=function(ee){return arguments.length?(M=typeof ee=="function"?ee:+ee,u):M},u.friction=function(ee){return arguments.length?(A=+ee,u):A},u.charge=function(ee){return arguments.length?(N=typeof ee=="function"?ee:+ee,u):N},u.chargeDistance=function(ee){return arguments.length?(L=ee*ee,u):Math.sqrt(L)},u.gravity=function(ee){return arguments.length?(B=+ee,u):B},u.theta=function(ee){return arguments.length?(z=ee*ee,u):Math.sqrt(z)},u.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=no(u.tick)),u):m},u.start=function(){var ee,Re=re.length,ze=oe.length,tt=d[0],je=d[1],at,vt;for(ee=0;ee<Re;++ee)(vt=re[ee]).index=ee,vt.weight=0;for(ee=0;ee<ze;++ee)vt=oe[ee],typeof vt.source=="number"&&(vt.source=re[vt.source]),typeof vt.target=="number"&&(vt.target=re[vt.target]),++vt.source.weight,++vt.target.weight;for(ee=0;ee<Re;++ee)vt=re[ee],isNaN(vt.x)&&(vt.x=Gt("x",tt)),isNaN(vt.y)&&(vt.y=Gt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(j=[],typeof w=="function")for(ee=0;ee<ze;++ee)j[ee]=+w.call(this,oe[ee],ee);else for(ee=0;ee<ze;++ee)j[ee]=w;if(Y=[],typeof M=="function")for(ee=0;ee<ze;++ee)Y[ee]=+M.call(this,oe[ee],ee);else for(ee=0;ee<ze;++ee)Y[ee]=M;if(K=[],typeof N=="function")for(ee=0;ee<Re;++ee)K[ee]=+N.call(this,re[ee],ee);else for(ee=0;ee<Re;++ee)K[ee]=N;function Gt(xt,zt){if(!at){for(at=new Array(Re),dr=0;dr<Re;++dr)at[dr]=[];for(dr=0;dr<ze;++dr){var ar=oe[dr];at[ar.source.index].push(ar.target),at[ar.target.index].push(ar.source)}}for(var Mr=at[ee],dr=-1,rt=Mr.length,Ht;++dr<rt;)if(!isNaN(Ht=Mr[dr][xt]))return Ht;return Math.random()*zt}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(v||(v=t.behavior.drag().origin(nt).on("dragstart.force",Mp).on("drag.force",le).on("dragend.force",Rp)),!arguments.length)return v;this.on("mouseover.force",ai).on("mouseout.force",Pp).call(v)};function le(ee){ee.px=t.event.x,ee.py=t.event.y,u.resume()}return t.rebind(u,f,"on")};function Mp(u){u.fixed|=2}function Rp(u){u.fixed&=-7}function ai(u){u.fixed|=4,u.px=u.x,u.py=u.y}function Pp(u){u.fixed&=-5}function Fp(u,f,h){var d=0,v=0;if(u.charge=0,!u.leaf)for(var m=u.nodes,A=m.length,w=-1,M;++w<A;)M=m[w],M!=null&&(Fp(M,f,h),u.charge+=M.charge,d+=M.charge*M.cx,v+=M.charge*M.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=f*h[u.point.index];u.charge+=u.pointCharge=N,d+=N*u.point.x,v+=N*u.point.y}u.cx=d/u.charge,u.cy=v/u.charge}var Fi=20,Ks=1,so=1/0;t.layout.hierarchy=function(){var u=Jg,f=Np,h=Ip;function d(v){var m=[v],A=[],w;for(v.depth=0;(w=m.pop())!=null;)if(A.push(w),(N=f.call(d,w,w.depth))&&(M=N.length)){for(var M,N,L;--M>=0;)m.push(L=N[M]),L.parent=w,L.depth=w.depth+1;h&&(w.value=0),w.children=N}else h&&(w.value=+h.call(d,w,w.depth)||0),delete w.children;return oi(v,function(B){var z,re;u&&(z=B.children)&&z.sort(u),h&&(re=B.parent)&&(re.value+=B.value)}),A}return d.sort=function(v){return arguments.length?(u=v,d):u},d.children=function(v){return arguments.length?(f=v,d):f},d.value=function(v){return arguments.length?(h=v,d):h},d.revalue=function(v){return h&&(ho(v,function(m){m.children&&(m.value=0)}),oi(v,function(m){var A;m.children||(m.value=+h.call(d,m,m.depth)||0),(A=m.parent)&&(A.value+=m.value)})),v},d};function co(u,f){return t.rebind(u,f,"sort","children","value"),u.nodes=u,u.links=ey,u}function ho(u,f){for(var h=[u];(u=h.pop())!=null;)if(f(u),(v=u.children)&&(d=v.length))for(var d,v;--d>=0;)h.push(v[d])}function oi(u,f){for(var h=[u],d=[];(u=h.pop())!=null;)if(d.push(u),(A=u.children)&&(m=A.length))for(var v=-1,m,A;++v<m;)h.push(A[v]);for(;(u=d.pop())!=null;)f(u)}function Np(u){return u.children}function Ip(u){return u.value}function Jg(u,f){return f.value-u.value}function ey(u){return t.merge(u.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),f=[1,1];function h(m,A,w,M){var N=m.children;if(m.x=A,m.y=m.depth*M,m.dx=w,m.dy=M,N&&(B=N.length)){var L=-1,B,z,re;for(w=m.value?w/m.value:0;++L<B;)h(z=N[L],A,re=z.value*w,M),A+=re}}function d(m){var A=m.children,w=0;if(A&&(N=A.length))for(var M=-1,N;++M<N;)w=Math.max(w,d(A[M]));return 1+w}function v(m,A){var w=u.call(this,m,A);return h(w[0],0,f[0],f[1]/d(w[0])),w}return v.size=function(m){return arguments.length?(f=m,v):f},co(v,u)},t.layout.pie=function(){var u=Number,f=Lp,h=0,d=eo,v=0;function m(A){var w=A.length,M=A.map(function(ue,le){return+u.call(m,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),L=(typeof d=="function"?d.apply(this,arguments):d)-N,B=Math.min(Math.abs(L)/w,+(typeof v=="function"?v.apply(this,arguments):v)),z=B*(L<0?-1:1),re=t.sum(M),oe=re?(L-w*z)/re:0,j=t.range(w),Y=[],K;return f!=null&&j.sort(f===Lp?function(ue,le){return M[le]-M[ue]}:function(ue,le){return f(A[ue],A[le])}),j.forEach(function(ue){Y[ue]={data:A[ue],value:K=M[ue],startAngle:N,endAngle:N+=K*oe+z,padAngle:B}}),Y}return m.value=function(A){return arguments.length?(u=A,m):u},m.sort=function(A){return arguments.length?(f=A,m):f},m.startAngle=function(A){return arguments.length?(h=A,m):h},m.endAngle=function(A){return arguments.length?(d=A,m):d},m.padAngle=function(A){return arguments.length?(v=A,m):v},m};var Lp={};t.layout.stack=function(){var u=nt,f=ec,h=tc,d=ny,v=ty,m=ry;function A(w,M){if(!(oe=w.length))return w;var N=w.map(function(ue,le){return u.call(A,ue,le)}),L=N.map(function(ue){return ue.map(function(le,ee){return[v.call(A,le,ee),m.call(A,le,ee)]})}),B=f.call(A,L,M);N=t.permute(N,B),L=t.permute(L,B);var z=h.call(A,L,M),re=N[0].length,oe,j,Y,K;for(Y=0;Y<re;++Y)for(d.call(A,N[0][Y],K=z[Y],L[0][Y][1]),j=1;j<oe;++j)d.call(A,N[j][Y],K+=L[j-1][Y][1],L[j][Y][1]);return w}return A.values=function(w){return arguments.length?(u=w,A):u},A.order=function(w){return arguments.length?(f=typeof w=="function"?w:Js.get(w)||ec,A):f},A.offset=function(w){return arguments.length?(h=typeof w=="function"?w:Xl.get(w)||tc,A):h},A.x=function(w){return arguments.length?(v=w,A):v},A.y=function(w){return arguments.length?(m=w,A):m},A.out=function(w){return arguments.length?(d=w,A):d},A};function ty(u){return u.x}function ry(u){return u.y}function ny(u,f,h){u.y0=f,u.y=h}var Js=t.map({"inside-out":function(u){var f=u.length,h,d,v=u.map($p),m=u.map(Ql),A=t.range(f).sort(function(B,z){return v[B]-v[z]}),w=0,M=0,N=[],L=[];for(h=0;h<f;++h)d=A[h],w<M?(w+=m[d],N.push(d)):(M+=m[d],L.push(d));return L.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:ec}),Xl=t.map({silhouette:function(u){var f=u.length,h=u[0].length,d=[],v=0,m,A,w,M=[];for(A=0;A<h;++A){for(m=0,w=0;m<f;m++)w+=u[m][A][1];w>v&&(v=w),d.push(w)}for(A=0;A<h;++A)M[A]=(v-d[A])/2;return M},wiggle:function(u){var f=u.length,h=u[0],d=h.length,v,m,A,w,M,N,L,B,z,re=[];for(re[0]=B=z=0,m=1;m<d;++m){for(v=0,w=0;v<f;++v)w+=u[v][m][1];for(v=0,M=0,L=h[m][0]-h[m-1][0];v<f;++v){for(A=0,N=(u[v][m][1]-u[v][m-1][1])/(2*L);A<v;++A)N+=(u[A][m][1]-u[A][m-1][1])/L;M+=N*u[v][m][1]}re[m]=B-=w?M/w*L:0,B<z&&(z=B)}for(m=0;m<d;++m)re[m]-=z;return re},expand:function(u){var f=u.length,h=u[0].length,d=1/f,v,m,A,w=[];for(m=0;m<h;++m){for(v=0,A=0;v<f;v++)A+=u[v][m][1];if(A)for(v=0;v<f;v++)u[v][m][1]/=A;else for(v=0;v<f;v++)u[v][m][1]=d}for(m=0;m<h;++m)w[m]=0;return w},zero:tc});function ec(u){return t.range(u.length)}function tc(u){for(var f=-1,h=u[0].length,d=[];++f<h;)d[f]=0;return d}function $p(u){for(var f=1,h=0,d=u[0][1],v,m=u.length;f<m;++f)(v=u[f][1])>d&&(h=f,d=v);return h}function Ql(u){return u.reduce(rc,0)}function rc(u,f){return u+f[1]}t.layout.histogram=function(){var u=!0,f=Number,h=ay,d=iy;function v(m,z){for(var w=[],M=m.map(f,this),N=h.call(this,M,z),L=d.call(this,N,M,z),B,z=-1,re=M.length,oe=L.length-1,j=u?1:1/re,Y;++z<oe;)B=w[z]=[],B.dx=L[z+1]-(B.x=L[z]),B.y=0;if(oe>0)for(z=-1;++z<re;)Y=M[z],Y>=N[0]&&Y<=N[1]&&(B=w[t.bisect(L,Y,1,oe)-1],B.y+=j,B.push(m[z]));return w}return v.value=function(m){return arguments.length?(f=m,v):f},v.range=function(m){return arguments.length?(h=gr(m),v):h},v.bins=function(m){return arguments.length?(d=typeof m=="number"?function(A){return nc(A,m)}:gr(m),v):d},v.frequency=function(m){return arguments.length?(u=!!m,v):u},v};function iy(u,f){return nc(u,Math.ceil(Math.log(f.length)/Math.LN2+1))}function nc(u,f){for(var h=-1,d=+u[0],v=(u[1]-d)/f,m=[];++h<=f;)m[h]=v*h+d;return m}function ay(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(oy),f=0,h=[1,1],d;function v(m,A){var w=u.call(this,m,A),M=w[0],N=h[0],L=h[1],B=d==null?Math.sqrt:typeof d=="function"?d:function(){return d};if(M.x=M.y=0,oi(M,function(re){re.r=+B(re.value)}),oi(M,ac),f){var z=f*(d?1:Math.max(2*M.r/N,2*M.r/L))/2;oi(M,function(re){re.r+=z}),oi(M,ac),oi(M,function(re){re.r-=z})}return zp(M,N/2,L/2,d?1:1/Math.max(2*M.r/N,2*M.r/L)),w}return v.size=function(m){return arguments.length?(h=m,v):h},v.radius=function(m){return arguments.length?(d=m==null||typeof m=="function"?m:+m,v):d},v.padding=function(m){return arguments.length?(f=+m,v):f},co(v,u)};function oy(u,f){return u.value-f.value}function ic(u,f){var h=u._pack_next;u._pack_next=f,f._pack_prev=u,f._pack_next=h,h._pack_prev=f}function Dp(u,f){u._pack_next=f,f._pack_prev=u}function Bp(u,f){var h=f.x-u.x,d=f.y-u.y,v=u.r+f.r;return .999*v*v>h*h+d*d}function ac(u){if(!(f=u.children)||!(z=f.length))return;var f,h=1/0,d=-1/0,v=1/0,m=-1/0,A,w,M,N,L,B,z;function re(ee){h=Math.min(ee.x-ee.r,h),d=Math.max(ee.x+ee.r,d),v=Math.min(ee.y-ee.r,v),m=Math.max(ee.y+ee.r,m)}if(f.forEach(uy),A=f[0],A.x=-A.r,A.y=0,re(A),z>1&&(w=f[1],w.x=w.r,w.y=0,re(w),z>2))for(M=f[2],Up(A,w,M),re(M),ic(A,M),A._pack_prev=M,ic(M,w),w=A._pack_next,N=3;N<z;N++){Up(A,w,M=f[N]);var oe=0,j=1,Y=1;for(L=w._pack_next;L!==w;L=L._pack_next,j++)if(Bp(L,M)){oe=1;break}if(oe==1)for(B=A._pack_prev;B!==L._pack_prev&&!Bp(B,M);B=B._pack_prev,Y++);oe?(j<Y||j==Y&&w.r<A.r?Dp(A,w=L):Dp(A=B,w),N--):(ic(A,M),w=M,re(M))}var K=(h+d)/2,ue=(v+m)/2,le=0;for(N=0;N<z;N++)M=f[N],M.x-=K,M.y-=ue,le=Math.max(le,M.r+Math.sqrt(M.x*M.x+M.y*M.y));u.r=le,f.forEach(ly)}function uy(u){u._pack_next=u._pack_prev=u}function ly(u){delete u._pack_next,delete u._pack_prev}function zp(u,f,h,d){var v=u.children;if(u.x=f+=d*u.x,u.y=h+=d*u.y,u.r*=d,v)for(var m=-1,A=v.length;++m<A;)zp(v[m],f,h,d)}function Up(u,f,h){var d=u.r+h.r,v=f.x-u.x,m=f.y-u.y;if(d&&(v||m)){var A=f.r+h.r,w=v*v+m*m;A*=A,d*=d;var M=.5+(d-A)/(2*w),N=Math.sqrt(Math.max(0,2*A*(d+w)-(d-=w)*d-A*A))/(2*w);h.x=u.x+M*v+N*m,h.y=u.y+M*m-N*v}else h.x=u.x+d,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),f=jp,h=[1,1],d=null;function v(L,B){var z=u.call(this,L,B),re=z[0],oe=m(re);if(oi(oe,A),oe.parent.m=-oe.z,ho(oe,w),d)ho(re,N);else{var j=re,Y=re,K=re;ho(re,function(Re){Re.x<j.x&&(j=Re),Re.x>Y.x&&(Y=Re),Re.depth>K.depth&&(K=Re)});var ue=f(j,Y)/2-j.x,le=h[0]/(Y.x+f(Y,j)/2+ue),ee=h[1]/(K.depth||1);ho(re,function(Re){Re.x=(Re.x+ue)*le,Re.y=Re.depth*ee})}return z}function m(L){for(var B={A:null,children:[L]},z=[B],re;(re=z.pop())!=null;)for(var oe=re.children,j,Y=0,K=oe.length;Y<K;++Y)z.push((oe[Y]=j={_:oe[Y],parent:re,children:(j=oe[Y].children)&&j.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Y}).a=j);return B.children[0]}function A(L){var B=L.children,z=L.parent.children,re=L.i?z[L.i-1]:null;if(B.length){sy(L);var oe=(B[0].z+B[B.length-1].z)/2;re?(L.z=re.z+f(L._,re._),L.m=L.z-oe):L.z=oe}else re&&(L.z=re.z+f(L._,re._));L.parent.A=M(L,re,L.parent.A||z[0])}function w(L){L._.x=L.z+L.parent.m,L.m+=L.parent.m}function M(L,B,z){if(B){for(var re=L,oe=L,j=B,Y=re.parent.children[0],K=re.m,ue=oe.m,le=j.m,ee=Y.m,Re;j=uc(j),re=oc(re),j&&re;)Y=oc(Y),oe=uc(oe),oe.a=L,Re=j.z+le-re.z-K+f(j._,re._),Re>0&&(fy(gi(j,L,z),L,Re),K+=Re,ue+=Re),le+=j.m,K+=re.m,ee+=Y.m,ue+=oe.m;j&&!uc(oe)&&(oe.t=j,oe.m+=le-ue),re&&!oc(Y)&&(Y.t=re,Y.m+=K-ee,z=L)}return z}function N(L){L.x*=h[0],L.y=L.depth*h[1]}return v.separation=function(L){return arguments.length?(f=L,v):f},v.size=function(L){return arguments.length?(d=(h=L)==null?N:null,v):d?null:h},v.nodeSize=function(L){return arguments.length?(d=(h=L)==null?null:N,v):d?h:null},co(v,u)};function jp(u,f){return u.parent==f.parent?1:2}function oc(u){var f=u.children;return f.length?f[0]:u.t}function uc(u){var f=u.children,h;return(h=f.length)?f[h-1]:u.t}function fy(u,f,h){var d=h/(f.i-u.i);f.c-=d,f.s+=h,u.c+=d,f.z+=h,f.m+=h}function sy(u){for(var f=0,h=0,d=u.children,v=d.length,m;--v>=0;)m=d[v],m.z+=f,m.m+=f,f+=m.s+(h+=m.c)}function gi(u,f,h){return u.a.parent===f.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),f=jp,h=[1,1],d=!1;function v(m,A){var w=u.call(this,m,A),M=w[0],N,L=0;oi(M,function(j){var Y=j.children;Y&&Y.length?(j.x=cy(Y),j.y=Gp(Y)):(j.x=N?L+=f(j,N):0,j.y=0,N=j)});var B=Hp(M),z=qp(M),re=B.x-f(B,z)/2,oe=z.x+f(z,B)/2;return oi(M,d?function(j){j.x=(j.x-M.x)*h[0],j.y=(M.y-j.y)*h[1]}:function(j){j.x=(j.x-re)/(oe-re)*h[0],j.y=(1-(M.y?j.y/M.y:1))*h[1]}),w}return v.separation=function(m){return arguments.length?(f=m,v):f},v.size=function(m){return arguments.length?(d=(h=m)==null,v):d?null:h},v.nodeSize=function(m){return arguments.length?(d=(h=m)!=null,v):d?h:null},co(v,u)};function Gp(u){return 1+t.max(u,function(f){return f.y})}function cy(u){return u.reduce(function(f,h){return f+h.x},0)/u.length}function Hp(u){var f=u.children;return f&&f.length?Hp(f[0]):u}function qp(u){var f=u.children,h;return f&&(h=f.length)?qp(f[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),f=Math.round,h=[1,1],d=null,v=lc,m=!1,A,w="squarify",M=.5*(1+Math.sqrt(5));function N(j,Y){for(var K=-1,ue=j.length,le,ee;++K<ue;)ee=(le=j[K]).value*(Y<0?0:Y),le.area=isNaN(ee)||ee<=0?0:ee}function L(j){var Y=j.children;if(Y&&Y.length){var K=v(j),ue=[],le=Y.slice(),ee,Re=1/0,ze,tt=w==="slice"?K.dx:w==="dice"?K.dy:w==="slice-dice"?j.depth&1?K.dy:K.dx:Math.min(K.dx,K.dy),je;for(N(le,K.dx*K.dy/j.value),ue.area=0;(je=le.length)>0;)ue.push(ee=le[je-1]),ue.area+=ee.area,w!=="squarify"||(ze=z(ue,tt))<=Re?(le.pop(),Re=ze):(ue.area-=ue.pop().area,re(ue,tt,K,!1),tt=Math.min(K.dx,K.dy),ue.length=ue.area=0,Re=1/0);ue.length&&(re(ue,tt,K,!0),ue.length=ue.area=0),Y.forEach(L)}}function B(j){var Y=j.children;if(Y&&Y.length){var K=v(j),ue=Y.slice(),le,ee=[];for(N(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);Y.forEach(B)}}function z(j,Y){for(var K=j.area,ue,le=0,ee=1/0,Re=-1,ze=j.length;++Re<ze;)(ue=j[Re].area)&&(ue<ee&&(ee=ue),ue>le&&(le=ue));return K*=K,Y*=Y,K?Math.max(Y*le*M/K,K/(Y*ee*M)):1/0}function re(j,Y,K,ue){var le=-1,ee=j.length,Re=K.x,ze=K.y,tt=Y?f(j.area/Y):0,je;if(Y==K.dx){for((ue||tt>K.dy)&&(tt=K.dy);++le<ee;)je=j[le],je.x=Re,je.y=ze,je.dy=tt,Re+=je.dx=Math.min(K.x+K.dx-Re,tt?f(je.area/tt):0);je.z=!0,je.dx+=K.x+K.dx-Re,K.y+=tt,K.dy-=tt}else{for((ue||tt>K.dx)&&(tt=K.dx);++le<ee;)je=j[le],je.x=Re,je.y=ze,je.dx=tt,ze+=je.dy=Math.min(K.y+K.dy-ze,tt?f(je.area/tt):0);je.z=!1,je.dy+=K.y+K.dy-ze,K.x+=tt,K.dx-=tt}}function oe(j){var Y=A||u(j),K=Y[0];return K.x=K.y=0,K.value?(K.dx=h[0],K.dy=h[1]):K.dx=K.dy=0,A&&u.revalue(K),N([K],K.dx*K.dy/K.value),(A?B:L)(K),m&&(A=Y),Y}return oe.size=function(j){return arguments.length?(h=j,oe):h},oe.padding=function(j){if(!arguments.length)return d;function Y(le){var ee=j.call(oe,le,le.depth);return ee==null?lc(le):Wp(le,typeof ee=="number"?[ee,ee,ee,ee]:ee)}function K(le){return Wp(le,j)}var ue;return v=(d=j)==null?lc:(ue=typeof j)=="function"?Y:(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,A=null,oe):m},oe.ratio=function(j){return arguments.length?(M=j,oe):M},oe.mode=function(j){return arguments.length?(w=j+"",oe):w},co(oe,u)};function lc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Wp(u,f){var h=u.x+f[3],d=u.y+f[0],v=u.dx-f[1]-f[3],m=u.dy-f[0]-f[2];return v<0&&(h+=v/2,v=0),m<0&&(d+=m/2,m=0),{x:h,y:d,dx:v,dy:m}}t.random={normal:function(u,f){var h=arguments.length;return h<2&&(f=1),h<1&&(u=0),function(){var d,v,m;do d=Math.random()*2-1,v=Math.random()*2-1,m=d*d+v*v;while(!m||m>1);return u+f*d*Math.sqrt(-2*Math.log(m)/m)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var f=t.random.irwinHall(u);return function(){return f()/u}},irwinHall:function(u){return function(){for(var f=0,h=0;h<u;h++)f+=Math.random();return f}}},t.scale={};function Zl(u){var f=u[0],h=u[u.length-1];return f<h?[f,h]:[h,f]}function Kl(u){return u.rangeExtent?u.rangeExtent():Zl(u.range())}function hy(u,f,h,d){var v=h(u[0],u[1]),m=d(f[0],f[1]);return function(A){return m(v(A))}}function Gr(u,f){var h=0,d=u.length-1,v=u[h],m=u[d],A;return m<v&&(A=h,h=d,d=A,A=v,v=m,m=A),u[h]=f.floor(v),u[d]=f.ceil(m),u}function Oa(u){return u?{floor:function(f){return Math.floor(f/u)*u},ceil:function(f){return Math.ceil(f/u)*u}}:po}var po={floor:nt,ceil:nt};function dy(u,f,h,d){var v=[],m=[],A=0,w=Math.min(u.length,f.length)-1;for(u[w]<u[0]&&(u=u.slice().reverse(),f=f.slice().reverse());++A<=w;)v.push(h(u[A-1],u[A])),m.push(d(f[A-1],f[A]));return function(M){var N=t.bisect(u,M,1,w)-1;return m[N](v[N](M))}}t.scale.linear=function(){return ka([0,1],[0,1],mi,!1)};function ka(u,f,h,d){var v,m;function A(){var M=Math.min(u.length,f.length)>2?dy:hy,N=d?Cp:Tp;return v=M(u,f,N,h),m=M(f,u,N,mi),w}function w(M){return v(M)}return w.invert=function(M){return m(M)},w.domain=function(M){return arguments.length?(u=M.map(Number),A()):u},w.range=function(M){return arguments.length?(f=M,A()):f},w.rangeRound=function(M){return w.range(M).interpolate(Vl)},w.clamp=function(M){return arguments.length?(d=M,A()):d},w.interpolate=function(M){return arguments.length?(h=M,A()):h},w.ticks=function(M){return Tu(u,M)},w.tickFormat=function(M,N){return d3_scale_linearTickFormat(u,M,N)},w.nice=function(M){return Ma(u,M),A()},w.copy=function(){return ka(u,f,h,d)},A()}function fc(u,f){return t.rebind(u,f,"range","rangeRound","interpolate","clamp")}function Ma(u,f){return Gr(u,Oa(Au(u,f)[2])),Gr(u,Oa(Au(u,f)[2])),u}function Au(u,f){f==null&&(f=10);var h=Zl(u),d=h[1]-h[0],v=Math.pow(10,Math.floor(Math.log(d/f)/Math.LN10)),m=f/d*v;return m<=.15?v*=10:m<=.35?v*=5:m<=.75&&(v*=2),h[0]=Math.ceil(h[0]/v)*v,h[1]=Math.floor(h[1]/v)*v+v*.5,h[2]=v,h}function Tu(u,f){return t.range.apply(t,Au(u,f))}t.scale.log=function(){return Jl(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Jl(u,f,h,d){function v(w){return(h?Math.log(w<0?0:w):-Math.log(w>0?0:-w))/Math.log(f)}function m(w){return h?Math.pow(f,w):-Math.pow(f,-w)}function A(w){return u(v(w))}return A.invert=function(w){return m(u.invert(w))},A.domain=function(w){return arguments.length?(h=w[0]>=0,u.domain((d=w.map(Number)).map(v)),A):d},A.base=function(w){return arguments.length?(f=+w,u.domain(d.map(v)),A):f},A.nice=function(){var w=Gr(d.map(v),h?Math:sc);return u.domain(w),d=w.map(m),A},A.ticks=function(){var w=Zl(d),M=[],N=w[0],L=w[1],B=Math.floor(v(N)),z=Math.ceil(v(L)),re=f%1?2:f;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<re;oe++)M.push(m(B)*oe);M.push(m(B))}else for(M.push(m(B));B++<z;)for(var oe=re-1;oe>0;oe--)M.push(m(B)*oe);for(B=0;M[B]<N;B++);for(z=M.length;M[z-1]>L;z--);M=M.slice(B,z)}return M},A.copy=function(){return Jl(u.copy(),f,h,d)},fc(A,u)}var sc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return ef(t.scale.linear(),1,[0,1])};function ef(u,f,h){var d=Ra(f),v=Ra(1/f);function m(A){return u(d(A))}return m.invert=function(A){return v(u.invert(A))},m.domain=function(A){return arguments.length?(u.domain((h=A.map(Number)).map(d)),m):h},m.ticks=function(A){return Tu(h,A)},m.tickFormat=function(A,w){return d3_scale_linearTickFormat(h,A,w)},m.nice=function(A){return m.domain(Ma(h,A))},m.exponent=function(A){return arguments.length?(d=Ra(f=A),v=Ra(1/f),u.domain(h.map(d)),m):f},m.copy=function(){return ef(u.copy(),f,h)},fc(m,u)}function Ra(u){return function(f){return f<0?-Math.pow(-f,u):Math.pow(f,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return cc([],{t:"range",a:[[]]})};function cc(u,f){var h,d,v;function m(w){return d[((h.get(w)||(f.t==="range"?h.set(w,u.push(w)):NaN))-1)%d.length]}function A(w,M){return t.range(u.length).map(function(N){return w+M*N})}return m.domain=function(w){if(!arguments.length)return u;u=[],h=new I;for(var M=-1,N=w.length,L;++M<N;)h.has(L=w[M])||h.set(L,u.push(L));return m[f.t].apply(m,f.a)},m.range=function(w){return arguments.length?(d=w,v=0,f={t:"range",a:arguments},m):d},m.rangePoints=function(w,M){arguments.length<2&&(M=0);var N=w[0],L=w[1],B=u.length<2?(N=(N+L)/2,0):(L-N)/(u.length-1+M);return d=A(N+B*M/2,B),v=0,f={t:"rangePoints",a:arguments},m},m.rangeRoundPoints=function(w,M){arguments.length<2&&(M=0);var N=w[0],L=w[1],B=u.length<2?(N=L=Math.round((N+L)/2),0):(L-N)/(u.length-1+M)|0;return d=A(N+Math.round(B*M/2+(L-N-(u.length-1+M)*B)/2),B),v=0,f={t:"rangeRoundPoints",a:arguments},m},m.rangeBands=function(w,M,N){arguments.length<2&&(M=0),arguments.length<3&&(N=M);var L=w[1]<w[0],B=w[L-0],z=w[1-L],re=(z-B)/(u.length-M+2*N);return d=A(B+re*N,re),L&&d.reverse(),v=re*(1-M),f={t:"rangeBands",a:arguments},m},m.rangeRoundBands=function(w,M,N){arguments.length<2&&(M=0),arguments.length<3&&(N=M);var L=w[1]<w[0],B=w[L-0],z=w[1-L],re=Math.floor((z-B)/(u.length-M+2*N));return d=A(B+Math.round((z-B-(u.length-M)*re)/2),re),L&&d.reverse(),v=Math.round(re*(1-M)),f={t:"rangeRoundBands",a:arguments},m},m.rangeBand=function(){return v},m.rangeExtent=function(){return Zl(f.a[0])},m.copy=function(){return cc(u,f)},m.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Vp)},t.scale.category20=function(){return t.scale.ordinal().range(Yp)},t.scale.category20b=function(){return t.scale.ordinal().range(Xp)},t.scale.category20c=function(){return t.scale.ordinal().range(Qp)};var Vp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Nl),Yp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Nl),Xp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Nl),Qp=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Nl);t.scale.quantile=function(){return tf([],[])};function tf(u,f){var h;function d(){var m=0,A=f.length;for(h=[];++m<A;)h[m-1]=t.quantile(u,m/A);return v}function v(m){if(!isNaN(m=+m))return f[t.bisect(h,m)]}return v.domain=function(m){return arguments.length?(u=m.map(y).filter(C).sort(g),d()):u},v.range=function(m){return arguments.length?(f=m,d()):f},v.quantiles=function(){return h},v.invertExtent=function(m){return m=f.indexOf(m),m<0?[NaN,NaN]:[m>0?h[m-1]:u[0],m<h.length?h[m]:u[u.length-1]]},v.copy=function(){return tf(u,f)},d()}t.scale.quantize=function(){return rf(0,1,[0,1])};function rf(u,f,h){var d,v;function m(w){return h[Math.max(0,Math.min(v,Math.floor(d*(w-u))))]}function A(){return d=h.length/(f-u),v=h.length-1,m}return m.domain=function(w){return arguments.length?(u=+w[0],f=+w[w.length-1],A()):[u,f]},m.range=function(w){return arguments.length?(h=w,A()):h},m.invertExtent=function(w){return w=h.indexOf(w),w=w<0?NaN:w/d+u,[w,w+1/d]},m.copy=function(){return rf(u,f,h)},A()}t.scale.threshold=function(){return hc([.5],[0,1])};function hc(u,f){function h(d){if(d<=d)return f[t.bisect(u,d)]}return h.domain=function(d){return arguments.length?(u=d,h):u},h.range=function(d){return arguments.length?(f=d,h):f},h.invertExtent=function(d){return d=f.indexOf(d),[u[d-1],u[d]]},h.copy=function(){return hc(u,f)},h}t.scale.identity=function(){return dc([0,1])};function dc(u){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(u=h.map(f),f):u},f.ticks=function(h){return Tu(u,h)},f.tickFormat=function(h,d){return d3_scale_linearTickFormat(u,h,d)},f.copy=function(){return dc(u)},f}t.svg={};function Zp(){return 0}t.svg.arc=function(){var u=pc,f=Kp,h=Zp,d=Cu,v=vc,m=nf,A=mc;function w(){var N=Math.max(0,+u.apply(this,arguments)),L=Math.max(0,+f.apply(this,arguments)),B=v.apply(this,arguments)-vi,z=m.apply(this,arguments)-vi,re=Math.abs(z-B),oe=B>z?0:1;if(L<N&&(j=L,L=N,N=j),re>=Xd)return M(L,oe)+(N?M(N,1-oe):"")+"Z";var j,Y,K,ue,le=0,ee=0,Re,ze,tt,je,at,vt,Gt,xt,zt=[];if((ue=(+A.apply(this,arguments)||0)/2)&&(K=d===Cu?Math.sqrt(N*N+L*L):+d.apply(this,arguments),oe||(ee*=-1),L&&(ee=Zd(K/L*Math.sin(ue))),N&&(le=Zd(K/N*Math.sin(ue)))),L){Re=L*Math.cos(B+ee),ze=L*Math.sin(B+ee),tt=L*Math.cos(z-ee),je=L*Math.sin(z-ee);var ar=Math.abs(z-B-2*ee)<=Oi?0:1;if(ee&&Ou(Re,ze,tt,je)===oe^ar){var Mr=(B+z)/2;Re=L*Math.cos(Mr),ze=L*Math.sin(Mr),tt=je=null}}else Re=ze=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Gt=N*Math.cos(B+le),xt=N*Math.sin(B+le);var dr=Math.abs(B-z+2*le)<=Oi?0:1;if(le&&Ou(at,vt,Gt,xt)===1-oe^dr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Gt=xt=null}}else at=vt=0;if(re>ir&&(j=Math.min(Math.abs(L-N)/2,+h.apply(this,arguments)))>.001){Y=N<L^oe?0:1;var Ht=j,Yt=j;if(re<Oi){var or=Gt==null?[at,vt]:tt==null?[Re,ze]:Ns([Re,ze],[Gt,xt],[tt,je],[at,vt]),Er=Re-or[0],Br=ze-or[1],Yr=tt-or[0],hn=je-or[1],_n=1/Math.sin(Math.acos((Er*Yr+Br*hn)/(Math.sqrt(Er*Er+Br*Br)*Math.sqrt(Yr*Yr+hn*hn)))/2),rn=Math.sqrt(or[0]*or[0]+or[1]*or[1]);Yt=Math.min(j,(N-rn)/(_n-1)),Ht=Math.min(j,(L-rn)/(_n+1))}if(tt!=null){var Mn=vo(Gt==null?[at,vt]:[Gt,xt],[Re,ze],L,Ht,oe),R=vo([tt,je],[at,vt],L,Ht,oe);j===Ht?zt.push("M",Mn[0],"A",Ht,",",Ht," 0 0,",Y," ",Mn[1],"A",L,",",L," 0 ",1-oe^Ou(Mn[1][0],Mn[1][1],R[1][0],R[1][1]),",",oe," ",R[1],"A",Ht,",",Ht," 0 0,",Y," ",R[0]):zt.push("M",Mn[0],"A",Ht,",",Ht," 0 1,",Y," ",R[0])}else zt.push("M",Re,",",ze);if(Gt!=null){var H=vo([Re,ze],[Gt,xt],N,-Yt,oe),Z=vo([at,vt],tt==null?[Re,ze]:[tt,je],N,-Yt,oe);j===Yt?zt.push("L",Z[0],"A",Yt,",",Yt," 0 0,",Y," ",Z[1],"A",N,",",N," 0 ",oe^Ou(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Yt,",",Yt," 0 0,",Y," ",H[0]):zt.push("L",Z[0],"A",Yt,",",Yt," 0 0,",Y," ",H[0])}else zt.push("L",at,",",vt)}else zt.push("M",Re,",",ze),tt!=null&&zt.push("A",L,",",L," 0 ",ar,",",oe," ",tt,",",je),zt.push("L",at,",",vt),Gt!=null&&zt.push("A",N,",",N," 0 ",dr,",",1-oe," ",Gt,",",xt);return zt.push("Z"),zt.join("")}function M(N,L){return"M0,"+N+"A"+N+","+N+" 0 1,"+L+" 0,"+-N+"A"+N+","+N+" 0 1,"+L+" 0,"+N}return w.innerRadius=function(N){return arguments.length?(u=gr(N),w):u},w.outerRadius=function(N){return arguments.length?(f=gr(N),w):f},w.cornerRadius=function(N){return arguments.length?(h=gr(N),w):h},w.padRadius=function(N){return arguments.length?(d=N==Cu?Cu:gr(N),w):d},w.startAngle=function(N){return arguments.length?(v=gr(N),w):v},w.endAngle=function(N){return arguments.length?(m=gr(N),w):m},w.padAngle=function(N){return arguments.length?(A=gr(N),w):A},w.centroid=function(){var N=(+u.apply(this,arguments)+ +f.apply(this,arguments))/2,L=(+v.apply(this,arguments)+ +m.apply(this,arguments))/2-vi;return[Math.cos(L)*N,Math.sin(L)*N]},w};var Cu="auto";function pc(u){return u.innerRadius}function Kp(u){return u.outerRadius}function vc(u){return u.startAngle}function nf(u){return u.endAngle}function mc(u){return u&&u.padAngle}function Ou(u,f,h,d){return(u-h)*f-(f-d)*u>0?0:1}function vo(u,f,h,d,v){var m=u[0]-f[0],A=u[1]-f[1],w=(v?d:-d)/Math.sqrt(m*m+A*A),M=w*A,N=-w*m,L=u[0]+M,B=u[1]+N,z=f[0]+M,re=f[1]+N,oe=(L+z)/2,j=(B+re)/2,Y=z-L,K=re-B,ue=Y*Y+K*K,le=h-d,ee=L*re-z*B,Re=(K<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-ee*ee)),ze=(ee*K-Y*Re)/ue,tt=(-ee*Y-K*Re)/ue,je=(ee*K+Y*Re)/ue,at=(-ee*Y+K*Re)/ue,vt=ze-oe,Gt=tt-j,xt=je-oe,zt=at-j;return vt*vt+Gt*Gt>xt*xt+zt*zt&&(ze=je,tt=at),[[ze-M,tt-N],[ze*h/le,tt*h/le]]}function gc(){return!0}function yc(u){var f=ki,h=Mi,d=gc,v=Hn,m=v.key,A=.7;function w(M){var N=[],L=[],B=-1,z=M.length,re,oe=gr(f),j=gr(h);function Y(){N.push("M",v(u(L),A))}for(;++B<z;)d.call(this,re=M[B],B)?L.push([+oe.call(this,re,B),+j.call(this,re,B)]):L.length&&(Y(),L=[]);return L.length&&Y(),N.length?N.join(""):null}return w.x=function(M){return arguments.length?(f=M,w):f},w.y=function(M){return arguments.length?(h=M,w):h},w.defined=function(M){return arguments.length?(d=M,w):d},w.interpolate=function(M){return arguments.length?(typeof M=="function"?m=v=M:m=(v=ku.get(M)||Hn).key,w):m},w.tension=function(M){return arguments.length?(A=M,w):A},w}t.svg.line=function(){return yc(nt)};var ku=t.map({linear:Hn,"linear-closed":xc,step:_c,"step-before":Mu,"step-after":Pa,basis:Ru,"basis-open":of,"basis-closed":mo,bundle:go,cardinal:Ni,"cardinal-open":Jp,"cardinal-closed":af,monotone:py});ku.forEach(function(u,f){f.key=u,f.closed=/-closed$/.test(u)});function Hn(u){return u.length>1?u.join("L"):u+"Z"}function xc(u){return u.join("L")+"Z"}function _c(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("H",(d[0]+(d=u[f])[0])/2,"V",d[1]);return h>1&&v.push("H",d[0]),v.join("")}function Mu(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("V",(d=u[f])[1],"H",d[0]);return v.join("")}function Pa(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("H",(d=u[f])[0],"V",d[1]);return v.join("")}function Jp(u,f){return u.length<4?Hn(u):u[1]+Fa(u.slice(1,-1),Ki(u,f))}function af(u,f){return u.length<3?xc(u):u[0]+Fa((u.push(u[0]),u),Ki([u[u.length-2]].concat(u,[u[1]]),f))}function Ni(u,f){return u.length<3?Hn(u):u[0]+Fa(u,Ki(u,f))}function Fa(u,f){if(f.length<1||u.length!=f.length&&u.length!=f.length+2)return Hn(u);var h=u.length!=f.length,d="",v=u[0],m=u[1],A=f[0],w=A,M=1;if(h&&(d+="Q"+(m[0]-A[0]*2/3)+","+(m[1]-A[1]*2/3)+","+m[0]+","+m[1],v=u[1],M=2),f.length>1){w=f[1],m=u[M],M++,d+="C"+(v[0]+A[0])+","+(v[1]+A[1])+","+(m[0]-w[0])+","+(m[1]-w[1])+","+m[0]+","+m[1];for(var N=2;N<f.length;N++,M++)m=u[M],w=f[N],d+="S"+(m[0]-w[0])+","+(m[1]-w[1])+","+m[0]+","+m[1]}if(h){var L=u[M];d+="Q"+(m[0]+w[0]*2/3)+","+(m[1]+w[1]*2/3)+","+L[0]+","+L[1]}return d}function Ki(u,f){for(var h=[],d=(1-f)/2,v,m=u[0],A=u[1],w=1,M=u.length;++w<M;)v=m,m=A,A=u[w],h.push([d*(A[0]-v[0]),d*(A[1]-v[1])]);return h}function Ru(u){if(u.length<3)return Hn(u);var f=1,h=u.length,d=u[0],v=d[0],m=d[1],A=[v,v,v,(d=u[1])[0]],w=[m,m,m,d[1]],M=[v,",",m,"L",tn(ui,A),",",tn(ui,w)];for(u.push(u[h-1]);++f<=h;)d=u[f],A.shift(),A.push(d[0]),w.shift(),w.push(d[1]),Pu(M,A,w);return u.pop(),M.push("L",d),M.join("")}function of(u){if(u.length<4)return Hn(u);for(var f=[],h=-1,d=u.length,v,m=[0],A=[0];++h<3;)v=u[h],m.push(v[0]),A.push(v[1]);for(f.push(tn(ui,m)+","+tn(ui,A)),--h;++h<d;)v=u[h],m.shift(),m.push(v[0]),A.shift(),A.push(v[1]),Pu(f,m,A);return f.join("")}function mo(u){for(var f,h=-1,d=u.length,v=d+4,m,A=[],w=[];++h<4;)m=u[h%d],A.push(m[0]),w.push(m[1]);for(f=[tn(ui,A),",",tn(ui,w)],--h;++h<v;)m=u[h%d],A.shift(),A.push(m[0]),w.shift(),w.push(m[1]),Pu(f,A,w);return f.join("")}function go(u,f){var h=u.length-1;if(h)for(var d=u[0][0],v=u[0][1],m=u[h][0]-d,A=u[h][1]-v,w=-1,M,N;++w<=h;)M=u[w],N=w/h,M[0]=f*M[0]+(1-f)*(d+N*m),M[1]=f*M[1]+(1-f)*(v+N*A);return Ru(u)}function tn(u,f){return u[0]*f[0]+u[1]*f[1]+u[2]*f[2]+u[3]*f[3]}var uf=[0,2/3,1/3,0],lf=[0,1/3,2/3,0],ui=[0,1/6,2/3,1/6];function Pu(u,f,h){u.push("C",tn(uf,f),",",tn(uf,h),",",tn(lf,f),",",tn(lf,h),",",tn(ui,f),",",tn(ui,h))}function Fu(u,f){return(f[1]-u[1])/(f[0]-u[0])}function yo(u){for(var f=0,h=u.length-1,d=[],v=u[0],m=u[1],A=d[0]=Fu(v,m);++f<h;)d[f]=(A+(A=Fu(v=m,m=u[f+1])))/2;return d[f]=A,d}function xo(u){for(var f=[],h,d,v,m,A=yo(u),w=-1,M=u.length-1;++w<M;)h=Fu(u[w],u[w+1]),E(h)<ir?A[w]=A[w+1]=0:(d=A[w]/h,v=A[w+1]/h,m=d*d+v*v,m>9&&(m=h*3/Math.sqrt(m),A[w]=m*d,A[w+1]=m*v));for(w=-1;++w<=M;)m=(u[Math.min(M,w+1)][0]-u[Math.max(0,w-1)][0])/(6*(1+A[w]*A[w])),f.push([m||0,A[w]*m||0]);return f}function py(u){return u.length<3?Hn(u):u[0]+Fa(u,xo(u))}t.svg.line.radial=function(){var u=yc(ev);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function ev(u){for(var f,h=-1,d=u.length,v,m;++h<d;)f=u[h],v=f[0],m=f[1]-vi,f[0]=v*Math.cos(m),f[1]=v*Math.sin(m);return u}function wc(u){var f=ki,h=ki,d=0,v=Mi,m=gc,A=Hn,w=A.key,M=A,N="L",L=.7;function B(z){var re=[],oe=[],j=[],Y=-1,K=z.length,ue,le=gr(f),ee=gr(d),Re=f===h?function(){return tt}:gr(h),ze=d===v?function(){return je}:gr(v),tt,je;function at(){re.push("M",A(u(j),L),N,M(u(oe.reverse()),L),"Z")}for(;++Y<K;)m.call(this,ue=z[Y],Y)?(oe.push([tt=+le.call(this,ue,Y),je=+ee.call(this,ue,Y)]),j.push([+Re.call(this,ue,Y),+ze.call(this,ue,Y)])):oe.length&&(at(),oe=[],j=[]);return oe.length&&at(),re.length?re.join(""):null}return B.x=function(z){return arguments.length?(f=h=z,B):h},B.x0=function(z){return arguments.length?(f=z,B):f},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(d=v=z,B):v},B.y0=function(z){return arguments.length?(d=z,B):d},B.y1=function(z){return arguments.length?(v=z,B):v},B.defined=function(z){return arguments.length?(m=z,B):m},B.interpolate=function(z){return arguments.length?(typeof z=="function"?w=A=z:w=(A=ku.get(z)||Hn).key,M=A.reverse||A,N=A.closed?"M":"L",B):w},B.tension=function(z){return arguments.length?(L=z,B):L},B}Mu.reverse=Pa,Pa.reverse=Mu,t.svg.area=function(){return wc(nt)},t.svg.area.radial=function(){var u=wc(ev);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function bc(u){return u.source}function Sc(u){return u.target}t.svg.chord=function(){var u=bc,f=Sc,h=vy,d=vc,v=nf;function m(L,B){var z=A(this,u,L,B),re=A(this,f,L,B);return"M"+z.p0+M(z.r,z.p1,z.a1-z.a0)+(w(z,re)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,re.r,re.p0)+M(re.r,re.p1,re.a1-re.a0)+N(re.r,re.p1,z.r,z.p0))+"Z"}function A(L,B,z,re){var oe=B.call(L,z,re),j=h.call(L,oe,re),Y=d.call(L,oe,re)-vi,K=v.call(L,oe,re)-vi;return{r:j,a0:Y,a1:K,p0:[j*Math.cos(Y),j*Math.sin(Y)],p1:[j*Math.cos(K),j*Math.sin(K)]}}function w(L,B){return L.a0==B.a0&&L.a1==B.a1}function M(L,B,z){return"A"+L+","+L+" 0 "+ +(z>Oi)+",1 "+B}function N(L,B,z,re){return"Q 0,0 "+re}return m.radius=function(L){return arguments.length?(h=gr(L),m):h},m.source=function(L){return arguments.length?(u=gr(L),m):u},m.target=function(L){return arguments.length?(f=gr(L),m):f},m.startAngle=function(L){return arguments.length?(d=gr(L),m):d},m.endAngle=function(L){return arguments.length?(v=gr(L),m):v},m};function vy(u){return u.radius}t.svg.diagonal=function(){var u=bc,f=Sc,h=Na;function d(v,m){var A=u.call(this,v,m),w=f.call(this,v,m),M=(A.y+w.y)/2,N=[A,{x:A.x,y:M},{x:w.x,y:M},w];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return d.source=function(v){return arguments.length?(u=gr(v),d):u},d.target=function(v){return arguments.length?(f=gr(v),d):f},d.projection=function(v){return arguments.length?(h=v,d):h},d};function Na(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),f=Na,h=u.projection;return u.projection=function(d){return arguments.length?h(Ec(f=d)):f},u};function Ec(u){return function(){var f=u.apply(this,arguments),h=f[0],d=f[1]-vi;return[h*Math.cos(d),h*Math.sin(d)]}}t.svg.symbol=function(){var u=gy,f=my;function h(d,v){return(rv.get(u.call(this,d,v))||tv)(f.call(this,d,v))}return h.type=function(d){return arguments.length?(u=gr(d),h):u},h.size=function(d){return arguments.length?(f=gr(d),h):f},h};function my(){return 64}function gy(){return"circle"}function tv(u){var f=Math.sqrt(u/Oi);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var rv=t.map({circle:tv,cross:function(u){var f=Math.sqrt(u/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(u){var f=Math.sqrt(u/(2*nv)),h=f*nv;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(u){var f=Math.sqrt(u)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(u){var f=Math.sqrt(u/ff),h=f*ff/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(u){var f=Math.sqrt(u/ff),h=f*ff/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=rv.keys();var ff=Math.sqrt(3),nv=Math.tan(30*Qd);Ae.transition=function(u){for(var f=Ii||++cf,h=Iu(u),d=[],v,m,A=_o||{time:Date.now(),ease:fo,delay:0,duration:250},w=-1,M=this.length;++w<M;){d.push(v=[]);for(var N=this[w],L=-1,B=N.length;++L<B;)(m=N[L])&&wo(m,L,h,f,A),v.push(m)}return Nu(d,h,f)},Ae.interrupt=function(u){return this.each(u==null?sf:iv(Iu(u)))};var sf=iv(Iu());function iv(u){return function(){var f,h,d;(f=this[u])&&(d=f[h=f.active])&&(d.timer.c=null,d.timer.t=NaN,--f.count?delete f[h]:delete this[u],f.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function Nu(u,f,h){return qt(u,Dr),u.namespace=f,u.id=h,u}var Dr=[],cf=0,Ii,_o;Dr.call=Ae.call,Dr.empty=Ae.empty,Dr.node=Ae.node,Dr.size=Ae.size,t.transition=function(u,f){return u&&u.transition?Ii?u.transition(f):u:t.selection().transition(u)},t.transition.prototype=Dr,Dr.select=function(u){var f=this.id,h=this.namespace,d=[],v,m,A;u=G(u);for(var w=-1,M=this.length;++w<M;){d.push(v=[]);for(var N=this[w],L=-1,B=N.length;++L<B;)(A=N[L])&&(m=u.call(A,A.__data__,L,w))?("__data__"in A&&(m.__data__=A.__data__),wo(m,L,h,f,A[h][f]),v.push(m)):v.push(null)}return Nu(d,h,f)},Dr.selectAll=function(u){var f=this.id,h=this.namespace,d=[],v,m,A,w,M;u=ie(u);for(var N=-1,L=this.length;++N<L;)for(var B=this[N],z=-1,re=B.length;++z<re;)if(A=B[z]){M=A[h][f],m=u.call(A,A.__data__,z,N),d.push(v=[]);for(var oe=-1,j=m.length;++oe<j;)(w=m[oe])&&wo(w,oe,h,f,M),v.push(w)}return Nu(d,h,f)},Dr.filter=function(u){var f=[],h,d,v;typeof u!="function"&&(u=fu(u));for(var m=0,A=this.length;m<A;m++){f.push(h=[]);for(var d=this[m],w=0,M=d.length;w<M;w++)(v=d[w])&&u.call(v,v.__data__,w,m)&&h.push(v)}return Nu(f,this.namespace,this.id)},Dr.tween=function(u,f){var h=this.id,d=this.namespace;return arguments.length<2?this.node()[d][h].tween.get(u):pi(this,f==null?function(v){v[d][h].tween.remove(u)}:function(v){v[d][h].tween.set(u,f)})};function hf(u,f,h,d){var v=u.id,m=u.namespace;return pi(u,typeof h=="function"?function(A,w,M){A[m][v].tween.set(f,d(h.call(A,A.__data__,w,M)))}:(h=d(h),function(A){A[m][v].tween.set(f,h)}))}Dr.attr=function(u,f){if(arguments.length<2){for(f in u)this.attr(f,u[f]);return this}var h=u=="transform"?Qs:mi,d=t.ns.qualify(u);function v(){this.removeAttribute(d)}function m(){this.removeAttributeNS(d.space,d.local)}function A(M){return M==null?v:(M+="",function(){var N=this.getAttribute(d),L;return N!==M&&(L=h(N,M),function(B){this.setAttribute(d,L(B))})})}function w(M){return M==null?m:(M+="",function(){var N=this.getAttributeNS(d.space,d.local),L;return N!==M&&(L=h(N,M),function(B){this.setAttributeNS(d.space,d.local,L(B))})})}return hf(this,"attr."+u,f,d.local?w:A)},Dr.attrTween=function(u,f){var h=t.ns.qualify(u);function d(m,A){var w=f.call(this,m,A,this.getAttribute(h));return w&&function(M){this.setAttribute(h,w(M))}}function v(m,A){var w=f.call(this,m,A,this.getAttributeNS(h.space,h.local));return w&&function(M){this.setAttributeNS(h.space,h.local,w(M))}}return this.tween("attr."+u,h.local?v:d)},Dr.style=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f="");for(h in u)this.style(h,u[h],f);return this}h=""}function v(){this.style.removeProperty(u)}function m(A){return A==null?v:(A+="",function(){var w=o(this).getComputedStyle(this,null).getPropertyValue(u),M;return w!==A&&(M=mi(w,A),function(N){this.style.setProperty(u,M(N),h)})})}return hf(this,"style."+u,f,m)},Dr.styleTween=function(u,f,h){arguments.length<3&&(h="");function d(v,m){var A=f.call(this,v,m,o(this).getComputedStyle(this,null).getPropertyValue(u));return A&&function(w){this.style.setProperty(u,A(w),h)}}return this.tween("style."+u,d)},Dr.text=function(u){return hf(this,"text",u,Ac)};function Ac(u){return u==null&&(u=""),function(){this.textContent=u}}Dr.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var f;this[u].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Dr.ease=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),pi(this,function(d){d[h][f].ease=u}))},Dr.delay=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:pi(this,typeof u=="function"?function(d,v,m){d[h][f].delay=+u.call(d,d.__data__,v,m)}:(u=+u,function(d){d[h][f].delay=u}))},Dr.duration=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:pi(this,typeof u=="function"?function(d,v,m){d[h][f].duration=Math.max(1,u.call(d,d.__data__,v,m))}:(u=Math.max(1,u),function(d){d[h][f].duration=u}))},Dr.each=function(u,f){var h=this.id,d=this.namespace;if(arguments.length<2){var v=_o,m=Ii;try{Ii=h,pi(this,function(A,w,M){_o=A[d][h],u.call(A,A.__data__,w,M)})}finally{_o=v,Ii=m}}else pi(this,function(A){var w=A[d][h];(w.event||(w.event=t.dispatch("start","end","interrupt"))).on(u,f)});return this},Dr.transition=function(){for(var u=this.id,f=++cf,h=this.namespace,d=[],v,m,A,w,M=0,N=this.length;M<N;M++){d.push(v=[]);for(var m=this[M],L=0,B=m.length;L<B;L++)(A=m[L])&&(w=A[h][u],wo(A,L,h,f,{time:w.time,ease:w.ease,delay:w.delay+w.duration,duration:w.duration})),v.push(A)}return Nu(d,h,f)};function Iu(u){return u==null?"__transition__":"__transition_"+u+"__"}function wo(u,f,h,d,v){var m=u[h]||(u[h]={active:0,count:0}),A=m[d],w,M,N,L,B;function z(j){var Y=A.delay;if(M.t=Y+w,Y<=j)return re(j-Y);M.c=re}function re(j){var Y=m.active,K=m[Y];K&&(K.timer.c=null,K.timer.t=NaN,--m.count,delete m[Y],K.event&&K.event.interrupt.call(u,u.__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]}M.c=oe,no(function(){return M.c&&oe(j||1)&&(M.c=null,M.t=NaN),1},0,w),m.active=d,A.event&&A.event.start.call(u,u.__data__,f),B=[],A.tween.forEach(function(ee,Re){(Re=Re.call(u,u.__data__,f))&&B.push(Re)}),L=A.ease,N=A.duration}function oe(j){for(var Y=j/N,K=L(Y),ue=B.length;ue>0;)B[--ue].call(u,K);if(Y>=1)return A.event&&A.event.end.call(u,u.__data__,f),--m.count?delete m[d]:delete u[h],1}A||(w=v.time,M=no(z,0,w),A=m[d]={tween:new I,time:w,timer:M,delay:v.delay,duration:v.duration,ease:v.ease,index:f},v=null,++m.count)}t.svg.axis=function(){var u=t.scale.linear(),f=Tc,h=6,d=6,v=3,m=[10],A=null,w;function M(N){N.each(function(){var L=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),re=A??(z.ticks?z.ticks.apply(z,m):z.domain()),oe=w??(z.tickFormat?z.tickFormat.apply(z,m):nt),j=L.selectAll(".tick").data(re,z),Y=j.enter().insert("g",".domain").attr("class","tick").style("opacity",ir),K=t.transition(j.exit()).style("opacity",ir).remove(),ue=t.transition(j.order()).style("opacity",1),le=Math.max(h,0)+v,ee,Re=Kl(z),ze=L.selectAll(".domain").data([0]),tt=(ze.enter().append("path").attr("class","domain"),t.transition(ze));Y.append("line"),Y.append("text");var je=Y.select("line"),at=ue.select("line"),vt=j.select("text").text(oe),Gt=Y.select("text"),xt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ar,Mr,dr,rt;if(f==="bottom"||f==="top"?(ee=Oc,ar="x",dr="y",Mr="x2",rt="y2",vt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Re[0]+","+zt*d+"V0H"+Re[1]+"V"+zt*d)):(ee=kc,ar="y",dr="x",Mr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),tt.attr("d","M"+zt*d+","+Re[0]+"H0V"+Re[1]+"H"+zt*d)),je.attr(rt,zt*h),Gt.attr(dr,zt*le),at.attr(Mr,0).attr(rt,zt*h),xt.attr(ar,0).attr(dr,zt*le),z.rangeBand){var Ht=z,Yt=Ht.rangeBand()/2;B=z=function(or){return Ht(or)+Yt}}else B.rangeBand?B=z:K.call(ee,z,B);Y.call(ee,B,z),ue.call(ee,z,z)})}return M.scale=function(N){return arguments.length?(u=N,M):u},M.orient=function(N){return arguments.length?(f=N in Cc?N+"":Tc,M):f},M.ticks=function(){return arguments.length?(m=n(arguments),M):m},M.tickValues=function(N){return arguments.length?(A=N,M):A},M.tickFormat=function(N){return arguments.length?(w=N,M):w},M.tickSize=function(N){var L=arguments.length;return L?(h=+N,d=+arguments[L-1],M):h},M.innerTickSize=function(N){return arguments.length?(h=+N,M):h},M.outerTickSize=function(N){return arguments.length?(d=+N,M):d},M.tickPadding=function(N){return arguments.length?(v=+N,M):v},M.tickSubdivide=function(){return arguments.length&&M},M};var Tc="bottom",Cc={top:1,right:1,bottom:1,left:1};function Oc(u,f,h){u.attr("transform",function(d){var v=f(d);return"translate("+(isFinite(v)?v:h(d))+",0)"})}function kc(u,f,h){u.attr("transform",function(d){var v=f(d);return"translate(0,"+(isFinite(v)?v:h(d))+")"})}t.svg.brush=function(){var u=pt(L,"brushstart","brush","brushend"),f=null,h=null,d=[0,0],v=[0,0],m,A,w=!0,M=!0,N=Lu[0];function L(j){j.each(function(){var Y=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=Y.selectAll(".background").data([0]);K.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Y.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=Y.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(ze){return"resize "+ze}).style("cursor",function(ze){return Mc[ze]}).append("rect").attr("x",function(ze){return/[ew]$/.test(ze)?-3:null}).attr("y",function(ze){return/^[ns]/.test(ze)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",L.empty()?"none":null);var le=t.transition(Y),ee=t.transition(K),Re;f&&(Re=Kl(f),ee.attr("x",Re[0]).attr("width",Re[1]-Re[0]),z(le)),h&&(Re=Kl(h),ee.attr("y",Re[0]).attr("height",Re[1]-Re[0]),re(le)),B(le)})}L.event=function(j){j.each(function(){var Y=u.of(this,arguments),K={x:d,y:v,i:m,j:A},ue=this.__chart__||K;this.__chart__=K,Ii?t.select(this).transition().each("start.brush",function(){m=ue.i,A=ue.j,d=ue.x,v=ue.y,Y({type:"brushstart"})}).tween("brush:brush",function(){var le=kn(d,K.x),ee=kn(v,K.y);return m=A=null,function(Re){d=K.x=le(Re),v=K.y=ee(Re),Y({type:"brush",mode:"resize"})}}).each("end.brush",function(){m=K.i,A=K.j,Y({type:"brush",mode:"resize"}),Y({type:"brushend"})}):(Y({type:"brushstart"}),Y({type:"brush",mode:"resize"}),Y({type:"brushend"}))})};function B(j){j.selectAll(".resize").attr("transform",function(Y){return"translate("+d[+/e$/.test(Y)]+","+v[+/^s/.test(Y)]+")"})}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",v[0]),j.selectAll(".extent,.e>rect,.w>rect").attr("height",v[1]-v[0])}function oe(){var j=this,Y=t.select(t.event.target),K=u.of(j,arguments),ue=t.select(j),le=Y.datum(),ee=!/^(n|s)$/.test(le)&&f,Re=!/^(e|w)$/.test(le)&&h,ze=Y.classed("extent"),tt=Ml(j),je,at=t.mouse(j),vt,Gt=t.select(o(j)).on("keydown.brush",ar).on("keyup.brush",Mr);if(t.event.changedTouches?Gt.on("touchmove.brush",dr).on("touchend.brush",Ht):Gt.on("mousemove.brush",dr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),ze)at[0]=d[0]-at[0],at[1]=v[0]-at[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);vt=[d[1-xt]-at[0],v[1-zt]-at[1]],at[0]=d[xt],at[1]=v[zt]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",Y.style("cursor")),K({type:"brushstart"}),dr();function ar(){t.event.keyCode==32&&(ze||(je=null,at[0]-=d[1],at[1]-=v[1],ze=2),ct())}function Mr(){t.event.keyCode==32&&ze==2&&(at[0]+=d[1],at[1]+=v[1],ze=0,ct())}function dr(){var Yt=t.mouse(j),or=!1;vt&&(Yt[0]+=vt[0],Yt[1]+=vt[1]),ze||(t.event.altKey?(je||(je=[(d[0]+d[1])/2,(v[0]+v[1])/2]),at[0]=d[+(Yt[0]<je[0])],at[1]=v[+(Yt[1]<je[1])]):je=null),ee&&rt(Yt,f,0)&&(z(ue),or=!0),Re&&rt(Yt,h,1)&&(re(ue),or=!0),or&&(B(ue),K({type:"brush",mode:ze?"move":"resize"}))}function rt(Yt,or,Er){var Br=Kl(or),Yr=Br[0],hn=Br[1],_n=at[Er],rn=Er?v:d,Mn=rn[1]-rn[0],R,H;if(ze&&(Yr-=_n,hn-=Mn+_n),R=(Er?M:w)?Math.max(Yr,Math.min(hn,Yt[Er])):Yt[Er],ze?H=(R+=_n)+Mn:(je&&(_n=Math.max(Yr,Math.min(hn,2*je[Er]-R))),_n<R?(H=R,R=_n):H=_n),rn[0]!=R||rn[1]!=H)return Er?A=null:m=null,rn[0]=R,rn[1]=H,!0}function Ht(){dr(),ue.style("pointer-events","all").selectAll(".resize").style("display",L.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),tt(),K({type:"brushend"})}}return L.x=function(j){return arguments.length?(f=j,N=Lu[!f<<1|!h],L):f},L.y=function(j){return arguments.length?(h=j,N=Lu[!f<<1|!h],L):h},L.clamp=function(j){return arguments.length?(f&&h?(w=!!j[0],M=!!j[1]):f?w=!!j:h&&(M=!!j),L):f&&h?[w,M]:f?w:h?M:null},L.extent=function(j){var Y,K,ue,le,ee;return arguments.length?(f&&(Y=j[0],K=j[1],h&&(Y=Y[0],K=K[0]),m=[Y,K],f.invert&&(Y=f(Y),K=f(K)),K<Y&&(ee=Y,Y=K,K=ee),(Y!=d[0]||K!=d[1])&&(d=[Y,K])),h&&(ue=j[0],le=j[1],f&&(ue=ue[1],le=le[1]),A=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(ee=ue,ue=le,le=ee),(ue!=v[0]||le!=v[1])&&(v=[ue,le])),L):(f&&(m?(Y=m[0],K=m[1]):(Y=d[0],K=d[1],f.invert&&(Y=f.invert(Y),K=f.invert(K)),K<Y&&(ee=Y,Y=K,K=ee))),h&&(A?(ue=A[0],le=A[1]):(ue=v[0],le=v[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(ee=ue,ue=le,le=ee))),f&&h?[[Y,ue],[K,le]]:f?[Y,K]:h&&[ue,le])},L.clear=function(){return L.empty()||(d=[0,0],v=[0,0],m=A=null),L},L.empty=function(){return!!f&&d[0]==d[1]||!!h&&v[0]==v[1]},t.rebind(L,u,"on")};var Mc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=Fs(function(u){return u.responseText}),t.json=function(u,f){return Ll(u,"application/json",Rc,f)};function Rc(u){return JSON.parse(u.responseText)}t.html=function(u,f){return Ll(u,"text/html",Pc,f)};function Pc(u){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(u.responseText)}t.xml=Fs(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(gU);var px=new Date,vx=new Date;function cn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=function(a){return cn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return px.setTime(+a),vx.setTime(+o),e(px),e(vx),Math.floor(r(px,vx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var sm=cn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});sm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?cn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):sm};const U5=sm;var j5=sm.range,cm=1e3,ll=6e4,hm=36e5,$4=864e5,D4=6048e5,B4=cn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cm)},function(e,t){return(t-e)/cm},function(e){return e.getUTCSeconds()});const G5=B4;var H5=B4.range,z4=cn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cm)},function(e,t){e.setTime(+e+t*ll)},function(e,t){return(t-e)/ll},function(e){return e.getMinutes()});const yU=z4;var xU=z4.range,U4=cn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cm-e.getMinutes()*ll)},function(e,t){e.setTime(+e+t*hm)},function(e,t){return(t-e)/hm},function(e){return e.getHours()});const _U=U4;var wU=U4.range,j4=cn(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())*ll)/$4},function(e){return e.getDate()-1});const Ub=j4;var bU=j4.range;function El(e){return cn(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())*ll)/D4})}var dm=El(0),ud=El(1),G4=El(2),H4=El(3),fl=El(4),q4=El(5),W4=El(6),q5=dm.range,SU=ud.range,EU=G4.range,AU=H4.range,TU=fl.range,CU=q4.range,OU=W4.range,V4=cn(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 kU=V4;var MU=V4.range,jb=cn(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()});jb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:cn(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 us=jb;var RU=jb.range,Y4=cn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ll)},function(e,t){return(t-e)/ll},function(e){return e.getUTCMinutes()});const PU=Y4;var FU=Y4.range,X4=cn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*hm)},function(e,t){return(t-e)/hm},function(e){return e.getUTCHours()});const NU=X4;var IU=X4.range,Q4=cn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/$4},function(e){return e.getUTCDate()-1});const Gb=Q4;var LU=Q4.range;function Al(e){return cn(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)/D4})}var pm=Al(0),ld=Al(1),Z4=Al(2),K4=Al(3),sl=Al(4),J4=Al(5),eR=Al(6),W5=pm.range,$U=ld.range,DU=Z4.range,BU=K4.range,zU=sl.range,UU=J4.range,jU=eR.range,tR=cn(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 GU=tR;var HU=tR.range,Hb=cn(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()});Hb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:cn(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 ls=Hb;var qU=Hb.range;const WU=Object.freeze(Object.defineProperty({__proto__:null,timeDay:Ub,timeDays:bU,timeFriday:q4,timeFridays:CU,timeHour:_U,timeHours:wU,timeInterval:cn,timeMillisecond:U5,timeMilliseconds:j5,timeMinute:yU,timeMinutes:xU,timeMonday:ud,timeMondays:SU,timeMonth:kU,timeMonths:MU,timeSaturday:W4,timeSaturdays:OU,timeSecond:G5,timeSeconds:H5,timeSunday:dm,timeSundays:q5,timeThursday:fl,timeThursdays:TU,timeTuesday:G4,timeTuesdays:EU,timeWednesday:H4,timeWednesdays:AU,timeWeek:dm,timeWeeks:q5,timeYear:us,timeYears:RU,utcDay:Gb,utcDays:LU,utcFriday:J4,utcFridays:UU,utcHour:NU,utcHours:IU,utcMillisecond:U5,utcMilliseconds:j5,utcMinute:PU,utcMinutes:FU,utcMonday:ld,utcMondays:$U,utcMonth:GU,utcMonths:HU,utcSaturday:eR,utcSaturdays:jU,utcSecond:G5,utcSeconds:H5,utcSunday:pm,utcSundays:W5,utcThursday:sl,utcThursdays:zU,utcTuesday:Z4,utcTuesdays:DU,utcWednesday:K4,utcWednesdays:BU,utcWeek:pm,utcWeeks:W5,utcYear:ls,utcYears:qU},Symbol.toStringTag,{value:"Module"}));function mx(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 gx(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 Yc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=Xc(i),p=Qc(i),x=Xc(a),g=Qc(a),y=Xc(o),C=Qc(o),P=Xc(l),b=Qc(l),_=Xc(s),E=Qc(s),k={a:$e,A:qe,b:kt,B:He,c:null,d:K5,e:K5,f:vj,g:Aj,G:Cj,H:hj,I:dj,j:pj,L:nR,m:mj,M:gj,p:be,q:Ve,Q:tT,s:rT,S:yj,u:xj,U:_j,V:wj,w:bj,W:Sj,x:null,X:null,y:Ej,Y:Tj,Z:Oj,"%":eT},F={a:ct,A:et,b:pt,B:wt,c:null,d:J5,e:J5,f:Pj,g:jj,G:Hj,H:kj,I:Mj,j:Rj,L:aR,m:Fj,M:Nj,p:qt,q:Vt,Q:tT,s:rT,S:Ij,u:Lj,U:$j,V:Dj,w:Bj,W:zj,x:null,X:null,y:Uj,Y:Gj,Z:qj,"%":eT},I={a:Ce,A:Oe,b:Pe,B:De,c:Ue,d:Q5,e:Q5,f:lj,g:X5,G:Y5,H:Z5,I:Z5,j:ij,L:uj,m:nj,M:aj,p:ae,q:rj,Q:sj,s:cj,S:oj,u:ZU,U:KU,V:JU,w:QU,W:ej,x:ft,X:nt,y:X5,Y:Y5,Z:tj,"%":fj};k.x=$(r,k),k.X=$(n,k),k.c=$(t,k),F.x=$(r,F),F.X=$(n,F),F.c=$(t,F);function $(Qe,Et){return function(jt){var Ae=[],G=-1,ie=0,O=Qe.length,S,T,D;for(jt instanceof Date||(jt=new Date(+jt));++G<O;)Qe.charCodeAt(G)===37&&(Ae.push(Qe.slice(ie,G)),(T=V5[S=Qe.charAt(++G)])!=null?S=Qe.charAt(++G):T=S==="e"?" ":"0",(D=Et[S])&&(S=D(jt,T)),Ae.push(S),ie=G+1);return Ae.push(Qe.slice(ie,G)),Ae.join("")}}function ne(Qe,Et){return function(jt){var Ae=Yc(1900,void 0,1),G=V(Ae,Qe,jt+="",0),ie,O;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(Et&&!("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=gx(Yc(Ae.y,0,1)),O=ie.getUTCDay(),ie=O>4||O===0?ld.ceil(ie):ld(ie),ie=Gb.offset(ie,(Ae.V-1)*7),Ae.y=ie.getUTCFullYear(),Ae.m=ie.getUTCMonth(),Ae.d=ie.getUTCDate()+(Ae.w+6)%7):(ie=mx(Yc(Ae.y,0,1)),O=ie.getDay(),ie=O>4||O===0?ud.ceil(ie):ud(ie),ie=Ub.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),O="Z"in Ae?gx(Yc(Ae.y,0,1)).getUTCDay():mx(Yc(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(O+5)%7:Ae.w+Ae.U*7-(O+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,gx(Ae)):mx(Ae)}}function V(Qe,Et,jt,Ae){for(var G=0,ie=Et.length,O=jt.length,S,T;G<ie;){if(Ae>=O)return-1;if(S=Et.charCodeAt(G++),S===37){if(S=Et.charAt(G++),T=I[S in V5?Et.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,Et,jt){var Ae=c.exec(Et.slice(jt));return Ae?(Qe.p=p[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ce(Qe,Et,jt){var Ae=y.exec(Et.slice(jt));return Ae?(Qe.w=C[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Oe(Qe,Et,jt){var Ae=x.exec(Et.slice(jt));return Ae?(Qe.w=g[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Pe(Qe,Et,jt){var Ae=_.exec(Et.slice(jt));return Ae?(Qe.m=E[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function De(Qe,Et,jt){var Ae=P.exec(Et.slice(jt));return Ae?(Qe.m=b[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ue(Qe,Et,jt){return V(Qe,t,Et,jt)}function ft(Qe,Et,jt){return V(Qe,r,Et,jt)}function nt(Qe,Et,jt){return V(Qe,n,Et,jt)}function $e(Qe){return o[Qe.getDay()]}function qe(Qe){return a[Qe.getDay()]}function kt(Qe){return s[Qe.getMonth()]}function He(Qe){return l[Qe.getMonth()]}function be(Qe){return i[+(Qe.getHours()>=12)]}function Ve(Qe){return 1+~~(Qe.getMonth()/3)}function ct(Qe){return o[Qe.getUTCDay()]}function et(Qe){return a[Qe.getUTCDay()]}function pt(Qe){return s[Qe.getUTCMonth()]}function wt(Qe){return l[Qe.getUTCMonth()]}function qt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Vt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Et=$(Qe+="",k);return Et.toString=function(){return Qe},Et},parse:function(Qe){var Et=ne(Qe+="",!1);return Et.toString=function(){return Qe},Et},utcFormat:function(Qe){var Et=$(Qe+="",F);return Et.toString=function(){return Qe},Et},utcParse:function(Qe){var Et=ne(Qe+="",!0);return Et.toString=function(){return Qe},Et}}}var V5={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,VU=/^%/,YU=/[\\^$*+?|[\]().{}]/g;function xr(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 XU(e){return e.replace(YU,"\\$&")}function Xc(e){return new RegExp("^(?:"+e.map(XU).join("|")+")","i")}function Qc(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function QU(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ZU(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function KU(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function JU(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ej(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=xn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function X5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tj(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 rj(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function nj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Q5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ij(e,t,r){var n=xn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Z5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function aj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function oj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uj(e,t,r){var n=xn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function lj(e,t,r){var n=xn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fj(e,t,r){var n=VU.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function sj(e,t,r){var n=xn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function cj(e,t,r){var n=xn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function K5(e,t){return xr(e.getDate(),t,2)}function hj(e,t){return xr(e.getHours(),t,2)}function dj(e,t){return xr(e.getHours()%12||12,t,2)}function pj(e,t){return xr(1+Ub.count(us(e),e),t,3)}function nR(e,t){return xr(e.getMilliseconds(),t,3)}function vj(e,t){return nR(e,t)+"000"}function mj(e,t){return xr(e.getMonth()+1,t,2)}function gj(e,t){return xr(e.getMinutes(),t,2)}function yj(e,t){return xr(e.getSeconds(),t,2)}function xj(e){var t=e.getDay();return t===0?7:t}function _j(e,t){return xr(dm.count(us(e)-1,e),t,2)}function iR(e){var t=e.getDay();return t>=4||t===0?fl(e):fl.ceil(e)}function wj(e,t){return e=iR(e),xr(fl.count(us(e),e)+(us(e).getDay()===4),t,2)}function bj(e){return e.getDay()}function Sj(e,t){return xr(ud.count(us(e)-1,e),t,2)}function Ej(e,t){return xr(e.getFullYear()%100,t,2)}function Aj(e,t){return e=iR(e),xr(e.getFullYear()%100,t,2)}function Tj(e,t){return xr(e.getFullYear()%1e4,t,4)}function Cj(e,t){var r=e.getDay();return e=r>=4||r===0?fl(e):fl.ceil(e),xr(e.getFullYear()%1e4,t,4)}function Oj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xr(t/60|0,"0",2)+xr(t%60,"0",2)}function J5(e,t){return xr(e.getUTCDate(),t,2)}function kj(e,t){return xr(e.getUTCHours(),t,2)}function Mj(e,t){return xr(e.getUTCHours()%12||12,t,2)}function Rj(e,t){return xr(1+Gb.count(ls(e),e),t,3)}function aR(e,t){return xr(e.getUTCMilliseconds(),t,3)}function Pj(e,t){return aR(e,t)+"000"}function Fj(e,t){return xr(e.getUTCMonth()+1,t,2)}function Nj(e,t){return xr(e.getUTCMinutes(),t,2)}function Ij(e,t){return xr(e.getUTCSeconds(),t,2)}function Lj(e){var t=e.getUTCDay();return t===0?7:t}function $j(e,t){return xr(pm.count(ls(e)-1,e),t,2)}function oR(e){var t=e.getUTCDay();return t>=4||t===0?sl(e):sl.ceil(e)}function Dj(e,t){return e=oR(e),xr(sl.count(ls(e),e)+(ls(e).getUTCDay()===4),t,2)}function Bj(e){return e.getUTCDay()}function zj(e,t){return xr(ld.count(ls(e)-1,e),t,2)}function Uj(e,t){return xr(e.getUTCFullYear()%100,t,2)}function jj(e,t){return e=oR(e),xr(e.getUTCFullYear()%100,t,2)}function Gj(e,t){return xr(e.getUTCFullYear()%1e4,t,4)}function Hj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?sl(e):sl.ceil(e),xr(e.getUTCFullYear()%1e4,t,4)}function qj(){return"+0000"}function eT(){return"%"}function tT(e){return+e}function rT(e){return Math.floor(+e/1e3)}var mf,uR,lR,qb,Wb;fR({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 fR(e){return mf=rR(e),uR=mf.format,lR=mf.parse,qb=mf.utcFormat,Wb=mf.utcParse,mf}var sR="%Y-%m-%dT%H:%M:%S.%LZ";function Wj(e){return e.toISOString()}var Vj=Date.prototype.toISOString?Wj:qb(sR);const Yj=Vj;function Xj(e){var t=new Date(e);return isNaN(t)?null:t}var Qj=+new Date("2000-01-01T00:00:00.000Z")?Xj:Wb(sR);const Zj=Qj,Kj=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:Yj,isoParse:Zj,get timeFormat(){return uR},timeFormatDefaultLocale:fR,timeFormatLocale:rR,get timeParse(){return lR},get utcFormat(){return qb},get utcParse(){return Wb}},Symbol.toStringTag,{value:"Module"})),dK=pl(Kj);function Jj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vm(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 fs(e){return e=vm(Math.abs(e)),e?e[1]:NaN}function eG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function tG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var rG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mm(e){if(!(t=rG.exec(e)))throw new Error("invalid format: "+e);var t;return new dg({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]})}mm.prototype=dg.prototype;function dg(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+""}dg.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 nG(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 cR;function iG(e,t){var r=vm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(cR=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vm(e,Math.max(0,t+a-1))[0]}function nT(e,t){var r=vm(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 iT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Jj,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 nT(e*100,t)},r:nT,s:iG,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function aT(e){return e}var oT=Array.prototype.map,uT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hR(e){var t=e.grouping===void 0||e.thousands===void 0?aT:eG(oT.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?aT:tG(oT.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(x){x=mm(x);var g=x.fill,y=x.align,C=x.sign,P=x.symbol,b=x.zero,_=x.width,E=x.comma,k=x.precision,F=x.trim,I=x.type;I==="n"?(E=!0,I="g"):iT[I]||(k===void 0&&(k=12),F=!0,I="g"),(b||g==="0"&&y==="=")&&(b=!0,g="0",y="=");var $=P==="$"?r:P==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",ne=P==="$"?n:/[%p]/.test(I)?o:"",V=iT[I],ae=/[defgprs%]/.test(I);k=k===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function Ce(Oe){var Pe=$,De=ne,Ue,ft,nt;if(I==="c")De=V(Oe)+De,Oe="";else{Oe=+Oe;var $e=Oe<0||1/Oe<0;if(Oe=isNaN(Oe)?s:V(Math.abs(Oe),k),F&&(Oe=nG(Oe)),$e&&+Oe==0&&C!=="+"&&($e=!1),Pe=($e?C==="("?C:l:C==="-"||C==="("?"":C)+Pe,De=(I==="s"?uT[8+cR/3]:"")+De+($e&&C==="("?")":""),ae){for(Ue=-1,ft=Oe.length;++Ue<ft;)if(nt=Oe.charCodeAt(Ue),48>nt||nt>57){De=(nt===46?i+Oe.slice(Ue+1):Oe.slice(Ue))+De,Oe=Oe.slice(0,Ue);break}}}E&&!b&&(Oe=t(Oe,1/0));var qe=Pe.length+Oe.length+De.length,kt=qe<_?new Array(_-qe+1).join(g):"";switch(E&&b&&(Oe=t(kt+Oe,kt.length?_-De.length:1/0),kt=""),y){case"<":Oe=Pe+Oe+De+kt;break;case"=":Oe=Pe+kt+Oe+De;break;case"^":Oe=kt.slice(0,qe=kt.length>>1)+Pe+Oe+De+kt.slice(qe);break;default:Oe=kt+Pe+Oe+De;break}return a(Oe)}return Ce.toString=function(){return x+""},Ce}function p(x,g){var y=c((x=mm(x),x.type="f",x)),C=Math.max(-8,Math.min(8,Math.floor(fs(g)/3)))*3,P=Math.pow(10,-C),b=uT[8+C/3];return function(_){return y(P*_)+b}}return{format:c,formatPrefix:p}}var Iv,dR,pR;vR({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function vR(e){return Iv=hR(e),dR=Iv.format,pR=Iv.formatPrefix,Iv}function aG(e){return Math.max(0,-fs(Math.abs(e)))}function oG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fs(t)/3)))*3-fs(Math.abs(e)))}function uG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fs(t)-fs(e))+1}const lG=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:dg,get format(){return dR},formatDefaultLocale:vR,formatLocale:hR,get formatPrefix(){return pR},formatSpecifier:mm,precisionFixed:aG,precisionPrefix:oG,precisionRound:uG},Symbol.toStringTag,{value:"Module"})),pK=pl(lG);var fG=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},sG=fG,vK=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&sG(r))return!1}else if(t!=="number")return!1;return e-e<1},lT={},cG={get exports(){return lT},set exports(e){lT=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function c(G,ie){if(G=G||"",ie=ie||{},G instanceof c)return G;if(!(this instanceof c))return new c(G,ie);var O=p(G);this._originalInput=G,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=a(100*this._a)/100,this._format=ie.format||O.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=O.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,O,S,T,D,se;return ie=G.r/255,O=G.g/255,S=G.b/255,ie<=.03928?T=ie/12.92:T=t.pow((ie+.055)/1.055,2.4),O<=.03928?D=O/12.92:D=t.pow((O+.055)/1.055,2.4),S<=.03928?se=S/12.92:se=t.pow((S+.055)/1.055,2.4),.2126*T+.7152*D+.0722*se},setAlpha:function(G){return this._a=kt(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=C(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=C(this._r,this._g,this._b),ie=a(G.h*360),O=a(G.s*100),S=a(G.v*100);return this._a==1?"hsv("+ie+", "+O+"%, "+S+"%)":"hsva("+ie+", "+O+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var G=g(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=g(this._r,this._g,this._b),ie=a(G.h*360),O=a(G.s*100),S=a(G.l*100);return this._a==1?"hsl("+ie+", "+O+"%, "+S+"%)":"hsla("+ie+", "+O+"%, "+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 _(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(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$e[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var ie="#"+E(this._r,this._g,this._b,this._a),O=ie,S=this._gradientType?"GradientType = 1, ":"";if(G){var T=c(G);O="#"+E(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+ie+",endColorstr="+O+")"},toString:function(G){var ie=!!G;G=G||this._format;var O=!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"&&(O=this.toRgbString()),G==="prgb"&&(O=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&(O=this.toHexString()),G==="hex3"&&(O=this.toHexString(!0)),G==="hex4"&&(O=this.toHex8String(!0)),G==="hex8"&&(O=this.toHex8String()),G==="name"&&(O=this.toName()),G==="hsl"&&(O=this.toHslString()),G==="hsv"&&(O=this.toHsvString()),O||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(G,ie){var O=G.apply(null,[this].concat([].slice.call(ie)));return this._r=O._r,this._g=O._g,this._b=O._b,this.setAlpha(O._a),this},lighten:function(){return this._applyModification($,arguments)},brighten:function(){return this._applyModification(ne,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(I,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(Ue,arguments)},complement:function(){return this._applyCombination(Ce,arguments)},monochromatic:function(){return this._applyCombination(ft,arguments)},splitcomplement:function(){return this._applyCombination(De,arguments)},triad:function(){return this._applyCombination(Oe,arguments)},tetrad:function(){return this._applyCombination(Pe,arguments)}},c.fromRatio=function(G,ie){if(typeof G=="object"){var O={};for(var S in G)G.hasOwnProperty(S)&&(S==="a"?O[S]=G[S]:O[S]=wt(G[S]));G=O}return c(G,ie)};function p(G){var ie={r:0,g:0,b:0},O=1,S=null,T=null,D=null,se=!1,Fe=!1;return typeof G=="string"&&(G=jt(G)),typeof G=="object"&&(Et(G.r)&&Et(G.g)&&Et(G.b)?(ie=x(G.r,G.g,G.b),se=!0,Fe=String(G.r).substr(-1)==="%"?"prgb":"rgb"):Et(G.h)&&Et(G.s)&&Et(G.v)?(S=wt(G.s),T=wt(G.v),ie=P(G.h,S,T),se=!0,Fe="hsv"):Et(G.h)&&Et(G.s)&&Et(G.l)&&(S=wt(G.s),D=wt(G.l),ie=y(G.h,S,D),se=!0,Fe="hsl"),G.hasOwnProperty("a")&&(O=G.a)),O=kt(O),{ok:se,format:G.format||Fe,r:o(255,l(ie.r,0)),g:o(255,l(ie.g,0)),b:o(255,l(ie.b,0)),a:O}}function x(G,ie,O){return{r:He(G,255)*255,g:He(ie,255)*255,b:He(O,255)*255}}function g(G,ie,O){G=He(G,255),ie=He(ie,255),O=He(O,255);var S=l(G,ie,O),T=o(G,ie,O),D,se,Fe=(S+T)/2;if(S==T)D=se=0;else{var Be=S-T;switch(se=Fe>.5?Be/(2-S-T):Be/(S+T),S){case G:D=(ie-O)/Be+(ie<O?6:0);break;case ie:D=(O-G)/Be+2;break;case O:D=(G-ie)/Be+4;break}D/=6}return{h:D,s:se,l:Fe}}function y(G,ie,O){var S,T,D;G=He(G,360),ie=He(ie,100),O=He(O,100);function se(Qt,sr,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?Qt+(sr-Qt)*6*nr:nr<1/2?sr:nr<2/3?Qt+(sr-Qt)*(2/3-nr)*6:Qt}if(ie===0)S=T=D=O;else{var Fe=O<.5?O*(1+ie):O+ie-O*ie,Be=2*O-Fe;S=se(Be,Fe,G+1/3),T=se(Be,Fe,G),D=se(Be,Fe,G-1/3)}return{r:S*255,g:T*255,b:D*255}}function C(G,ie,O){G=He(G,255),ie=He(ie,255),O=He(O,255);var S=l(G,ie,O),T=o(G,ie,O),D,se,Fe=S,Be=S-T;if(se=S===0?0:Be/S,S==T)D=0;else{switch(S){case G:D=(ie-O)/Be+(ie<O?6:0);break;case ie:D=(O-G)/Be+2;break;case O:D=(G-ie)/Be+4;break}D/=6}return{h:D,s:se,v:Fe}}function P(G,ie,O){G=He(G,360)*6,ie=He(ie,100),O=He(O,100);var S=t.floor(G),T=G-S,D=O*(1-ie),se=O*(1-T*ie),Fe=O*(1-(1-T)*ie),Be=S%6,Qt=[O,se,D,D,Fe,O][Be],sr=[Fe,O,O,se,D,D][Be],nr=[D,D,Fe,O,O,se][Be];return{r:Qt*255,g:sr*255,b:nr*255}}function b(G,ie,O,S){var T=[pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).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 _(G,ie,O,S,T){var D=[pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).toString(16)),pt(qt(S))];return T&&D[0].charAt(0)==D[0].charAt(1)&&D[1].charAt(0)==D[1].charAt(1)&&D[2].charAt(0)==D[2].charAt(1)&&D[3].charAt(0)==D[3].charAt(1)?D[0].charAt(0)+D[1].charAt(0)+D[2].charAt(0)+D[3].charAt(0):D.join("")}function E(G,ie,O,S){var T=[pt(qt(S)),pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).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 k(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.s-=ie/100,O.s=be(O.s),c(O)}function F(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.s+=ie/100,O.s=be(O.s),c(O)}function I(G){return c(G).desaturate(100)}function $(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.l+=ie/100,O.l=be(O.l),c(O)}function ne(G,ie){ie=ie===0?0:ie||10;var O=c(G).toRgb();return O.r=l(0,o(255,O.r-a(255*-(ie/100)))),O.g=l(0,o(255,O.g-a(255*-(ie/100)))),O.b=l(0,o(255,O.b-a(255*-(ie/100)))),c(O)}function V(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.l-=ie/100,O.l=be(O.l),c(O)}function ae(G,ie){var O=c(G).toHsl(),S=(O.h+ie)%360;return O.h=S<0?360+S:S,c(O)}function Ce(G){var ie=c(G).toHsl();return ie.h=(ie.h+180)%360,c(ie)}function Oe(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+120)%360,s:ie.s,l:ie.l}),c({h:(O+240)%360,s:ie.s,l:ie.l})]}function Pe(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+90)%360,s:ie.s,l:ie.l}),c({h:(O+180)%360,s:ie.s,l:ie.l}),c({h:(O+270)%360,s:ie.s,l:ie.l})]}function De(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+72)%360,s:ie.s,l:ie.l}),c({h:(O+216)%360,s:ie.s,l:ie.l})]}function Ue(G,ie,O){ie=ie||6,O=O||30;var S=c(G).toHsl(),T=360/O,D=[c(G)];for(S.h=(S.h-(T*ie>>1)+720)%360;--ie;)S.h=(S.h+T)%360,D.push(c(S));return D}function ft(G,ie){ie=ie||6;for(var O=c(G).toHsv(),S=O.h,T=O.s,D=O.v,se=[],Fe=1/ie;ie--;)se.push(c({h:S,s:T,v:D})),D=(D+Fe)%1;return se}c.mix=function(G,ie,O){O=O===0?0:O||50;var S=c(G).toRgb(),T=c(ie).toRgb(),D=O/100,se={r:(T.r-S.r)*D+S.r,g:(T.g-S.g)*D+S.g,b:(T.b-S.b)*D+S.b,a:(T.a-S.a)*D+S.a};return c(se)},c.readability=function(G,ie){var O=c(G),S=c(ie);return(t.max(O.getLuminance(),S.getLuminance())+.05)/(t.min(O.getLuminance(),S.getLuminance())+.05)},c.isReadable=function(G,ie,O){var S=c.readability(G,ie),T,D;switch(D=!1,T=Ae(O),T.level+T.size){case"AAsmall":case"AAAlarge":D=S>=4.5;break;case"AAlarge":D=S>=3;break;case"AAAsmall":D=S>=7;break}return D},c.mostReadable=function(G,ie,O){var S=null,T=0,D,se,Fe,Be;O=O||{},se=O.includeFallbackColors,Fe=O.level,Be=O.size;for(var Qt=0;Qt<ie.length;Qt++)D=c.readability(G,ie[Qt]),D>T&&(T=D,S=c(ie[Qt]));return c.isReadable(G,S,{level:Fe,size:Be})||!se?S:(O.includeFallbackColors=!1,c.mostReadable(G,["#fff","#000"],O))};var nt=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"},$e=c.hexNames=qe(nt);function qe(G){var ie={};for(var O in G)G.hasOwnProperty(O)&&(ie[G[O]]=O);return ie}function kt(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function He(G,ie){ct(G)&&(G="100%");var O=et(G);return G=o(ie,l(0,parseFloat(G))),O&&(G=parseInt(G*ie,10)/100),t.abs(G-ie)<1e-6?1:G%ie/parseFloat(ie)}function be(G){return o(1,l(0,G))}function Ve(G){return parseInt(G,16)}function ct(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function et(G){return typeof G=="string"&&G.indexOf("%")!=-1}function pt(G){return G.length==1?"0"+G:""+G}function wt(G){return G<=1&&(G=G*100+"%"),G}function qt(G){return t.round(parseFloat(G)*255).toString(16)}function Vt(G){return Ve(G)/255}var Qe=function(){var G="[-\\+]?\\d+%?",ie="[-\\+]?\\d*\\.\\d+%?",O="(?:"+ie+")|(?:"+G+")",S="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",T="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?";return{CSS_UNIT:new RegExp(O),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 Et(G){return!!Qe.CSS_UNIT.exec(G)}function jt(G){G=G.replace(r,"").replace(n,"").toLowerCase();var ie=!1;if(nt[G])G=nt[G],ie=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var O;return(O=Qe.rgb.exec(G))?{r:O[1],g:O[2],b:O[3]}:(O=Qe.rgba.exec(G))?{r:O[1],g:O[2],b:O[3],a:O[4]}:(O=Qe.hsl.exec(G))?{h:O[1],s:O[2],l:O[3]}:(O=Qe.hsla.exec(G))?{h:O[1],s:O[2],l:O[3],a:O[4]}:(O=Qe.hsv.exec(G))?{h:O[1],s:O[2],v:O[3]}:(O=Qe.hsva.exec(G))?{h:O[1],s:O[2],v:O[3],a:O[4]}:(O=Qe.hex8.exec(G))?{r:Ve(O[1]),g:Ve(O[2]),b:Ve(O[3]),a:Vt(O[4]),format:ie?"name":"hex8"}:(O=Qe.hex6.exec(G))?{r:Ve(O[1]),g:Ve(O[2]),b:Ve(O[3]),format:ie?"name":"hex"}:(O=Qe.hex4.exec(G))?{r:Ve(O[1]+""+O[1]),g:Ve(O[2]+""+O[2]),b:Ve(O[3]+""+O[3]),a:Vt(O[4]+""+O[4]),format:ie?"name":"hex8"}:(O=Qe.hex3.exec(G))?{r:Ve(O[1]+""+O[1]),g:Ve(O[2]+""+O[2]),b:Ve(O[3]+""+O[3]),format:ie?"name":"hex"}:!1}function Ae(G){var ie,O;return G=G||{level:"AA",size:"small"},ie=(G.level||"AA").toUpperCase(),O=(G.size||"small").toLowerCase(),ie!=="AA"&&ie!=="AAA"&&(ie="AA"),O!=="small"&&O!=="large"&&(O="small"),{level:ie,size:O}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(cG);var hG=dG;function dG(){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 pG=vG;function vG(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 mG=gG;function gG(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 mR=yG;function yG(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 xG=_G;function _G(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var wG=bG;function bG(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],p=t[8],x=t[9],g=t[10],y=t[11],C=t[12],P=t[13],b=t[14],_=t[15],E=r*l-n*o,k=r*s-i*o,F=r*c-a*o,I=n*s-i*l,$=n*c-a*l,ne=i*c-a*s,V=p*P-x*C,ae=p*b-g*C,Ce=p*_-y*C,Oe=x*b-g*P,Pe=x*_-y*P,De=g*_-y*b,Ue=E*De-k*Pe+F*Oe+I*Ce-$*ae+ne*V;return Ue?(Ue=1/Ue,e[0]=(l*De-s*Pe+c*Oe)*Ue,e[1]=(i*Pe-n*De-a*Oe)*Ue,e[2]=(P*ne-b*$+_*I)*Ue,e[3]=(g*$-x*ne-y*I)*Ue,e[4]=(s*Ce-o*De-c*ae)*Ue,e[5]=(r*De-i*Ce+a*ae)*Ue,e[6]=(b*F-C*ne-_*k)*Ue,e[7]=(p*ne-g*F+y*k)*Ue,e[8]=(o*Pe-l*Ce+c*V)*Ue,e[9]=(n*Ce-r*Pe-a*V)*Ue,e[10]=(C*$-P*F+_*E)*Ue,e[11]=(x*F-p*$-y*E)*Ue,e[12]=(l*ae-o*Oe-s*V)*Ue,e[13]=(r*Oe-n*ae+i*V)*Ue,e[14]=(P*k-C*I-b*E)*Ue,e[15]=(p*I-x*k+g*E)*Ue,e):null}var SG=EG;function EG(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],p=t[8],x=t[9],g=t[10],y=t[11],C=t[12],P=t[13],b=t[14],_=t[15];return e[0]=l*(g*_-y*b)-x*(s*_-c*b)+P*(s*y-c*g),e[1]=-(n*(g*_-y*b)-x*(i*_-a*b)+P*(i*y-a*g)),e[2]=n*(s*_-c*b)-l*(i*_-a*b)+P*(i*c-a*s),e[3]=-(n*(s*y-c*g)-l*(i*y-a*g)+x*(i*c-a*s)),e[4]=-(o*(g*_-y*b)-p*(s*_-c*b)+C*(s*y-c*g)),e[5]=r*(g*_-y*b)-p*(i*_-a*b)+C*(i*y-a*g),e[6]=-(r*(s*_-c*b)-o*(i*_-a*b)+C*(i*c-a*s)),e[7]=r*(s*y-c*g)-o*(i*y-a*g)+p*(i*c-a*s),e[8]=o*(x*_-y*P)-p*(l*_-c*P)+C*(l*y-c*x),e[9]=-(r*(x*_-y*P)-p*(n*_-a*P)+C*(n*y-a*x)),e[10]=r*(l*_-c*P)-o*(n*_-a*P)+C*(n*c-a*l),e[11]=-(r*(l*y-c*x)-o*(n*y-a*x)+p*(n*c-a*l)),e[12]=-(o*(x*b-g*P)-p*(l*b-s*P)+C*(l*g-s*x)),e[13]=r*(x*b-g*P)-p*(n*b-i*P)+C*(n*g-i*x),e[14]=-(r*(l*b-s*P)-o*(n*b-i*P)+C*(n*s-i*l)),e[15]=r*(l*g-s*x)-o*(n*g-i*x)+p*(n*s-i*l),e}var AG=TG;function TG(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],c=e[8],p=e[9],x=e[10],g=e[11],y=e[12],C=e[13],P=e[14],b=e[15],_=t*o-r*a,E=t*l-n*a,k=t*s-i*a,F=r*l-n*o,I=r*s-i*o,$=n*s-i*l,ne=c*C-p*y,V=c*P-x*y,ae=c*b-g*y,Ce=p*P-x*C,Oe=p*b-g*C,Pe=x*b-g*P;return _*Pe-E*Oe+k*Ce+F*ae-I*V+$*ne}var CG=OG;function OG(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],c=t[6],p=t[7],x=t[8],g=t[9],y=t[10],C=t[11],P=t[12],b=t[13],_=t[14],E=t[15],k=r[0],F=r[1],I=r[2],$=r[3];return e[0]=k*n+F*l+I*x+$*P,e[1]=k*i+F*s+I*g+$*b,e[2]=k*a+F*c+I*y+$*_,e[3]=k*o+F*p+I*C+$*E,k=r[4],F=r[5],I=r[6],$=r[7],e[4]=k*n+F*l+I*x+$*P,e[5]=k*i+F*s+I*g+$*b,e[6]=k*a+F*c+I*y+$*_,e[7]=k*o+F*p+I*C+$*E,k=r[8],F=r[9],I=r[10],$=r[11],e[8]=k*n+F*l+I*x+$*P,e[9]=k*i+F*s+I*g+$*b,e[10]=k*a+F*c+I*y+$*_,e[11]=k*o+F*p+I*C+$*E,k=r[12],F=r[13],I=r[14],$=r[15],e[12]=k*n+F*l+I*x+$*P,e[13]=k*i+F*s+I*g+$*b,e[14]=k*a+F*c+I*y+$*_,e[15]=k*o+F*p+I*C+$*E,e}var kG=MG;function MG(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,c,p,x,g,y,C,P,b,_;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],c=t[3],p=t[4],x=t[5],g=t[6],y=t[7],C=t[8],P=t[9],b=t[10],_=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=c,e[4]=p,e[5]=x,e[6]=g,e[7]=y,e[8]=C,e[9]=P,e[10]=b,e[11]=_,e[12]=o*n+p*i+C*a+t[12],e[13]=l*n+x*i+P*a+t[13],e[14]=s*n+g*i+b*a+t[14],e[15]=c*n+y*i+_*a+t[15]),e}var RG=PG;function PG(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 FG=NG;function NG(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,c,p,x,g,y,C,P,b,_,E,k,F,I,$,ne,V,ae,Ce,Oe,Pe,De,Ue,ft;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),c=Math.cos(r),p=1-c,x=t[0],g=t[1],y=t[2],C=t[3],P=t[4],b=t[5],_=t[6],E=t[7],k=t[8],F=t[9],I=t[10],$=t[11],ne=i*i*p+c,V=a*i*p+o*s,ae=o*i*p-a*s,Ce=i*a*p-o*s,Oe=a*a*p+c,Pe=o*a*p+i*s,De=i*o*p+a*s,Ue=a*o*p-i*s,ft=o*o*p+c,e[0]=x*ne+P*V+k*ae,e[1]=g*ne+b*V+F*ae,e[2]=y*ne+_*V+I*ae,e[3]=C*ne+E*V+$*ae,e[4]=x*Ce+P*Oe+k*Pe,e[5]=g*Ce+b*Oe+F*Pe,e[6]=y*Ce+_*Oe+I*Pe,e[7]=C*Ce+E*Oe+$*Pe,e[8]=x*De+P*Ue+k*ft,e[9]=g*De+b*Ue+F*ft,e[10]=y*De+_*Ue+I*ft,e[11]=C*De+E*Ue+$*ft,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var IG=LG;function LG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],c=t[8],p=t[9],x=t[10],g=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]=o*i+p*n,e[6]=l*i+x*n,e[7]=s*i+g*n,e[8]=c*i-a*n,e[9]=p*i-o*n,e[10]=x*i-l*n,e[11]=g*i-s*n,e}var $G=DG;function DG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[8],p=t[9],x=t[10],g=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]=o*i-p*n,e[2]=l*i-x*n,e[3]=s*i-g*n,e[8]=a*n+c*i,e[9]=o*n+p*i,e[10]=l*n+x*i,e[11]=s*n+g*i,e}var BG=zG;function zG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[4],p=t[5],x=t[6],g=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]=o*i+p*n,e[2]=l*i+x*n,e[3]=s*i+g*n,e[4]=c*i-a*n,e[5]=p*i-o*n,e[6]=x*i-l*n,e[7]=g*i-s*n,e}var UG=jG;function jG(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,o*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var GG=HG;function HG(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,c=a+a,p=n*l,x=n*s,g=n*c,y=i*s,C=i*c,P=a*c,b=o*l,_=o*s,E=o*c;return e[0]=1-(y+P),e[1]=x+E,e[2]=g-_,e[3]=0,e[4]=x-E,e[5]=1-(p+P),e[6]=C+b,e[7]=0,e[8]=g+_,e[9]=C-b,e[10]=1-(p+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var qG=WG;function WG(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 VG=YG;function YG(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 XG=QG;function QG(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 ZG=KG;function KG(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 JG=eH;function eH(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 tH=rH;function rH(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,c=r*o,p=n*o,x=n*l,g=i*o,y=i*l,C=i*s,P=a*o,b=a*l,_=a*s;return e[0]=1-x-C,e[1]=p+_,e[2]=g-b,e[3]=0,e[4]=p-_,e[5]=1-c-C,e[6]=y+P,e[7]=0,e[8]=g+b,e[9]=y-P,e[10]=1-c-x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var nH=iH;function iH(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),c=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}var aH=oH;function oH(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var uH=lH;function lH(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),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]=-((o-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 fH=sH;function sH(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),c=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*c,e[15]=1,e}var cH=mR,hH=dH;function dH(e,t,r,n){var i,a,o,l,s,c,p,x,g,y,C=t[0],P=t[1],b=t[2],_=n[0],E=n[1],k=n[2],F=r[0],I=r[1],$=r[2];return Math.abs(C-F)<1e-6&&Math.abs(P-I)<1e-6&&Math.abs(b-$)<1e-6?cH(e):(p=C-F,x=P-I,g=b-$,y=1/Math.sqrt(p*p+x*x+g*g),p*=y,x*=y,g*=y,i=E*g-k*x,a=k*p-_*g,o=_*x-E*p,y=Math.sqrt(i*i+a*a+o*o),y?(y=1/y,i*=y,a*=y,o*=y):(i=0,a=0,o=0),l=x*o-g*a,s=g*i-p*o,c=p*a-x*i,y=Math.sqrt(l*l+s*s+c*c),y?(y=1/y,l*=y,s*=y,c*=y):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=p,e[3]=0,e[4]=a,e[5]=s,e[6]=x,e[7]=0,e[8]=o,e[9]=c,e[10]=g,e[11]=0,e[12]=-(i*C+a*P+o*b),e[13]=-(l*C+s*P+c*b),e[14]=-(p*C+x*P+g*b),e[15]=1,e)}var pH=vH;function vH(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 mK={create:hG,clone:pG,copy:mG,identity:mR,transpose:xG,invert:wG,adjoint:SG,determinant:AG,multiply:CG,translate:kG,scale:RG,rotate:FG,rotateX:IG,rotateY:$G,rotateZ:BG,fromRotation:UG,fromRotationTranslation:GG,fromScaling:qG,fromTranslation:VG,fromXRotation:XG,fromYRotation:ZG,fromZRotation:JG,fromQuat:tH,frustum:nH,perspective:aH,perspectiveFromFieldOfView:uH,ortho:fH,lookAt:hH,str:pH},gm={},mH={get exports(){return gm},set exports(e){gm=e}};mH.exports=Vb;gm.isMobile=Vb;gm.default=Vb;const gH=/(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,yH=/CrOS/,xH=/android|ipad|playbook|silk/i;function Vb(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=gH.test(t)&&!yH.test(t)||!!e.tablet&&xH.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var _H=!0,wH=_H,Bw;typeof tr.matchMedia=="function"?Bw=!tr.matchMedia("(hover: none)").matches:Bw=wH;var gK=Bw,zw={},bH={get exports(){return zw},set exports(e){zw=e}},Yf=typeof Reflect=="object"?Reflect:null,fT=Yf&&typeof Yf.apply=="function"?Yf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},g0;Yf&&typeof Yf.ownKeys=="function"?g0=Yf.ownKeys:Object.getOwnPropertySymbols?g0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:g0=function(t){return Object.getOwnPropertyNames(t)};function SH(e){console&&console.warn&&console.warn(e)}var gR=Number.isNaN||function(t){return t!==t};function Tr(){Tr.init.call(this)}bH.exports=Tr;zw.once=CH;Tr.EventEmitter=Tr;Tr.prototype._events=void 0;Tr.prototype._eventsCount=0;Tr.prototype._maxListeners=void 0;var sT=10;function pg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tr,"defaultMaxListeners",{enumerable:!0,get:function(){return sT},set:function(e){if(typeof e!="number"||e<0||gR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");sT=e}});Tr.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};Tr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gR(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 yR(e){return e._maxListeners===void 0?Tr.defaultMaxListeners:e._maxListeners}Tr.prototype.getMaxListeners=function(){return yR(this)};Tr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")fT(s,this,r);else for(var c=s.length,p=SR(s,c),n=0;n<c;++n)fT(p[n],this,r);return!0};function xR(e,t,r,n){var i,a,o;if(pg(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=yR(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,SH(l)}return e}Tr.prototype.addListener=function(t,r){return xR(this,t,r,!1)};Tr.prototype.on=Tr.prototype.addListener;Tr.prototype.prependListener=function(t,r){return xR(this,t,r,!0)};function EH(){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 _R(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=EH.bind(n);return i.listener=r,n.wrapFn=i,i}Tr.prototype.once=function(t,r){return pg(r),this.on(t,_R(this,t,r)),this};Tr.prototype.prependOnceListener=function(t,r){return pg(r),this.prependListener(t,_R(this,t,r)),this};Tr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(pg(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():AH(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Tr.prototype.off=Tr.prototype.removeListener;Tr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wR(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?TH(i):SR(i,i.length)}Tr.prototype.listeners=function(t){return wR(this,t,!0)};Tr.prototype.rawListeners=function(t){return wR(this,t,!1)};Tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bR.call(e,t)};Tr.prototype.listenerCount=bR;function bR(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}Tr.prototype.eventNames=function(){return this._eventsCount>0?g0(this._events):[]};function SR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function AH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function TH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function CH(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}ER(e,t,a,{once:!0}),t!=="error"&&OH(e,i,{once:!0})})}function OH(e,t,r){typeof e.on=="function"&&ER(e,"error",t,r)}function ER(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 AR=MH,yx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},kH=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function MH(e){var t=[];return e.replace(kH,function(r,n,i){var a=n.toLowerCase();for(i=PH(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==yx[a])return i.unshift(n),t.push(i);if(i.length<yx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,yx[a])))}}),t}var RH=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function PH(e){var t=e.match(RH);return t?t.map(Number):[]}var FH={left:0,top:0},yK=NH;function NH(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=IH(t);return r[0]=n-a.left,r[1]=i-a.top,r}function IH(e){return e===window||e===document||e===document.body?FH:e.getBoundingClientRect()}function LH(){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 xK=LH();function $H(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var DH=$H;function BH(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],c=r[0],p=r[1];return(l-a)*(p-o)-(s-o)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*o+a*s;if(c<e)return!1;var p=o*o+s*s;return!(c-p>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],p=o*c-l*s;if(Math.abs(p)<e)return!1;var x=r[0]-i[0],g=r[1]-i[1],y=(s*g-c*x)/p,C=(o*g-l*x)/p,P={alongA:0,alongB:0,pt:[r[0]+y*o,r[1]+y*l]};return y<=-e?P.alongA=-2:y<e?P.alongA=-1:y-1<=-e?P.alongA=0:y-1<e?P.alongA=1:P.alongA=2,C<=-e?P.alongB=-2:C<e?P.alongB=-1:C-1<=-e?P.alongB=0:C-1<e?P.alongB=1:P.alongB=2,P},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var p=n[c][0],x=n[c][1];x-a>e!=l-a>e&&(o-p)*(a-x)/(l-x)+p-i>e&&(s=!s),o=p,l=x}return s}};return t}var zH=BH,UH={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}},jH=UH,Zc=jH;function GH(e,t,r){function n(C,P){return{id:r?r.segmentId():-1,start:C,end:P,myFill:{above:null,below:null},otherFill:null}}function i(C,P,b){return{id:r?r.segmentId():-1,start:C,end:P,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=Zc.create();function o(C,P,b,_,E,k){var F=t.pointsCompare(P,E);return F!==0?F:t.pointsSame(b,k)?0:C!==_?C?1:-1:t.pointAboveOrOnLine(b,_?E:k,_?k:E)?1:-1}function l(C,P){a.insertBefore(C,function(b){var _=o(C.isStart,C.pt,P,b.isStart,b.pt,b.other.pt);return _<0})}function s(C,P){var b=Zc.node({isStart:!0,pt:C.start,seg:C,primary:P,other:null,status:null});return l(b,C.end),b}function c(C,P,b){var _=Zc.node({isStart:!1,pt:P.end,seg:P,primary:b,other:C,status:null});C.other=_,l(_,C.pt)}function p(C,P){var b=s(C,P);return c(b,C,P),b}function x(C,P){r&&r.segmentChop(C.seg,P),C.other.remove(),C.seg.end=P,C.other.pt=P,l(C.other,C.pt)}function g(C,P){var b=i(P,C.seg.end,C.seg);return x(C,P),p(b,C.primary)}function y(C,P){var b=Zc.create();function _(Ue,ft){var nt=Ue.seg.start,$e=Ue.seg.end,qe=ft.seg.start,kt=ft.seg.end;return t.pointsCollinear(nt,qe,kt)?t.pointsCollinear($e,qe,kt)||t.pointAboveOrOnLine($e,qe,kt)?1:-1:t.pointAboveOrOnLine(nt,qe,kt)?1:-1}function E(Ue){return b.findTransition(function(ft){var nt=_(Ue,ft.ev);return nt>0})}function k(Ue,ft){var nt=Ue.seg,$e=ft.seg,qe=nt.start,kt=nt.end,He=$e.start,be=$e.end;r&&r.checkIntersection(nt,$e);var Ve=t.linesIntersect(qe,kt,He,be);if(Ve===!1){if(!t.pointsCollinear(qe,kt,He)||t.pointsSame(qe,be)||t.pointsSame(kt,He))return!1;var ct=t.pointsSame(qe,He),et=t.pointsSame(kt,be);if(ct&&et)return ft;var pt=!ct&&t.pointBetween(qe,He,be),wt=!et&&t.pointBetween(kt,He,be);if(ct)return wt?g(ft,kt):g(Ue,be),ft;pt&&(et||(wt?g(ft,kt):g(Ue,be)),g(ft,qe))}else Ve.alongA===0&&(Ve.alongB===-1?g(Ue,He):Ve.alongB===0?g(Ue,Ve.pt):Ve.alongB===1&&g(Ue,be)),Ve.alongB===0&&(Ve.alongA===-1?g(ft,qe):Ve.alongA===0?g(ft,Ve.pt):Ve.alongA===1&&g(ft,kt));return!1}for(var F=[];!a.isEmpty();){var I=a.getHead();if(r&&r.vert(I.pt[0]),I.isStart){let Ue=function(){if(ne){var ft=k(I,ne);if(ft)return ft}return V?k(I,V):!1};r&&r.segmentNew(I.seg,I.primary);var $=E(I),ne=$.before?$.before.ev:null,V=$.after?$.after.ev:null;r&&r.tempStatus(I.seg,ne?ne.seg:!1,V?V.seg:!1);var ae=Ue();if(ae){if(e){var Ce;I.seg.myFill.below===null?Ce=!0:Ce=I.seg.myFill.above!==I.seg.myFill.below,Ce&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=I.seg.myFill;r&&r.segmentUpdate(ae.seg),I.other.remove(),I.remove()}if(a.getHead()!==I){r&&r.rewind(I.seg);continue}if(e){var Ce;I.seg.myFill.below===null?Ce=!0:Ce=I.seg.myFill.above!==I.seg.myFill.below,V?I.seg.myFill.below=V.seg.myFill.above:I.seg.myFill.below=C,Ce?I.seg.myFill.above=!I.seg.myFill.below:I.seg.myFill.above=I.seg.myFill.below}else if(I.seg.otherFill===null){var Oe;V?I.primary===V.primary?Oe=V.seg.otherFill.above:Oe=V.seg.myFill.above:Oe=I.primary?P:C,I.seg.otherFill={above:Oe,below:Oe}}r&&r.status(I.seg,ne?ne.seg:!1,V?V.seg:!1),I.other.status=$.insert(Zc.node({ev:I}))}else{var Pe=I.status;if(Pe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(Pe.prev)&&b.exists(Pe.next)&&k(Pe.prev.ev,Pe.next.ev),r&&r.statusRemove(Pe.ev.seg),Pe.remove(),!I.primary){var De=I.seg.myFill;I.seg.myFill=I.seg.otherFill,I.seg.otherFill=De}F.push(I.seg)}a.getHead().remove()}return r&&r.done(),F}return e?{addRegion:function(C){for(var P,b=C[C.length-1],_=0;_<C.length;_++){P=b,b=C[_];var E=t.pointsCompare(P,b);E!==0&&p(n(E<0?P:b,E<0?b:P),!0)}},calculate:function(C){return y(C,!1)}}:{calculate:function(C,P,b,_){return C.forEach(function(E){p(i(E.start,E.end,E),!0)}),b.forEach(function(E){p(i(E.start,E.end,E),!1)}),y(P,_)}}}var HH=GH;function qH(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},p=s;function x(Pe,De,Ue){return p.index=Pe,p.matches_head=De,p.matches_pt1=Ue,p===s?(p=c,!1):(p=null,!0)}for(var g=0;g<n.length;g++){var y=n[g],C=y[0];y[1];var P=y[y.length-1];if(y[y.length-2],t.pointsSame(C,o)){if(x(g,!0,!0))break}else if(t.pointsSame(C,l)){if(x(g,!0,!1))break}else if(t.pointsSame(P,o)){if(x(g,!1,!0))break}else if(t.pointsSame(P,l)&&x(g,!1,!1))break}if(p===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(p===c){r&&r.chainMatch(s.index);var b=s.index,_=s.matches_pt1?l:o,E=s.matches_head,y=n[b],k=E?y[0]:y[y.length-1],F=E?y[1]:y[y.length-2],I=E?y[y.length-1]:y[0],$=E?y[y.length-2]:y[1];if(t.pointsCollinear(F,k,_)&&(E?(r&&r.chainRemoveHead(s.index,_),y.shift()):(r&&r.chainRemoveTail(s.index,_),y.pop()),k=F),t.pointsSame(I,_)){n.splice(b,1),t.pointsCollinear($,I,k)&&(E?(r&&r.chainRemoveTail(s.index,k),y.pop()):(r&&r.chainRemoveHead(s.index,k),y.shift())),r&&r.chainClose(s.index),i.push(y);return}E?(r&&r.chainAddHead(s.index,_),y.unshift(_)):(r&&r.chainAddTail(s.index,_),y.push(_));return}function ne(Pe){r&&r.chainReverse(Pe),n[Pe].reverse()}function V(Pe,De){var Ue=n[Pe],ft=n[De],nt=Ue[Ue.length-1],$e=Ue[Ue.length-2],qe=ft[0],kt=ft[1];t.pointsCollinear($e,nt,qe)&&(r&&r.chainRemoveTail(Pe,nt),Ue.pop(),nt=$e),t.pointsCollinear(nt,qe,kt)&&(r&&r.chainRemoveHead(De,qe),ft.shift()),r&&r.chainJoin(Pe,De),n[Pe]=Ue.concat(ft),n.splice(De,1)}var ae=s.index,Ce=c.index;r&&r.chainConnect(ae,Ce);var Oe=n[ae].length<n[Ce].length;s.matches_head?c.matches_head?Oe?(ne(ae),V(ae,Ce)):(ne(Ce),V(Ce,ae)):V(Ce,ae):c.matches_head?V(ae,Ce):Oe?(ne(ae),V(Ce,ae)):(ne(Ce),V(ae,Ce))}),i}var WH=qH;function Kc(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 VH={union:function(e,t){return Kc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Kc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Kc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Kc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Kc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},YH=VH,XH={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(c){var p=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[p]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(y,C){return t.pointInsideRegion([(y[0][0]+y[1][0])*.5,(y[0][1]+y[1][1])*.5],C)}function i(y){return{region:y,children:[]}}var a=i(null);function o(y,C){for(var P=0;P<y.children.length;P++){var b=y.children[P];if(n(C,b.region)){o(b,C);return}}for(var _=i(C),P=0;P<y.children.length;P++){var b=y.children[P];n(b.region,C)&&(_.children.push(b),y.children.splice(P,1),P--)}y.children.push(_)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function c(y,C){for(var P=0,b=y[y.length-1][0],_=y[y.length-1][1],E=[],k=0;k<y.length;k++){var F=y[k][0],I=y[k][1];E.push([F,I]),P+=I*b-F*_,b=F,_=I}var $=P<0;return $!==C&&E.reverse(),E.push([E[0][0],E[0][1]]),E}var p=[];function x(y){var C=[c(y.region,!1)];p.push(C);for(var P=0;P<y.children.length;P++)C.push(g(y.children[P]))}function g(y){for(var C=0;C<y.children.length;C++)x(y.children[C]);return c(y.region,!0)}for(var l=0;l<a.children.length;l++)x(a.children[l]);return p.length<=0?{type:"Polygon",coordinates:[]}:p.length==1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}},QH=XH;/*
830
+ `)};function w(N){return N.map(M).join(u)}function M(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return v},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var $l,mu,ri,Dl,ni=this[qe(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){no.apply(this,arguments)};function no(u,f,h){var d=arguments.length;d<2&&(f=0),d<3&&(h=Date.now());var v=h+f,m={c:u,t:v,n:null};return mu?mu.n=m:$l=m,mu=m,ri||(Dl=clearTimeout(Dl),ri=1,ni(io)),m}function io(){var u=Xi(),f=Bl()-u;f>24?(isFinite(f)&&(clearTimeout(Dl),Dl=setTimeout(io,f)),ri=0):(ri=1,ni(io))}t.timer.flush=function(){Xi(),Bl()};function Xi(){for(var u=Date.now(),f=$l;f;)u>=f.t&&f.c(u-f.t)&&(f.c=null),f=f.n;return u}function Bl(){for(var u,f=$l,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(u=f).n):f=u?u.n=f.n:$l=f.n;return mu=u,h}t.round=function(u,f){return f?Math.round(u*(f=Math.pow(10,f)))/f:Math.round(u)},t.geom={};function ki(u){return u[0]}function Mi(u){return u[1]}t.geom.hull=function(u){var f=ki,h=Mi;if(arguments.length)return d(u);function d(v){if(v.length<3)return[];var m=gr(f),A=gr(h),w,M=v.length,N=[],L=[];for(w=0;w<M;w++)N.push([+m.call(this,v[w],w),+A.call(this,v[w],w),w]);for(N.sort(ap),w=0;w<M;w++)L.push([N[w][0],-N[w][1]]);var B=gu(N),z=gu(L),re=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],j=[];for(w=B.length-1;w>=0;--w)j.push(v[N[B[w]][2]]);for(w=+re;w<z.length-oe;++w)j.push(v[N[z[w]][2]]);return j}return d.x=function(v){return arguments.length?(f=v,d):f},d.y=function(v){return arguments.length?(h=v,d):h},d};function gu(u){for(var f=u.length,h=[0,1],d=2,v=2;v<f;v++){for(;d>1&&Bg(u[h[d-2]],u[h[d-1]],u[v])<=0;)--d;h[d++]=v}return h.slice(0,d)}function ap(u,f){return u[0]-f[0]||u[1]-f[1]}t.geom.polygon=function(u){return qt(u,ao),u};var ao=t.geom.polygon.prototype=[];ao.area=function(){for(var u=-1,f=this.length,h,d=this[f-1],v=0;++u<f;)h=d,d=this[u],v+=h[1]*d[0]-h[0]*d[1];return v*.5},ao.centroid=function(u){var f=-1,h=this.length,d=0,v=0,m,A=this[h-1],w;for(arguments.length||(u=-1/(6*this.area()));++f<h;)m=A,A=this[f],w=m[0]*A[1]-A[0]*m[1],d+=(m[0]+A[0])*w,v+=(m[1]+A[1])*w;return[d*u,v*u]},ao.clip=function(u){for(var f,h=op(u),d=-1,v=this.length-op(this),m,A,w=this[v-1],M,N,L;++d<v;){for(f=u.slice(),u.length=0,M=this[d],N=f[(A=f.length-h)-1],m=-1;++m<A;)L=f[m],zl(L,w,M)?(zl(N,w,M)||u.push(Ns(N,L,w,M)),u.push(L)):zl(N,w,M)&&u.push(Ns(N,L,w,M)),N=L;h&&u.push(u[0]),w=M}return u};function zl(u,f,h){return(h[0]-f[0])*(u[1]-f[1])<(h[1]-f[1])*(u[0]-f[0])}function Ns(u,f,h,d){var v=u[0],m=h[0],A=f[0]-v,w=d[0]-m,M=u[1],N=h[1],L=f[1]-M,B=d[1]-N,z=(w*(M-N)-B*(v-m))/(B*A-w*L);return[v+z*A,M+z*L]}function op(u){var f=u[0],h=u[u.length-1];return!(f[0]-h[0]||f[1]-h[1])}var oo,_a,Qi,yu=[],xu,wa,ba=[];function Is(){Gl(this),this.edge=this.site=this.circle=null}function Ul(u){var f=yu.pop()||new Is;return f.site=u,f}function _u(u){ii(u),Qi.remove(u),yu.push(u),Gl(u)}function Ls(u){var f=u.circle,h=f.x,d=f.cy,v={x:h,y:d},m=u.P,A=u.N,w=[u];_u(u);for(var M=m;M.circle&&E(h-M.circle.x)<ir&&E(d-M.circle.cy)<ir;)m=M.P,w.unshift(M),_u(M),M=m;w.unshift(M),ii(M);for(var N=A;N.circle&&E(h-N.circle.x)<ir&&E(d-N.circle.cy)<ir;)A=N.N,w.push(N),_u(N),N=A;w.push(N),ii(N);var L=w.length,B;for(B=1;B<L;++B)N=w[B],M=w[B-1],uo(N.edge,M.site,N.site,v);M=w[0],N=w[L-1],N.edge=bu(M.site,N.site,null,v),Sa(M),Sa(N)}function up(u){for(var f=u.x,h=u.y,d,v,m,A,w=Qi._;w;)if(m=$s(w,h)-f,m>ir)w=w.L;else if(A=f-lp(w,h),A>ir){if(!w.R){d=w;break}w=w.R}else{m>-ir?(d=w.P,v=w):A>-ir?(d=w,v=w.N):d=v=w;break}var M=Ul(u);if(Qi.insert(d,M),!(!d&&!v)){if(d===v){ii(d),v=Ul(d.site),Qi.insert(M,v),M.edge=v.edge=bu(d.site,M.site),Sa(d),Sa(v);return}if(!v){M.edge=bu(d.site,M.site);return}ii(d),ii(v);var N=d.site,L=N.x,B=N.y,z=u.x-L,re=u.y-B,oe=v.site,j=oe.x-L,Y=oe.y-B,K=2*(z*Y-re*j),ue=z*z+re*re,le=j*j+Y*Y,ee={x:(Y*ue-re*le)/K+L,y:(z*le-j*ue)/K+B};uo(v.edge,N,oe,ee),M.edge=bu(N,u,null,ee),v.edge=bu(u,oe,null,ee),Sa(d),Sa(v)}}function $s(u,f){var h=u.site,d=h.x,v=h.y,m=v-f;if(!m)return d;var A=u.P;if(!A)return-1/0;h=A.site;var w=h.x,M=h.y,N=M-f;if(!N)return w;var L=w-d,B=1/m-1/N,z=L/N;return B?(-z+Math.sqrt(z*z-2*B*(L*L/(-2*N)-M+N/2+v-m/2)))/B+d:(d+w)/2}function lp(u,f){var h=u.N;if(h)return $s(h,f);var d=u.site;return d.y===f?d.x:1/0}function Ds(u){this.site=u,this.edges=[]}Ds.prototype.prepare=function(){for(var u=this.edges,f=u.length,h;f--;)h=u[f].edge,(!h.b||!h.a)&&u.splice(f,1);return u.sort(Bs),u.length};function fp(u){for(var f=u[0][0],h=u[1][0],d=u[0][1],v=u[1][1],m,A,w,M,N=_a,L=N.length,B,z,re,oe,j,Y;L--;)if(B=N[L],!(!B||!B.prepare()))for(re=B.edges,oe=re.length,z=0;z<oe;)Y=re[z].end(),w=Y.x,M=Y.y,j=re[++z%oe].start(),m=j.x,A=j.y,(E(w-m)>ir||E(M-A)>ir)&&(re.splice(z,0,new jl(Gg(B.site,Y,E(w-f)<ir&&v-M>ir?{x:f,y:E(m-f)<ir?A:v}:E(M-v)<ir&&h-w>ir?{x:E(A-v)<ir?m:h,y:v}:E(w-h)<ir&&M-d>ir?{x:h,y:E(m-h)<ir?A:d}:E(M-d)<ir&&w-f>ir?{x:E(A-d)<ir?m:f,y:d}:null),B.site,null)),++oe)}function Bs(u,f){return f.angle-u.angle}function sp(){Gl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sa(u){var f=u.P,h=u.N;if(!(!f||!h)){var d=f.site,v=u.site,m=h.site;if(d!==m){var A=v.x,w=v.y,M=d.x-A,N=d.y-w,L=m.x-A,Y=m.y-w,B=2*(M*Y-N*L);if(!(B>=-Yd)){var z=M*M+N*N,re=L*L+Y*Y,oe=(Y*z-N*re)/B,j=(M*re-L*z)/B,Y=j+w,K=ba.pop()||new sp;K.arc=u,K.site=v,K.x=oe+A,K.y=Y+Math.sqrt(oe*oe+j*j),K.cy=Y,u.circle=K;for(var ue=null,le=wa._;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}wa.insert(ue,K),ue||(xu=K)}}}}function ii(u){var f=u.circle;f&&(f.P||(xu=f.N),wa.remove(f),ba.push(f),Gl(f),u.circle=null)}function zs(u,f,h,d){return function(v){var m=v.a,A=v.b,w=m.x,M=m.y,N=A.x,L=A.y,B=0,z=1,re=N-w,oe=L-M,j;if(j=u-w,!(!re&&j>0)){if(j/=re,re<0){if(j<B)return;j<z&&(z=j)}else if(re>0){if(j>z)return;j>B&&(B=j)}if(j=h-w,!(!re&&j<0)){if(j/=re,re<0){if(j>z)return;j>B&&(B=j)}else if(re>0){if(j<B)return;j<z&&(z=j)}if(j=f-M,!(!oe&&j>0)){if(j/=oe,oe<0){if(j<B)return;j<z&&(z=j)}else if(oe>0){if(j>z)return;j>B&&(B=j)}if(j=d-M,!(!oe&&j<0)){if(j/=oe,oe<0){if(j>z)return;j>B&&(B=j)}else if(oe>0){if(j<B)return;j<z&&(z=j)}return B>0&&(v.a={x:w+B*re,y:M+B*oe}),z<1&&(v.b={x:w+z*re,y:M+z*oe}),v}}}}}}function Us(u){for(var f=oo,h=zs(u[0][0],u[0][1],u[1][0],u[1][1]),d=f.length,v;d--;)v=f[d],(!wu(v,u)||!h(v)||E(v.a.x-v.b.x)<ir&&E(v.a.y-v.b.y)<ir)&&(v.a=v.b=null,f.splice(d,1))}function wu(u,f){var h=u.b;if(h)return!0;var d=u.a,v=f[0][0],m=f[1][0],A=f[0][1],w=f[1][1],M=u.l,N=u.r,L=M.x,B=M.y,z=N.x,re=N.y,oe=(L+z)/2,j=(B+re)/2,Y,K;if(re===B){if(oe<v||oe>=m)return;if(L>z){if(!d)d={x:oe,y:A};else if(d.y>=w)return;h={x:oe,y:w}}else{if(!d)d={x:oe,y:w};else if(d.y<A)return;h={x:oe,y:A}}}else if(Y=(L-z)/(re-B),K=j-Y*oe,Y<-1||Y>1)if(L>z){if(!d)d={x:(A-K)/Y,y:A};else if(d.y>=w)return;h={x:(w-K)/Y,y:w}}else{if(!d)d={x:(w-K)/Y,y:w};else if(d.y<A)return;h={x:(A-K)/Y,y:A}}else if(B<re){if(!d)d={x:v,y:Y*v+K};else if(d.x>=m)return;h={x:m,y:Y*m+K}}else{if(!d)d={x:m,y:Y*m+K};else if(d.x<v)return;h={x:v,y:Y*v+K}}return u.a=d,u.b=h,!0}function cp(u,f){this.l=u,this.r=f,this.a=this.b=null}function bu(u,f,h,d){var v=new cp(u,f);return oo.push(v),h&&uo(v,u,f,h),d&&uo(v,f,u,d),_a[u.i].edges.push(new jl(v,u,f)),_a[f.i].edges.push(new jl(v,f,u)),v}function Gg(u,f,h){var d=new cp(u,null);return d.a=f,d.b=h,oo.push(d),d}function uo(u,f,h,d){!u.a&&!u.b?(u.a=d,u.l=f,u.r=h):u.l===h?u.b=d:u.a=d}function jl(u,f,h){var d=u.a,v=u.b;this.edge=u,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):u.l===f?Math.atan2(v.x-d.x,d.y-v.y):Math.atan2(d.x-v.x,v.y-d.y)}jl.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 js(){this._=null}function Gl(u){u.U=u.C=u.L=u.R=u.P=u.N=null}js.prototype={insert:function(u,f){var h,d,v;if(u){if(f.P=u,f.N=u.N,u.N&&(u.N.P=f),u.N=f,u.R){for(u=u.R;u.L;)u=u.L;u.L=f}else u.R=f;h=u}else this._?(u=Hl(this._),f.P=null,f.N=u,u.P=u.L=f,h=u):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,u=f;h&&h.C;)d=h.U,h===d.L?(v=d.R,v&&v.C?(h.C=v.C=!1,d.C=!0,u=d):(u===h.R&&(Ea(this,h),u=h,h=u.U),h.C=!1,d.C=!0,Su(this,d))):(v=d.L,v&&v.C?(h.C=v.C=!1,d.C=!0,u=d):(u===h.L&&(Su(this,h),u=h,h=u.U),h.C=!1,d.C=!0,Ea(this,d))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var f=u.U,h,d=u.L,v=u.R,m,A;if(d?v?m=Hl(v):m=d:m=v,f?f.L===u?f.L=m:f.R=m:this._=m,d&&v?(A=m.C,m.C=u.C,m.L=d,d.U=m,m!==v?(f=m.U,m.U=u.U,u=m.R,f.L=u,m.R=v,v.U=m):(m.U=f,f=m,u=m.R)):(A=u.C,u=m),u&&(u.U=f),!A){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,Ea(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,Su(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,Ea(this,f),u=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,Su(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,Ea(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,Su(this,f),u=this._;break}h.C=!0,u=f,f=f.U}while(!u.C);u&&(u.C=!1)}}};function Ea(u,f){var h=f,d=f.R,v=h.U;v?v.L===h?v.L=d:v.R=d:u._=d,d.U=v,h.U=d,h.R=d.L,h.R&&(h.R.U=h),d.L=h}function Su(u,f){var h=f,d=f.L,v=h.U;v?v.L===h?v.L=d:v.R=d:u._=d,d.U=v,h.U=d,h.L=d.R,h.L&&(h.L.U=h),d.R=h}function Hl(u){for(;u.L;)u=u.L;return u}function ql(u,f){var h=u.sort(hp).pop(),d,v,m;for(oo=[],_a=new Array(u.length),Qi=new js,wa=new js;;)if(m=xu,h&&(!m||h.y<m.y||h.y===m.y&&h.x<m.x))(h.x!==d||h.y!==v)&&(_a[h.i]=new Ds(h),up(h),d=h.x,v=h.y),h=u.pop();else if(m)Ls(m.arc);else break;f&&(Us(f),fp(f));var A={cells:_a,edges:oo};return Qi=wa=oo=_a=null,A}function hp(u,f){return f.y-u.y||f.x-u.x}t.geom.voronoi=function(u){var f=ki,h=Mi,d=f,v=h,m=lo;if(u)return A(u);function A(M){var N=new Array(M.length),L=m[0][0],B=m[0][1],z=m[1][0],re=m[1][1];return ql(w(M),m).cells.forEach(function(oe,j){var Y=oe.edges,K=oe.site,ue=N[j]=Y.length?Y.map(function(le){var ee=le.start();return[ee.x,ee.y]}):K.x>=L&&K.x<=z&&K.y>=B&&K.y<=re?[[L,re],[z,re],[z,B],[L,B]]:[];ue.point=M[j]}),N}function w(M){return M.map(function(N,L){return{x:Math.round(d(N,L)/ir)*ir,y:Math.round(v(N,L)/ir)*ir,i:L}})}return A.links=function(M){return ql(w(M)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:M[N.l.i],target:M[N.r.i]}})},A.triangles=function(M){var N=[];return ql(w(M)).cells.forEach(function(L,B){for(var z=L.site,re=L.edges.sort(Bs),oe=-1,j=re.length,Y,K=re[j-1].edge,ue=K.l===z?K.r:K.l;++oe<j;)Y=ue,K=re[oe].edge,ue=K.l===z?K.r:K.l,B<Y.i&&B<ue.i&&Hg(z,Y,ue)<0&&N.push([M[B],M[Y.i],M[ue.i]])}),N},A.x=function(M){return arguments.length?(d=gr(f=M),A):f},A.y=function(M){return arguments.length?(v=gr(h=M),A):h},A.clipExtent=function(M){return arguments.length?(m=M??lo,A):m===lo?null:m},A.size=function(M){return arguments.length?A.clipExtent(M&&[[0,0],M]):m===lo?null:m&&m[1]},A};var lo=[[-1e6,-1e6],[1e6,1e6]];function Hg(u,f,h){return(u.x-h.x)*(f.y-u.y)-(u.x-f.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,f,h,d,v){var m=ki,A=Mi,w;if(w=arguments.length)return m=Wl,A=qg,w===3&&(v=h,d=f,h=f=0),M(u);function M(N){var L,B=gr(m),z=gr(A),re,oe,j,Y,K,ue,le,ee;if(f!=null)K=f,ue=h,le=d,ee=v;else if(le=ee=-(K=ue=1/0),re=[],oe=[],Y=N.length,w)for(j=0;j<Y;++j)L=N[j],L.x<K&&(K=L.x),L.y<ue&&(ue=L.y),L.x>le&&(le=L.x),L.y>ee&&(ee=L.y),re.push(L.x),oe.push(L.y);else for(j=0;j<Y;++j){var Re=+B(L=N[j],j),ze=+z(L,j);Re<K&&(K=Re),ze<ue&&(ue=ze),Re>le&&(le=Re),ze>ee&&(ee=ze),re.push(Re),oe.push(ze)}var tt=le-K,je=ee-ue;tt>je?ee=ue+tt:le=K+je;function at(xt,zt,ar,Mr,dr,rt,Ht,Yt){if(!(isNaN(ar)||isNaN(Mr)))if(xt.leaf){var or=xt.x,Er=xt.y;if(or!=null)if(E(or-ar)+E(Er-Mr)<.01)vt(xt,zt,ar,Mr,dr,rt,Ht,Yt);else{var Br=xt.point;xt.x=xt.y=xt.point=null,vt(xt,Br,or,Er,dr,rt,Ht,Yt),vt(xt,zt,ar,Mr,dr,rt,Ht,Yt)}else xt.x=ar,xt.y=Mr,xt.point=zt}else vt(xt,zt,ar,Mr,dr,rt,Ht,Yt)}function vt(xt,zt,ar,Mr,dr,rt,Ht,Yt){var or=(dr+Ht)*.5,Er=(rt+Yt)*.5,Br=ar>=or,Yr=Mr>=Er,hn=Yr<<1|Br;xt.leaf=!1,xt=xt.nodes[hn]||(xt.nodes[hn]=dp()),Br?dr=or:Ht=or,Yr?rt=Er:Yt=Er,at(xt,zt,ar,Mr,dr,rt,Ht,Yt)}var Gt=dp();if(Gt.add=function(xt){at(Gt,xt,+B(xt,++j),+z(xt,j),K,ue,le,ee)},Gt.visit=function(xt){Eu(xt,Gt,K,ue,le,ee)},Gt.find=function(xt){return Wg(Gt,xt[0],xt[1],K,ue,le,ee)},j=-1,f==null){for(;++j<Y;)at(Gt,N[j],re[j],oe[j],K,ue,le,ee);--j}else N.forEach(Gt.add);return re=oe=N=L=null,Gt}return M.x=function(N){return arguments.length?(m=N,M):m},M.y=function(N){return arguments.length?(A=N,M):A},M.extent=function(N){return arguments.length?(N==null?f=h=d=v=null:(f=+N[0][0],h=+N[0][1],d=+N[1][0],v=+N[1][1]),M):f==null?null:[[f,h],[d,v]]},M.size=function(N){return arguments.length?(N==null?f=h=d=v=null:(f=h=0,d=+N[0],v=+N[1]),M):f==null?null:[d-f,v-h]},M};function Wl(u){return u.x}function qg(u){return u.y}function dp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Eu(u,f,h,d,v,m){if(!u(f,h,d,v,m)){var A=(h+v)*.5,w=(d+m)*.5,M=f.nodes;M[0]&&Eu(u,M[0],h,d,A,w),M[1]&&Eu(u,M[1],A,d,v,w),M[2]&&Eu(u,M[2],h,w,A,m),M[3]&&Eu(u,M[3],A,w,v,m)}}function Wg(u,f,h,d,v,m,A){var w=1/0,M;return function N(L,B,z,re,oe){if(!(B>m||z>A||re<d||oe<v)){if(j=L.point){var j,Y=f-L.x,K=h-L.y,ue=Y*Y+K*K;if(ue<w){var le=Math.sqrt(w=ue);d=f-le,v=h-le,m=f+le,A=h+le,M=j}}for(var ee=L.nodes,Re=(B+re)*.5,ze=(z+oe)*.5,tt=f>=Re,je=h>=ze,at=je<<1|tt,vt=at+4;at<vt;++at)if(L=ee[at&3])switch(at&3){case 0:N(L,B,z,Re,ze);break;case 1:N(L,Re,z,re,ze);break;case 2:N(L,B,ze,Re,oe);break;case 3:N(L,Re,ze,re,oe);break}}}(u,d,v,m,A),M}t.interpolateRgb=Gs;function Gs(u,f){u=t.rgb(u),f=t.rgb(f);var h=u.r,d=u.g,v=u.b,m=f.r-h,A=f.g-d,w=f.b-v;return function(M){return"#"+to(Math.round(h+m*M))+to(Math.round(d+A*M))+to(Math.round(v+w*M))}}t.interpolateObject=pp;function pp(u,f){var h={},d={},v;for(v in u)v in f?h[v]=mi(u[v],f[v]):d[v]=u[v];for(v in f)v in u||(d[v]=f[v]);return function(m){for(v in h)d[v]=h[v](m);return d}}t.interpolateNumber=Ri;function Ri(u,f){return u=+u,f=+f,function(h){return u*(1-h)+f*h}}t.interpolateString=Hs;function Hs(u,f){var h=Aa.lastIndex=qs.lastIndex=0,d,v,m,A=-1,w=[],M=[];for(u=u+"",f=f+"";(d=Aa.exec(u))&&(v=qs.exec(f));)(m=v.index)>h&&(m=f.slice(h,m),w[A]?w[A]+=m:w[++A]=m),(d=d[0])===(v=v[0])?w[A]?w[A]+=v:w[++A]=v:(w[++A]=null,M.push({i:A,x:Ri(d,v)})),h=qs.lastIndex;return h<f.length&&(m=f.slice(h),w[A]?w[A]+=m:w[++A]=m),w.length<2?M[0]?(f=M[0].x,function(N){return f(N)+""}):function(){return f}:(f=M.length,function(N){for(var L=0,B;L<f;++L)w[(B=M[L]).i]=B.x(N);return w.join("")})}var Aa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qs=new RegExp(Aa.source,"g");t.interpolate=mi;function mi(u,f){for(var h=t.interpolators.length,d;--h>=0&&!(d=t.interpolators[h](u,f)););return d}t.interpolators=[function(u,f){var h=typeof f;return(h==="string"?ro.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?Gs:Hs:f instanceof Wi?Gs:Array.isArray(f)?kn:h==="object"&&isNaN(f)?pp:Ri)(u,f)}],t.interpolateArray=kn;function kn(u,f){var h=[],d=[],v=u.length,m=f.length,A=Math.min(u.length,f.length),w;for(w=0;w<A;++w)h.push(mi(u[w],f[w]));for(;w<v;++w)d[w]=u[w];for(;w<m;++w)d[w]=f[w];return function(M){for(w=0;w<A;++w)d[w]=h[w](M);return d}}var Ca=function(){return nt},vp=t.map({linear:Ca,poly:Kr,quad:function(){return yp},cubic:function(){return Vg},sin:function(){return xp},exp:function(){return _p},circle:function(){return Ta},elastic:wp,back:bp,bounce:function(){return Yg}}),mp=t.map({in:nt,out:Ws,"in-out":Vs,"out-in":function(u){return Vs(Ws(u))}});t.ease=function(u){var f=u.indexOf("-"),h=f>=0?u.slice(0,f):u,d=f>=0?u.slice(f+1):"in";return h=vp.get(h)||Ca,d=mp.get(d)||nt,gp(d(h.apply(null,r.call(arguments,1))))};function gp(u){return function(f){return f<=0?0:f>=1?1:u(f)}}function Ws(u){return function(f){return 1-u(1-f)}}function Vs(u){return function(f){return .5*(f<.5?u(2*f):2-u(2-2*f))}}function yp(u){return u*u}function Vg(u){return u*u*u}function fo(u){if(u<=0)return 0;if(u>=1)return 1;var f=u*u,h=f*u;return 4*(u<.5?h:3*(u-f)+h-.75)}function Kr(u){return function(f){return Math.pow(f,u)}}function xp(u){return 1-Math.cos(u*vi)}function _p(u){return Math.pow(2,10*(u-1))}function Ta(u){return 1-Math.sqrt(1-u*u)}function wp(u,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/eo*Math.asin(1/u):(u=1,h=f/4),function(d){return 1+u*Math.pow(2,-10*d)*Math.sin((d-h)*eo/f)}}function bp(u){return u||(u=1.70158),function(f){return f*f*((u+1)*f-u)}}function Yg(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Xg;function Xg(u,f){u=t.hcl(u),f=t.hcl(f);var h=u.h,d=u.c,v=u.l,m=f.h-h,A=f.c-d,w=f.l-v;return isNaN(A)&&(A=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(M){return vu(h+m*M,d+A*M,v+w*M)+""}}t.interpolateHsl=Qg;function Qg(u,f){u=t.hsl(u),f=t.hsl(f);var h=u.h,d=u.s,v=u.l,m=f.h-h,A=f.s-d,w=f.l-v;return isNaN(A)&&(A=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(M){return Fl(h+m*M,d+A*M,v+w*M)+""}}t.interpolateLab=Zg;function Zg(u,f){u=t.lab(u),f=t.lab(f);var h=u.l,d=u.a,v=u.b,m=f.l-h,A=f.a-d,w=f.b-v;return function(M){return tp(h+m*M,d+A*M,v+w*M)+""}}t.interpolateRound=Vl;function Vl(u,f){return f-=u,function(h){return Math.round(u+f*h)}}t.transform=function(u){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 Ys(d?d.matrix:Kg)})(u)};function Ys(u){var f=[u.a,u.b],h=[u.c,u.d],d=Xs(f),v=Sp(f,h),m=Xs(Ep(h,f,-v))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,d*=-1,v*=-1),this.rotate=(d?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*cu,this.translate=[u.e,u.f],this.scale=[d,m],this.skew=m?Math.atan2(v,m)*cu:0}Ys.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Sp(u,f){return u[0]*f[0]+u[1]*f[1]}function Xs(u){var f=Math.sqrt(Sp(u,u));return f&&(u[0]/=f,u[1]/=f),f}function Ep(u,f,h){return u[0]+=h*f[0],u[1]+=h*f[1],u}var Kg={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Qs;function Pi(u){return u.length?u.pop()+",":""}function Jg(u,f,h,d){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push("translate(",null,",",null,")");d.push({i:v-4,x:Ri(u[0],f[0])},{i:v-2,x:Ri(u[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function Zi(u,f,h,d){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),d.push({i:h.push(Pi(h)+"rotate(",null,")")-2,x:Ri(u,f)})):f&&h.push(Pi(h)+"rotate("+f+")")}function Yl(u,f,h,d){u!==f?d.push({i:h.push(Pi(h)+"skewX(",null,")")-2,x:Ri(u,f)}):f&&h.push(Pi(h)+"skewX("+f+")")}function Ap(u,f,h,d){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push(Pi(h)+"scale(",null,",",null,")");d.push({i:v-4,x:Ri(u[0],f[0])},{i:v-2,x:Ri(u[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Pi(h)+"scale("+f+")")}function Qs(u,f){var h=[],d=[];return u=t.transform(u),f=t.transform(f),Jg(u.translate,f.translate,h,d),Zi(u.rotate,f.rotate,h,d),Yl(u.skew,f.skew,h,d),Ap(u.scale,f.scale,h,d),u=f=null,function(v){for(var m=-1,A=d.length,w;++m<A;)h[(w=d[m]).i]=w.x(v);return h.join("")}}function Cp(u,f){return f=(f-=u=+u)||1/f,function(h){return(h-u)/f}}function Tp(u,f){return f=(f-=u=+u)||1/f,function(h){return Math.max(0,Math.min(1,(h-u)/f))}}t.layout={},t.layout.bundle=function(){return function(u){for(var f=[],h=-1,d=u.length;++h<d;)f.push(Op(u[h]));return f}};function Op(u){for(var f=u.source,h=u.target,d=kp(f,h),v=[f];f!==d;)f=f.parent,v.push(f);for(var m=v.length;h!==d;)v.splice(m,0,h),h=h.parent;return v}function Zs(u){for(var f=[],h=u.parent;h!=null;)f.push(u),u=h,h=h.parent;return f.push(u),f}function kp(u,f){if(u===f)return u;for(var h=Zs(u),d=Zs(f),v=h.pop(),m=d.pop(),A=null;v===m;)A=v,v=h.pop(),m=d.pop();return A}t.layout.chord=function(){var u={},f,h,d,v,m=0,A,w,M;function N(){var B={},z=[],re=t.range(v),oe=[],j,Y,K,ue,le;for(f=[],h=[],j=0,ue=-1;++ue<v;){for(Y=0,le=-1;++le<v;)Y+=d[ue][le];z.push(Y),oe.push(t.range(v)),j+=Y}for(A&&re.sort(function(Gt,xt){return A(z[Gt],z[xt])}),w&&oe.forEach(function(Gt,xt){Gt.sort(function(zt,ar){return w(d[xt][zt],d[xt][ar])})}),j=(eo-m*v)/j,Y=0,ue=-1;++ue<v;){for(K=Y,le=-1;++le<v;){var ee=re[ue],Re=oe[ee][le],ze=d[ee][Re],tt=Y,je=Y+=ze*j;B[ee+"-"+Re]={index:ee,subindex:Re,startAngle:tt,endAngle:je,value:ze}}h[ee]={index:ee,startAngle:K,endAngle:Y,value:z[ee]},Y+=m}for(ue=-1;++ue<v;)for(le=ue-1;++le<v;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&f.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}M&&L()}function L(){f.sort(function(B,z){return M((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(v=(d=B)&&d.length,f=h=null,u):d},u.padding=function(B){return arguments.length?(m=B,f=h=null,u):m},u.sortGroups=function(B){return arguments.length?(A=B,f=h=null,u):A},u.sortSubgroups=function(B){return arguments.length?(w=B,f=null,u):w},u.sortChords=function(B){return arguments.length?(M=B,f&&L(),u):M},u.chords=function(){return f||N(),f},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},f=t.dispatch("start","tick","end"),h,d=[1,1],v,m,A=.9,w=Fi,M=Ks,N=-30,L=so,B=.1,z=.64,re=[],oe=[],j,Y,K;function ue(ee){return function(Re,ze,tt,je){if(Re.point!==ee){var at=Re.cx-ee.x,vt=Re.cy-ee.y,Gt=je-ze,xt=at*at+vt*vt;if(Gt*Gt/z<xt){if(xt<L){var zt=Re.charge/xt;ee.px-=at*zt,ee.py-=vt*zt}return!0}if(Re.point&&xt&&xt<L){var zt=Re.pointCharge/xt;ee.px-=at*zt,ee.py-=vt*zt}}return!Re.charge}}u.tick=function(){if((m*=.99)<.005)return h=null,f.end({type:"end",alpha:m=0}),!0;var ee=re.length,Re=oe.length,ze,tt,je,at,vt,Gt,xt,zt,ar;for(tt=0;tt<Re;++tt)je=oe[tt],at=je.source,vt=je.target,zt=vt.x-at.x,ar=vt.y-at.y,(Gt=zt*zt+ar*ar)&&(Gt=m*Y[tt]*((Gt=Math.sqrt(Gt))-j[tt])/Gt,zt*=Gt,ar*=Gt,vt.x-=zt*(xt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=ar*xt,at.x+=zt*(xt=1-xt),at.y+=ar*xt);if((xt=m*B)&&(zt=d[0]/2,ar=d[1]/2,tt=-1,xt))for(;++tt<ee;)je=re[tt],je.x+=(zt-je.x)*xt,je.y+=(ar-je.y)*xt;if(N)for(Fp(ze=t.geom.quadtree(re),m,K),tt=-1;++tt<ee;)(je=re[tt]).fixed||ze.visit(ue(je));for(tt=-1;++tt<ee;)je=re[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*A,je.y-=(je.py-(je.py=je.y))*A);f.tick({type:"tick",alpha:m})},u.nodes=function(ee){return arguments.length?(re=ee,u):re},u.links=function(ee){return arguments.length?(oe=ee,u):oe},u.size=function(ee){return arguments.length?(d=ee,u):d},u.linkDistance=function(ee){return arguments.length?(w=typeof ee=="function"?ee:+ee,u):w},u.distance=u.linkDistance,u.linkStrength=function(ee){return arguments.length?(M=typeof ee=="function"?ee:+ee,u):M},u.friction=function(ee){return arguments.length?(A=+ee,u):A},u.charge=function(ee){return arguments.length?(N=typeof ee=="function"?ee:+ee,u):N},u.chargeDistance=function(ee){return arguments.length?(L=ee*ee,u):Math.sqrt(L)},u.gravity=function(ee){return arguments.length?(B=+ee,u):B},u.theta=function(ee){return arguments.length?(z=ee*ee,u):Math.sqrt(z)},u.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=no(u.tick)),u):m},u.start=function(){var ee,Re=re.length,ze=oe.length,tt=d[0],je=d[1],at,vt;for(ee=0;ee<Re;++ee)(vt=re[ee]).index=ee,vt.weight=0;for(ee=0;ee<ze;++ee)vt=oe[ee],typeof vt.source=="number"&&(vt.source=re[vt.source]),typeof vt.target=="number"&&(vt.target=re[vt.target]),++vt.source.weight,++vt.target.weight;for(ee=0;ee<Re;++ee)vt=re[ee],isNaN(vt.x)&&(vt.x=Gt("x",tt)),isNaN(vt.y)&&(vt.y=Gt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(j=[],typeof w=="function")for(ee=0;ee<ze;++ee)j[ee]=+w.call(this,oe[ee],ee);else for(ee=0;ee<ze;++ee)j[ee]=w;if(Y=[],typeof M=="function")for(ee=0;ee<ze;++ee)Y[ee]=+M.call(this,oe[ee],ee);else for(ee=0;ee<ze;++ee)Y[ee]=M;if(K=[],typeof N=="function")for(ee=0;ee<Re;++ee)K[ee]=+N.call(this,re[ee],ee);else for(ee=0;ee<Re;++ee)K[ee]=N;function Gt(xt,zt){if(!at){for(at=new Array(Re),dr=0;dr<Re;++dr)at[dr]=[];for(dr=0;dr<ze;++dr){var ar=oe[dr];at[ar.source.index].push(ar.target),at[ar.target.index].push(ar.source)}}for(var Mr=at[ee],dr=-1,rt=Mr.length,Ht;++dr<rt;)if(!isNaN(Ht=Mr[dr][xt]))return Ht;return Math.random()*zt}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(v||(v=t.behavior.drag().origin(nt).on("dragstart.force",Mp).on("drag.force",le).on("dragend.force",Rp)),!arguments.length)return v;this.on("mouseover.force",ai).on("mouseout.force",Pp).call(v)};function le(ee){ee.px=t.event.x,ee.py=t.event.y,u.resume()}return t.rebind(u,f,"on")};function Mp(u){u.fixed|=2}function Rp(u){u.fixed&=-7}function ai(u){u.fixed|=4,u.px=u.x,u.py=u.y}function Pp(u){u.fixed&=-5}function Fp(u,f,h){var d=0,v=0;if(u.charge=0,!u.leaf)for(var m=u.nodes,A=m.length,w=-1,M;++w<A;)M=m[w],M!=null&&(Fp(M,f,h),u.charge+=M.charge,d+=M.charge*M.cx,v+=M.charge*M.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=f*h[u.point.index];u.charge+=u.pointCharge=N,d+=N*u.point.x,v+=N*u.point.y}u.cx=d/u.charge,u.cy=v/u.charge}var Fi=20,Ks=1,so=1/0;t.layout.hierarchy=function(){var u=ey,f=Np,h=Ip;function d(v){var m=[v],A=[],w;for(v.depth=0;(w=m.pop())!=null;)if(A.push(w),(N=f.call(d,w,w.depth))&&(M=N.length)){for(var M,N,L;--M>=0;)m.push(L=N[M]),L.parent=w,L.depth=w.depth+1;h&&(w.value=0),w.children=N}else h&&(w.value=+h.call(d,w,w.depth)||0),delete w.children;return oi(v,function(B){var z,re;u&&(z=B.children)&&z.sort(u),h&&(re=B.parent)&&(re.value+=B.value)}),A}return d.sort=function(v){return arguments.length?(u=v,d):u},d.children=function(v){return arguments.length?(f=v,d):f},d.value=function(v){return arguments.length?(h=v,d):h},d.revalue=function(v){return h&&(ho(v,function(m){m.children&&(m.value=0)}),oi(v,function(m){var A;m.children||(m.value=+h.call(d,m,m.depth)||0),(A=m.parent)&&(A.value+=m.value)})),v},d};function co(u,f){return t.rebind(u,f,"sort","children","value"),u.nodes=u,u.links=ty,u}function ho(u,f){for(var h=[u];(u=h.pop())!=null;)if(f(u),(v=u.children)&&(d=v.length))for(var d,v;--d>=0;)h.push(v[d])}function oi(u,f){for(var h=[u],d=[];(u=h.pop())!=null;)if(d.push(u),(A=u.children)&&(m=A.length))for(var v=-1,m,A;++v<m;)h.push(A[v]);for(;(u=d.pop())!=null;)f(u)}function Np(u){return u.children}function Ip(u){return u.value}function ey(u,f){return f.value-u.value}function ty(u){return t.merge(u.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),f=[1,1];function h(m,A,w,M){var N=m.children;if(m.x=A,m.y=m.depth*M,m.dx=w,m.dy=M,N&&(B=N.length)){var L=-1,B,z,re;for(w=m.value?w/m.value:0;++L<B;)h(z=N[L],A,re=z.value*w,M),A+=re}}function d(m){var A=m.children,w=0;if(A&&(N=A.length))for(var M=-1,N;++M<N;)w=Math.max(w,d(A[M]));return 1+w}function v(m,A){var w=u.call(this,m,A);return h(w[0],0,f[0],f[1]/d(w[0])),w}return v.size=function(m){return arguments.length?(f=m,v):f},co(v,u)},t.layout.pie=function(){var u=Number,f=Lp,h=0,d=eo,v=0;function m(A){var w=A.length,M=A.map(function(ue,le){return+u.call(m,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),L=(typeof d=="function"?d.apply(this,arguments):d)-N,B=Math.min(Math.abs(L)/w,+(typeof v=="function"?v.apply(this,arguments):v)),z=B*(L<0?-1:1),re=t.sum(M),oe=re?(L-w*z)/re:0,j=t.range(w),Y=[],K;return f!=null&&j.sort(f===Lp?function(ue,le){return M[le]-M[ue]}:function(ue,le){return f(A[ue],A[le])}),j.forEach(function(ue){Y[ue]={data:A[ue],value:K=M[ue],startAngle:N,endAngle:N+=K*oe+z,padAngle:B}}),Y}return m.value=function(A){return arguments.length?(u=A,m):u},m.sort=function(A){return arguments.length?(f=A,m):f},m.startAngle=function(A){return arguments.length?(h=A,m):h},m.endAngle=function(A){return arguments.length?(d=A,m):d},m.padAngle=function(A){return arguments.length?(v=A,m):v},m};var Lp={};t.layout.stack=function(){var u=nt,f=ec,h=tc,d=iy,v=ry,m=ny;function A(w,M){if(!(oe=w.length))return w;var N=w.map(function(ue,le){return u.call(A,ue,le)}),L=N.map(function(ue){return ue.map(function(le,ee){return[v.call(A,le,ee),m.call(A,le,ee)]})}),B=f.call(A,L,M);N=t.permute(N,B),L=t.permute(L,B);var z=h.call(A,L,M),re=N[0].length,oe,j,Y,K;for(Y=0;Y<re;++Y)for(d.call(A,N[0][Y],K=z[Y],L[0][Y][1]),j=1;j<oe;++j)d.call(A,N[j][Y],K+=L[j-1][Y][1],L[j][Y][1]);return w}return A.values=function(w){return arguments.length?(u=w,A):u},A.order=function(w){return arguments.length?(f=typeof w=="function"?w:Js.get(w)||ec,A):f},A.offset=function(w){return arguments.length?(h=typeof w=="function"?w:Xl.get(w)||tc,A):h},A.x=function(w){return arguments.length?(v=w,A):v},A.y=function(w){return arguments.length?(m=w,A):m},A.out=function(w){return arguments.length?(d=w,A):d},A};function ry(u){return u.x}function ny(u){return u.y}function iy(u,f,h){u.y0=f,u.y=h}var Js=t.map({"inside-out":function(u){var f=u.length,h,d,v=u.map($p),m=u.map(Ql),A=t.range(f).sort(function(B,z){return v[B]-v[z]}),w=0,M=0,N=[],L=[];for(h=0;h<f;++h)d=A[h],w<M?(w+=m[d],N.push(d)):(M+=m[d],L.push(d));return L.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:ec}),Xl=t.map({silhouette:function(u){var f=u.length,h=u[0].length,d=[],v=0,m,A,w,M=[];for(A=0;A<h;++A){for(m=0,w=0;m<f;m++)w+=u[m][A][1];w>v&&(v=w),d.push(w)}for(A=0;A<h;++A)M[A]=(v-d[A])/2;return M},wiggle:function(u){var f=u.length,h=u[0],d=h.length,v,m,A,w,M,N,L,B,z,re=[];for(re[0]=B=z=0,m=1;m<d;++m){for(v=0,w=0;v<f;++v)w+=u[v][m][1];for(v=0,M=0,L=h[m][0]-h[m-1][0];v<f;++v){for(A=0,N=(u[v][m][1]-u[v][m-1][1])/(2*L);A<v;++A)N+=(u[A][m][1]-u[A][m-1][1])/L;M+=N*u[v][m][1]}re[m]=B-=w?M/w*L:0,B<z&&(z=B)}for(m=0;m<d;++m)re[m]-=z;return re},expand:function(u){var f=u.length,h=u[0].length,d=1/f,v,m,A,w=[];for(m=0;m<h;++m){for(v=0,A=0;v<f;v++)A+=u[v][m][1];if(A)for(v=0;v<f;v++)u[v][m][1]/=A;else for(v=0;v<f;v++)u[v][m][1]=d}for(m=0;m<h;++m)w[m]=0;return w},zero:tc});function ec(u){return t.range(u.length)}function tc(u){for(var f=-1,h=u[0].length,d=[];++f<h;)d[f]=0;return d}function $p(u){for(var f=1,h=0,d=u[0][1],v,m=u.length;f<m;++f)(v=u[f][1])>d&&(h=f,d=v);return h}function Ql(u){return u.reduce(rc,0)}function rc(u,f){return u+f[1]}t.layout.histogram=function(){var u=!0,f=Number,h=oy,d=ay;function v(m,z){for(var w=[],M=m.map(f,this),N=h.call(this,M,z),L=d.call(this,N,M,z),B,z=-1,re=M.length,oe=L.length-1,j=u?1:1/re,Y;++z<oe;)B=w[z]=[],B.dx=L[z+1]-(B.x=L[z]),B.y=0;if(oe>0)for(z=-1;++z<re;)Y=M[z],Y>=N[0]&&Y<=N[1]&&(B=w[t.bisect(L,Y,1,oe)-1],B.y+=j,B.push(m[z]));return w}return v.value=function(m){return arguments.length?(f=m,v):f},v.range=function(m){return arguments.length?(h=gr(m),v):h},v.bins=function(m){return arguments.length?(d=typeof m=="number"?function(A){return nc(A,m)}:gr(m),v):d},v.frequency=function(m){return arguments.length?(u=!!m,v):u},v};function ay(u,f){return nc(u,Math.ceil(Math.log(f.length)/Math.LN2+1))}function nc(u,f){for(var h=-1,d=+u[0],v=(u[1]-d)/f,m=[];++h<=f;)m[h]=v*h+d;return m}function oy(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(uy),f=0,h=[1,1],d;function v(m,A){var w=u.call(this,m,A),M=w[0],N=h[0],L=h[1],B=d==null?Math.sqrt:typeof d=="function"?d:function(){return d};if(M.x=M.y=0,oi(M,function(re){re.r=+B(re.value)}),oi(M,ac),f){var z=f*(d?1:Math.max(2*M.r/N,2*M.r/L))/2;oi(M,function(re){re.r+=z}),oi(M,ac),oi(M,function(re){re.r-=z})}return zp(M,N/2,L/2,d?1:1/Math.max(2*M.r/N,2*M.r/L)),w}return v.size=function(m){return arguments.length?(h=m,v):h},v.radius=function(m){return arguments.length?(d=m==null||typeof m=="function"?m:+m,v):d},v.padding=function(m){return arguments.length?(f=+m,v):f},co(v,u)};function uy(u,f){return u.value-f.value}function ic(u,f){var h=u._pack_next;u._pack_next=f,f._pack_prev=u,f._pack_next=h,h._pack_prev=f}function Dp(u,f){u._pack_next=f,f._pack_prev=u}function Bp(u,f){var h=f.x-u.x,d=f.y-u.y,v=u.r+f.r;return .999*v*v>h*h+d*d}function ac(u){if(!(f=u.children)||!(z=f.length))return;var f,h=1/0,d=-1/0,v=1/0,m=-1/0,A,w,M,N,L,B,z;function re(ee){h=Math.min(ee.x-ee.r,h),d=Math.max(ee.x+ee.r,d),v=Math.min(ee.y-ee.r,v),m=Math.max(ee.y+ee.r,m)}if(f.forEach(ly),A=f[0],A.x=-A.r,A.y=0,re(A),z>1&&(w=f[1],w.x=w.r,w.y=0,re(w),z>2))for(M=f[2],Up(A,w,M),re(M),ic(A,M),A._pack_prev=M,ic(M,w),w=A._pack_next,N=3;N<z;N++){Up(A,w,M=f[N]);var oe=0,j=1,Y=1;for(L=w._pack_next;L!==w;L=L._pack_next,j++)if(Bp(L,M)){oe=1;break}if(oe==1)for(B=A._pack_prev;B!==L._pack_prev&&!Bp(B,M);B=B._pack_prev,Y++);oe?(j<Y||j==Y&&w.r<A.r?Dp(A,w=L):Dp(A=B,w),N--):(ic(A,M),w=M,re(M))}var K=(h+d)/2,ue=(v+m)/2,le=0;for(N=0;N<z;N++)M=f[N],M.x-=K,M.y-=ue,le=Math.max(le,M.r+Math.sqrt(M.x*M.x+M.y*M.y));u.r=le,f.forEach(fy)}function ly(u){u._pack_next=u._pack_prev=u}function fy(u){delete u._pack_next,delete u._pack_prev}function zp(u,f,h,d){var v=u.children;if(u.x=f+=d*u.x,u.y=h+=d*u.y,u.r*=d,v)for(var m=-1,A=v.length;++m<A;)zp(v[m],f,h,d)}function Up(u,f,h){var d=u.r+h.r,v=f.x-u.x,m=f.y-u.y;if(d&&(v||m)){var A=f.r+h.r,w=v*v+m*m;A*=A,d*=d;var M=.5+(d-A)/(2*w),N=Math.sqrt(Math.max(0,2*A*(d+w)-(d-=w)*d-A*A))/(2*w);h.x=u.x+M*v+N*m,h.y=u.y+M*m-N*v}else h.x=u.x+d,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),f=jp,h=[1,1],d=null;function v(L,B){var z=u.call(this,L,B),re=z[0],oe=m(re);if(oi(oe,A),oe.parent.m=-oe.z,ho(oe,w),d)ho(re,N);else{var j=re,Y=re,K=re;ho(re,function(Re){Re.x<j.x&&(j=Re),Re.x>Y.x&&(Y=Re),Re.depth>K.depth&&(K=Re)});var ue=f(j,Y)/2-j.x,le=h[0]/(Y.x+f(Y,j)/2+ue),ee=h[1]/(K.depth||1);ho(re,function(Re){Re.x=(Re.x+ue)*le,Re.y=Re.depth*ee})}return z}function m(L){for(var B={A:null,children:[L]},z=[B],re;(re=z.pop())!=null;)for(var oe=re.children,j,Y=0,K=oe.length;Y<K;++Y)z.push((oe[Y]=j={_:oe[Y],parent:re,children:(j=oe[Y].children)&&j.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Y}).a=j);return B.children[0]}function A(L){var B=L.children,z=L.parent.children,re=L.i?z[L.i-1]:null;if(B.length){cy(L);var oe=(B[0].z+B[B.length-1].z)/2;re?(L.z=re.z+f(L._,re._),L.m=L.z-oe):L.z=oe}else re&&(L.z=re.z+f(L._,re._));L.parent.A=M(L,re,L.parent.A||z[0])}function w(L){L._.x=L.z+L.parent.m,L.m+=L.parent.m}function M(L,B,z){if(B){for(var re=L,oe=L,j=B,Y=re.parent.children[0],K=re.m,ue=oe.m,le=j.m,ee=Y.m,Re;j=uc(j),re=oc(re),j&&re;)Y=oc(Y),oe=uc(oe),oe.a=L,Re=j.z+le-re.z-K+f(j._,re._),Re>0&&(sy(gi(j,L,z),L,Re),K+=Re,ue+=Re),le+=j.m,K+=re.m,ee+=Y.m,ue+=oe.m;j&&!uc(oe)&&(oe.t=j,oe.m+=le-ue),re&&!oc(Y)&&(Y.t=re,Y.m+=K-ee,z=L)}return z}function N(L){L.x*=h[0],L.y=L.depth*h[1]}return v.separation=function(L){return arguments.length?(f=L,v):f},v.size=function(L){return arguments.length?(d=(h=L)==null?N:null,v):d?null:h},v.nodeSize=function(L){return arguments.length?(d=(h=L)==null?null:N,v):d?h:null},co(v,u)};function jp(u,f){return u.parent==f.parent?1:2}function oc(u){var f=u.children;return f.length?f[0]:u.t}function uc(u){var f=u.children,h;return(h=f.length)?f[h-1]:u.t}function sy(u,f,h){var d=h/(f.i-u.i);f.c-=d,f.s+=h,u.c+=d,f.z+=h,f.m+=h}function cy(u){for(var f=0,h=0,d=u.children,v=d.length,m;--v>=0;)m=d[v],m.z+=f,m.m+=f,f+=m.s+(h+=m.c)}function gi(u,f,h){return u.a.parent===f.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),f=jp,h=[1,1],d=!1;function v(m,A){var w=u.call(this,m,A),M=w[0],N,L=0;oi(M,function(j){var Y=j.children;Y&&Y.length?(j.x=hy(Y),j.y=Gp(Y)):(j.x=N?L+=f(j,N):0,j.y=0,N=j)});var B=Hp(M),z=qp(M),re=B.x-f(B,z)/2,oe=z.x+f(z,B)/2;return oi(M,d?function(j){j.x=(j.x-M.x)*h[0],j.y=(M.y-j.y)*h[1]}:function(j){j.x=(j.x-re)/(oe-re)*h[0],j.y=(1-(M.y?j.y/M.y:1))*h[1]}),w}return v.separation=function(m){return arguments.length?(f=m,v):f},v.size=function(m){return arguments.length?(d=(h=m)==null,v):d?null:h},v.nodeSize=function(m){return arguments.length?(d=(h=m)!=null,v):d?h:null},co(v,u)};function Gp(u){return 1+t.max(u,function(f){return f.y})}function hy(u){return u.reduce(function(f,h){return f+h.x},0)/u.length}function Hp(u){var f=u.children;return f&&f.length?Hp(f[0]):u}function qp(u){var f=u.children,h;return f&&(h=f.length)?qp(f[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),f=Math.round,h=[1,1],d=null,v=lc,m=!1,A,w="squarify",M=.5*(1+Math.sqrt(5));function N(j,Y){for(var K=-1,ue=j.length,le,ee;++K<ue;)ee=(le=j[K]).value*(Y<0?0:Y),le.area=isNaN(ee)||ee<=0?0:ee}function L(j){var Y=j.children;if(Y&&Y.length){var K=v(j),ue=[],le=Y.slice(),ee,Re=1/0,ze,tt=w==="slice"?K.dx:w==="dice"?K.dy:w==="slice-dice"?j.depth&1?K.dy:K.dx:Math.min(K.dx,K.dy),je;for(N(le,K.dx*K.dy/j.value),ue.area=0;(je=le.length)>0;)ue.push(ee=le[je-1]),ue.area+=ee.area,w!=="squarify"||(ze=z(ue,tt))<=Re?(le.pop(),Re=ze):(ue.area-=ue.pop().area,re(ue,tt,K,!1),tt=Math.min(K.dx,K.dy),ue.length=ue.area=0,Re=1/0);ue.length&&(re(ue,tt,K,!0),ue.length=ue.area=0),Y.forEach(L)}}function B(j){var Y=j.children;if(Y&&Y.length){var K=v(j),ue=Y.slice(),le,ee=[];for(N(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);Y.forEach(B)}}function z(j,Y){for(var K=j.area,ue,le=0,ee=1/0,Re=-1,ze=j.length;++Re<ze;)(ue=j[Re].area)&&(ue<ee&&(ee=ue),ue>le&&(le=ue));return K*=K,Y*=Y,K?Math.max(Y*le*M/K,K/(Y*ee*M)):1/0}function re(j,Y,K,ue){var le=-1,ee=j.length,Re=K.x,ze=K.y,tt=Y?f(j.area/Y):0,je;if(Y==K.dx){for((ue||tt>K.dy)&&(tt=K.dy);++le<ee;)je=j[le],je.x=Re,je.y=ze,je.dy=tt,Re+=je.dx=Math.min(K.x+K.dx-Re,tt?f(je.area/tt):0);je.z=!0,je.dx+=K.x+K.dx-Re,K.y+=tt,K.dy-=tt}else{for((ue||tt>K.dx)&&(tt=K.dx);++le<ee;)je=j[le],je.x=Re,je.y=ze,je.dx=tt,ze+=je.dy=Math.min(K.y+K.dy-ze,tt?f(je.area/tt):0);je.z=!1,je.dy+=K.y+K.dy-ze,K.x+=tt,K.dx-=tt}}function oe(j){var Y=A||u(j),K=Y[0];return K.x=K.y=0,K.value?(K.dx=h[0],K.dy=h[1]):K.dx=K.dy=0,A&&u.revalue(K),N([K],K.dx*K.dy/K.value),(A?B:L)(K),m&&(A=Y),Y}return oe.size=function(j){return arguments.length?(h=j,oe):h},oe.padding=function(j){if(!arguments.length)return d;function Y(le){var ee=j.call(oe,le,le.depth);return ee==null?lc(le):Wp(le,typeof ee=="number"?[ee,ee,ee,ee]:ee)}function K(le){return Wp(le,j)}var ue;return v=(d=j)==null?lc:(ue=typeof j)=="function"?Y:(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,A=null,oe):m},oe.ratio=function(j){return arguments.length?(M=j,oe):M},oe.mode=function(j){return arguments.length?(w=j+"",oe):w},co(oe,u)};function lc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Wp(u,f){var h=u.x+f[3],d=u.y+f[0],v=u.dx-f[1]-f[3],m=u.dy-f[0]-f[2];return v<0&&(h+=v/2,v=0),m<0&&(d+=m/2,m=0),{x:h,y:d,dx:v,dy:m}}t.random={normal:function(u,f){var h=arguments.length;return h<2&&(f=1),h<1&&(u=0),function(){var d,v,m;do d=Math.random()*2-1,v=Math.random()*2-1,m=d*d+v*v;while(!m||m>1);return u+f*d*Math.sqrt(-2*Math.log(m)/m)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var f=t.random.irwinHall(u);return function(){return f()/u}},irwinHall:function(u){return function(){for(var f=0,h=0;h<u;h++)f+=Math.random();return f}}},t.scale={};function Zl(u){var f=u[0],h=u[u.length-1];return f<h?[f,h]:[h,f]}function Kl(u){return u.rangeExtent?u.rangeExtent():Zl(u.range())}function dy(u,f,h,d){var v=h(u[0],u[1]),m=d(f[0],f[1]);return function(A){return m(v(A))}}function Gr(u,f){var h=0,d=u.length-1,v=u[h],m=u[d],A;return m<v&&(A=h,h=d,d=A,A=v,v=m,m=A),u[h]=f.floor(v),u[d]=f.ceil(m),u}function Oa(u){return u?{floor:function(f){return Math.floor(f/u)*u},ceil:function(f){return Math.ceil(f/u)*u}}:po}var po={floor:nt,ceil:nt};function py(u,f,h,d){var v=[],m=[],A=0,w=Math.min(u.length,f.length)-1;for(u[w]<u[0]&&(u=u.slice().reverse(),f=f.slice().reverse());++A<=w;)v.push(h(u[A-1],u[A])),m.push(d(f[A-1],f[A]));return function(M){var N=t.bisect(u,M,1,w)-1;return m[N](v[N](M))}}t.scale.linear=function(){return ka([0,1],[0,1],mi,!1)};function ka(u,f,h,d){var v,m;function A(){var M=Math.min(u.length,f.length)>2?py:dy,N=d?Tp:Cp;return v=M(u,f,N,h),m=M(f,u,N,mi),w}function w(M){return v(M)}return w.invert=function(M){return m(M)},w.domain=function(M){return arguments.length?(u=M.map(Number),A()):u},w.range=function(M){return arguments.length?(f=M,A()):f},w.rangeRound=function(M){return w.range(M).interpolate(Vl)},w.clamp=function(M){return arguments.length?(d=M,A()):d},w.interpolate=function(M){return arguments.length?(h=M,A()):h},w.ticks=function(M){return Cu(u,M)},w.tickFormat=function(M,N){return d3_scale_linearTickFormat(u,M,N)},w.nice=function(M){return Ma(u,M),A()},w.copy=function(){return ka(u,f,h,d)},A()}function fc(u,f){return t.rebind(u,f,"range","rangeRound","interpolate","clamp")}function Ma(u,f){return Gr(u,Oa(Au(u,f)[2])),Gr(u,Oa(Au(u,f)[2])),u}function Au(u,f){f==null&&(f=10);var h=Zl(u),d=h[1]-h[0],v=Math.pow(10,Math.floor(Math.log(d/f)/Math.LN10)),m=f/d*v;return m<=.15?v*=10:m<=.35?v*=5:m<=.75&&(v*=2),h[0]=Math.ceil(h[0]/v)*v,h[1]=Math.floor(h[1]/v)*v+v*.5,h[2]=v,h}function Cu(u,f){return t.range.apply(t,Au(u,f))}t.scale.log=function(){return Jl(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Jl(u,f,h,d){function v(w){return(h?Math.log(w<0?0:w):-Math.log(w>0?0:-w))/Math.log(f)}function m(w){return h?Math.pow(f,w):-Math.pow(f,-w)}function A(w){return u(v(w))}return A.invert=function(w){return m(u.invert(w))},A.domain=function(w){return arguments.length?(h=w[0]>=0,u.domain((d=w.map(Number)).map(v)),A):d},A.base=function(w){return arguments.length?(f=+w,u.domain(d.map(v)),A):f},A.nice=function(){var w=Gr(d.map(v),h?Math:sc);return u.domain(w),d=w.map(m),A},A.ticks=function(){var w=Zl(d),M=[],N=w[0],L=w[1],B=Math.floor(v(N)),z=Math.ceil(v(L)),re=f%1?2:f;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<re;oe++)M.push(m(B)*oe);M.push(m(B))}else for(M.push(m(B));B++<z;)for(var oe=re-1;oe>0;oe--)M.push(m(B)*oe);for(B=0;M[B]<N;B++);for(z=M.length;M[z-1]>L;z--);M=M.slice(B,z)}return M},A.copy=function(){return Jl(u.copy(),f,h,d)},fc(A,u)}var sc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return ef(t.scale.linear(),1,[0,1])};function ef(u,f,h){var d=Ra(f),v=Ra(1/f);function m(A){return u(d(A))}return m.invert=function(A){return v(u.invert(A))},m.domain=function(A){return arguments.length?(u.domain((h=A.map(Number)).map(d)),m):h},m.ticks=function(A){return Cu(h,A)},m.tickFormat=function(A,w){return d3_scale_linearTickFormat(h,A,w)},m.nice=function(A){return m.domain(Ma(h,A))},m.exponent=function(A){return arguments.length?(d=Ra(f=A),v=Ra(1/f),u.domain(h.map(d)),m):f},m.copy=function(){return ef(u.copy(),f,h)},fc(m,u)}function Ra(u){return function(f){return f<0?-Math.pow(-f,u):Math.pow(f,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return cc([],{t:"range",a:[[]]})};function cc(u,f){var h,d,v;function m(w){return d[((h.get(w)||(f.t==="range"?h.set(w,u.push(w)):NaN))-1)%d.length]}function A(w,M){return t.range(u.length).map(function(N){return w+M*N})}return m.domain=function(w){if(!arguments.length)return u;u=[],h=new I;for(var M=-1,N=w.length,L;++M<N;)h.has(L=w[M])||h.set(L,u.push(L));return m[f.t].apply(m,f.a)},m.range=function(w){return arguments.length?(d=w,v=0,f={t:"range",a:arguments},m):d},m.rangePoints=function(w,M){arguments.length<2&&(M=0);var N=w[0],L=w[1],B=u.length<2?(N=(N+L)/2,0):(L-N)/(u.length-1+M);return d=A(N+B*M/2,B),v=0,f={t:"rangePoints",a:arguments},m},m.rangeRoundPoints=function(w,M){arguments.length<2&&(M=0);var N=w[0],L=w[1],B=u.length<2?(N=L=Math.round((N+L)/2),0):(L-N)/(u.length-1+M)|0;return d=A(N+Math.round(B*M/2+(L-N-(u.length-1+M)*B)/2),B),v=0,f={t:"rangeRoundPoints",a:arguments},m},m.rangeBands=function(w,M,N){arguments.length<2&&(M=0),arguments.length<3&&(N=M);var L=w[1]<w[0],B=w[L-0],z=w[1-L],re=(z-B)/(u.length-M+2*N);return d=A(B+re*N,re),L&&d.reverse(),v=re*(1-M),f={t:"rangeBands",a:arguments},m},m.rangeRoundBands=function(w,M,N){arguments.length<2&&(M=0),arguments.length<3&&(N=M);var L=w[1]<w[0],B=w[L-0],z=w[1-L],re=Math.floor((z-B)/(u.length-M+2*N));return d=A(B+Math.round((z-B-(u.length-M)*re)/2),re),L&&d.reverse(),v=Math.round(re*(1-M)),f={t:"rangeRoundBands",a:arguments},m},m.rangeBand=function(){return v},m.rangeExtent=function(){return Zl(f.a[0])},m.copy=function(){return cc(u,f)},m.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Vp)},t.scale.category20=function(){return t.scale.ordinal().range(Yp)},t.scale.category20b=function(){return t.scale.ordinal().range(Xp)},t.scale.category20c=function(){return t.scale.ordinal().range(Qp)};var Vp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Nl),Yp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Nl),Xp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Nl),Qp=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Nl);t.scale.quantile=function(){return tf([],[])};function tf(u,f){var h;function d(){var m=0,A=f.length;for(h=[];++m<A;)h[m-1]=t.quantile(u,m/A);return v}function v(m){if(!isNaN(m=+m))return f[t.bisect(h,m)]}return v.domain=function(m){return arguments.length?(u=m.map(y).filter(T).sort(g),d()):u},v.range=function(m){return arguments.length?(f=m,d()):f},v.quantiles=function(){return h},v.invertExtent=function(m){return m=f.indexOf(m),m<0?[NaN,NaN]:[m>0?h[m-1]:u[0],m<h.length?h[m]:u[u.length-1]]},v.copy=function(){return tf(u,f)},d()}t.scale.quantize=function(){return rf(0,1,[0,1])};function rf(u,f,h){var d,v;function m(w){return h[Math.max(0,Math.min(v,Math.floor(d*(w-u))))]}function A(){return d=h.length/(f-u),v=h.length-1,m}return m.domain=function(w){return arguments.length?(u=+w[0],f=+w[w.length-1],A()):[u,f]},m.range=function(w){return arguments.length?(h=w,A()):h},m.invertExtent=function(w){return w=h.indexOf(w),w=w<0?NaN:w/d+u,[w,w+1/d]},m.copy=function(){return rf(u,f,h)},A()}t.scale.threshold=function(){return hc([.5],[0,1])};function hc(u,f){function h(d){if(d<=d)return f[t.bisect(u,d)]}return h.domain=function(d){return arguments.length?(u=d,h):u},h.range=function(d){return arguments.length?(f=d,h):f},h.invertExtent=function(d){return d=f.indexOf(d),[u[d-1],u[d]]},h.copy=function(){return hc(u,f)},h}t.scale.identity=function(){return dc([0,1])};function dc(u){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(u=h.map(f),f):u},f.ticks=function(h){return Cu(u,h)},f.tickFormat=function(h,d){return d3_scale_linearTickFormat(u,h,d)},f.copy=function(){return dc(u)},f}t.svg={};function Zp(){return 0}t.svg.arc=function(){var u=pc,f=Kp,h=Zp,d=Tu,v=vc,m=nf,A=mc;function w(){var N=Math.max(0,+u.apply(this,arguments)),L=Math.max(0,+f.apply(this,arguments)),B=v.apply(this,arguments)-vi,z=m.apply(this,arguments)-vi,re=Math.abs(z-B),oe=B>z?0:1;if(L<N&&(j=L,L=N,N=j),re>=Xd)return M(L,oe)+(N?M(N,1-oe):"")+"Z";var j,Y,K,ue,le=0,ee=0,Re,ze,tt,je,at,vt,Gt,xt,zt=[];if((ue=(+A.apply(this,arguments)||0)/2)&&(K=d===Tu?Math.sqrt(N*N+L*L):+d.apply(this,arguments),oe||(ee*=-1),L&&(ee=Zd(K/L*Math.sin(ue))),N&&(le=Zd(K/N*Math.sin(ue)))),L){Re=L*Math.cos(B+ee),ze=L*Math.sin(B+ee),tt=L*Math.cos(z-ee),je=L*Math.sin(z-ee);var ar=Math.abs(z-B-2*ee)<=Oi?0:1;if(ee&&Ou(Re,ze,tt,je)===oe^ar){var Mr=(B+z)/2;Re=L*Math.cos(Mr),ze=L*Math.sin(Mr),tt=je=null}}else Re=ze=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Gt=N*Math.cos(B+le),xt=N*Math.sin(B+le);var dr=Math.abs(B-z+2*le)<=Oi?0:1;if(le&&Ou(at,vt,Gt,xt)===1-oe^dr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Gt=xt=null}}else at=vt=0;if(re>ir&&(j=Math.min(Math.abs(L-N)/2,+h.apply(this,arguments)))>.001){Y=N<L^oe?0:1;var Ht=j,Yt=j;if(re<Oi){var or=Gt==null?[at,vt]:tt==null?[Re,ze]:Ns([Re,ze],[Gt,xt],[tt,je],[at,vt]),Er=Re-or[0],Br=ze-or[1],Yr=tt-or[0],hn=je-or[1],_n=1/Math.sin(Math.acos((Er*Yr+Br*hn)/(Math.sqrt(Er*Er+Br*Br)*Math.sqrt(Yr*Yr+hn*hn)))/2),rn=Math.sqrt(or[0]*or[0]+or[1]*or[1]);Yt=Math.min(j,(N-rn)/(_n-1)),Ht=Math.min(j,(L-rn)/(_n+1))}if(tt!=null){var Mn=vo(Gt==null?[at,vt]:[Gt,xt],[Re,ze],L,Ht,oe),R=vo([tt,je],[at,vt],L,Ht,oe);j===Ht?zt.push("M",Mn[0],"A",Ht,",",Ht," 0 0,",Y," ",Mn[1],"A",L,",",L," 0 ",1-oe^Ou(Mn[1][0],Mn[1][1],R[1][0],R[1][1]),",",oe," ",R[1],"A",Ht,",",Ht," 0 0,",Y," ",R[0]):zt.push("M",Mn[0],"A",Ht,",",Ht," 0 1,",Y," ",R[0])}else zt.push("M",Re,",",ze);if(Gt!=null){var H=vo([Re,ze],[Gt,xt],N,-Yt,oe),Z=vo([at,vt],tt==null?[Re,ze]:[tt,je],N,-Yt,oe);j===Yt?zt.push("L",Z[0],"A",Yt,",",Yt," 0 0,",Y," ",Z[1],"A",N,",",N," 0 ",oe^Ou(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Yt,",",Yt," 0 0,",Y," ",H[0]):zt.push("L",Z[0],"A",Yt,",",Yt," 0 0,",Y," ",H[0])}else zt.push("L",at,",",vt)}else zt.push("M",Re,",",ze),tt!=null&&zt.push("A",L,",",L," 0 ",ar,",",oe," ",tt,",",je),zt.push("L",at,",",vt),Gt!=null&&zt.push("A",N,",",N," 0 ",dr,",",1-oe," ",Gt,",",xt);return zt.push("Z"),zt.join("")}function M(N,L){return"M0,"+N+"A"+N+","+N+" 0 1,"+L+" 0,"+-N+"A"+N+","+N+" 0 1,"+L+" 0,"+N}return w.innerRadius=function(N){return arguments.length?(u=gr(N),w):u},w.outerRadius=function(N){return arguments.length?(f=gr(N),w):f},w.cornerRadius=function(N){return arguments.length?(h=gr(N),w):h},w.padRadius=function(N){return arguments.length?(d=N==Tu?Tu:gr(N),w):d},w.startAngle=function(N){return arguments.length?(v=gr(N),w):v},w.endAngle=function(N){return arguments.length?(m=gr(N),w):m},w.padAngle=function(N){return arguments.length?(A=gr(N),w):A},w.centroid=function(){var N=(+u.apply(this,arguments)+ +f.apply(this,arguments))/2,L=(+v.apply(this,arguments)+ +m.apply(this,arguments))/2-vi;return[Math.cos(L)*N,Math.sin(L)*N]},w};var Tu="auto";function pc(u){return u.innerRadius}function Kp(u){return u.outerRadius}function vc(u){return u.startAngle}function nf(u){return u.endAngle}function mc(u){return u&&u.padAngle}function Ou(u,f,h,d){return(u-h)*f-(f-d)*u>0?0:1}function vo(u,f,h,d,v){var m=u[0]-f[0],A=u[1]-f[1],w=(v?d:-d)/Math.sqrt(m*m+A*A),M=w*A,N=-w*m,L=u[0]+M,B=u[1]+N,z=f[0]+M,re=f[1]+N,oe=(L+z)/2,j=(B+re)/2,Y=z-L,K=re-B,ue=Y*Y+K*K,le=h-d,ee=L*re-z*B,Re=(K<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-ee*ee)),ze=(ee*K-Y*Re)/ue,tt=(-ee*Y-K*Re)/ue,je=(ee*K+Y*Re)/ue,at=(-ee*Y+K*Re)/ue,vt=ze-oe,Gt=tt-j,xt=je-oe,zt=at-j;return vt*vt+Gt*Gt>xt*xt+zt*zt&&(ze=je,tt=at),[[ze-M,tt-N],[ze*h/le,tt*h/le]]}function gc(){return!0}function yc(u){var f=ki,h=Mi,d=gc,v=Hn,m=v.key,A=.7;function w(M){var N=[],L=[],B=-1,z=M.length,re,oe=gr(f),j=gr(h);function Y(){N.push("M",v(u(L),A))}for(;++B<z;)d.call(this,re=M[B],B)?L.push([+oe.call(this,re,B),+j.call(this,re,B)]):L.length&&(Y(),L=[]);return L.length&&Y(),N.length?N.join(""):null}return w.x=function(M){return arguments.length?(f=M,w):f},w.y=function(M){return arguments.length?(h=M,w):h},w.defined=function(M){return arguments.length?(d=M,w):d},w.interpolate=function(M){return arguments.length?(typeof M=="function"?m=v=M:m=(v=ku.get(M)||Hn).key,w):m},w.tension=function(M){return arguments.length?(A=M,w):A},w}t.svg.line=function(){return yc(nt)};var ku=t.map({linear:Hn,"linear-closed":xc,step:_c,"step-before":Mu,"step-after":Pa,basis:Ru,"basis-open":of,"basis-closed":mo,bundle:go,cardinal:Ni,"cardinal-open":Jp,"cardinal-closed":af,monotone:vy});ku.forEach(function(u,f){f.key=u,f.closed=/-closed$/.test(u)});function Hn(u){return u.length>1?u.join("L"):u+"Z"}function xc(u){return u.join("L")+"Z"}function _c(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("H",(d[0]+(d=u[f])[0])/2,"V",d[1]);return h>1&&v.push("H",d[0]),v.join("")}function Mu(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("V",(d=u[f])[1],"H",d[0]);return v.join("")}function Pa(u){for(var f=0,h=u.length,d=u[0],v=[d[0],",",d[1]];++f<h;)v.push("H",(d=u[f])[0],"V",d[1]);return v.join("")}function Jp(u,f){return u.length<4?Hn(u):u[1]+Fa(u.slice(1,-1),Ki(u,f))}function af(u,f){return u.length<3?xc(u):u[0]+Fa((u.push(u[0]),u),Ki([u[u.length-2]].concat(u,[u[1]]),f))}function Ni(u,f){return u.length<3?Hn(u):u[0]+Fa(u,Ki(u,f))}function Fa(u,f){if(f.length<1||u.length!=f.length&&u.length!=f.length+2)return Hn(u);var h=u.length!=f.length,d="",v=u[0],m=u[1],A=f[0],w=A,M=1;if(h&&(d+="Q"+(m[0]-A[0]*2/3)+","+(m[1]-A[1]*2/3)+","+m[0]+","+m[1],v=u[1],M=2),f.length>1){w=f[1],m=u[M],M++,d+="C"+(v[0]+A[0])+","+(v[1]+A[1])+","+(m[0]-w[0])+","+(m[1]-w[1])+","+m[0]+","+m[1];for(var N=2;N<f.length;N++,M++)m=u[M],w=f[N],d+="S"+(m[0]-w[0])+","+(m[1]-w[1])+","+m[0]+","+m[1]}if(h){var L=u[M];d+="Q"+(m[0]+w[0]*2/3)+","+(m[1]+w[1]*2/3)+","+L[0]+","+L[1]}return d}function Ki(u,f){for(var h=[],d=(1-f)/2,v,m=u[0],A=u[1],w=1,M=u.length;++w<M;)v=m,m=A,A=u[w],h.push([d*(A[0]-v[0]),d*(A[1]-v[1])]);return h}function Ru(u){if(u.length<3)return Hn(u);var f=1,h=u.length,d=u[0],v=d[0],m=d[1],A=[v,v,v,(d=u[1])[0]],w=[m,m,m,d[1]],M=[v,",",m,"L",tn(ui,A),",",tn(ui,w)];for(u.push(u[h-1]);++f<=h;)d=u[f],A.shift(),A.push(d[0]),w.shift(),w.push(d[1]),Pu(M,A,w);return u.pop(),M.push("L",d),M.join("")}function of(u){if(u.length<4)return Hn(u);for(var f=[],h=-1,d=u.length,v,m=[0],A=[0];++h<3;)v=u[h],m.push(v[0]),A.push(v[1]);for(f.push(tn(ui,m)+","+tn(ui,A)),--h;++h<d;)v=u[h],m.shift(),m.push(v[0]),A.shift(),A.push(v[1]),Pu(f,m,A);return f.join("")}function mo(u){for(var f,h=-1,d=u.length,v=d+4,m,A=[],w=[];++h<4;)m=u[h%d],A.push(m[0]),w.push(m[1]);for(f=[tn(ui,A),",",tn(ui,w)],--h;++h<v;)m=u[h%d],A.shift(),A.push(m[0]),w.shift(),w.push(m[1]),Pu(f,A,w);return f.join("")}function go(u,f){var h=u.length-1;if(h)for(var d=u[0][0],v=u[0][1],m=u[h][0]-d,A=u[h][1]-v,w=-1,M,N;++w<=h;)M=u[w],N=w/h,M[0]=f*M[0]+(1-f)*(d+N*m),M[1]=f*M[1]+(1-f)*(v+N*A);return Ru(u)}function tn(u,f){return u[0]*f[0]+u[1]*f[1]+u[2]*f[2]+u[3]*f[3]}var uf=[0,2/3,1/3,0],lf=[0,1/3,2/3,0],ui=[0,1/6,2/3,1/6];function Pu(u,f,h){u.push("C",tn(uf,f),",",tn(uf,h),",",tn(lf,f),",",tn(lf,h),",",tn(ui,f),",",tn(ui,h))}function Fu(u,f){return(f[1]-u[1])/(f[0]-u[0])}function yo(u){for(var f=0,h=u.length-1,d=[],v=u[0],m=u[1],A=d[0]=Fu(v,m);++f<h;)d[f]=(A+(A=Fu(v=m,m=u[f+1])))/2;return d[f]=A,d}function xo(u){for(var f=[],h,d,v,m,A=yo(u),w=-1,M=u.length-1;++w<M;)h=Fu(u[w],u[w+1]),E(h)<ir?A[w]=A[w+1]=0:(d=A[w]/h,v=A[w+1]/h,m=d*d+v*v,m>9&&(m=h*3/Math.sqrt(m),A[w]=m*d,A[w+1]=m*v));for(w=-1;++w<=M;)m=(u[Math.min(M,w+1)][0]-u[Math.max(0,w-1)][0])/(6*(1+A[w]*A[w])),f.push([m||0,A[w]*m||0]);return f}function vy(u){return u.length<3?Hn(u):u[0]+Fa(u,xo(u))}t.svg.line.radial=function(){var u=yc(ev);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function ev(u){for(var f,h=-1,d=u.length,v,m;++h<d;)f=u[h],v=f[0],m=f[1]-vi,f[0]=v*Math.cos(m),f[1]=v*Math.sin(m);return u}function wc(u){var f=ki,h=ki,d=0,v=Mi,m=gc,A=Hn,w=A.key,M=A,N="L",L=.7;function B(z){var re=[],oe=[],j=[],Y=-1,K=z.length,ue,le=gr(f),ee=gr(d),Re=f===h?function(){return tt}:gr(h),ze=d===v?function(){return je}:gr(v),tt,je;function at(){re.push("M",A(u(j),L),N,M(u(oe.reverse()),L),"Z")}for(;++Y<K;)m.call(this,ue=z[Y],Y)?(oe.push([tt=+le.call(this,ue,Y),je=+ee.call(this,ue,Y)]),j.push([+Re.call(this,ue,Y),+ze.call(this,ue,Y)])):oe.length&&(at(),oe=[],j=[]);return oe.length&&at(),re.length?re.join(""):null}return B.x=function(z){return arguments.length?(f=h=z,B):h},B.x0=function(z){return arguments.length?(f=z,B):f},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(d=v=z,B):v},B.y0=function(z){return arguments.length?(d=z,B):d},B.y1=function(z){return arguments.length?(v=z,B):v},B.defined=function(z){return arguments.length?(m=z,B):m},B.interpolate=function(z){return arguments.length?(typeof z=="function"?w=A=z:w=(A=ku.get(z)||Hn).key,M=A.reverse||A,N=A.closed?"M":"L",B):w},B.tension=function(z){return arguments.length?(L=z,B):L},B}Mu.reverse=Pa,Pa.reverse=Mu,t.svg.area=function(){return wc(nt)},t.svg.area.radial=function(){var u=wc(ev);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function bc(u){return u.source}function Sc(u){return u.target}t.svg.chord=function(){var u=bc,f=Sc,h=my,d=vc,v=nf;function m(L,B){var z=A(this,u,L,B),re=A(this,f,L,B);return"M"+z.p0+M(z.r,z.p1,z.a1-z.a0)+(w(z,re)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,re.r,re.p0)+M(re.r,re.p1,re.a1-re.a0)+N(re.r,re.p1,z.r,z.p0))+"Z"}function A(L,B,z,re){var oe=B.call(L,z,re),j=h.call(L,oe,re),Y=d.call(L,oe,re)-vi,K=v.call(L,oe,re)-vi;return{r:j,a0:Y,a1:K,p0:[j*Math.cos(Y),j*Math.sin(Y)],p1:[j*Math.cos(K),j*Math.sin(K)]}}function w(L,B){return L.a0==B.a0&&L.a1==B.a1}function M(L,B,z){return"A"+L+","+L+" 0 "+ +(z>Oi)+",1 "+B}function N(L,B,z,re){return"Q 0,0 "+re}return m.radius=function(L){return arguments.length?(h=gr(L),m):h},m.source=function(L){return arguments.length?(u=gr(L),m):u},m.target=function(L){return arguments.length?(f=gr(L),m):f},m.startAngle=function(L){return arguments.length?(d=gr(L),m):d},m.endAngle=function(L){return arguments.length?(v=gr(L),m):v},m};function my(u){return u.radius}t.svg.diagonal=function(){var u=bc,f=Sc,h=Na;function d(v,m){var A=u.call(this,v,m),w=f.call(this,v,m),M=(A.y+w.y)/2,N=[A,{x:A.x,y:M},{x:w.x,y:M},w];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return d.source=function(v){return arguments.length?(u=gr(v),d):u},d.target=function(v){return arguments.length?(f=gr(v),d):f},d.projection=function(v){return arguments.length?(h=v,d):h},d};function Na(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),f=Na,h=u.projection;return u.projection=function(d){return arguments.length?h(Ec(f=d)):f},u};function Ec(u){return function(){var f=u.apply(this,arguments),h=f[0],d=f[1]-vi;return[h*Math.cos(d),h*Math.sin(d)]}}t.svg.symbol=function(){var u=yy,f=gy;function h(d,v){return(rv.get(u.call(this,d,v))||tv)(f.call(this,d,v))}return h.type=function(d){return arguments.length?(u=gr(d),h):u},h.size=function(d){return arguments.length?(f=gr(d),h):f},h};function gy(){return 64}function yy(){return"circle"}function tv(u){var f=Math.sqrt(u/Oi);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var rv=t.map({circle:tv,cross:function(u){var f=Math.sqrt(u/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(u){var f=Math.sqrt(u/(2*nv)),h=f*nv;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(u){var f=Math.sqrt(u)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(u){var f=Math.sqrt(u/ff),h=f*ff/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(u){var f=Math.sqrt(u/ff),h=f*ff/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=rv.keys();var ff=Math.sqrt(3),nv=Math.tan(30*Qd);Ae.transition=function(u){for(var f=Ii||++cf,h=Iu(u),d=[],v,m,A=_o||{time:Date.now(),ease:fo,delay:0,duration:250},w=-1,M=this.length;++w<M;){d.push(v=[]);for(var N=this[w],L=-1,B=N.length;++L<B;)(m=N[L])&&wo(m,L,h,f,A),v.push(m)}return Nu(d,h,f)},Ae.interrupt=function(u){return this.each(u==null?sf:iv(Iu(u)))};var sf=iv(Iu());function iv(u){return function(){var f,h,d;(f=this[u])&&(d=f[h=f.active])&&(d.timer.c=null,d.timer.t=NaN,--f.count?delete f[h]:delete this[u],f.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function Nu(u,f,h){return qt(u,Dr),u.namespace=f,u.id=h,u}var Dr=[],cf=0,Ii,_o;Dr.call=Ae.call,Dr.empty=Ae.empty,Dr.node=Ae.node,Dr.size=Ae.size,t.transition=function(u,f){return u&&u.transition?Ii?u.transition(f):u:t.selection().transition(u)},t.transition.prototype=Dr,Dr.select=function(u){var f=this.id,h=this.namespace,d=[],v,m,A;u=G(u);for(var w=-1,M=this.length;++w<M;){d.push(v=[]);for(var N=this[w],L=-1,B=N.length;++L<B;)(A=N[L])&&(m=u.call(A,A.__data__,L,w))?("__data__"in A&&(m.__data__=A.__data__),wo(m,L,h,f,A[h][f]),v.push(m)):v.push(null)}return Nu(d,h,f)},Dr.selectAll=function(u){var f=this.id,h=this.namespace,d=[],v,m,A,w,M;u=ie(u);for(var N=-1,L=this.length;++N<L;)for(var B=this[N],z=-1,re=B.length;++z<re;)if(A=B[z]){M=A[h][f],m=u.call(A,A.__data__,z,N),d.push(v=[]);for(var oe=-1,j=m.length;++oe<j;)(w=m[oe])&&wo(w,oe,h,f,M),v.push(w)}return Nu(d,h,f)},Dr.filter=function(u){var f=[],h,d,v;typeof u!="function"&&(u=fu(u));for(var m=0,A=this.length;m<A;m++){f.push(h=[]);for(var d=this[m],w=0,M=d.length;w<M;w++)(v=d[w])&&u.call(v,v.__data__,w,m)&&h.push(v)}return Nu(f,this.namespace,this.id)},Dr.tween=function(u,f){var h=this.id,d=this.namespace;return arguments.length<2?this.node()[d][h].tween.get(u):pi(this,f==null?function(v){v[d][h].tween.remove(u)}:function(v){v[d][h].tween.set(u,f)})};function hf(u,f,h,d){var v=u.id,m=u.namespace;return pi(u,typeof h=="function"?function(A,w,M){A[m][v].tween.set(f,d(h.call(A,A.__data__,w,M)))}:(h=d(h),function(A){A[m][v].tween.set(f,h)}))}Dr.attr=function(u,f){if(arguments.length<2){for(f in u)this.attr(f,u[f]);return this}var h=u=="transform"?Qs:mi,d=t.ns.qualify(u);function v(){this.removeAttribute(d)}function m(){this.removeAttributeNS(d.space,d.local)}function A(M){return M==null?v:(M+="",function(){var N=this.getAttribute(d),L;return N!==M&&(L=h(N,M),function(B){this.setAttribute(d,L(B))})})}function w(M){return M==null?m:(M+="",function(){var N=this.getAttributeNS(d.space,d.local),L;return N!==M&&(L=h(N,M),function(B){this.setAttributeNS(d.space,d.local,L(B))})})}return hf(this,"attr."+u,f,d.local?w:A)},Dr.attrTween=function(u,f){var h=t.ns.qualify(u);function d(m,A){var w=f.call(this,m,A,this.getAttribute(h));return w&&function(M){this.setAttribute(h,w(M))}}function v(m,A){var w=f.call(this,m,A,this.getAttributeNS(h.space,h.local));return w&&function(M){this.setAttributeNS(h.space,h.local,w(M))}}return this.tween("attr."+u,h.local?v:d)},Dr.style=function(u,f,h){var d=arguments.length;if(d<3){if(typeof u!="string"){d<2&&(f="");for(h in u)this.style(h,u[h],f);return this}h=""}function v(){this.style.removeProperty(u)}function m(A){return A==null?v:(A+="",function(){var w=o(this).getComputedStyle(this,null).getPropertyValue(u),M;return w!==A&&(M=mi(w,A),function(N){this.style.setProperty(u,M(N),h)})})}return hf(this,"style."+u,f,m)},Dr.styleTween=function(u,f,h){arguments.length<3&&(h="");function d(v,m){var A=f.call(this,v,m,o(this).getComputedStyle(this,null).getPropertyValue(u));return A&&function(w){this.style.setProperty(u,A(w),h)}}return this.tween("style."+u,d)},Dr.text=function(u){return hf(this,"text",u,Ac)};function Ac(u){return u==null&&(u=""),function(){this.textContent=u}}Dr.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var f;this[u].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Dr.ease=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),pi(this,function(d){d[h][f].ease=u}))},Dr.delay=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:pi(this,typeof u=="function"?function(d,v,m){d[h][f].delay=+u.call(d,d.__data__,v,m)}:(u=+u,function(d){d[h][f].delay=u}))},Dr.duration=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:pi(this,typeof u=="function"?function(d,v,m){d[h][f].duration=Math.max(1,u.call(d,d.__data__,v,m))}:(u=Math.max(1,u),function(d){d[h][f].duration=u}))},Dr.each=function(u,f){var h=this.id,d=this.namespace;if(arguments.length<2){var v=_o,m=Ii;try{Ii=h,pi(this,function(A,w,M){_o=A[d][h],u.call(A,A.__data__,w,M)})}finally{_o=v,Ii=m}}else pi(this,function(A){var w=A[d][h];(w.event||(w.event=t.dispatch("start","end","interrupt"))).on(u,f)});return this},Dr.transition=function(){for(var u=this.id,f=++cf,h=this.namespace,d=[],v,m,A,w,M=0,N=this.length;M<N;M++){d.push(v=[]);for(var m=this[M],L=0,B=m.length;L<B;L++)(A=m[L])&&(w=A[h][u],wo(A,L,h,f,{time:w.time,ease:w.ease,delay:w.delay+w.duration,duration:w.duration})),v.push(A)}return Nu(d,h,f)};function Iu(u){return u==null?"__transition__":"__transition_"+u+"__"}function wo(u,f,h,d,v){var m=u[h]||(u[h]={active:0,count:0}),A=m[d],w,M,N,L,B;function z(j){var Y=A.delay;if(M.t=Y+w,Y<=j)return re(j-Y);M.c=re}function re(j){var Y=m.active,K=m[Y];K&&(K.timer.c=null,K.timer.t=NaN,--m.count,delete m[Y],K.event&&K.event.interrupt.call(u,u.__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]}M.c=oe,no(function(){return M.c&&oe(j||1)&&(M.c=null,M.t=NaN),1},0,w),m.active=d,A.event&&A.event.start.call(u,u.__data__,f),B=[],A.tween.forEach(function(ee,Re){(Re=Re.call(u,u.__data__,f))&&B.push(Re)}),L=A.ease,N=A.duration}function oe(j){for(var Y=j/N,K=L(Y),ue=B.length;ue>0;)B[--ue].call(u,K);if(Y>=1)return A.event&&A.event.end.call(u,u.__data__,f),--m.count?delete m[d]:delete u[h],1}A||(w=v.time,M=no(z,0,w),A=m[d]={tween:new I,time:w,timer:M,delay:v.delay,duration:v.duration,ease:v.ease,index:f},v=null,++m.count)}t.svg.axis=function(){var u=t.scale.linear(),f=Cc,h=6,d=6,v=3,m=[10],A=null,w;function M(N){N.each(function(){var L=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),re=A??(z.ticks?z.ticks.apply(z,m):z.domain()),oe=w??(z.tickFormat?z.tickFormat.apply(z,m):nt),j=L.selectAll(".tick").data(re,z),Y=j.enter().insert("g",".domain").attr("class","tick").style("opacity",ir),K=t.transition(j.exit()).style("opacity",ir).remove(),ue=t.transition(j.order()).style("opacity",1),le=Math.max(h,0)+v,ee,Re=Kl(z),ze=L.selectAll(".domain").data([0]),tt=(ze.enter().append("path").attr("class","domain"),t.transition(ze));Y.append("line"),Y.append("text");var je=Y.select("line"),at=ue.select("line"),vt=j.select("text").text(oe),Gt=Y.select("text"),xt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ar,Mr,dr,rt;if(f==="bottom"||f==="top"?(ee=Oc,ar="x",dr="y",Mr="x2",rt="y2",vt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Re[0]+","+zt*d+"V0H"+Re[1]+"V"+zt*d)):(ee=kc,ar="y",dr="x",Mr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),tt.attr("d","M"+zt*d+","+Re[0]+"H0V"+Re[1]+"H"+zt*d)),je.attr(rt,zt*h),Gt.attr(dr,zt*le),at.attr(Mr,0).attr(rt,zt*h),xt.attr(ar,0).attr(dr,zt*le),z.rangeBand){var Ht=z,Yt=Ht.rangeBand()/2;B=z=function(or){return Ht(or)+Yt}}else B.rangeBand?B=z:K.call(ee,z,B);Y.call(ee,B,z),ue.call(ee,z,z)})}return M.scale=function(N){return arguments.length?(u=N,M):u},M.orient=function(N){return arguments.length?(f=N in Tc?N+"":Cc,M):f},M.ticks=function(){return arguments.length?(m=n(arguments),M):m},M.tickValues=function(N){return arguments.length?(A=N,M):A},M.tickFormat=function(N){return arguments.length?(w=N,M):w},M.tickSize=function(N){var L=arguments.length;return L?(h=+N,d=+arguments[L-1],M):h},M.innerTickSize=function(N){return arguments.length?(h=+N,M):h},M.outerTickSize=function(N){return arguments.length?(d=+N,M):d},M.tickPadding=function(N){return arguments.length?(v=+N,M):v},M.tickSubdivide=function(){return arguments.length&&M},M};var Cc="bottom",Tc={top:1,right:1,bottom:1,left:1};function Oc(u,f,h){u.attr("transform",function(d){var v=f(d);return"translate("+(isFinite(v)?v:h(d))+",0)"})}function kc(u,f,h){u.attr("transform",function(d){var v=f(d);return"translate(0,"+(isFinite(v)?v:h(d))+")"})}t.svg.brush=function(){var u=pt(L,"brushstart","brush","brushend"),f=null,h=null,d=[0,0],v=[0,0],m,A,w=!0,M=!0,N=Lu[0];function L(j){j.each(function(){var Y=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=Y.selectAll(".background").data([0]);K.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Y.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=Y.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(ze){return"resize "+ze}).style("cursor",function(ze){return Mc[ze]}).append("rect").attr("x",function(ze){return/[ew]$/.test(ze)?-3:null}).attr("y",function(ze){return/^[ns]/.test(ze)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",L.empty()?"none":null);var le=t.transition(Y),ee=t.transition(K),Re;f&&(Re=Kl(f),ee.attr("x",Re[0]).attr("width",Re[1]-Re[0]),z(le)),h&&(Re=Kl(h),ee.attr("y",Re[0]).attr("height",Re[1]-Re[0]),re(le)),B(le)})}L.event=function(j){j.each(function(){var Y=u.of(this,arguments),K={x:d,y:v,i:m,j:A},ue=this.__chart__||K;this.__chart__=K,Ii?t.select(this).transition().each("start.brush",function(){m=ue.i,A=ue.j,d=ue.x,v=ue.y,Y({type:"brushstart"})}).tween("brush:brush",function(){var le=kn(d,K.x),ee=kn(v,K.y);return m=A=null,function(Re){d=K.x=le(Re),v=K.y=ee(Re),Y({type:"brush",mode:"resize"})}}).each("end.brush",function(){m=K.i,A=K.j,Y({type:"brush",mode:"resize"}),Y({type:"brushend"})}):(Y({type:"brushstart"}),Y({type:"brush",mode:"resize"}),Y({type:"brushend"}))})};function B(j){j.selectAll(".resize").attr("transform",function(Y){return"translate("+d[+/e$/.test(Y)]+","+v[+/^s/.test(Y)]+")"})}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",v[0]),j.selectAll(".extent,.e>rect,.w>rect").attr("height",v[1]-v[0])}function oe(){var j=this,Y=t.select(t.event.target),K=u.of(j,arguments),ue=t.select(j),le=Y.datum(),ee=!/^(n|s)$/.test(le)&&f,Re=!/^(e|w)$/.test(le)&&h,ze=Y.classed("extent"),tt=Ml(j),je,at=t.mouse(j),vt,Gt=t.select(o(j)).on("keydown.brush",ar).on("keyup.brush",Mr);if(t.event.changedTouches?Gt.on("touchmove.brush",dr).on("touchend.brush",Ht):Gt.on("mousemove.brush",dr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),ze)at[0]=d[0]-at[0],at[1]=v[0]-at[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);vt=[d[1-xt]-at[0],v[1-zt]-at[1]],at[0]=d[xt],at[1]=v[zt]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",Y.style("cursor")),K({type:"brushstart"}),dr();function ar(){t.event.keyCode==32&&(ze||(je=null,at[0]-=d[1],at[1]-=v[1],ze=2),ct())}function Mr(){t.event.keyCode==32&&ze==2&&(at[0]+=d[1],at[1]+=v[1],ze=0,ct())}function dr(){var Yt=t.mouse(j),or=!1;vt&&(Yt[0]+=vt[0],Yt[1]+=vt[1]),ze||(t.event.altKey?(je||(je=[(d[0]+d[1])/2,(v[0]+v[1])/2]),at[0]=d[+(Yt[0]<je[0])],at[1]=v[+(Yt[1]<je[1])]):je=null),ee&&rt(Yt,f,0)&&(z(ue),or=!0),Re&&rt(Yt,h,1)&&(re(ue),or=!0),or&&(B(ue),K({type:"brush",mode:ze?"move":"resize"}))}function rt(Yt,or,Er){var Br=Kl(or),Yr=Br[0],hn=Br[1],_n=at[Er],rn=Er?v:d,Mn=rn[1]-rn[0],R,H;if(ze&&(Yr-=_n,hn-=Mn+_n),R=(Er?M:w)?Math.max(Yr,Math.min(hn,Yt[Er])):Yt[Er],ze?H=(R+=_n)+Mn:(je&&(_n=Math.max(Yr,Math.min(hn,2*je[Er]-R))),_n<R?(H=R,R=_n):H=_n),rn[0]!=R||rn[1]!=H)return Er?A=null:m=null,rn[0]=R,rn[1]=H,!0}function Ht(){dr(),ue.style("pointer-events","all").selectAll(".resize").style("display",L.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),tt(),K({type:"brushend"})}}return L.x=function(j){return arguments.length?(f=j,N=Lu[!f<<1|!h],L):f},L.y=function(j){return arguments.length?(h=j,N=Lu[!f<<1|!h],L):h},L.clamp=function(j){return arguments.length?(f&&h?(w=!!j[0],M=!!j[1]):f?w=!!j:h&&(M=!!j),L):f&&h?[w,M]:f?w:h?M:null},L.extent=function(j){var Y,K,ue,le,ee;return arguments.length?(f&&(Y=j[0],K=j[1],h&&(Y=Y[0],K=K[0]),m=[Y,K],f.invert&&(Y=f(Y),K=f(K)),K<Y&&(ee=Y,Y=K,K=ee),(Y!=d[0]||K!=d[1])&&(d=[Y,K])),h&&(ue=j[0],le=j[1],f&&(ue=ue[1],le=le[1]),A=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(ee=ue,ue=le,le=ee),(ue!=v[0]||le!=v[1])&&(v=[ue,le])),L):(f&&(m?(Y=m[0],K=m[1]):(Y=d[0],K=d[1],f.invert&&(Y=f.invert(Y),K=f.invert(K)),K<Y&&(ee=Y,Y=K,K=ee))),h&&(A?(ue=A[0],le=A[1]):(ue=v[0],le=v[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(ee=ue,ue=le,le=ee))),f&&h?[[Y,ue],[K,le]]:f?[Y,K]:h&&[ue,le])},L.clear=function(){return L.empty()||(d=[0,0],v=[0,0],m=A=null),L},L.empty=function(){return!!f&&d[0]==d[1]||!!h&&v[0]==v[1]},t.rebind(L,u,"on")};var Mc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=Fs(function(u){return u.responseText}),t.json=function(u,f){return Ll(u,"application/json",Rc,f)};function Rc(u){return JSON.parse(u.responseText)}t.html=function(u,f){return Ll(u,"text/html",Pc,f)};function Pc(u){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(u.responseText)}t.xml=Fs(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(xU);var vx=new Date,mx=new Date;function cn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=function(a){return cn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return vx.setTime(+a),mx.setTime(+o),e(vx),e(mx),Math.floor(r(vx,mx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var cm=cn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});cm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?cn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):cm};const G5=cm;var H5=cm.range,hm=1e3,ll=6e4,dm=36e5,B4=864e5,z4=6048e5,U4=cn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*hm)},function(e,t){return(t-e)/hm},function(e){return e.getUTCSeconds()});const q5=U4;var W5=U4.range,j4=cn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*hm)},function(e,t){e.setTime(+e+t*ll)},function(e,t){return(t-e)/ll},function(e){return e.getMinutes()});const _U=j4;var wU=j4.range,G4=cn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*hm-e.getMinutes()*ll)},function(e,t){e.setTime(+e+t*dm)},function(e,t){return(t-e)/dm},function(e){return e.getHours()});const bU=G4;var SU=G4.range,H4=cn(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())*ll)/B4},function(e){return e.getDate()-1});const Gb=H4;var EU=H4.range;function El(e){return cn(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())*ll)/z4})}var pm=El(0),ud=El(1),q4=El(2),W4=El(3),fl=El(4),V4=El(5),Y4=El(6),V5=pm.range,AU=ud.range,CU=q4.range,TU=W4.range,OU=fl.range,kU=V4.range,MU=Y4.range,X4=cn(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 RU=X4;var PU=X4.range,Hb=cn(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()});Hb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:cn(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 us=Hb;var FU=Hb.range,Q4=cn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ll)},function(e,t){return(t-e)/ll},function(e){return e.getUTCMinutes()});const NU=Q4;var IU=Q4.range,Z4=cn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*dm)},function(e,t){return(t-e)/dm},function(e){return e.getUTCHours()});const LU=Z4;var $U=Z4.range,K4=cn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/B4},function(e){return e.getUTCDate()-1});const qb=K4;var DU=K4.range;function Al(e){return cn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/z4})}var vm=Al(0),ld=Al(1),J4=Al(2),eR=Al(3),sl=Al(4),tR=Al(5),rR=Al(6),Y5=vm.range,BU=ld.range,zU=J4.range,UU=eR.range,jU=sl.range,GU=tR.range,HU=rR.range,nR=cn(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 qU=nR;var WU=nR.range,Wb=cn(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()});Wb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:cn(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 ls=Wb;var VU=Wb.range;const YU=Object.freeze(Object.defineProperty({__proto__:null,timeDay:Gb,timeDays:EU,timeFriday:V4,timeFridays:kU,timeHour:bU,timeHours:SU,timeInterval:cn,timeMillisecond:G5,timeMilliseconds:H5,timeMinute:_U,timeMinutes:wU,timeMonday:ud,timeMondays:AU,timeMonth:RU,timeMonths:PU,timeSaturday:Y4,timeSaturdays:MU,timeSecond:q5,timeSeconds:W5,timeSunday:pm,timeSundays:V5,timeThursday:fl,timeThursdays:OU,timeTuesday:q4,timeTuesdays:CU,timeWednesday:W4,timeWednesdays:TU,timeWeek:pm,timeWeeks:V5,timeYear:us,timeYears:FU,utcDay:qb,utcDays:DU,utcFriday:tR,utcFridays:GU,utcHour:LU,utcHours:$U,utcMillisecond:G5,utcMilliseconds:H5,utcMinute:NU,utcMinutes:IU,utcMonday:ld,utcMondays:BU,utcMonth:qU,utcMonths:WU,utcSaturday:rR,utcSaturdays:HU,utcSecond:q5,utcSeconds:W5,utcSunday:vm,utcSundays:Y5,utcThursday:sl,utcThursdays:jU,utcTuesday:J4,utcTuesdays:zU,utcWednesday:eR,utcWednesdays:UU,utcWeek:vm,utcWeeks:Y5,utcYear:ls,utcYears:VU},Symbol.toStringTag,{value:"Module"}));function gx(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 yx(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 Yc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function iR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=Xc(i),p=Qc(i),x=Xc(a),g=Qc(a),y=Xc(o),T=Qc(o),P=Xc(l),b=Qc(l),_=Xc(s),E=Qc(s),k={a:$e,A:qe,b:kt,B:He,c:null,d:eC,e:eC,f:gj,g:Tj,G:kj,H:pj,I:vj,j:mj,L:aR,m:yj,M:xj,p:be,q:Ve,Q:nC,s:iC,S:_j,u:wj,U:bj,V:Sj,w:Ej,W:Aj,x:null,X:null,y:Cj,Y:Oj,Z:Mj,"%":rC},F={a:ct,A:et,b:pt,B:wt,c:null,d:tC,e:tC,f:Nj,g:Hj,G:Wj,H:Rj,I:Pj,j:Fj,L:uR,m:Ij,M:Lj,p:qt,q:Vt,Q:nC,s:iC,S:$j,u:Dj,U:Bj,V:zj,w:Uj,W:jj,x:null,X:null,y:Gj,Y:qj,Z:Vj,"%":rC},I={a:Te,A:Oe,b:Pe,B:De,c:Ue,d:K5,e:K5,f:sj,g:Z5,G:Q5,H:J5,I:J5,j:oj,L:fj,m:aj,M:uj,p:ae,q:ij,Q:hj,s:dj,S:lj,u:JU,U:ej,V:tj,w:KU,W:rj,x:ft,X:nt,y:Z5,Y:Q5,Z:nj,"%":cj};k.x=$(r,k),k.X=$(n,k),k.c=$(t,k),F.x=$(r,F),F.X=$(n,F),F.c=$(t,F);function $(Qe,Et){return function(jt){var Ae=[],G=-1,ie=0,O=Qe.length,S,C,D;for(jt instanceof Date||(jt=new Date(+jt));++G<O;)Qe.charCodeAt(G)===37&&(Ae.push(Qe.slice(ie,G)),(C=X5[S=Qe.charAt(++G)])!=null?S=Qe.charAt(++G):C=S==="e"?" ":"0",(D=Et[S])&&(S=D(jt,C)),Ae.push(S),ie=G+1);return Ae.push(Qe.slice(ie,G)),Ae.join("")}}function ne(Qe,Et){return function(jt){var Ae=Yc(1900,void 0,1),G=V(Ae,Qe,jt+="",0),ie,O;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(Et&&!("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=yx(Yc(Ae.y,0,1)),O=ie.getUTCDay(),ie=O>4||O===0?ld.ceil(ie):ld(ie),ie=qb.offset(ie,(Ae.V-1)*7),Ae.y=ie.getUTCFullYear(),Ae.m=ie.getUTCMonth(),Ae.d=ie.getUTCDate()+(Ae.w+6)%7):(ie=gx(Yc(Ae.y,0,1)),O=ie.getDay(),ie=O>4||O===0?ud.ceil(ie):ud(ie),ie=Gb.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),O="Z"in Ae?yx(Yc(Ae.y,0,1)).getUTCDay():gx(Yc(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(O+5)%7:Ae.w+Ae.U*7-(O+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,yx(Ae)):gx(Ae)}}function V(Qe,Et,jt,Ae){for(var G=0,ie=Et.length,O=jt.length,S,C;G<ie;){if(Ae>=O)return-1;if(S=Et.charCodeAt(G++),S===37){if(S=Et.charAt(G++),C=I[S in X5?Et.charAt(G++):S],!C||(Ae=C(Qe,jt,Ae))<0)return-1}else if(S!=jt.charCodeAt(Ae++))return-1}return Ae}function ae(Qe,Et,jt){var Ae=c.exec(Et.slice(jt));return Ae?(Qe.p=p[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Te(Qe,Et,jt){var Ae=y.exec(Et.slice(jt));return Ae?(Qe.w=T[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Oe(Qe,Et,jt){var Ae=x.exec(Et.slice(jt));return Ae?(Qe.w=g[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Pe(Qe,Et,jt){var Ae=_.exec(Et.slice(jt));return Ae?(Qe.m=E[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function De(Qe,Et,jt){var Ae=P.exec(Et.slice(jt));return Ae?(Qe.m=b[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ue(Qe,Et,jt){return V(Qe,t,Et,jt)}function ft(Qe,Et,jt){return V(Qe,r,Et,jt)}function nt(Qe,Et,jt){return V(Qe,n,Et,jt)}function $e(Qe){return o[Qe.getDay()]}function qe(Qe){return a[Qe.getDay()]}function kt(Qe){return s[Qe.getMonth()]}function He(Qe){return l[Qe.getMonth()]}function be(Qe){return i[+(Qe.getHours()>=12)]}function Ve(Qe){return 1+~~(Qe.getMonth()/3)}function ct(Qe){return o[Qe.getUTCDay()]}function et(Qe){return a[Qe.getUTCDay()]}function pt(Qe){return s[Qe.getUTCMonth()]}function wt(Qe){return l[Qe.getUTCMonth()]}function qt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Vt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Et=$(Qe+="",k);return Et.toString=function(){return Qe},Et},parse:function(Qe){var Et=ne(Qe+="",!1);return Et.toString=function(){return Qe},Et},utcFormat:function(Qe){var Et=$(Qe+="",F);return Et.toString=function(){return Qe},Et},utcParse:function(Qe){var Et=ne(Qe+="",!0);return Et.toString=function(){return Qe},Et}}}var X5={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,XU=/^%/,QU=/[\\^$*+?|[\]().{}]/g;function xr(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 ZU(e){return e.replace(QU,"\\$&")}function Xc(e){return new RegExp("^(?:"+e.map(ZU).join("|")+")","i")}function Qc(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function KU(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function JU(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ej(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Q5(e,t,r){var n=xn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Z5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nj(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 ij(e,t,r){var n=xn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function K5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oj(e,t,r){var n=xn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function J5(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function uj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lj(e,t,r){var n=xn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function fj(e,t,r){var n=xn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function sj(e,t,r){var n=xn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function cj(e,t,r){var n=XU.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hj(e,t,r){var n=xn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function dj(e,t,r){var n=xn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function eC(e,t){return xr(e.getDate(),t,2)}function pj(e,t){return xr(e.getHours(),t,2)}function vj(e,t){return xr(e.getHours()%12||12,t,2)}function mj(e,t){return xr(1+Gb.count(us(e),e),t,3)}function aR(e,t){return xr(e.getMilliseconds(),t,3)}function gj(e,t){return aR(e,t)+"000"}function yj(e,t){return xr(e.getMonth()+1,t,2)}function xj(e,t){return xr(e.getMinutes(),t,2)}function _j(e,t){return xr(e.getSeconds(),t,2)}function wj(e){var t=e.getDay();return t===0?7:t}function bj(e,t){return xr(pm.count(us(e)-1,e),t,2)}function oR(e){var t=e.getDay();return t>=4||t===0?fl(e):fl.ceil(e)}function Sj(e,t){return e=oR(e),xr(fl.count(us(e),e)+(us(e).getDay()===4),t,2)}function Ej(e){return e.getDay()}function Aj(e,t){return xr(ud.count(us(e)-1,e),t,2)}function Cj(e,t){return xr(e.getFullYear()%100,t,2)}function Tj(e,t){return e=oR(e),xr(e.getFullYear()%100,t,2)}function Oj(e,t){return xr(e.getFullYear()%1e4,t,4)}function kj(e,t){var r=e.getDay();return e=r>=4||r===0?fl(e):fl.ceil(e),xr(e.getFullYear()%1e4,t,4)}function Mj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xr(t/60|0,"0",2)+xr(t%60,"0",2)}function tC(e,t){return xr(e.getUTCDate(),t,2)}function Rj(e,t){return xr(e.getUTCHours(),t,2)}function Pj(e,t){return xr(e.getUTCHours()%12||12,t,2)}function Fj(e,t){return xr(1+qb.count(ls(e),e),t,3)}function uR(e,t){return xr(e.getUTCMilliseconds(),t,3)}function Nj(e,t){return uR(e,t)+"000"}function Ij(e,t){return xr(e.getUTCMonth()+1,t,2)}function Lj(e,t){return xr(e.getUTCMinutes(),t,2)}function $j(e,t){return xr(e.getUTCSeconds(),t,2)}function Dj(e){var t=e.getUTCDay();return t===0?7:t}function Bj(e,t){return xr(vm.count(ls(e)-1,e),t,2)}function lR(e){var t=e.getUTCDay();return t>=4||t===0?sl(e):sl.ceil(e)}function zj(e,t){return e=lR(e),xr(sl.count(ls(e),e)+(ls(e).getUTCDay()===4),t,2)}function Uj(e){return e.getUTCDay()}function jj(e,t){return xr(ld.count(ls(e)-1,e),t,2)}function Gj(e,t){return xr(e.getUTCFullYear()%100,t,2)}function Hj(e,t){return e=lR(e),xr(e.getUTCFullYear()%100,t,2)}function qj(e,t){return xr(e.getUTCFullYear()%1e4,t,4)}function Wj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?sl(e):sl.ceil(e),xr(e.getUTCFullYear()%1e4,t,4)}function Vj(){return"+0000"}function rC(){return"%"}function nC(e){return+e}function iC(e){return Math.floor(+e/1e3)}var mf,fR,sR,Vb,Yb;cR({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 cR(e){return mf=iR(e),fR=mf.format,sR=mf.parse,Vb=mf.utcFormat,Yb=mf.utcParse,mf}var hR="%Y-%m-%dT%H:%M:%S.%LZ";function Yj(e){return e.toISOString()}var Xj=Date.prototype.toISOString?Yj:Vb(hR);const Qj=Xj;function Zj(e){var t=new Date(e);return isNaN(t)?null:t}var Kj=+new Date("2000-01-01T00:00:00.000Z")?Zj:Yb(hR);const Jj=Kj,eG=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:Qj,isoParse:Jj,get timeFormat(){return fR},timeFormatDefaultLocale:cR,timeFormatLocale:iR,get timeParse(){return sR},get utcFormat(){return Vb},get utcParse(){return Yb}},Symbol.toStringTag,{value:"Module"})),mK=pl(eG);function tG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function mm(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 fs(e){return e=mm(Math.abs(e)),e?e[1]:NaN}function rG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function nG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var iG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gm(e){if(!(t=iG.exec(e)))throw new Error("invalid format: "+e);var t;return new pg({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]})}gm.prototype=pg.prototype;function pg(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+""}pg.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 aG(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 dR;function oG(e,t){var r=mm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(dR=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+mm(e,Math.max(0,t+a-1))[0]}function aC(e,t){var r=mm(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 oC={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:tG,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 aC(e*100,t)},r:aC,s:oG,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function uC(e){return e}var lC=Array.prototype.map,fC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pR(e){var t=e.grouping===void 0||e.thousands===void 0?uC:rG(lC.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?uC:nG(lC.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(x){x=gm(x);var g=x.fill,y=x.align,T=x.sign,P=x.symbol,b=x.zero,_=x.width,E=x.comma,k=x.precision,F=x.trim,I=x.type;I==="n"?(E=!0,I="g"):oC[I]||(k===void 0&&(k=12),F=!0,I="g"),(b||g==="0"&&y==="=")&&(b=!0,g="0",y="=");var $=P==="$"?r:P==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",ne=P==="$"?n:/[%p]/.test(I)?o:"",V=oC[I],ae=/[defgprs%]/.test(I);k=k===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function Te(Oe){var Pe=$,De=ne,Ue,ft,nt;if(I==="c")De=V(Oe)+De,Oe="";else{Oe=+Oe;var $e=Oe<0||1/Oe<0;if(Oe=isNaN(Oe)?s:V(Math.abs(Oe),k),F&&(Oe=aG(Oe)),$e&&+Oe==0&&T!=="+"&&($e=!1),Pe=($e?T==="("?T:l:T==="-"||T==="("?"":T)+Pe,De=(I==="s"?fC[8+dR/3]:"")+De+($e&&T==="("?")":""),ae){for(Ue=-1,ft=Oe.length;++Ue<ft;)if(nt=Oe.charCodeAt(Ue),48>nt||nt>57){De=(nt===46?i+Oe.slice(Ue+1):Oe.slice(Ue))+De,Oe=Oe.slice(0,Ue);break}}}E&&!b&&(Oe=t(Oe,1/0));var qe=Pe.length+Oe.length+De.length,kt=qe<_?new Array(_-qe+1).join(g):"";switch(E&&b&&(Oe=t(kt+Oe,kt.length?_-De.length:1/0),kt=""),y){case"<":Oe=Pe+Oe+De+kt;break;case"=":Oe=Pe+kt+Oe+De;break;case"^":Oe=kt.slice(0,qe=kt.length>>1)+Pe+Oe+De+kt.slice(qe);break;default:Oe=kt+Pe+Oe+De;break}return a(Oe)}return Te.toString=function(){return x+""},Te}function p(x,g){var y=c((x=gm(x),x.type="f",x)),T=Math.max(-8,Math.min(8,Math.floor(fs(g)/3)))*3,P=Math.pow(10,-T),b=fC[8+T/3];return function(_){return y(P*_)+b}}return{format:c,formatPrefix:p}}var Iv,vR,mR;gR({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function gR(e){return Iv=pR(e),vR=Iv.format,mR=Iv.formatPrefix,Iv}function uG(e){return Math.max(0,-fs(Math.abs(e)))}function lG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fs(t)/3)))*3-fs(Math.abs(e)))}function fG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fs(t)-fs(e))+1}const sG=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:pg,get format(){return vR},formatDefaultLocale:gR,formatLocale:pR,get formatPrefix(){return mR},formatSpecifier:gm,precisionFixed:uG,precisionPrefix:lG,precisionRound:fG},Symbol.toStringTag,{value:"Module"})),gK=pl(sG);var cG=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},hG=cG,yK=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&hG(r))return!1}else if(t!=="number")return!1;return e-e<1},sC={},dG={get exports(){return sC},set exports(e){sC=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function c(G,ie){if(G=G||"",ie=ie||{},G instanceof c)return G;if(!(this instanceof c))return new c(G,ie);var O=p(G);this._originalInput=G,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=a(100*this._a)/100,this._format=ie.format||O.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=O.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,O,S,C,D,se;return ie=G.r/255,O=G.g/255,S=G.b/255,ie<=.03928?C=ie/12.92:C=t.pow((ie+.055)/1.055,2.4),O<=.03928?D=O/12.92:D=t.pow((O+.055)/1.055,2.4),S<=.03928?se=S/12.92:se=t.pow((S+.055)/1.055,2.4),.2126*C+.7152*D+.0722*se},setAlpha:function(G){return this._a=kt(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=T(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=T(this._r,this._g,this._b),ie=a(G.h*360),O=a(G.s*100),S=a(G.v*100);return this._a==1?"hsv("+ie+", "+O+"%, "+S+"%)":"hsva("+ie+", "+O+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var G=g(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=g(this._r,this._g,this._b),ie=a(G.h*360),O=a(G.s*100),S=a(G.l*100);return this._a==1?"hsl("+ie+", "+O+"%, "+S+"%)":"hsla("+ie+", "+O+"%, "+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 _(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(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$e[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var ie="#"+E(this._r,this._g,this._b,this._a),O=ie,S=this._gradientType?"GradientType = 1, ":"";if(G){var C=c(G);O="#"+E(C._r,C._g,C._b,C._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+ie+",endColorstr="+O+")"},toString:function(G){var ie=!!G;G=G||this._format;var O=!1,S=this._a<1&&this._a>=0,C=!ie&&S&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return C?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&(O=this.toRgbString()),G==="prgb"&&(O=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&(O=this.toHexString()),G==="hex3"&&(O=this.toHexString(!0)),G==="hex4"&&(O=this.toHex8String(!0)),G==="hex8"&&(O=this.toHex8String()),G==="name"&&(O=this.toName()),G==="hsl"&&(O=this.toHslString()),G==="hsv"&&(O=this.toHsvString()),O||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(G,ie){var O=G.apply(null,[this].concat([].slice.call(ie)));return this._r=O._r,this._g=O._g,this._b=O._b,this.setAlpha(O._a),this},lighten:function(){return this._applyModification($,arguments)},brighten:function(){return this._applyModification(ne,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(I,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(Ue,arguments)},complement:function(){return this._applyCombination(Te,arguments)},monochromatic:function(){return this._applyCombination(ft,arguments)},splitcomplement:function(){return this._applyCombination(De,arguments)},triad:function(){return this._applyCombination(Oe,arguments)},tetrad:function(){return this._applyCombination(Pe,arguments)}},c.fromRatio=function(G,ie){if(typeof G=="object"){var O={};for(var S in G)G.hasOwnProperty(S)&&(S==="a"?O[S]=G[S]:O[S]=wt(G[S]));G=O}return c(G,ie)};function p(G){var ie={r:0,g:0,b:0},O=1,S=null,C=null,D=null,se=!1,Fe=!1;return typeof G=="string"&&(G=jt(G)),typeof G=="object"&&(Et(G.r)&&Et(G.g)&&Et(G.b)?(ie=x(G.r,G.g,G.b),se=!0,Fe=String(G.r).substr(-1)==="%"?"prgb":"rgb"):Et(G.h)&&Et(G.s)&&Et(G.v)?(S=wt(G.s),C=wt(G.v),ie=P(G.h,S,C),se=!0,Fe="hsv"):Et(G.h)&&Et(G.s)&&Et(G.l)&&(S=wt(G.s),D=wt(G.l),ie=y(G.h,S,D),se=!0,Fe="hsl"),G.hasOwnProperty("a")&&(O=G.a)),O=kt(O),{ok:se,format:G.format||Fe,r:o(255,l(ie.r,0)),g:o(255,l(ie.g,0)),b:o(255,l(ie.b,0)),a:O}}function x(G,ie,O){return{r:He(G,255)*255,g:He(ie,255)*255,b:He(O,255)*255}}function g(G,ie,O){G=He(G,255),ie=He(ie,255),O=He(O,255);var S=l(G,ie,O),C=o(G,ie,O),D,se,Fe=(S+C)/2;if(S==C)D=se=0;else{var Be=S-C;switch(se=Fe>.5?Be/(2-S-C):Be/(S+C),S){case G:D=(ie-O)/Be+(ie<O?6:0);break;case ie:D=(O-G)/Be+2;break;case O:D=(G-ie)/Be+4;break}D/=6}return{h:D,s:se,l:Fe}}function y(G,ie,O){var S,C,D;G=He(G,360),ie=He(ie,100),O=He(O,100);function se(Qt,sr,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?Qt+(sr-Qt)*6*nr:nr<1/2?sr:nr<2/3?Qt+(sr-Qt)*(2/3-nr)*6:Qt}if(ie===0)S=C=D=O;else{var Fe=O<.5?O*(1+ie):O+ie-O*ie,Be=2*O-Fe;S=se(Be,Fe,G+1/3),C=se(Be,Fe,G),D=se(Be,Fe,G-1/3)}return{r:S*255,g:C*255,b:D*255}}function T(G,ie,O){G=He(G,255),ie=He(ie,255),O=He(O,255);var S=l(G,ie,O),C=o(G,ie,O),D,se,Fe=S,Be=S-C;if(se=S===0?0:Be/S,S==C)D=0;else{switch(S){case G:D=(ie-O)/Be+(ie<O?6:0);break;case ie:D=(O-G)/Be+2;break;case O:D=(G-ie)/Be+4;break}D/=6}return{h:D,s:se,v:Fe}}function P(G,ie,O){G=He(G,360)*6,ie=He(ie,100),O=He(O,100);var S=t.floor(G),C=G-S,D=O*(1-ie),se=O*(1-C*ie),Fe=O*(1-(1-C)*ie),Be=S%6,Qt=[O,se,D,D,Fe,O][Be],sr=[Fe,O,O,se,D,D][Be],nr=[D,D,Fe,O,O,se][Be];return{r:Qt*255,g:sr*255,b:nr*255}}function b(G,ie,O,S){var C=[pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).toString(16))];return S&&C[0].charAt(0)==C[0].charAt(1)&&C[1].charAt(0)==C[1].charAt(1)&&C[2].charAt(0)==C[2].charAt(1)?C[0].charAt(0)+C[1].charAt(0)+C[2].charAt(0):C.join("")}function _(G,ie,O,S,C){var D=[pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).toString(16)),pt(qt(S))];return C&&D[0].charAt(0)==D[0].charAt(1)&&D[1].charAt(0)==D[1].charAt(1)&&D[2].charAt(0)==D[2].charAt(1)&&D[3].charAt(0)==D[3].charAt(1)?D[0].charAt(0)+D[1].charAt(0)+D[2].charAt(0)+D[3].charAt(0):D.join("")}function E(G,ie,O,S){var C=[pt(qt(S)),pt(a(G).toString(16)),pt(a(ie).toString(16)),pt(a(O).toString(16))];return C.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 k(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.s-=ie/100,O.s=be(O.s),c(O)}function F(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.s+=ie/100,O.s=be(O.s),c(O)}function I(G){return c(G).desaturate(100)}function $(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.l+=ie/100,O.l=be(O.l),c(O)}function ne(G,ie){ie=ie===0?0:ie||10;var O=c(G).toRgb();return O.r=l(0,o(255,O.r-a(255*-(ie/100)))),O.g=l(0,o(255,O.g-a(255*-(ie/100)))),O.b=l(0,o(255,O.b-a(255*-(ie/100)))),c(O)}function V(G,ie){ie=ie===0?0:ie||10;var O=c(G).toHsl();return O.l-=ie/100,O.l=be(O.l),c(O)}function ae(G,ie){var O=c(G).toHsl(),S=(O.h+ie)%360;return O.h=S<0?360+S:S,c(O)}function Te(G){var ie=c(G).toHsl();return ie.h=(ie.h+180)%360,c(ie)}function Oe(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+120)%360,s:ie.s,l:ie.l}),c({h:(O+240)%360,s:ie.s,l:ie.l})]}function Pe(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+90)%360,s:ie.s,l:ie.l}),c({h:(O+180)%360,s:ie.s,l:ie.l}),c({h:(O+270)%360,s:ie.s,l:ie.l})]}function De(G){var ie=c(G).toHsl(),O=ie.h;return[c(G),c({h:(O+72)%360,s:ie.s,l:ie.l}),c({h:(O+216)%360,s:ie.s,l:ie.l})]}function Ue(G,ie,O){ie=ie||6,O=O||30;var S=c(G).toHsl(),C=360/O,D=[c(G)];for(S.h=(S.h-(C*ie>>1)+720)%360;--ie;)S.h=(S.h+C)%360,D.push(c(S));return D}function ft(G,ie){ie=ie||6;for(var O=c(G).toHsv(),S=O.h,C=O.s,D=O.v,se=[],Fe=1/ie;ie--;)se.push(c({h:S,s:C,v:D})),D=(D+Fe)%1;return se}c.mix=function(G,ie,O){O=O===0?0:O||50;var S=c(G).toRgb(),C=c(ie).toRgb(),D=O/100,se={r:(C.r-S.r)*D+S.r,g:(C.g-S.g)*D+S.g,b:(C.b-S.b)*D+S.b,a:(C.a-S.a)*D+S.a};return c(se)},c.readability=function(G,ie){var O=c(G),S=c(ie);return(t.max(O.getLuminance(),S.getLuminance())+.05)/(t.min(O.getLuminance(),S.getLuminance())+.05)},c.isReadable=function(G,ie,O){var S=c.readability(G,ie),C,D;switch(D=!1,C=Ae(O),C.level+C.size){case"AAsmall":case"AAAlarge":D=S>=4.5;break;case"AAlarge":D=S>=3;break;case"AAAsmall":D=S>=7;break}return D},c.mostReadable=function(G,ie,O){var S=null,C=0,D,se,Fe,Be;O=O||{},se=O.includeFallbackColors,Fe=O.level,Be=O.size;for(var Qt=0;Qt<ie.length;Qt++)D=c.readability(G,ie[Qt]),D>C&&(C=D,S=c(ie[Qt]));return c.isReadable(G,S,{level:Fe,size:Be})||!se?S:(O.includeFallbackColors=!1,c.mostReadable(G,["#fff","#000"],O))};var nt=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"},$e=c.hexNames=qe(nt);function qe(G){var ie={};for(var O in G)G.hasOwnProperty(O)&&(ie[G[O]]=O);return ie}function kt(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function He(G,ie){ct(G)&&(G="100%");var O=et(G);return G=o(ie,l(0,parseFloat(G))),O&&(G=parseInt(G*ie,10)/100),t.abs(G-ie)<1e-6?1:G%ie/parseFloat(ie)}function be(G){return o(1,l(0,G))}function Ve(G){return parseInt(G,16)}function ct(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function et(G){return typeof G=="string"&&G.indexOf("%")!=-1}function pt(G){return G.length==1?"0"+G:""+G}function wt(G){return G<=1&&(G=G*100+"%"),G}function qt(G){return t.round(parseFloat(G)*255).toString(16)}function Vt(G){return Ve(G)/255}var Qe=function(){var G="[-\\+]?\\d+%?",ie="[-\\+]?\\d*\\.\\d+%?",O="(?:"+ie+")|(?:"+G+")",S="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",C="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?";return{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+C),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 Et(G){return!!Qe.CSS_UNIT.exec(G)}function jt(G){G=G.replace(r,"").replace(n,"").toLowerCase();var ie=!1;if(nt[G])G=nt[G],ie=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var O;return(O=Qe.rgb.exec(G))?{r:O[1],g:O[2],b:O[3]}:(O=Qe.rgba.exec(G))?{r:O[1],g:O[2],b:O[3],a:O[4]}:(O=Qe.hsl.exec(G))?{h:O[1],s:O[2],l:O[3]}:(O=Qe.hsla.exec(G))?{h:O[1],s:O[2],l:O[3],a:O[4]}:(O=Qe.hsv.exec(G))?{h:O[1],s:O[2],v:O[3]}:(O=Qe.hsva.exec(G))?{h:O[1],s:O[2],v:O[3],a:O[4]}:(O=Qe.hex8.exec(G))?{r:Ve(O[1]),g:Ve(O[2]),b:Ve(O[3]),a:Vt(O[4]),format:ie?"name":"hex8"}:(O=Qe.hex6.exec(G))?{r:Ve(O[1]),g:Ve(O[2]),b:Ve(O[3]),format:ie?"name":"hex"}:(O=Qe.hex4.exec(G))?{r:Ve(O[1]+""+O[1]),g:Ve(O[2]+""+O[2]),b:Ve(O[3]+""+O[3]),a:Vt(O[4]+""+O[4]),format:ie?"name":"hex8"}:(O=Qe.hex3.exec(G))?{r:Ve(O[1]+""+O[1]),g:Ve(O[2]+""+O[2]),b:Ve(O[3]+""+O[3]),format:ie?"name":"hex"}:!1}function Ae(G){var ie,O;return G=G||{level:"AA",size:"small"},ie=(G.level||"AA").toUpperCase(),O=(G.size||"small").toLowerCase(),ie!=="AA"&&ie!=="AAA"&&(ie="AA"),O!=="small"&&O!=="large"&&(O="small"),{level:ie,size:O}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(dG);var pG=vG;function vG(){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 mG=gG;function gG(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 yG=xG;function xG(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 yR=_G;function _G(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 wG=bG;function bG(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var SG=EG;function EG(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],p=t[8],x=t[9],g=t[10],y=t[11],T=t[12],P=t[13],b=t[14],_=t[15],E=r*l-n*o,k=r*s-i*o,F=r*c-a*o,I=n*s-i*l,$=n*c-a*l,ne=i*c-a*s,V=p*P-x*T,ae=p*b-g*T,Te=p*_-y*T,Oe=x*b-g*P,Pe=x*_-y*P,De=g*_-y*b,Ue=E*De-k*Pe+F*Oe+I*Te-$*ae+ne*V;return Ue?(Ue=1/Ue,e[0]=(l*De-s*Pe+c*Oe)*Ue,e[1]=(i*Pe-n*De-a*Oe)*Ue,e[2]=(P*ne-b*$+_*I)*Ue,e[3]=(g*$-x*ne-y*I)*Ue,e[4]=(s*Te-o*De-c*ae)*Ue,e[5]=(r*De-i*Te+a*ae)*Ue,e[6]=(b*F-T*ne-_*k)*Ue,e[7]=(p*ne-g*F+y*k)*Ue,e[8]=(o*Pe-l*Te+c*V)*Ue,e[9]=(n*Te-r*Pe-a*V)*Ue,e[10]=(T*$-P*F+_*E)*Ue,e[11]=(x*F-p*$-y*E)*Ue,e[12]=(l*ae-o*Oe-s*V)*Ue,e[13]=(r*Oe-n*ae+i*V)*Ue,e[14]=(P*k-T*I-b*E)*Ue,e[15]=(p*I-x*k+g*E)*Ue,e):null}var AG=CG;function CG(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],p=t[8],x=t[9],g=t[10],y=t[11],T=t[12],P=t[13],b=t[14],_=t[15];return e[0]=l*(g*_-y*b)-x*(s*_-c*b)+P*(s*y-c*g),e[1]=-(n*(g*_-y*b)-x*(i*_-a*b)+P*(i*y-a*g)),e[2]=n*(s*_-c*b)-l*(i*_-a*b)+P*(i*c-a*s),e[3]=-(n*(s*y-c*g)-l*(i*y-a*g)+x*(i*c-a*s)),e[4]=-(o*(g*_-y*b)-p*(s*_-c*b)+T*(s*y-c*g)),e[5]=r*(g*_-y*b)-p*(i*_-a*b)+T*(i*y-a*g),e[6]=-(r*(s*_-c*b)-o*(i*_-a*b)+T*(i*c-a*s)),e[7]=r*(s*y-c*g)-o*(i*y-a*g)+p*(i*c-a*s),e[8]=o*(x*_-y*P)-p*(l*_-c*P)+T*(l*y-c*x),e[9]=-(r*(x*_-y*P)-p*(n*_-a*P)+T*(n*y-a*x)),e[10]=r*(l*_-c*P)-o*(n*_-a*P)+T*(n*c-a*l),e[11]=-(r*(l*y-c*x)-o*(n*y-a*x)+p*(n*c-a*l)),e[12]=-(o*(x*b-g*P)-p*(l*b-s*P)+T*(l*g-s*x)),e[13]=r*(x*b-g*P)-p*(n*b-i*P)+T*(n*g-i*x),e[14]=-(r*(l*b-s*P)-o*(n*b-i*P)+T*(n*s-i*l)),e[15]=r*(l*g-s*x)-o*(n*g-i*x)+p*(n*s-i*l),e}var TG=OG;function OG(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],c=e[8],p=e[9],x=e[10],g=e[11],y=e[12],T=e[13],P=e[14],b=e[15],_=t*o-r*a,E=t*l-n*a,k=t*s-i*a,F=r*l-n*o,I=r*s-i*o,$=n*s-i*l,ne=c*T-p*y,V=c*P-x*y,ae=c*b-g*y,Te=p*P-x*T,Oe=p*b-g*T,Pe=x*b-g*P;return _*Pe-E*Oe+k*Te+F*ae-I*V+$*ne}var kG=MG;function MG(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],c=t[6],p=t[7],x=t[8],g=t[9],y=t[10],T=t[11],P=t[12],b=t[13],_=t[14],E=t[15],k=r[0],F=r[1],I=r[2],$=r[3];return e[0]=k*n+F*l+I*x+$*P,e[1]=k*i+F*s+I*g+$*b,e[2]=k*a+F*c+I*y+$*_,e[3]=k*o+F*p+I*T+$*E,k=r[4],F=r[5],I=r[6],$=r[7],e[4]=k*n+F*l+I*x+$*P,e[5]=k*i+F*s+I*g+$*b,e[6]=k*a+F*c+I*y+$*_,e[7]=k*o+F*p+I*T+$*E,k=r[8],F=r[9],I=r[10],$=r[11],e[8]=k*n+F*l+I*x+$*P,e[9]=k*i+F*s+I*g+$*b,e[10]=k*a+F*c+I*y+$*_,e[11]=k*o+F*p+I*T+$*E,k=r[12],F=r[13],I=r[14],$=r[15],e[12]=k*n+F*l+I*x+$*P,e[13]=k*i+F*s+I*g+$*b,e[14]=k*a+F*c+I*y+$*_,e[15]=k*o+F*p+I*T+$*E,e}var RG=PG;function PG(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,c,p,x,g,y,T,P,b,_;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],c=t[3],p=t[4],x=t[5],g=t[6],y=t[7],T=t[8],P=t[9],b=t[10],_=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=c,e[4]=p,e[5]=x,e[6]=g,e[7]=y,e[8]=T,e[9]=P,e[10]=b,e[11]=_,e[12]=o*n+p*i+T*a+t[12],e[13]=l*n+x*i+P*a+t[13],e[14]=s*n+g*i+b*a+t[14],e[15]=c*n+y*i+_*a+t[15]),e}var FG=NG;function NG(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 IG=LG;function LG(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,c,p,x,g,y,T,P,b,_,E,k,F,I,$,ne,V,ae,Te,Oe,Pe,De,Ue,ft;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),c=Math.cos(r),p=1-c,x=t[0],g=t[1],y=t[2],T=t[3],P=t[4],b=t[5],_=t[6],E=t[7],k=t[8],F=t[9],I=t[10],$=t[11],ne=i*i*p+c,V=a*i*p+o*s,ae=o*i*p-a*s,Te=i*a*p-o*s,Oe=a*a*p+c,Pe=o*a*p+i*s,De=i*o*p+a*s,Ue=a*o*p-i*s,ft=o*o*p+c,e[0]=x*ne+P*V+k*ae,e[1]=g*ne+b*V+F*ae,e[2]=y*ne+_*V+I*ae,e[3]=T*ne+E*V+$*ae,e[4]=x*Te+P*Oe+k*Pe,e[5]=g*Te+b*Oe+F*Pe,e[6]=y*Te+_*Oe+I*Pe,e[7]=T*Te+E*Oe+$*Pe,e[8]=x*De+P*Ue+k*ft,e[9]=g*De+b*Ue+F*ft,e[10]=y*De+_*Ue+I*ft,e[11]=T*De+E*Ue+$*ft,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var $G=DG;function DG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],c=t[8],p=t[9],x=t[10],g=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]=o*i+p*n,e[6]=l*i+x*n,e[7]=s*i+g*n,e[8]=c*i-a*n,e[9]=p*i-o*n,e[10]=x*i-l*n,e[11]=g*i-s*n,e}var BG=zG;function zG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[8],p=t[9],x=t[10],g=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]=o*i-p*n,e[2]=l*i-x*n,e[3]=s*i-g*n,e[8]=a*n+c*i,e[9]=o*n+p*i,e[10]=l*n+x*i,e[11]=s*n+g*i,e}var UG=jG;function jG(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[4],p=t[5],x=t[6],g=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]=o*i+p*n,e[2]=l*i+x*n,e[3]=s*i+g*n,e[4]=c*i-a*n,e[5]=p*i-o*n,e[6]=x*i-l*n,e[7]=g*i-s*n,e}var GG=HG;function HG(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,o*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var qG=WG;function WG(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,c=a+a,p=n*l,x=n*s,g=n*c,y=i*s,T=i*c,P=a*c,b=o*l,_=o*s,E=o*c;return e[0]=1-(y+P),e[1]=x+E,e[2]=g-_,e[3]=0,e[4]=x-E,e[5]=1-(p+P),e[6]=T+b,e[7]=0,e[8]=g+_,e[9]=T-b,e[10]=1-(p+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var VG=YG;function YG(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 XG=QG;function QG(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 ZG=KG;function KG(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 JG=eH;function eH(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 tH=rH;function rH(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 nH=iH;function iH(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,c=r*o,p=n*o,x=n*l,g=i*o,y=i*l,T=i*s,P=a*o,b=a*l,_=a*s;return e[0]=1-x-T,e[1]=p+_,e[2]=g-b,e[3]=0,e[4]=p-_,e[5]=1-c-T,e[6]=y+P,e[7]=0,e[8]=g+b,e[9]=y-P,e[10]=1-c-x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var aH=oH;function oH(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),c=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}var uH=lH;function lH(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var fH=sH;function sH(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),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]=-((o-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 cH=hH;function hH(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),c=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*c,e[15]=1,e}var dH=yR,pH=vH;function vH(e,t,r,n){var i,a,o,l,s,c,p,x,g,y,T=t[0],P=t[1],b=t[2],_=n[0],E=n[1],k=n[2],F=r[0],I=r[1],$=r[2];return Math.abs(T-F)<1e-6&&Math.abs(P-I)<1e-6&&Math.abs(b-$)<1e-6?dH(e):(p=T-F,x=P-I,g=b-$,y=1/Math.sqrt(p*p+x*x+g*g),p*=y,x*=y,g*=y,i=E*g-k*x,a=k*p-_*g,o=_*x-E*p,y=Math.sqrt(i*i+a*a+o*o),y?(y=1/y,i*=y,a*=y,o*=y):(i=0,a=0,o=0),l=x*o-g*a,s=g*i-p*o,c=p*a-x*i,y=Math.sqrt(l*l+s*s+c*c),y?(y=1/y,l*=y,s*=y,c*=y):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=p,e[3]=0,e[4]=a,e[5]=s,e[6]=x,e[7]=0,e[8]=o,e[9]=c,e[10]=g,e[11]=0,e[12]=-(i*T+a*P+o*b),e[13]=-(l*T+s*P+c*b),e[14]=-(p*T+x*P+g*b),e[15]=1,e)}var mH=gH;function gH(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 xK={create:pG,clone:mG,copy:yG,identity:yR,transpose:wG,invert:SG,adjoint:AG,determinant:TG,multiply:kG,translate:RG,scale:FG,rotate:IG,rotateX:$G,rotateY:BG,rotateZ:UG,fromRotation:GG,fromRotationTranslation:qG,fromScaling:VG,fromTranslation:XG,fromXRotation:ZG,fromYRotation:JG,fromZRotation:tH,fromQuat:nH,frustum:aH,perspective:uH,perspectiveFromFieldOfView:fH,ortho:cH,lookAt:pH,str:mH},ym={},yH={get exports(){return ym},set exports(e){ym=e}};yH.exports=Xb;ym.isMobile=Xb;ym.default=Xb;const xH=/(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,_H=/CrOS/,wH=/android|ipad|playbook|silk/i;function Xb(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=xH.test(t)&&!_H.test(t)||!!e.tablet&&wH.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var bH=!0,SH=bH,zw;typeof tr.matchMedia=="function"?zw=!tr.matchMedia("(hover: none)").matches:zw=SH;var _K=zw,Uw={},EH={get exports(){return Uw},set exports(e){Uw=e}},Yf=typeof Reflect=="object"?Reflect:null,cC=Yf&&typeof Yf.apply=="function"?Yf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},y0;Yf&&typeof Yf.ownKeys=="function"?y0=Yf.ownKeys:Object.getOwnPropertySymbols?y0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:y0=function(t){return Object.getOwnPropertyNames(t)};function AH(e){console&&console.warn&&console.warn(e)}var xR=Number.isNaN||function(t){return t!==t};function Cr(){Cr.init.call(this)}EH.exports=Cr;Uw.once=kH;Cr.EventEmitter=Cr;Cr.prototype._events=void 0;Cr.prototype._eventsCount=0;Cr.prototype._maxListeners=void 0;var hC=10;function vg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Cr,"defaultMaxListeners",{enumerable:!0,get:function(){return hC},set:function(e){if(typeof e!="number"||e<0||xR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");hC=e}});Cr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Cr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||xR(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 _R(e){return e._maxListeners===void 0?Cr.defaultMaxListeners:e._maxListeners}Cr.prototype.getMaxListeners=function(){return _R(this)};Cr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")cC(s,this,r);else for(var c=s.length,p=AR(s,c),n=0;n<c;++n)cC(p[n],this,r);return!0};function wR(e,t,r,n){var i,a,o;if(vg(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=_R(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,AH(l)}return e}Cr.prototype.addListener=function(t,r){return wR(this,t,r,!1)};Cr.prototype.on=Cr.prototype.addListener;Cr.prototype.prependListener=function(t,r){return wR(this,t,r,!0)};function CH(){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 bR(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=CH.bind(n);return i.listener=r,n.wrapFn=i,i}Cr.prototype.once=function(t,r){return vg(r),this.on(t,bR(this,t,r)),this};Cr.prototype.prependOnceListener=function(t,r){return vg(r),this.prependListener(t,bR(this,t,r)),this};Cr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(vg(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():TH(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Cr.prototype.off=Cr.prototype.removeListener;Cr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function SR(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?OH(i):AR(i,i.length)}Cr.prototype.listeners=function(t){return SR(this,t,!0)};Cr.prototype.rawListeners=function(t){return SR(this,t,!1)};Cr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):ER.call(e,t)};Cr.prototype.listenerCount=ER;function ER(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Cr.prototype.eventNames=function(){return this._eventsCount>0?y0(this._events):[]};function AR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function TH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function OH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function kH(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}CR(e,t,a,{once:!0}),t!=="error"&&MH(e,i,{once:!0})})}function MH(e,t,r){typeof e.on=="function"&&CR(e,"error",t,r)}function CR(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 TR=PH,xx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},RH=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function PH(e){var t=[];return e.replace(RH,function(r,n,i){var a=n.toLowerCase();for(i=NH(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==xx[a])return i.unshift(n),t.push(i);if(i.length<xx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,xx[a])))}}),t}var FH=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function NH(e){var t=e.match(FH);return t?t.map(Number):[]}var IH={left:0,top:0},wK=LH;function LH(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=$H(t);return r[0]=n-a.left,r[1]=i-a.top,r}function $H(e){return e===window||e===document||e===document.body?IH:e.getBoundingClientRect()}function DH(){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 bK=DH();function BH(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var zH=BH;function UH(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],c=r[0],p=r[1];return(l-a)*(p-o)-(s-o)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*o+a*s;if(c<e)return!1;var p=o*o+s*s;return!(c-p>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],p=o*c-l*s;if(Math.abs(p)<e)return!1;var x=r[0]-i[0],g=r[1]-i[1],y=(s*g-c*x)/p,T=(o*g-l*x)/p,P={alongA:0,alongB:0,pt:[r[0]+y*o,r[1]+y*l]};return y<=-e?P.alongA=-2:y<e?P.alongA=-1:y-1<=-e?P.alongA=0:y-1<e?P.alongA=1:P.alongA=2,T<=-e?P.alongB=-2:T<e?P.alongB=-1:T-1<=-e?P.alongB=0:T-1<e?P.alongB=1:P.alongB=2,P},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var p=n[c][0],x=n[c][1];x-a>e!=l-a>e&&(o-p)*(a-x)/(l-x)+p-i>e&&(s=!s),o=p,l=x}return s}};return t}var jH=UH,GH={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}},HH=GH,Zc=HH;function qH(e,t,r){function n(T,P){return{id:r?r.segmentId():-1,start:T,end:P,myFill:{above:null,below:null},otherFill:null}}function i(T,P,b){return{id:r?r.segmentId():-1,start:T,end:P,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=Zc.create();function o(T,P,b,_,E,k){var F=t.pointsCompare(P,E);return F!==0?F:t.pointsSame(b,k)?0:T!==_?T?1:-1:t.pointAboveOrOnLine(b,_?E:k,_?k:E)?1:-1}function l(T,P){a.insertBefore(T,function(b){var _=o(T.isStart,T.pt,P,b.isStart,b.pt,b.other.pt);return _<0})}function s(T,P){var b=Zc.node({isStart:!0,pt:T.start,seg:T,primary:P,other:null,status:null});return l(b,T.end),b}function c(T,P,b){var _=Zc.node({isStart:!1,pt:P.end,seg:P,primary:b,other:T,status:null});T.other=_,l(_,T.pt)}function p(T,P){var b=s(T,P);return c(b,T,P),b}function x(T,P){r&&r.segmentChop(T.seg,P),T.other.remove(),T.seg.end=P,T.other.pt=P,l(T.other,T.pt)}function g(T,P){var b=i(P,T.seg.end,T.seg);return x(T,P),p(b,T.primary)}function y(T,P){var b=Zc.create();function _(Ue,ft){var nt=Ue.seg.start,$e=Ue.seg.end,qe=ft.seg.start,kt=ft.seg.end;return t.pointsCollinear(nt,qe,kt)?t.pointsCollinear($e,qe,kt)||t.pointAboveOrOnLine($e,qe,kt)?1:-1:t.pointAboveOrOnLine(nt,qe,kt)?1:-1}function E(Ue){return b.findTransition(function(ft){var nt=_(Ue,ft.ev);return nt>0})}function k(Ue,ft){var nt=Ue.seg,$e=ft.seg,qe=nt.start,kt=nt.end,He=$e.start,be=$e.end;r&&r.checkIntersection(nt,$e);var Ve=t.linesIntersect(qe,kt,He,be);if(Ve===!1){if(!t.pointsCollinear(qe,kt,He)||t.pointsSame(qe,be)||t.pointsSame(kt,He))return!1;var ct=t.pointsSame(qe,He),et=t.pointsSame(kt,be);if(ct&&et)return ft;var pt=!ct&&t.pointBetween(qe,He,be),wt=!et&&t.pointBetween(kt,He,be);if(ct)return wt?g(ft,kt):g(Ue,be),ft;pt&&(et||(wt?g(ft,kt):g(Ue,be)),g(ft,qe))}else Ve.alongA===0&&(Ve.alongB===-1?g(Ue,He):Ve.alongB===0?g(Ue,Ve.pt):Ve.alongB===1&&g(Ue,be)),Ve.alongB===0&&(Ve.alongA===-1?g(ft,qe):Ve.alongA===0?g(ft,Ve.pt):Ve.alongA===1&&g(ft,kt));return!1}for(var F=[];!a.isEmpty();){var I=a.getHead();if(r&&r.vert(I.pt[0]),I.isStart){let Ue=function(){if(ne){var ft=k(I,ne);if(ft)return ft}return V?k(I,V):!1};r&&r.segmentNew(I.seg,I.primary);var $=E(I),ne=$.before?$.before.ev:null,V=$.after?$.after.ev:null;r&&r.tempStatus(I.seg,ne?ne.seg:!1,V?V.seg:!1);var ae=Ue();if(ae){if(e){var Te;I.seg.myFill.below===null?Te=!0:Te=I.seg.myFill.above!==I.seg.myFill.below,Te&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=I.seg.myFill;r&&r.segmentUpdate(ae.seg),I.other.remove(),I.remove()}if(a.getHead()!==I){r&&r.rewind(I.seg);continue}if(e){var Te;I.seg.myFill.below===null?Te=!0:Te=I.seg.myFill.above!==I.seg.myFill.below,V?I.seg.myFill.below=V.seg.myFill.above:I.seg.myFill.below=T,Te?I.seg.myFill.above=!I.seg.myFill.below:I.seg.myFill.above=I.seg.myFill.below}else if(I.seg.otherFill===null){var Oe;V?I.primary===V.primary?Oe=V.seg.otherFill.above:Oe=V.seg.myFill.above:Oe=I.primary?P:T,I.seg.otherFill={above:Oe,below:Oe}}r&&r.status(I.seg,ne?ne.seg:!1,V?V.seg:!1),I.other.status=$.insert(Zc.node({ev:I}))}else{var Pe=I.status;if(Pe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(Pe.prev)&&b.exists(Pe.next)&&k(Pe.prev.ev,Pe.next.ev),r&&r.statusRemove(Pe.ev.seg),Pe.remove(),!I.primary){var De=I.seg.myFill;I.seg.myFill=I.seg.otherFill,I.seg.otherFill=De}F.push(I.seg)}a.getHead().remove()}return r&&r.done(),F}return e?{addRegion:function(T){for(var P,b=T[T.length-1],_=0;_<T.length;_++){P=b,b=T[_];var E=t.pointsCompare(P,b);E!==0&&p(n(E<0?P:b,E<0?b:P),!0)}},calculate:function(T){return y(T,!1)}}:{calculate:function(T,P,b,_){return T.forEach(function(E){p(i(E.start,E.end,E),!0)}),b.forEach(function(E){p(i(E.start,E.end,E),!1)}),y(P,_)}}}var WH=qH;function VH(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},p=s;function x(Pe,De,Ue){return p.index=Pe,p.matches_head=De,p.matches_pt1=Ue,p===s?(p=c,!1):(p=null,!0)}for(var g=0;g<n.length;g++){var y=n[g],T=y[0];y[1];var P=y[y.length-1];if(y[y.length-2],t.pointsSame(T,o)){if(x(g,!0,!0))break}else if(t.pointsSame(T,l)){if(x(g,!0,!1))break}else if(t.pointsSame(P,o)){if(x(g,!1,!0))break}else if(t.pointsSame(P,l)&&x(g,!1,!1))break}if(p===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(p===c){r&&r.chainMatch(s.index);var b=s.index,_=s.matches_pt1?l:o,E=s.matches_head,y=n[b],k=E?y[0]:y[y.length-1],F=E?y[1]:y[y.length-2],I=E?y[y.length-1]:y[0],$=E?y[y.length-2]:y[1];if(t.pointsCollinear(F,k,_)&&(E?(r&&r.chainRemoveHead(s.index,_),y.shift()):(r&&r.chainRemoveTail(s.index,_),y.pop()),k=F),t.pointsSame(I,_)){n.splice(b,1),t.pointsCollinear($,I,k)&&(E?(r&&r.chainRemoveTail(s.index,k),y.pop()):(r&&r.chainRemoveHead(s.index,k),y.shift())),r&&r.chainClose(s.index),i.push(y);return}E?(r&&r.chainAddHead(s.index,_),y.unshift(_)):(r&&r.chainAddTail(s.index,_),y.push(_));return}function ne(Pe){r&&r.chainReverse(Pe),n[Pe].reverse()}function V(Pe,De){var Ue=n[Pe],ft=n[De],nt=Ue[Ue.length-1],$e=Ue[Ue.length-2],qe=ft[0],kt=ft[1];t.pointsCollinear($e,nt,qe)&&(r&&r.chainRemoveTail(Pe,nt),Ue.pop(),nt=$e),t.pointsCollinear(nt,qe,kt)&&(r&&r.chainRemoveHead(De,qe),ft.shift()),r&&r.chainJoin(Pe,De),n[Pe]=Ue.concat(ft),n.splice(De,1)}var ae=s.index,Te=c.index;r&&r.chainConnect(ae,Te);var Oe=n[ae].length<n[Te].length;s.matches_head?c.matches_head?Oe?(ne(ae),V(ae,Te)):(ne(Te),V(Te,ae)):V(Te,ae):c.matches_head?V(ae,Te):Oe?(ne(ae),V(Te,ae)):(ne(Te),V(ae,Te))}),i}var YH=VH;function Kc(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 XH={union:function(e,t){return Kc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Kc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Kc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Kc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Kc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},QH=XH,ZH={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(c){var p=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[p]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(y,T){return t.pointInsideRegion([(y[0][0]+y[1][0])*.5,(y[0][1]+y[1][1])*.5],T)}function i(y){return{region:y,children:[]}}var a=i(null);function o(y,T){for(var P=0;P<y.children.length;P++){var b=y.children[P];if(n(T,b.region)){o(b,T);return}}for(var _=i(T),P=0;P<y.children.length;P++){var b=y.children[P];n(b.region,T)&&(_.children.push(b),y.children.splice(P,1),P--)}y.children.push(_)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function c(y,T){for(var P=0,b=y[y.length-1][0],_=y[y.length-1][1],E=[],k=0;k<y.length;k++){var F=y[k][0],I=y[k][1];E.push([F,I]),P+=I*b-F*_,b=F,_=I}var $=P<0;return $!==T&&E.reverse(),E.push([E[0][0],E[0][1]]),E}var p=[];function x(y){var T=[c(y.region,!1)];p.push(T);for(var P=0;P<y.children.length;P++)T.push(g(y.children[P]))}function g(y){for(var T=0;T<y.children.length;T++)x(y.children[T]);return c(y.region,!0)}for(var l=0;l<a.children.length;l++)x(a.children[l]);return p.length<=0?{type:"Polygon",coordinates:[]}:p.length==1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}},KH=ZH;/*
831
831
  * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
832
832
  * @license MIT
833
833
  * @preserve Project Home: https://github.com/voidqk/polybooljs
834
- */var ZH=DH,KH=zH,cT=HH,JH=WH,Jc=YH,hT=QH,xi=!1,eh=KH(),Qn;Qn={buildLog:function(e){return e===!0?xi=ZH():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return eh.epsilon(e)},segments:function(e){var t=cT(!0,eh,xi);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=cT(!1,eh,xi);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Jc.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Jc.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Jc.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Jc.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Jc.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:JH(e.segments,eh,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return hT.toPolygon(Qn,e)},polygonToGeoJSON:function(e){return hT.fromPolygon(Qn,eh,e)},union:function(e,t){return th(e,t,Qn.selectUnion)},intersect:function(e,t){return th(e,t,Qn.selectIntersect)},difference:function(e,t){return th(e,t,Qn.selectDifference)},differenceRev:function(e,t){return th(e,t,Qn.selectDifferenceRev)},xor:function(e,t){return th(e,t,Qn.selectXor)}};function th(e,t,r){var n=Qn.segments(e),i=Qn.segments(t),a=Qn.combine(n,i),o=r(a);return Qn.polygon(o)}typeof window=="object"&&(window.PolyBool=Qn);var _K=Qn,wK=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,p=s-1;c<s;p=c++){var x=r[c+n][0],g=r[c+n][1],y=r[p+n][0],C=r[p+n][1],P=g>o!=C>o&&a<(y-x)*(o-g)/(C-g)+x;P&&(l=!l)}return l};const bK=pl(WU);var Uw={},eq={get exports(){return Uw},set exports(e){Uw=e}};function tq(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function rq(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function nq(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function iq(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function aq(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function rh(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 oq={ge:function(e,t,r,n,i){return rh(e,t,r,n,i,tq)},gt:function(e,t,r,n,i){return rh(e,t,r,n,i,rq)},lt:function(e,t,r,n,i){return rh(e,t,r,n,i,nq)},le:function(e,t,r,n,i){return rh(e,t,r,n,i,iq)},eq:function(e,t,r,n,i){return rh(e,t,r,n,i,aq)}},$d=uq;function uq(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var uu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=dT(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=dT(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(o=0;o<c.length;o++){var p=c[o];if(n&&(s[p]=!0),p in t){if(i[a]=t[p],n)for(var x=o;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},xx={};function dT(e){return xx[e]?xx[e]:(typeof e=="string"&&(e=xx[e]=e.split(/\s*,\s*|\s+/)),e)}var lq=uu,vg=fq;function fq(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=lq(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 Dd=sq;function sq(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var TR=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},Yb=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}},pT=Yb,Bd=cq;function cq(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(pT(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(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var p=pT(t||"float32");if(Array.isArray(e)||t==="array")for(t=new p(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 p(e):(t=new p(e.length+r),t.set(e,r))}else t.set(e,r);return t}var hq=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},dq=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const vT=oq,mT=$d,pq=vg,vq=Dd,gT=uu,_x=TR,mq=Bd,gq=hq,yq=Yb,yT=dq,xq=1073741824;var _q=function(t,r){r||(r={}),t=mq(t,"float64"),r=gT(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=_x(r.maxDepth,255),i=_x(r.bounds,vq(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=xT(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(yq(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let _=0;_<o;++_)l[_]=_;let s=[],c=[],p=[],x=[];y(0,0,1,l,0,1);let g=0;for(let _=0;_<s.length;_++){let E=s[_];if(l.set)l.set(E,g);else for(let F=0,I=E.length;F<I;F++)l[F+g]=E[F];let k=g+s[_].length;x[_]=[g,k],g=k}return l.range=C,l;function y(_,E,k,F,I,$){if(!F.length)return null;let ne=s[I]||(s[I]=[]),V=p[I]||(p[I]=[]),ae=c[I]||(c[I]=[]),Ce=ne.length;if(I++,I>n||$>xq){for(let qe=0;qe<F.length;qe++)ne.push(F[qe]),V.push($),ae.push(null,null,null,null);return Ce}if(ne.push(F[0]),V.push($),F.length<=1)return ae.push(null,null,null,null),Ce;let Oe=k*.5,Pe=_+Oe,De=E+Oe,Ue=[],ft=[],nt=[],$e=[];for(let qe=1,kt=F.length;qe<kt;qe++){let He=F[qe],be=a[He*2],Ve=a[He*2+1];be<Pe?Ve<De?Ue.push(He):ft.push(He):Ve<De?nt.push(He):$e.push(He)}return $<<=2,ae.push(y(_,E,Oe,Ue,I,$),y(_,De,Oe,ft,I,$+1),y(Pe,E,Oe,nt,I,$+2),y(Pe,De,Oe,$e,I,$+3)),Ce}function C(..._){let E;if(gq(_[_.length-1])){let nt=_.pop();!_.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(_=[nt],E={}),E=gT(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else E={};_.length||(_=i);let k=pq(..._),[F,I,$,ne]=[Math.min(k.x,k.x+k.width),Math.min(k.y,k.y+k.height),Math.max(k.x,k.x+k.width),Math.max(k.y,k.y+k.height)],[V,ae,Ce,Oe]=xT([F,I,$,ne],i),Pe=_x(E.level,s.length);if(E.d!=null){let nt;typeof E.d=="number"?nt=[E.d,E.d]:E.d.length&&(nt=E.d),Pe=Math.min(Math.max(Math.ceil(-yT(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-yT(Math.abs(nt[1])/(i[3]-i[1])))),Pe)}if(Pe=Math.min(Pe,s.length),E.lod)return P(V,ae,Ce,Oe,Pe);let De=[];Ue(0,0,1,0,0,1);function Ue(nt,$e,qe,kt,He,be){if(He===null||be===null)return;let Ve=nt+qe,ct=$e+qe;if(V>Ve||ae>ct||Ce<nt||Oe<$e||kt>=Pe||He===be)return;let et=s[kt];be===void 0&&(be=et.length);for(let G=He;G<be;G++){let ie=et[G],O=t[ie*2],S=t[ie*2+1];O>=F&&O<=$&&S>=I&&S<=ne&&De.push(ie)}let pt=c[kt],wt=pt[He*4+0],qt=pt[He*4+1],Vt=pt[He*4+2],Qe=pt[He*4+3],Et=ft(pt,He+1),jt=qe*.5,Ae=kt+1;Ue(nt,$e,jt,Ae,wt,qt||Vt||Qe||Et),Ue(nt,$e+jt,jt,Ae,qt,Vt||Qe||Et),Ue(nt+jt,$e,jt,Ae,Vt,Qe||Et),Ue(nt+jt,$e+jt,jt,Ae,Qe,Et)}function ft(nt,$e){let qe=null,kt=0;for(;qe===null;)if(qe=nt[$e*4+kt],kt++,kt>nt.length)return null;return qe}return De}function P(_,E,k,F,I){let $=[];for(let ne=0;ne<I;ne++){let V=p[ne],ae=x[ne][0],Ce=b(_,E,ne),Oe=b(k,F,ne),Pe=vT.ge(V,Ce),De=vT.gt(V,Oe,Pe,V.length-1);$[ne]=[Pe+ae,De+ae]}return $}function b(_,E,k){let F=1,I=.5,$=.5,ne=.5;for(let V=0;V<k;V++)F<<=2,F+=_<I?E<$?0:1:E<$?2:3,ne*=.5,I+=_<I?-ne:ne,$+=E<$?-ne:ne;return F}};function xT(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,p=e.length/2;c<p;c++)s[2*c]=mT((e[2*c]-r)*o,0,1),s[2*c+1]=mT((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=_q})(eq);var CR=wq;function wq(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var bq=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ih=Math.PI*2,wx=function(t,r,n,i,a,o,l){var s=t.x,c=t.y;s*=r,c*=n;var p=i*s-a*c,x=a*s+i*c;return{x:p+o,y:x+l}},Sq=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},_T=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},Eq=function(t,r,n,i,a,o,l,s,c,p,x,g){var y=Math.pow(a,2),C=Math.pow(o,2),P=Math.pow(x,2),b=Math.pow(g,2),_=y*C-y*b-C*P;_<0&&(_=0),_/=y*b+C*P,_=Math.sqrt(_)*(l===s?-1:1);var E=_*a/o*g,k=_*-o/a*x,F=p*E-c*k+(t+n)/2,I=c*E+p*k+(r+i)/2,$=(x-E)/a,ne=(g-k)/o,V=(-x-E)/a,ae=(-g-k)/o,Ce=_T(1,0,$,ne),Oe=_T($,ne,V,ae);return s===0&&Oe>0&&(Oe-=Ih),s===1&&Oe<0&&(Oe+=Ih),[F,I,Ce,Oe]},Aq=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,p=t.largeArcFlag,x=p===void 0?0:p,g=t.sweepFlag,y=g===void 0?0:g,C=[];if(o===0||l===0)return[];var P=Math.sin(c*Ih/360),b=Math.cos(c*Ih/360),_=b*(r-i)/2+P*(n-a)/2,E=-P*(r-i)/2+b*(n-a)/2;if(_===0&&E===0)return[];o=Math.abs(o),l=Math.abs(l);var k=Math.pow(_,2)/Math.pow(o,2)+Math.pow(E,2)/Math.pow(l,2);k>1&&(o*=Math.sqrt(k),l*=Math.sqrt(k));var F=Eq(r,n,i,a,o,l,x,y,P,b,_,E),I=bq(F,4),$=I[0],ne=I[1],V=I[2],ae=I[3],Ce=Math.abs(ae)/(Ih/4);Math.abs(1-Ce)<1e-7&&(Ce=1);var Oe=Math.max(Math.ceil(Ce),1);ae/=Oe;for(var Pe=0;Pe<Oe;Pe++)C.push(Sq(V,ae)),V+=ae;return C.map(function(De){var Ue=wx(De[0],o,l,b,P,$,ne),ft=Ue.x,nt=Ue.y,$e=wx(De[1],o,l,b,P,$,ne),qe=$e.x,kt=$e.y,He=wx(De[2],o,l,b,P,$,ne),be=He.x,Ve=He.y;return{x1:ft,y1:nt,x2:qe,y2:kt,x:be,y:Ve}})};const Tq=Object.freeze(Object.defineProperty({__proto__:null,default:Aq},Symbol.toStringTag,{value:"Module"})),Cq=pl(Tq);var Oq=Mq,kq=Cq;function Mq(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,p=0,x=0,g=e.length;x<g;x++){var y=e[x],C=y[0];switch(C){case"M":a=y[1],o=y[2];break;case"A":var P=kq({px:c,py:p,cx:y[6],cy:y[7],rx:y[1],ry:y[2],xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5]});if(!P.length)continue;for(var b=0,_;b<P.length;b++)_=P[b],y=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],b<P.length-1&&r.push(y);break;case"S":var E=c,k=p;(t=="C"||t=="S")&&(E+=E-n,k+=k-i),y=["C",E,k,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=p*2-s):(l=c,s=p),y=wT(c,p,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=wT(c,p,y[1],y[2],y[3],y[4]);break;case"L":y=Lv(c,p,y[1],y[2]);break;case"H":y=Lv(c,p,y[1],p);break;case"V":y=Lv(c,p,c,y[1]);break;case"Z":y=Lv(c,p,a,o);break}t=C,c=y[y.length-2],p=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=c,i=p),r.push(y)}return r}function Lv(e,t,r,n){return["C",e,t,r,n,r,n]}function wT(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 OR=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))},Rq=AR,Pq=CR,Fq=Oq,Nq=OR,Iq=Lq;function Lq(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Nq(e))throw Error("String is not an SVG path.");e=Rq(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Pq(e),e=Fq(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 Uu=Math.PI,bT=MR(120),$q=Dq;function Dq(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,p=0,x=0,g=e.length;x<g;x++){var y=e[x],C=y[0];switch(C){case"M":a=y[1],o=y[2];break;case"A":y=kR(c,p,y[1],y[2],MR(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var P=c,b=p;(t=="C"||t=="S")&&(P+=P-n,b+=b-i),y=["C",P,b,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=p*2-s):(l=c,s=p),y=ST(c,p,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=ST(c,p,y[1],y[2],y[3],y[4]);break;case"L":y=$v(c,p,y[1],y[2]);break;case"H":y=$v(c,p,y[1],p);break;case"V":y=$v(c,p,c,y[1]);break;case"Z":y=$v(c,p,a,o);break}t=C,c=y[y.length-2],p=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=c,i=p),r.push(y)}return r}function $v(e,t,r,n){return["C",e,t,r,n,r,n]}function ST(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 kR(e,t,r,n,i,a,o,l,s,c){if(c)k=c[0],F=c[1],_=c[2],E=c[3];else{var p=bx(e,t,-i);e=p.x,t=p.y,p=bx(l,s,-i),l=p.x,s=p.y;var x=(e-l)/2,g=(t-s)/2,y=x*x/(r*r)+g*g/(n*n);y>1&&(y=Math.sqrt(y),r=y*r,n=y*n);var C=r*r,P=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((C*P-C*g*g-P*x*x)/(C*g*g+P*x*x)));b==1/0&&(b=1);var _=b*r*g/n+(e+l)/2,E=b*-n*x/r+(t+s)/2,k=Math.asin(((t-E)/n).toFixed(9)),F=Math.asin(((s-E)/n).toFixed(9));k=e<_?Uu-k:k,F=l<_?Uu-F:F,k<0&&(k=Uu*2+k),F<0&&(F=Uu*2+F),o&&k>F&&(k=k-Uu*2),!o&&F>k&&(F=F-Uu*2)}if(Math.abs(F-k)>bT){var I=F,$=l,ne=s;F=k+bT*(o&&F>k?1:-1),l=_+r*Math.cos(F),s=E+n*Math.sin(F);var V=kR(l,s,r,n,i,0,o,$,ne,[F,I,_,E])}var ae=Math.tan((F-k)/4),Ce=4/3*r*ae,Oe=4/3*n*ae,Pe=[2*e-(e+Ce*Math.sin(k)),2*t-(t-Oe*Math.cos(k)),l+Ce*Math.sin(F),s-Oe*Math.cos(F),l,s];if(c)return Pe;V&&(Pe=Pe.concat(V));for(var De=0;De<Pe.length;){var Ue=bx(Pe[De],Pe[De+1],i);Pe[De++]=Ue.x,Pe[De++]=Ue.y}return Pe}function bx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function MR(e){return e*(Uu/180)}var Bq=CR,zq=$q,Uq={M:"moveTo",C:"bezierCurveTo"},jq=function(e,t){e.beginPath(),zq(Bq(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Uq[n]].apply(e,i)}),e.closePath()},Gq=$d,Hq=qq,Lh=1e20;function qq(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,c,p,x,g,y,C,P;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?p=t.stride:p=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(g=e,x=g.getContext("2d"),a=g.width,o=g.height,y=x.getImageData(0,0,a,o),s=y.data,p=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(g=e.canvas,x=e,a=g.width,o=g.height,y=x.getImageData(0,0,a,o),s=y.data,p=4):window.ImageData&&e instanceof window.ImageData&&(y=e,a=e.width,o=e.height,s=y.data,p=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*o),C=0,P=c.length;C<P;C++)s[C]=c[C*p+i]/255;else if(p!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),_=Array(a*o),E=Array(l),k=Array(l),F=Array(l+1),I=Array(l);for(C=0,P=a*o;C<P;C++){var $=s[C];b[C]=$===1?0:$===0?Lh:Math.pow(Math.max(0,.5-$),2),_[C]=$===1?Lh:$===0?0:Math.pow(Math.max(0,$-.5),2)}ET(b,a,o,E,k,I,F),ET(_,a,o,E,k,I,F);var ne=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(C=0,P=a*o;C<P;C++)ne[C]=Gq(1-((b[C]-_[C])/n+r),0,1);return ne}function ET(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(AT(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(AT(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function AT(e,t,r,n,i){r[0]=0,n[0]=-Lh,n[1]=+Lh;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+Lh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var Wq=Iq,Vq=AR,Yq=jq,Xq=OR,Qq=Hq,jw=document.createElement("canvas"),zn=jw.getContext("2d"),SK=Zq;function Zq(e,t){if(!Xq(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=jw.width=t.w||t.width||200,n=jw.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Wq(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(zn.fillStyle="black",zn.fillRect(0,0,r,n),zn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?zn.strokeStyle="white":zn.strokeStyle="black",zn.lineWidth=Math.abs(a)),zn.translate(r*.5,n*.5),zn.scale(s,s),Kq()){var c=new Path2D(e);zn.fill(c),a&&zn.stroke(c)}else{var p=Vq(e);Yq(zn,p),zn.fill(),a&&zn.stroke()}zn.setTransform(1,0,0,1,0,0);var x=Qq(zn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return x}var Dv;function Kq(){if(Dv!=null)return Dv;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return Dv=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return Dv=r&&r.data&&r.data[3]===255}var Jq={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]},eW=Object.prototype.toString,RR=function(e){var t;return eW.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},TT=Jq,tW=RR,$u=TR,rW=nW,CT={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function nW(e){var t,r=[],n=1,i;if(typeof e=="string")if(TT[e])r=TT[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(y,C){if(/%$/.test(y))return C===o?parseFloat(y)/100:a==="rgb"?parseFloat(y)*255/100:parseFloat(y);if(a[C]==="h"){if(/deg$/.test(y))return parseFloat(y);if(CT[y]!==void 0)return CT[y]}return parseFloat(y)}),s===a&&r.push(1),n=c||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(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(tW(e)){var p=$u(e.r,e.red,e.R,null);p!==null?(i="rgb",r=[p,$u(e.g,e.green,e.G),$u(e.b,e.blue,e.B)]):(i="hsl",r=[$u(e.h,e.hue,e.H),$u(e.s,e.saturation,e.S),$u(e.l,e.lightness,e.L,e.b,e.brightness)]),n=$u(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||tr.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 iW={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[c]=s*255;return l}},aW=rW,oW=iW,Bv=$d,uW=function(t){var r,n=aW(t);return n.space?(r=Array(3),r[0]=Bv(n.values[0],0,255),r[1]=Bv(n.values[1],0,255),r[2]=Bv(n.values[2],0,255),n.space[0]==="h"&&(r=oW.rgb(r)),r.push(Bv(n.alpha,0,1)),r):[]},lW=uW,zv=$d,fW=Yb,mg=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=fW(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=lW(t),t[0]/=255,t[1]/=255,t[2]/=255),sW(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]=zv(Math.floor(t[0]*255),0,255),i[1]=zv(Math.floor(t[1]*255),0,255),i[2]=zv(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:zv(Math.floor(t[3]*255),0,255)),i)};function sW(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 fd={},cW={get exports(){return fd},set exports(e){fd=e}},Uv=$d;cW.exports=PR;fd.to=PR;fd.from=hW;function PR(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=Uv(r,0,255)&255,n=Uv(n,0,255)&255,i=Uv(i,0,255)&255,a=Uv(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function hW(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 FR=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("")},NR=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},dW=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ya={},pW={get exports(){return Ya},set exports(e){Ya=e}};pW.exports=$h;Ya.float32=Ya.float=$h;Ya.fract32=Ya.fract=vW;var OT=new Float32Array(1);function vW(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=$h(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return $h(e-$h(e))}function $h(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(OT[0]=e,OT[0])}function mW(e,t){return xW(e)||wW(e,t)||IR(e,t)||SW()}function gW(e){return yW(e)||_W(e)||IR(e)||bW()}function yW(e){if(Array.isArray(e))return Gw(e)}function xW(e){if(Array.isArray(e))return e}function _W(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function IR(e,t){if(e){if(typeof e=="string")return Gw(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 Gw(e,t)}}function Gw(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 bW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
835
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
836
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var EW=mg,AW=Dd,TW=fd,CW=Uw,el=vl,jv=FR,OW=uu,kW=NR,MW=Bd,kT=dW,Gv=Ya,RW=vg,PW=pn;function pn(e,t){var r=this;if(!(this instanceof pn))return new pn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],c=[null],p=255,x=100;this.tooManyColors=kT,i=e.texture({data:new Uint8Array(p*4),width:p,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),el(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:p,maxSize:x,canvas:n.canvas}),this.update(t);var g={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,_){return[r.tooManyColors?0:p,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,_){return _.xAttr||{buffer:_.positionBuffer,stride:8,offset:0}},y:function(b,_){return _.yAttr||{buffer:_.positionBuffer,stride:8,offset:4}},xFract:function(b,_){return _.xAttr?{constant:[0,0]}:{buffer:_.positionFractBuffer,stride:8,offset:0}},yFract:function(b,_){return _.yAttr?{constant:[0,0]}:{buffer:_.positionFractBuffer,stride:8,offset:4}},size:function(b,_){return _.size.length?{buffer:_.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(_.size*255/r.maxSize)]}},borderSize:function(b,_){return _.borderSize.length?{buffer:_.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(_.borderSize*255/r.maxSize)]}},colorId:function(b,_){return _.color.length?{buffer:_.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(_.color*4,_.color*4+4):[_.color]}},borderColorId:function(b,_){return _.borderColor.length?{buffer:_.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(_.borderColor*4,_.borderColor*4+4):[_.borderColor]}},isActive:function(b,_){return _.activation===!0?{constant:[1]}:_.activation?_.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},y=el({},g);y.frag=jv([`precision highp float;
834
+ */var JH=zH,eq=jH,dC=WH,tq=YH,Jc=QH,pC=KH,xi=!1,eh=eq(),Qn;Qn={buildLog:function(e){return e===!0?xi=JH():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return eh.epsilon(e)},segments:function(e){var t=dC(!0,eh,xi);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=dC(!1,eh,xi);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Jc.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Jc.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Jc.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Jc.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Jc.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:tq(e.segments,eh,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return pC.toPolygon(Qn,e)},polygonToGeoJSON:function(e){return pC.fromPolygon(Qn,eh,e)},union:function(e,t){return th(e,t,Qn.selectUnion)},intersect:function(e,t){return th(e,t,Qn.selectIntersect)},difference:function(e,t){return th(e,t,Qn.selectDifference)},differenceRev:function(e,t){return th(e,t,Qn.selectDifferenceRev)},xor:function(e,t){return th(e,t,Qn.selectXor)}};function th(e,t,r){var n=Qn.segments(e),i=Qn.segments(t),a=Qn.combine(n,i),o=r(a);return Qn.polygon(o)}typeof window=="object"&&(window.PolyBool=Qn);var SK=Qn,EK=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,p=s-1;c<s;p=c++){var x=r[c+n][0],g=r[c+n][1],y=r[p+n][0],T=r[p+n][1],P=g>o!=T>o&&a<(y-x)*(o-g)/(T-g)+x;P&&(l=!l)}return l};const AK=pl(YU);var jw={},rq={get exports(){return jw},set exports(e){jw=e}};function nq(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function iq(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function aq(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function oq(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function uq(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function rh(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 lq={ge:function(e,t,r,n,i){return rh(e,t,r,n,i,nq)},gt:function(e,t,r,n,i){return rh(e,t,r,n,i,iq)},lt:function(e,t,r,n,i){return rh(e,t,r,n,i,aq)},le:function(e,t,r,n,i){return rh(e,t,r,n,i,oq)},eq:function(e,t,r,n,i){return rh(e,t,r,n,i,uq)}},$d=fq;function fq(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var uu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=vC(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=vC(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(o=0;o<c.length;o++){var p=c[o];if(n&&(s[p]=!0),p in t){if(i[a]=t[p],n)for(var x=o;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},_x={};function vC(e){return _x[e]?_x[e]:(typeof e=="string"&&(e=_x[e]=e.split(/\s*,\s*|\s+/)),e)}var sq=uu,mg=cq;function cq(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=sq(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 Dd=hq;function hq(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var OR=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},Qb=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}},mC=Qb,Bd=dq;function dq(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(mC(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(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var p=mC(t||"float32");if(Array.isArray(e)||t==="array")for(t=new p(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 p(e):(t=new p(e.length+r),t.set(e,r))}else t.set(e,r);return t}var pq=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},vq=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const gC=lq,yC=$d,mq=mg,gq=Dd,xC=uu,wx=OR,yq=Bd,xq=pq,_q=Qb,_C=vq,wq=1073741824;var bq=function(t,r){r||(r={}),t=yq(t,"float64"),r=xC(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=wx(r.maxDepth,255),i=wx(r.bounds,gq(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=wC(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(_q(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let _=0;_<o;++_)l[_]=_;let s=[],c=[],p=[],x=[];y(0,0,1,l,0,1);let g=0;for(let _=0;_<s.length;_++){let E=s[_];if(l.set)l.set(E,g);else for(let F=0,I=E.length;F<I;F++)l[F+g]=E[F];let k=g+s[_].length;x[_]=[g,k],g=k}return l.range=T,l;function y(_,E,k,F,I,$){if(!F.length)return null;let ne=s[I]||(s[I]=[]),V=p[I]||(p[I]=[]),ae=c[I]||(c[I]=[]),Te=ne.length;if(I++,I>n||$>wq){for(let qe=0;qe<F.length;qe++)ne.push(F[qe]),V.push($),ae.push(null,null,null,null);return Te}if(ne.push(F[0]),V.push($),F.length<=1)return ae.push(null,null,null,null),Te;let Oe=k*.5,Pe=_+Oe,De=E+Oe,Ue=[],ft=[],nt=[],$e=[];for(let qe=1,kt=F.length;qe<kt;qe++){let He=F[qe],be=a[He*2],Ve=a[He*2+1];be<Pe?Ve<De?Ue.push(He):ft.push(He):Ve<De?nt.push(He):$e.push(He)}return $<<=2,ae.push(y(_,E,Oe,Ue,I,$),y(_,De,Oe,ft,I,$+1),y(Pe,E,Oe,nt,I,$+2),y(Pe,De,Oe,$e,I,$+3)),Te}function T(..._){let E;if(xq(_[_.length-1])){let nt=_.pop();!_.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(_=[nt],E={}),E=xC(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else E={};_.length||(_=i);let k=mq(..._),[F,I,$,ne]=[Math.min(k.x,k.x+k.width),Math.min(k.y,k.y+k.height),Math.max(k.x,k.x+k.width),Math.max(k.y,k.y+k.height)],[V,ae,Te,Oe]=wC([F,I,$,ne],i),Pe=wx(E.level,s.length);if(E.d!=null){let nt;typeof E.d=="number"?nt=[E.d,E.d]:E.d.length&&(nt=E.d),Pe=Math.min(Math.max(Math.ceil(-_C(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-_C(Math.abs(nt[1])/(i[3]-i[1])))),Pe)}if(Pe=Math.min(Pe,s.length),E.lod)return P(V,ae,Te,Oe,Pe);let De=[];Ue(0,0,1,0,0,1);function Ue(nt,$e,qe,kt,He,be){if(He===null||be===null)return;let Ve=nt+qe,ct=$e+qe;if(V>Ve||ae>ct||Te<nt||Oe<$e||kt>=Pe||He===be)return;let et=s[kt];be===void 0&&(be=et.length);for(let G=He;G<be;G++){let ie=et[G],O=t[ie*2],S=t[ie*2+1];O>=F&&O<=$&&S>=I&&S<=ne&&De.push(ie)}let pt=c[kt],wt=pt[He*4+0],qt=pt[He*4+1],Vt=pt[He*4+2],Qe=pt[He*4+3],Et=ft(pt,He+1),jt=qe*.5,Ae=kt+1;Ue(nt,$e,jt,Ae,wt,qt||Vt||Qe||Et),Ue(nt,$e+jt,jt,Ae,qt,Vt||Qe||Et),Ue(nt+jt,$e,jt,Ae,Vt,Qe||Et),Ue(nt+jt,$e+jt,jt,Ae,Qe,Et)}function ft(nt,$e){let qe=null,kt=0;for(;qe===null;)if(qe=nt[$e*4+kt],kt++,kt>nt.length)return null;return qe}return De}function P(_,E,k,F,I){let $=[];for(let ne=0;ne<I;ne++){let V=p[ne],ae=x[ne][0],Te=b(_,E,ne),Oe=b(k,F,ne),Pe=gC.ge(V,Te),De=gC.gt(V,Oe,Pe,V.length-1);$[ne]=[Pe+ae,De+ae]}return $}function b(_,E,k){let F=1,I=.5,$=.5,ne=.5;for(let V=0;V<k;V++)F<<=2,F+=_<I?E<$?0:1:E<$?2:3,ne*=.5,I+=_<I?-ne:ne,$+=E<$?-ne:ne;return F}};function wC(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,p=e.length/2;c<p;c++)s[2*c]=yC((e[2*c]-r)*o,0,1),s[2*c+1]=yC((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=bq})(rq);var kR=Sq;function Sq(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var Eq=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ih=Math.PI*2,bx=function(t,r,n,i,a,o,l){var s=t.x,c=t.y;s*=r,c*=n;var p=i*s-a*c,x=a*s+i*c;return{x:p+o,y:x+l}},Aq=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},bC=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},Cq=function(t,r,n,i,a,o,l,s,c,p,x,g){var y=Math.pow(a,2),T=Math.pow(o,2),P=Math.pow(x,2),b=Math.pow(g,2),_=y*T-y*b-T*P;_<0&&(_=0),_/=y*b+T*P,_=Math.sqrt(_)*(l===s?-1:1);var E=_*a/o*g,k=_*-o/a*x,F=p*E-c*k+(t+n)/2,I=c*E+p*k+(r+i)/2,$=(x-E)/a,ne=(g-k)/o,V=(-x-E)/a,ae=(-g-k)/o,Te=bC(1,0,$,ne),Oe=bC($,ne,V,ae);return s===0&&Oe>0&&(Oe-=Ih),s===1&&Oe<0&&(Oe+=Ih),[F,I,Te,Oe]},Tq=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,p=t.largeArcFlag,x=p===void 0?0:p,g=t.sweepFlag,y=g===void 0?0:g,T=[];if(o===0||l===0)return[];var P=Math.sin(c*Ih/360),b=Math.cos(c*Ih/360),_=b*(r-i)/2+P*(n-a)/2,E=-P*(r-i)/2+b*(n-a)/2;if(_===0&&E===0)return[];o=Math.abs(o),l=Math.abs(l);var k=Math.pow(_,2)/Math.pow(o,2)+Math.pow(E,2)/Math.pow(l,2);k>1&&(o*=Math.sqrt(k),l*=Math.sqrt(k));var F=Cq(r,n,i,a,o,l,x,y,P,b,_,E),I=Eq(F,4),$=I[0],ne=I[1],V=I[2],ae=I[3],Te=Math.abs(ae)/(Ih/4);Math.abs(1-Te)<1e-7&&(Te=1);var Oe=Math.max(Math.ceil(Te),1);ae/=Oe;for(var Pe=0;Pe<Oe;Pe++)T.push(Aq(V,ae)),V+=ae;return T.map(function(De){var Ue=bx(De[0],o,l,b,P,$,ne),ft=Ue.x,nt=Ue.y,$e=bx(De[1],o,l,b,P,$,ne),qe=$e.x,kt=$e.y,He=bx(De[2],o,l,b,P,$,ne),be=He.x,Ve=He.y;return{x1:ft,y1:nt,x2:qe,y2:kt,x:be,y:Ve}})};const Oq=Object.freeze(Object.defineProperty({__proto__:null,default:Tq},Symbol.toStringTag,{value:"Module"})),kq=pl(Oq);var Mq=Pq,Rq=kq;function Pq(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,p=0,x=0,g=e.length;x<g;x++){var y=e[x],T=y[0];switch(T){case"M":a=y[1],o=y[2];break;case"A":var P=Rq({px:c,py:p,cx:y[6],cy:y[7],rx:y[1],ry:y[2],xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5]});if(!P.length)continue;for(var b=0,_;b<P.length;b++)_=P[b],y=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],b<P.length-1&&r.push(y);break;case"S":var E=c,k=p;(t=="C"||t=="S")&&(E+=E-n,k+=k-i),y=["C",E,k,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=p*2-s):(l=c,s=p),y=SC(c,p,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=SC(c,p,y[1],y[2],y[3],y[4]);break;case"L":y=Lv(c,p,y[1],y[2]);break;case"H":y=Lv(c,p,y[1],p);break;case"V":y=Lv(c,p,c,y[1]);break;case"Z":y=Lv(c,p,a,o);break}t=T,c=y[y.length-2],p=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=c,i=p),r.push(y)}return r}function Lv(e,t,r,n){return["C",e,t,r,n,r,n]}function SC(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 MR=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))},Fq=TR,Nq=kR,Iq=Mq,Lq=MR,$q=Dq;function Dq(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Lq(e))throw Error("String is not an SVG path.");e=Fq(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Nq(e),e=Iq(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 Uu=Math.PI,EC=PR(120),Bq=zq;function zq(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,p=0,x=0,g=e.length;x<g;x++){var y=e[x],T=y[0];switch(T){case"M":a=y[1],o=y[2];break;case"A":y=RR(c,p,y[1],y[2],PR(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var P=c,b=p;(t=="C"||t=="S")&&(P+=P-n,b+=b-i),y=["C",P,b,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=p*2-s):(l=c,s=p),y=AC(c,p,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=AC(c,p,y[1],y[2],y[3],y[4]);break;case"L":y=$v(c,p,y[1],y[2]);break;case"H":y=$v(c,p,y[1],p);break;case"V":y=$v(c,p,c,y[1]);break;case"Z":y=$v(c,p,a,o);break}t=T,c=y[y.length-2],p=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=c,i=p),r.push(y)}return r}function $v(e,t,r,n){return["C",e,t,r,n,r,n]}function AC(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 RR(e,t,r,n,i,a,o,l,s,c){if(c)k=c[0],F=c[1],_=c[2],E=c[3];else{var p=Sx(e,t,-i);e=p.x,t=p.y,p=Sx(l,s,-i),l=p.x,s=p.y;var x=(e-l)/2,g=(t-s)/2,y=x*x/(r*r)+g*g/(n*n);y>1&&(y=Math.sqrt(y),r=y*r,n=y*n);var T=r*r,P=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((T*P-T*g*g-P*x*x)/(T*g*g+P*x*x)));b==1/0&&(b=1);var _=b*r*g/n+(e+l)/2,E=b*-n*x/r+(t+s)/2,k=Math.asin(((t-E)/n).toFixed(9)),F=Math.asin(((s-E)/n).toFixed(9));k=e<_?Uu-k:k,F=l<_?Uu-F:F,k<0&&(k=Uu*2+k),F<0&&(F=Uu*2+F),o&&k>F&&(k=k-Uu*2),!o&&F>k&&(F=F-Uu*2)}if(Math.abs(F-k)>EC){var I=F,$=l,ne=s;F=k+EC*(o&&F>k?1:-1),l=_+r*Math.cos(F),s=E+n*Math.sin(F);var V=RR(l,s,r,n,i,0,o,$,ne,[F,I,_,E])}var ae=Math.tan((F-k)/4),Te=4/3*r*ae,Oe=4/3*n*ae,Pe=[2*e-(e+Te*Math.sin(k)),2*t-(t-Oe*Math.cos(k)),l+Te*Math.sin(F),s-Oe*Math.cos(F),l,s];if(c)return Pe;V&&(Pe=Pe.concat(V));for(var De=0;De<Pe.length;){var Ue=Sx(Pe[De],Pe[De+1],i);Pe[De++]=Ue.x,Pe[De++]=Ue.y}return Pe}function Sx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function PR(e){return e*(Uu/180)}var Uq=kR,jq=Bq,Gq={M:"moveTo",C:"bezierCurveTo"},Hq=function(e,t){e.beginPath(),jq(Uq(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Gq[n]].apply(e,i)}),e.closePath()},qq=$d,Wq=Vq,Lh=1e20;function Vq(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,c,p,x,g,y,T,P;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?p=t.stride:p=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(g=e,x=g.getContext("2d"),a=g.width,o=g.height,y=x.getImageData(0,0,a,o),s=y.data,p=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(g=e.canvas,x=e,a=g.width,o=g.height,y=x.getImageData(0,0,a,o),s=y.data,p=4):window.ImageData&&e instanceof window.ImageData&&(y=e,a=e.width,o=e.height,s=y.data,p=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*o),T=0,P=c.length;T<P;T++)s[T]=c[T*p+i]/255;else if(p!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),_=Array(a*o),E=Array(l),k=Array(l),F=Array(l+1),I=Array(l);for(T=0,P=a*o;T<P;T++){var $=s[T];b[T]=$===1?0:$===0?Lh:Math.pow(Math.max(0,.5-$),2),_[T]=$===1?Lh:$===0?0:Math.pow(Math.max(0,$-.5),2)}CC(b,a,o,E,k,I,F),CC(_,a,o,E,k,I,F);var ne=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(T=0,P=a*o;T<P;T++)ne[T]=qq(1-((b[T]-_[T])/n+r),0,1);return ne}function CC(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(TC(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(TC(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function TC(e,t,r,n,i){r[0]=0,n[0]=-Lh,n[1]=+Lh;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+Lh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var Yq=$q,Xq=TR,Qq=Hq,Zq=MR,Kq=Wq,Gw=document.createElement("canvas"),zn=Gw.getContext("2d"),CK=Jq;function Jq(e,t){if(!Zq(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=Gw.width=t.w||t.width||200,n=Gw.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Yq(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(zn.fillStyle="black",zn.fillRect(0,0,r,n),zn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?zn.strokeStyle="white":zn.strokeStyle="black",zn.lineWidth=Math.abs(a)),zn.translate(r*.5,n*.5),zn.scale(s,s),eW()){var c=new Path2D(e);zn.fill(c),a&&zn.stroke(c)}else{var p=Xq(e);Qq(zn,p),zn.fill(),a&&zn.stroke()}zn.setTransform(1,0,0,1,0,0);var x=Kq(zn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return x}var Dv;function eW(){if(Dv!=null)return Dv;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return Dv=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return Dv=r&&r.data&&r.data[3]===255}var tW={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]},rW=Object.prototype.toString,FR=function(e){var t;return rW.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},OC=tW,nW=FR,$u=OR,iW=aW,kC={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function aW(e){var t,r=[],n=1,i;if(typeof e=="string")if(OC[e])r=OC[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(y,T){if(/%$/.test(y))return T===o?parseFloat(y)/100:a==="rgb"?parseFloat(y)*255/100:parseFloat(y);if(a[T]==="h"){if(/deg$/.test(y))return parseFloat(y);if(kC[y]!==void 0)return kC[y]}return parseFloat(y)}),s===a&&r.push(1),n=c||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(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(nW(e)){var p=$u(e.r,e.red,e.R,null);p!==null?(i="rgb",r=[p,$u(e.g,e.green,e.G),$u(e.b,e.blue,e.B)]):(i="hsl",r=[$u(e.h,e.hue,e.H),$u(e.s,e.saturation,e.S),$u(e.l,e.lightness,e.L,e.b,e.brightness)]),n=$u(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||tr.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 oW={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[c]=s*255;return l}},uW=iW,lW=oW,Bv=$d,fW=function(t){var r,n=uW(t);return n.space?(r=Array(3),r[0]=Bv(n.values[0],0,255),r[1]=Bv(n.values[1],0,255),r[2]=Bv(n.values[2],0,255),n.space[0]==="h"&&(r=lW.rgb(r)),r.push(Bv(n.alpha,0,1)),r):[]},sW=fW,zv=$d,cW=Qb,gg=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=cW(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=sW(t),t[0]/=255,t[1]/=255,t[2]/=255),hW(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]=zv(Math.floor(t[0]*255),0,255),i[1]=zv(Math.floor(t[1]*255),0,255),i[2]=zv(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:zv(Math.floor(t[3]*255),0,255)),i)};function hW(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 fd={},dW={get exports(){return fd},set exports(e){fd=e}},Uv=$d;dW.exports=NR;fd.to=NR;fd.from=pW;function NR(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=Uv(r,0,255)&255,n=Uv(n,0,255)&255,i=Uv(i,0,255)&255,a=Uv(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function pW(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 IR=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("")},LR=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},vW=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ya={},mW={get exports(){return Ya},set exports(e){Ya=e}};mW.exports=$h;Ya.float32=Ya.float=$h;Ya.fract32=Ya.fract=gW;var MC=new Float32Array(1);function gW(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=$h(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return $h(e-$h(e))}function $h(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(MC[0]=e,MC[0])}function yW(e,t){return wW(e)||SW(e,t)||$R(e,t)||AW()}function xW(e){return _W(e)||bW(e)||$R(e)||EW()}function _W(e){if(Array.isArray(e))return Hw(e)}function wW(e){if(Array.isArray(e))return e}function bW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function $R(e,t){if(e){if(typeof e=="string")return Hw(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 Hw(e,t)}}function Hw(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 EW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
835
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
836
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var CW=gg,TW=Dd,OW=fd,kW=jw,el=vl,jv=IR,MW=uu,RW=LR,PW=Bd,RC=vW,Gv=Ya,FW=mg,NW=pn;function pn(e,t){var r=this;if(!(this instanceof pn))return new pn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],c=[null],p=255,x=100;this.tooManyColors=RC,i=e.texture({data:new Uint8Array(p*4),width:p,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),el(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:p,maxSize:x,canvas:n.canvas}),this.update(t);var g={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,_){return[r.tooManyColors?0:p,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,_){return _.xAttr||{buffer:_.positionBuffer,stride:8,offset:0}},y:function(b,_){return _.yAttr||{buffer:_.positionBuffer,stride:8,offset:4}},xFract:function(b,_){return _.xAttr?{constant:[0,0]}:{buffer:_.positionFractBuffer,stride:8,offset:0}},yFract:function(b,_){return _.yAttr?{constant:[0,0]}:{buffer:_.positionFractBuffer,stride:8,offset:4}},size:function(b,_){return _.size.length?{buffer:_.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(_.size*255/r.maxSize)]}},borderSize:function(b,_){return _.borderSize.length?{buffer:_.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(_.borderSize*255/r.maxSize)]}},colorId:function(b,_){return _.color.length?{buffer:_.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(_.color*4,_.color*4+4):[_.color]}},borderColorId:function(b,_){return _.borderColor.length?{buffer:_.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(_.borderColor*4,_.borderColor*4+4):[_.borderColor]}},isActive:function(b,_){return _.activation===!0?{constant:[1]}:_.activation?_.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},y=el({},g);y.frag=jv([`precision highp float;
837
837
  #define GLSLIFY 1
838
838
 
839
839
  uniform float opacity;
@@ -931,7 +931,7 @@ void main() {
931
931
 
932
932
  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
933
933
  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
934
- }`]),this.drawMarker=e(y);var C=el({},g);C.frag=jv([`precision highp float;
934
+ }`]),this.drawMarker=e(y);var T=el({},g);T.frag=jv([`precision highp float;
935
935
  #define GLSLIFY 1
936
936
 
937
937
  varying vec4 fragColor, fragBorderColor;
@@ -962,7 +962,7 @@ void main() {
962
962
  color.a *= alpha * opacity;
963
963
  gl_FragColor = color;
964
964
  }
965
- `]),C.vert=jv([`precision highp float;
965
+ `]),T.vert=jv([`precision highp float;
966
966
  #define GLSLIFY 1
967
967
 
968
968
  attribute float x, y, xFract, yFract;
@@ -1020,8 +1020,8 @@ void main() {
1020
1020
  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1021
1021
  fragWidth = 1. / gl_PointSize;
1022
1022
  }
1023
- `]),kT&&(C.frag=C.frag.replace("smoothstep","smoothStep"),y.frag=y.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(C)}pn.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};pn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};pn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};pn.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,gW(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};pn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[el({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[el({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var c=[],p=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var x=o[e],g=x.data,y=new Uint8Array(s),C=0;C<r.length;C++){var P=r[C];y[P]=g?g[P]:1}l.subdata(y)}for(var b=p.length;b--;){var _=mW(p[b],2),E=_[0],k=_[1];c.push(el({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:E,count:k-E}))}return c};pn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,c=this.palette;this.groups=i=r.map(function(p,x){var g=i[x];if(p===void 0)return g;p===null?p={positions:null}:typeof p=="function"?p={ondraw:p}:typeof p[0]=="number"&&(p={positions:p}),p=OW(p,{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"}),p.positions===null&&(p.positions=[]),p.tooManyColors!=null&&(e.tooManyColors=p.tooManyColors),g||(i[x]=g={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},p=el({},pn.defaults,p)),p.positions&&!("marker"in p)&&(p.marker=g.marker,delete g.marker),p.marker&&!("positions"in p)&&(p.positions=g.positions,delete g.positions);var y=0,C=0;if(kW(g,p,[{snap:!0,size:function($e,qe){return $e==null&&($e=pn.defaults.size),y+=$e&&$e.length?1:0,$e},borderSize:function($e,qe){return $e==null&&($e=pn.defaults.borderSize),y+=$e&&$e.length?1:0,$e},opacity:parseFloat,color:function($e,qe){return $e==null&&($e=pn.defaults.color),$e=e.updateColor($e),C++,$e},borderColor:function($e,qe){return $e==null&&($e=pn.defaults.borderColor),$e=e.updateColor($e),C++,$e},bounds:function($e,qe,kt){return"range"in kt||(kt.range=null),$e},positions:function($e,qe,kt){var He=qe.snap,be=qe.positionBuffer,Ve=qe.positionFractBuffer,ct=qe.selectionBuffer;if($e.x||$e.y)return $e.x.length?qe.xAttr={buffer:o.buffer($e.x),offset:0,stride:4,count:$e.x.length}:qe.xAttr={buffer:$e.x.buffer,offset:$e.x.offset*4||0,stride:($e.x.stride||1)*4,count:$e.x.count},$e.y.length?qe.yAttr={buffer:o.buffer($e.y),offset:0,stride:4,count:$e.y.length}:qe.yAttr={buffer:$e.y.buffer,offset:$e.y.offset*4||0,stride:($e.y.stride||1)*4,count:$e.y.count},qe.count=Math.max(qe.xAttr.count,qe.yAttr.count),$e;$e=MW($e,"float64");var et=qe.count=Math.floor($e.length/2),pt=qe.bounds=et?AW($e,2):null;if(!kt.range&&!qe.range&&(delete qe.range,kt.range=pt),!kt.marker&&!qe.marker&&(delete qe.marker,kt.marker=null),He&&(He===!0||et>He)?qe.tree=CW($e,{bounds:pt}):He&&He.length&&(qe.tree=He),qe.tree){var wt={primitive:"points",usage:"static",data:qe.tree,type:"uint32"};qe.elements?qe.elements(wt):qe.elements=o.elements(wt)}var qt=Gv.float32($e);be({data:qt,usage:"dynamic"});var Vt=Gv.fract32($e,qt);return Ve({data:Vt,usage:"dynamic"}),ct({data:new Uint8Array(et),type:"uint8",usage:"stream"}),$e}},{marker:function($e,qe,kt){var He=qe.activation;if(He.forEach(function(Vt){return Vt&&Vt.destroy&&Vt.destroy()}),He.length=0,!$e||typeof $e[0]=="number"){var be=e.addMarker($e);He[be]=!0}else{for(var Ve=[],ct=0,et=Math.min($e.length,qe.count);ct<et;ct++){var pt=e.addMarker($e[ct]);Ve[pt]||(Ve[pt]=new Uint8Array(qe.count)),Ve[pt][ct]=1}for(var wt=0;wt<Ve.length;wt++)if(Ve[wt]){var qt={data:Ve[wt],type:"uint8",usage:"static"};He[wt]?He[wt](qt):He[wt]=o.buffer(qt),He[wt].data=Ve[wt]}}return $e},range:function($e,qe,kt){var He=qe.bounds;if(He)return $e||($e=He),qe.scale=[1/($e[2]-$e[0]),1/($e[3]-$e[1])],qe.translate=[-$e[0],-$e[1]],qe.scaleFract=Gv.fract(qe.scale),qe.translateFract=Gv.fract(qe.translate),$e},viewport:function($e){var qe=RW($e||[a.drawingBufferWidth,a.drawingBufferHeight]);return qe}}]),y){var P=g,b=P.count,_=P.size,E=P.borderSize,k=P.sizeBuffer,F=new Uint8Array(b*2);if(_.length||E.length)for(var I=0;I<b;I++)F[I*2]=Math.round((_[I]==null?_:_[I])*255/l),F[I*2+1]=Math.round((E[I]==null?E:E[I])*255/l);k({data:F,usage:"dynamic"})}if(C){var $=g,ne=$.count,V=$.color,ae=$.borderColor,Ce=$.colorBuffer,Oe;if(e.tooManyColors){if(V.length||ae.length){Oe=new Uint8Array(ne*8);for(var Pe=0;Pe<ne;Pe++){var De=V[Pe];Oe[Pe*8]=c[De*4],Oe[Pe*8+1]=c[De*4+1],Oe[Pe*8+2]=c[De*4+2],Oe[Pe*8+3]=c[De*4+3];var Ue=ae[Pe];Oe[Pe*8+4]=c[Ue*4],Oe[Pe*8+5]=c[Ue*4+1],Oe[Pe*8+6]=c[Ue*4+2],Oe[Pe*8+7]=c[Ue*4+3]}}}else if(V.length||ae.length){Oe=new Uint8Array(ne*4+2);for(var ft=0;ft<ne;ft++)V[ft]!=null&&(Oe[ft*4]=V[ft]%s,Oe[ft*4+1]=Math.floor(V[ft]/s)),ae[ft]!=null&&(Oe[ft*4+2]=ae[ft]%s,Oe[ft*4+3]=Math.floor(ae[ft]/s))}Ce({data:Oe||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return g})}};pn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};pn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var c=e[s];c=EW(c,"uint8");var p=TW(c,!1);if(t[p]==null){var x=r.length;t[p]=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[p]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};pn.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)}};pn.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 FW=vl,NW=function(t,r){var n=new PW(t,r),i=n.render.bind(n);return FW(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},EK=NW,ym={},IW={get exports(){return ym},set exports(e){ym=e}};IW.exports=gg;ym.default=gg;function gg(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=LR(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,c,p,x,g,y;if(n&&(a=zW(e,t,a,r)),e.length>80*r){l=c=e[0],s=p=e[1];for(var C=r;C<i;C+=r)x=e[C],g=e[C+1],x<l&&(l=x),g<s&&(s=g),x>c&&(c=x),g>p&&(p=g);y=Math.max(c-l,p-s),y=y!==0?1/y:0}return sd(a,o,r,l,s,y),o}function LR(e,t,r,n,i){var a,o;if(i===Ww(e,t,r,n)>0)for(a=t;a<r;a+=n)o=MT(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=MT(a,e[a],e[a+1],o);return o&&yg(o,o.next)&&(hd(o),o=o.next),o}function eu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(yg(r,r.next)||Ur(r.prev,r,r.next)===0)){if(hd(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function sd(e,t,r,n,i,a,o){if(e){!o&&a&&qW(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?$W(e,n,i,a):LW(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),hd(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=DW(eu(e),t,r),sd(e,t,r,n,i,a,2)):o===2&&BW(e,t,r,n,i,a):sd(eu(e),t,r,n,i,a,1);break}}}}function LW(e){var t=e.prev,r=e,n=e.next;if(Ur(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Nf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Ur(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function $W(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Ur(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,p=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,x=Hw(l,s,t,r,n),g=Hw(c,p,t,r,n),y=e.prevZ,C=e.nextZ;y&&y.z>=x&&C&&C.z<=g;){if(y!==e.prev&&y!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&Ur(y.prev,y,y.next)>=0||(y=y.prevZ,C!==e.prev&&C!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,C.x,C.y)&&Ur(C.prev,C,C.next)>=0))return!1;C=C.nextZ}for(;y&&y.z>=x;){if(y!==e.prev&&y!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&Ur(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;C&&C.z<=g;){if(C!==e.prev&&C!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,C.x,C.y)&&Ur(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function DW(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!yg(i,a)&&$R(i,n,n.next,a)&&cd(i,a)&&cd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),hd(n),hd(n.next),n=e=a),n=n.next}while(n!==e);return eu(n)}function BW(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&YW(o,l)){var s=DR(o,l);o=eu(o,o.next),s=eu(s,s.next),sd(o,t,r,n,i,a),sd(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function zW(e,t,r,n){var i=[],a,o,l,s,c;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,c=LR(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(VW(c));for(i.sort(UW),a=0;a<i.length;a++)r=jW(i[a],r),r=eu(r,r.next);return r}function UW(e,t){return e.x-t.x}function jW(e,t){var r=GW(e,t);if(!r)return t;var n=DR(r,e),i=eu(r,r.next);return eu(n,n.next),t===r?i:t}function GW(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,c=o.x,p=o.y,x=1/0,g;r=o;do n>=r.x&&r.x>=c&&n!==r.x&&Nf(i<p?n:a,i,c,p,i<p?a:n,i,r.x,r.y)&&(g=Math.abs(i-r.y)/(n-r.x),cd(r,e)&&(g<x||g===x&&(r.x>o.x||r.x===o.x&&HW(o,r)))&&(o=r,x=g)),r=r.next;while(r!==s);return o}function HW(e,t){return Ur(e.prev,e,t.prev)<0&&Ur(t.next,e,e.next)<0}function qW(e,t,r,n){var i=e;do i.z===null&&(i.z=Hw(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,WW(i)}function WW(e){var t,r,n,i,a,o,l,s,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,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(o>1);return e}function Hw(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 VW(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 Nf(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function YW(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!XW(e,t)&&(cd(e,t)&&cd(t,e)&&QW(e,t)&&(Ur(e.prev,e,t.prev)||Ur(e,t.prev,t))||yg(e,t)&&Ur(e.prev,e,e.next)>0&&Ur(t.prev,t,t.next)>0)}function Ur(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function yg(e,t){return e.x===t.x&&e.y===t.y}function $R(e,t,r,n){var i=qv(Ur(e,t,r)),a=qv(Ur(e,t,n)),o=qv(Ur(r,n,e)),l=qv(Ur(r,n,t));return!!(i!==a&&o!==l||i===0&&Hv(e,r,t)||a===0&&Hv(e,n,t)||o===0&&Hv(r,e,n)||l===0&&Hv(r,t,n))}function Hv(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 qv(e){return e>0?1:e<0?-1:0}function XW(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&&$R(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function cd(e,t){return Ur(e.prev,e,e.next)<0?Ur(e,t,e.next)>=0&&Ur(e,e.prev,t)>=0:Ur(e,t,e.prev)<0||Ur(e,e.next,t)<0}function QW(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 DR(e,t){var r=new qw(e.i,e.x,e.y),n=new qw(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 MT(e,t,r,n){var i=new qw(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 hd(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 qw(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}gg.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(Ww(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,p=l<s-1?t[l+1]*r:e.length;o-=Math.abs(Ww(e,c,p,r))}var x=0;for(l=0;l<n.length;l+=3){var g=n[l]*r,y=n[l+1]*r,C=n[l+2]*r;x+=Math.abs((e[g]-e[C])*(e[y+1]-e[g+1])-(e[g]-e[y])*(e[C+1]-e[g+1]))}return o===0&&x===0?0:Math.abs((x-o)/o)};function Ww(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}gg.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var ZW=Dd,KW=JW;function JW(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=ZW(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var eV=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")},Sx,RT;function BR(){if(RT)return Sx;RT=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Sx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Sx}var Ex,PT;function tV(){if(PT)return Ex;PT=1;var e=Object.create,t;return BR()()||(t=zR()),Ex=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Ex}var Ax,FT;function zR(){if(FT)return Ax;FT=1;var e=tb,t=Gi,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},Ax=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(c,p){return s.call(a(c,p),p),c}):l=function(c,p){return a(c,p).__proto__=p,c}:l=function c(p,x){var g;return a(p,x),g=r.call(c.nullPolyfill,p),g&&delete c.nullPolyfill.__proto__,x===null&&(x=c.nullPolyfill),p.__proto__=x,g&&n(c.nullPolyfill,"__proto__",i),p},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{s=c.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),tV(),Ax}var Tx,NT;function Xb(){return NT||(NT=1,Tx=BR()()?Object.setPrototypeOf:zR()),Tx}var Cx,IT;function rV(){if(IT)return Cx;IT=1;var e=tb;return Cx=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Cx}var Ox,LT;function nV(){if(LT)return Ox;LT=1;var e=Object.create(null),t=Math.random;return Ox=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},Ox}var xm={},iV={get exports(){return xm},set exports(e){xm=e}},kx,$T;function aV(){if($T)return kx;$T=1;var e=Gi;return kx=function(){return e(this).length=0,this},kx}var Mx,DT;function oV(){if(DT)return Mx;DT=1;var e=xs,t=rb,r=Object.prototype.toString;return Mx=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}},Mx}var Rx,BT;function uV(){return BT||(BT=1,Rx=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),Rx}var Px,zT;function lV(){if(zT)return Px;zT=1;var e=uV(),t=/[\n\r\u2028\u2029]/g;return Px=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`
1024
- `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Px}var Fx,UT;function UR(){if(UT)return Fx;UT=1;var e=xs,t=rb,r=oV(),n=lV(),i=function(a,o){return a.replace("%v",n(o))};return Fx=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Fx}var Nx,jT;function fV(){if(jT)return Nx;jT=1;var e=UR(),t=xs;return Nx=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},Nx}var Ix,GT;function sV(){if(GT)return Ix;GT=1;var e=UR(),t=Lk;return Ix=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Ix}var Lx,HT;function cV(){if(HT)return Lx;HT=1;var e=Vm(),t=Gm,r=Gi;return Lx=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},Lx}var $x,qT;function hV(){if(qT)return $x;qT=1;var e=xs,t=fV(),r=sV(),n=cV(),i=eb,a=ib(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,c;return c=function(p,x,g){var y=t(x)&&r(x.value),C;return C=n(x),delete C.writable,delete C.value,C.get=function(){return!g.overwriteDefinition&&s.call(this,p)?y:(x.value=o.call(y,g.resolveContext?g.resolveContext(this):this),l(this,p,x),this[p])},C},$x=function(p){var x=i(arguments[1]);return e(x.resolveContext)&&r(x.resolveContext),a(p,function(g,y){return c(y,g,x)})},$x}var Dx,WT;function jR(){if(WT)return Dx;WT=1;var e=aV(),t=Gm,r=da,n=Gi,i=si,a=hV(),o=bl(),l=Object.defineProperty,s=Object.defineProperties,c;return Dx=c=function(p,x){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(p)),__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 p;if(this.__list__){if(this.__redo__&&(p=this.__redo__.shift(),p!==void 0))return p;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(p){return p===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(p)}}),_resolve:i(function(p){return this.__list__[p]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(p){if(!(p>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[p]));return}this.__redo__.forEach(function(x,g){x>=p&&(this.__redo__[g]=++x)},this),this.__redo__.push(p)}}),_onDelete:i(function(p){var x;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(x=this.__redo__.indexOf(p),x!==-1&&this.__redo__.splice(x,1),this.__redo__.forEach(function(g,y){g>p&&(this.__redo__[y]=--g)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,o.iterator,i(function(){return this})),Dx}var VT;function dV(){if(VT)return xm;VT=1;var e=Xb(),t=$k,r=si,n=bl(),i=jR(),a=Object.defineProperty,o;return o=iV.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),xm}var _m={},pV={get exports(){return _m},set exports(e){_m=e}},YT;function vV(){if(YT)return _m;YT=1;var e=Xb(),t=si,r=bl(),n=jR(),i=Object.defineProperty,a;return a=pV.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),_m}var Bx,XT;function mV(){if(XT)return Bx;XT=1;var e=qm(),t=Qa,r=Wm(),n=bl().iterator,i=Array.isArray;return Bx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},Bx}var zx,QT;function gV(){if(QT)return zx;QT=1;var e=mV();return zx=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},zx}var Ux,ZT;function GR(){if(ZT)return Ux;ZT=1;var e=qm(),t=Wm(),r=dV(),n=vV(),i=gV(),a=bl().iterator;return Ux=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},Ux}var jx,KT;function yV(){if(KT)return jx;KT=1;var e=qm(),t=da,r=Wm(),n=GR(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return jx=function(l,s){var c,p=arguments[2],x,g,y,C,P,b,_;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(s),g=function(){y=!0},c==="array"){o.call(l,function(E){return a.call(s,p,E,g),y});return}if(c==="string"){for(P=l.length,C=0;C<P&&(b=l[C],C+1<P&&(_=b.charCodeAt(0),_>=55296&&_<=56319&&(b+=l[++C])),a.call(s,p,b,g),!y);++C);return}for(x=l.next();!x.done;){if(a.call(s,p,x.value,g),y)return;x=l.next()}},jx}var Gx,JT;function xV(){return JT||(JT=1,Gx=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Gx}var Hx,eC;function _V(){if(eC)return Hx;eC=1;var e=Qa,t=Xb(),r=rV(),n=Gi,i=nV(),a=si,o=GR(),l=yV(),s=bl().toStringTag,c=xV(),p=Array.isArray,x=Object.defineProperty,g=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf,C;return Hx=C=function(){var P=arguments[0],b;if(!(this instanceof C))throw new TypeError("Constructor requires 'new'");return b=c&&t&&WeakMap!==C?t(new WeakMap,y(this)):this,e(P)&&(p(P)||(P=o(P))),x(b,"__weakMapData__",a("c","$weakMap$"+i())),P&&l(P,function(_){n(_),b.set(_[0],_[1])}),b},c&&(t&&t(C,WeakMap),C.prototype=Object.create(WeakMap.prototype,{constructor:a(C)})),Object.defineProperties(C.prototype,{delete:a(function(P){return g.call(r(P),this.__weakMapData__)?(delete P[this.__weakMapData__],!0):!1}),get:a(function(P){if(g.call(r(P),this.__weakMapData__))return P[this.__weakMapData__]}),has:a(function(P){return g.call(r(P),this.__weakMapData__)}),set:a(function(P,b){return x(r(P),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),x(C.prototype,s,a("c","WeakMap")),Hx}var HR=eV()?WeakMap:_V(),wV=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 Wv=mg,bV=Dd,Vw=vl,gf=FR,SV=uu,EV=Bd,tC=ym,AV=KW,{float32:TV,fract32:qx}=Ya,CV=HR,rC=vg,OV=wV;var AK=br;function br(e,t){if(!(this instanceof br))return new br(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=br.shaders.has(e)?br.shaders.get(e):br.shaders.set(e,br.createShaders(e)).get(e),this.update(t)}br.dashMult=2;br.maxPatternLength=256;br.precisionThreshold=3e6;br.maxPoints=1e4;br.maxLines=2048;br.shaders=new CV;br.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(Vw({vert:gf("./rect-vert.glsl"),frag:gf("./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(Vw({cull:{enable:!0,face:"back"},vert:gf("./miter-vert.glsl"),frag:gf("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:gf("./fill-vert.glsl"),frag:gf("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};br.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};br.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};br.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>br.precisionThreshold||t.scale[1]*t.viewport.height>br.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=br.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};br.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=SV(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=Vw({},br.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<br.maxLines&&(o.depth=2*(br.maxLines-1-a%br.maxLines)/br.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?Wv(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=rC(i.viewport)),o.viewport||(o.viewport=rC([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,p;if(i.positions.x&&i.positions.y){let C=i.positions.x,P=i.positions.y;p=o.count=Math.max(C.length,P.length),c=new Float64Array(p*2);for(let b=0;b<p;b++)c[b*2]=C[b],c[b*2+1]=P[b]}else c=EV(i.positions,"float64"),p=o.count=Math.floor(c.length/2);let x=o.bounds=bV(c,2);if(o.fill){let C=[],P={},b=0;for(let _=0,E=0,k=o.count;_<k;_++){let F=c[_*2],I=c[_*2+1];isNaN(F)||isNaN(I)||F==null||I==null?(F=c[b*2],I=c[b*2+1],P[_]=b):b=_,C[E++]=F,C[E++]=I}if(i.splitNull){o.count-1 in P||(P[o.count]=o.count-1);let _=Object.keys(P).map(Number).sort((I,$)=>I-$),E=[],k=0,F=o.hole!=null?o.hole[0]:null;if(F!=null){let I=OV(_,$=>$>=F);_=_.slice(0,I),_.push(F)}for(let I=0;I<_.length;I++){let $=C.slice(k*2,_[I]*2).concat(F?C.slice(F*2):[]),ne=(o.hole||[]).map(ae=>ae-F+(_[I]-k)),V=tC($,ne);V=V.map(ae=>ae+k+(ae+k<_[I]?0:F-_[I])),E.push(...V),k=_[I]+1}for(let I=0,$=E.length;I<$;I++)P[E[I]]!=null&&(E[I]=P[E[I]]);o.triangles=E}else{let _=tC(C,o.hole||[]);for(let E=0,k=_.length;E<k;E++)P[_[E]]!=null&&(_[E]=P[_[E]]);o.triangles=_}}let g=new Float64Array(c);AV(g,2,x);let y=new Float64Array(p*2+6);o.close?c[0]===c[p*2-2]&&c[1]===c[p*2-1]?(y[0]=g[p*2-4],y[1]=g[p*2-3]):(y[0]=g[p*2-2],y[1]=g[p*2-1]):(y[0]=g[0],y[1]=g[1]),y.set(g,2),o.close?c[0]===c[p*2-2]&&c[1]===c[p*2-1]?(y[p*2+2]=g[2],y[p*2+3]=g[3],o.count-=1):(y[p*2+2]=g[0],y[p*2+3]=g[1],y[p*2+4]=g[2],y[p*2+5]=g[3]):(y[p*2+2]=g[p*2-2],y[p*2+3]=g[p*2-1],y[p*2+4]=g[p*2-2],y[p*2+5]=g[p*2-1]);var l=TV(y);o.positionBuffer(l);var s=qx(y,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let c=o.bounds,p=c[2]-c[0],x=c[3]-c[1],g=o.range[2]-o.range[0],y=o.range[3]-o.range[1];o.scale=[p/g,x/y],o.translate=[-o.range[0]/g+c[0]/g||0,-o.range[1]/y+c[1]/y||0],o.scaleFract=qx(o.scale),o.translateFract=qx(o.translate)}if(i.dashes){let c=0,p;if(!i.dashes||i.dashes.length<2)c=1,p=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let y=0;y<i.dashes.length;++y)c+=i.dashes[y];p=new Uint8Array(c*br.dashMult);let x=0,g=255;for(let y=0;y<2;y++)for(let C=0;C<i.dashes.length;++C){for(let P=0,b=i.dashes[C]*br.dashMult*.5;P<b;++P)p[x++]=g;g^=255}}o.dashLength=c,o.dashTexture({channels:1,data:p,width:p.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=o.count,p=i.color;p||(p="transparent");let x=new Uint8Array(c*4+4);if(!Array.isArray(p)||typeof p[0]=="number"){let g=Wv(p,"uint8");for(let y=0;y<c+1;y++)x.set(g,y*4)}else{for(let g=0;g<c;g++){let y=Wv(p[g],"uint8");x.set(y,g*4)}x.set(Wv(p[0],"uint8"),c*4)}o.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};br.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const kV=Dd,MV=mg,RV=NR,PV=uu,nC=vl,iC=Bd,{float32:FV,fract32:Wx}=Ya;var TK=NV;const aC=[[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 NV(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,c={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},p=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:aC}),C(t),n=e({vert:`
1023
+ `]),RC&&(T.frag=T.frag.replace("smoothstep","smoothStep"),y.frag=y.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(T)}pn.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};pn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};pn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};pn.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,xW(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};pn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[el({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[el({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var c=[],p=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var x=o[e],g=x.data,y=new Uint8Array(s),T=0;T<r.length;T++){var P=r[T];y[P]=g?g[P]:1}l.subdata(y)}for(var b=p.length;b--;){var _=yW(p[b],2),E=_[0],k=_[1];c.push(el({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:E,count:k-E}))}return c};pn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,c=this.palette;this.groups=i=r.map(function(p,x){var g=i[x];if(p===void 0)return g;p===null?p={positions:null}:typeof p=="function"?p={ondraw:p}:typeof p[0]=="number"&&(p={positions:p}),p=MW(p,{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"}),p.positions===null&&(p.positions=[]),p.tooManyColors!=null&&(e.tooManyColors=p.tooManyColors),g||(i[x]=g={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},p=el({},pn.defaults,p)),p.positions&&!("marker"in p)&&(p.marker=g.marker,delete g.marker),p.marker&&!("positions"in p)&&(p.positions=g.positions,delete g.positions);var y=0,T=0;if(RW(g,p,[{snap:!0,size:function($e,qe){return $e==null&&($e=pn.defaults.size),y+=$e&&$e.length?1:0,$e},borderSize:function($e,qe){return $e==null&&($e=pn.defaults.borderSize),y+=$e&&$e.length?1:0,$e},opacity:parseFloat,color:function($e,qe){return $e==null&&($e=pn.defaults.color),$e=e.updateColor($e),T++,$e},borderColor:function($e,qe){return $e==null&&($e=pn.defaults.borderColor),$e=e.updateColor($e),T++,$e},bounds:function($e,qe,kt){return"range"in kt||(kt.range=null),$e},positions:function($e,qe,kt){var He=qe.snap,be=qe.positionBuffer,Ve=qe.positionFractBuffer,ct=qe.selectionBuffer;if($e.x||$e.y)return $e.x.length?qe.xAttr={buffer:o.buffer($e.x),offset:0,stride:4,count:$e.x.length}:qe.xAttr={buffer:$e.x.buffer,offset:$e.x.offset*4||0,stride:($e.x.stride||1)*4,count:$e.x.count},$e.y.length?qe.yAttr={buffer:o.buffer($e.y),offset:0,stride:4,count:$e.y.length}:qe.yAttr={buffer:$e.y.buffer,offset:$e.y.offset*4||0,stride:($e.y.stride||1)*4,count:$e.y.count},qe.count=Math.max(qe.xAttr.count,qe.yAttr.count),$e;$e=PW($e,"float64");var et=qe.count=Math.floor($e.length/2),pt=qe.bounds=et?TW($e,2):null;if(!kt.range&&!qe.range&&(delete qe.range,kt.range=pt),!kt.marker&&!qe.marker&&(delete qe.marker,kt.marker=null),He&&(He===!0||et>He)?qe.tree=kW($e,{bounds:pt}):He&&He.length&&(qe.tree=He),qe.tree){var wt={primitive:"points",usage:"static",data:qe.tree,type:"uint32"};qe.elements?qe.elements(wt):qe.elements=o.elements(wt)}var qt=Gv.float32($e);be({data:qt,usage:"dynamic"});var Vt=Gv.fract32($e,qt);return Ve({data:Vt,usage:"dynamic"}),ct({data:new Uint8Array(et),type:"uint8",usage:"stream"}),$e}},{marker:function($e,qe,kt){var He=qe.activation;if(He.forEach(function(Vt){return Vt&&Vt.destroy&&Vt.destroy()}),He.length=0,!$e||typeof $e[0]=="number"){var be=e.addMarker($e);He[be]=!0}else{for(var Ve=[],ct=0,et=Math.min($e.length,qe.count);ct<et;ct++){var pt=e.addMarker($e[ct]);Ve[pt]||(Ve[pt]=new Uint8Array(qe.count)),Ve[pt][ct]=1}for(var wt=0;wt<Ve.length;wt++)if(Ve[wt]){var qt={data:Ve[wt],type:"uint8",usage:"static"};He[wt]?He[wt](qt):He[wt]=o.buffer(qt),He[wt].data=Ve[wt]}}return $e},range:function($e,qe,kt){var He=qe.bounds;if(He)return $e||($e=He),qe.scale=[1/($e[2]-$e[0]),1/($e[3]-$e[1])],qe.translate=[-$e[0],-$e[1]],qe.scaleFract=Gv.fract(qe.scale),qe.translateFract=Gv.fract(qe.translate),$e},viewport:function($e){var qe=FW($e||[a.drawingBufferWidth,a.drawingBufferHeight]);return qe}}]),y){var P=g,b=P.count,_=P.size,E=P.borderSize,k=P.sizeBuffer,F=new Uint8Array(b*2);if(_.length||E.length)for(var I=0;I<b;I++)F[I*2]=Math.round((_[I]==null?_:_[I])*255/l),F[I*2+1]=Math.round((E[I]==null?E:E[I])*255/l);k({data:F,usage:"dynamic"})}if(T){var $=g,ne=$.count,V=$.color,ae=$.borderColor,Te=$.colorBuffer,Oe;if(e.tooManyColors){if(V.length||ae.length){Oe=new Uint8Array(ne*8);for(var Pe=0;Pe<ne;Pe++){var De=V[Pe];Oe[Pe*8]=c[De*4],Oe[Pe*8+1]=c[De*4+1],Oe[Pe*8+2]=c[De*4+2],Oe[Pe*8+3]=c[De*4+3];var Ue=ae[Pe];Oe[Pe*8+4]=c[Ue*4],Oe[Pe*8+5]=c[Ue*4+1],Oe[Pe*8+6]=c[Ue*4+2],Oe[Pe*8+7]=c[Ue*4+3]}}}else if(V.length||ae.length){Oe=new Uint8Array(ne*4+2);for(var ft=0;ft<ne;ft++)V[ft]!=null&&(Oe[ft*4]=V[ft]%s,Oe[ft*4+1]=Math.floor(V[ft]/s)),ae[ft]!=null&&(Oe[ft*4+2]=ae[ft]%s,Oe[ft*4+3]=Math.floor(ae[ft]/s))}Te({data:Oe||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return g})}};pn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};pn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var c=e[s];c=CW(c,"uint8");var p=OW(c,!1);if(t[p]==null){var x=r.length;t[p]=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[p]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};pn.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)}};pn.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 IW=vl,LW=function(t,r){var n=new NW(t,r),i=n.render.bind(n);return IW(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},TK=LW,xm={},$W={get exports(){return xm},set exports(e){xm=e}};$W.exports=yg;xm.default=yg;function yg(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=DR(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,c,p,x,g,y;if(n&&(a=jW(e,t,a,r)),e.length>80*r){l=c=e[0],s=p=e[1];for(var T=r;T<i;T+=r)x=e[T],g=e[T+1],x<l&&(l=x),g<s&&(s=g),x>c&&(c=x),g>p&&(p=g);y=Math.max(c-l,p-s),y=y!==0?1/y:0}return sd(a,o,r,l,s,y),o}function DR(e,t,r,n,i){var a,o;if(i===Vw(e,t,r,n)>0)for(a=t;a<r;a+=n)o=PC(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=PC(a,e[a],e[a+1],o);return o&&xg(o,o.next)&&(hd(o),o=o.next),o}function eu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(xg(r,r.next)||Ur(r.prev,r,r.next)===0)){if(hd(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function sd(e,t,r,n,i,a,o){if(e){!o&&a&&VW(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?BW(e,n,i,a):DW(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),hd(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=zW(eu(e),t,r),sd(e,t,r,n,i,a,2)):o===2&&UW(e,t,r,n,i,a):sd(eu(e),t,r,n,i,a,1);break}}}}function DW(e){var t=e.prev,r=e,n=e.next;if(Ur(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Nf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Ur(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function BW(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Ur(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,p=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,x=qw(l,s,t,r,n),g=qw(c,p,t,r,n),y=e.prevZ,T=e.nextZ;y&&y.z>=x&&T&&T.z<=g;){if(y!==e.prev&&y!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&Ur(y.prev,y,y.next)>=0||(y=y.prevZ,T!==e.prev&&T!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,T.x,T.y)&&Ur(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;y&&y.z>=x;){if(y!==e.prev&&y!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&Ur(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;T&&T.z<=g;){if(T!==e.prev&&T!==e.next&&Nf(i.x,i.y,a.x,a.y,o.x,o.y,T.x,T.y)&&Ur(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function zW(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!xg(i,a)&&BR(i,n,n.next,a)&&cd(i,a)&&cd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),hd(n),hd(n.next),n=e=a),n=n.next}while(n!==e);return eu(n)}function UW(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&QW(o,l)){var s=zR(o,l);o=eu(o,o.next),s=eu(s,s.next),sd(o,t,r,n,i,a),sd(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function jW(e,t,r,n){var i=[],a,o,l,s,c;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,c=DR(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(XW(c));for(i.sort(GW),a=0;a<i.length;a++)r=HW(i[a],r),r=eu(r,r.next);return r}function GW(e,t){return e.x-t.x}function HW(e,t){var r=qW(e,t);if(!r)return t;var n=zR(r,e),i=eu(r,r.next);return eu(n,n.next),t===r?i:t}function qW(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,c=o.x,p=o.y,x=1/0,g;r=o;do n>=r.x&&r.x>=c&&n!==r.x&&Nf(i<p?n:a,i,c,p,i<p?a:n,i,r.x,r.y)&&(g=Math.abs(i-r.y)/(n-r.x),cd(r,e)&&(g<x||g===x&&(r.x>o.x||r.x===o.x&&WW(o,r)))&&(o=r,x=g)),r=r.next;while(r!==s);return o}function WW(e,t){return Ur(e.prev,e,t.prev)<0&&Ur(t.next,e,e.next)<0}function VW(e,t,r,n){var i=e;do i.z===null&&(i.z=qw(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,YW(i)}function YW(e){var t,r,n,i,a,o,l,s,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,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(o>1);return e}function qw(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 XW(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 Nf(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function QW(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!ZW(e,t)&&(cd(e,t)&&cd(t,e)&&KW(e,t)&&(Ur(e.prev,e,t.prev)||Ur(e,t.prev,t))||xg(e,t)&&Ur(e.prev,e,e.next)>0&&Ur(t.prev,t,t.next)>0)}function Ur(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function xg(e,t){return e.x===t.x&&e.y===t.y}function BR(e,t,r,n){var i=qv(Ur(e,t,r)),a=qv(Ur(e,t,n)),o=qv(Ur(r,n,e)),l=qv(Ur(r,n,t));return!!(i!==a&&o!==l||i===0&&Hv(e,r,t)||a===0&&Hv(e,n,t)||o===0&&Hv(r,e,n)||l===0&&Hv(r,t,n))}function Hv(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 qv(e){return e>0?1:e<0?-1:0}function ZW(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&&BR(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function cd(e,t){return Ur(e.prev,e,e.next)<0?Ur(e,t,e.next)>=0&&Ur(e,e.prev,t)>=0:Ur(e,t,e.prev)<0||Ur(e,e.next,t)<0}function KW(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 zR(e,t){var r=new Ww(e.i,e.x,e.y),n=new Ww(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 PC(e,t,r,n){var i=new Ww(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 hd(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 Ww(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}yg.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(Vw(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,p=l<s-1?t[l+1]*r:e.length;o-=Math.abs(Vw(e,c,p,r))}var x=0;for(l=0;l<n.length;l+=3){var g=n[l]*r,y=n[l+1]*r,T=n[l+2]*r;x+=Math.abs((e[g]-e[T])*(e[y+1]-e[g+1])-(e[g]-e[y])*(e[T+1]-e[g+1]))}return o===0&&x===0?0:Math.abs((x-o)/o)};function Vw(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}yg.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var JW=Dd,eV=tV;function tV(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=JW(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var rV=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")},Ex,FC;function UR(){if(FC)return Ex;FC=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Ex=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Ex}var Ax,NC;function nV(){if(NC)return Ax;NC=1;var e=Object.create,t;return UR()()||(t=jR()),Ax=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Ax}var Cx,IC;function jR(){if(IC)return Cx;IC=1;var e=nb,t=Gi,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},Cx=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(c,p){return s.call(a(c,p),p),c}):l=function(c,p){return a(c,p).__proto__=p,c}:l=function c(p,x){var g;return a(p,x),g=r.call(c.nullPolyfill,p),g&&delete c.nullPolyfill.__proto__,x===null&&(x=c.nullPolyfill),p.__proto__=x,g&&n(c.nullPolyfill,"__proto__",i),p},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{s=c.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),nV(),Cx}var Tx,LC;function Zb(){return LC||(LC=1,Tx=UR()()?Object.setPrototypeOf:jR()),Tx}var Ox,$C;function iV(){if($C)return Ox;$C=1;var e=nb;return Ox=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Ox}var kx,DC;function aV(){if(DC)return kx;DC=1;var e=Object.create(null),t=Math.random;return kx=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},kx}var _m={},oV={get exports(){return _m},set exports(e){_m=e}},Mx,BC;function uV(){if(BC)return Mx;BC=1;var e=Gi;return Mx=function(){return e(this).length=0,this},Mx}var Rx,zC;function lV(){if(zC)return Rx;zC=1;var e=xs,t=ib,r=Object.prototype.toString;return Rx=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}},Rx}var Px,UC;function fV(){return UC||(UC=1,Px=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),Px}var Fx,jC;function sV(){if(jC)return Fx;jC=1;var e=fV(),t=/[\n\r\u2028\u2029]/g;return Fx=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`
1024
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Fx}var Nx,GC;function GR(){if(GC)return Nx;GC=1;var e=xs,t=ib,r=lV(),n=sV(),i=function(a,o){return a.replace("%v",n(o))};return Nx=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Nx}var Ix,HC;function cV(){if(HC)return Ix;HC=1;var e=GR(),t=xs;return Ix=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},Ix}var Lx,qC;function hV(){if(qC)return Lx;qC=1;var e=GR(),t=Dk;return Lx=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Lx}var $x,WC;function dV(){if(WC)return $x;WC=1;var e=Ym(),t=Hm,r=Gi;return $x=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},$x}var Dx,VC;function pV(){if(VC)return Dx;VC=1;var e=xs,t=cV(),r=hV(),n=dV(),i=rb,a=ob(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,c;return c=function(p,x,g){var y=t(x)&&r(x.value),T;return T=n(x),delete T.writable,delete T.value,T.get=function(){return!g.overwriteDefinition&&s.call(this,p)?y:(x.value=o.call(y,g.resolveContext?g.resolveContext(this):this),l(this,p,x),this[p])},T},Dx=function(p){var x=i(arguments[1]);return e(x.resolveContext)&&r(x.resolveContext),a(p,function(g,y){return c(y,g,x)})},Dx}var Bx,YC;function HR(){if(YC)return Bx;YC=1;var e=uV(),t=Hm,r=da,n=Gi,i=si,a=pV(),o=bl(),l=Object.defineProperty,s=Object.defineProperties,c;return Bx=c=function(p,x){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(p)),__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 p;if(this.__list__){if(this.__redo__&&(p=this.__redo__.shift(),p!==void 0))return p;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(p){return p===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(p)}}),_resolve:i(function(p){return this.__list__[p]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(p){if(!(p>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[p]));return}this.__redo__.forEach(function(x,g){x>=p&&(this.__redo__[g]=++x)},this),this.__redo__.push(p)}}),_onDelete:i(function(p){var x;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(x=this.__redo__.indexOf(p),x!==-1&&this.__redo__.splice(x,1),this.__redo__.forEach(function(g,y){g>p&&(this.__redo__[y]=--g)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,o.iterator,i(function(){return this})),Bx}var XC;function vV(){if(XC)return _m;XC=1;var e=Zb(),t=Bk,r=si,n=bl(),i=HR(),a=Object.defineProperty,o;return o=oV.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),_m}var wm={},mV={get exports(){return wm},set exports(e){wm=e}},QC;function gV(){if(QC)return wm;QC=1;var e=Zb(),t=si,r=bl(),n=HR(),i=Object.defineProperty,a;return a=mV.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),wm}var zx,ZC;function yV(){if(ZC)return zx;ZC=1;var e=Wm(),t=Qa,r=Vm(),n=bl().iterator,i=Array.isArray;return zx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},zx}var Ux,KC;function xV(){if(KC)return Ux;KC=1;var e=yV();return Ux=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},Ux}var jx,JC;function qR(){if(JC)return jx;JC=1;var e=Wm(),t=Vm(),r=vV(),n=gV(),i=xV(),a=bl().iterator;return jx=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},jx}var Gx,eT;function _V(){if(eT)return Gx;eT=1;var e=Wm(),t=da,r=Vm(),n=qR(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return Gx=function(l,s){var c,p=arguments[2],x,g,y,T,P,b,_;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(s),g=function(){y=!0},c==="array"){o.call(l,function(E){return a.call(s,p,E,g),y});return}if(c==="string"){for(P=l.length,T=0;T<P&&(b=l[T],T+1<P&&(_=b.charCodeAt(0),_>=55296&&_<=56319&&(b+=l[++T])),a.call(s,p,b,g),!y);++T);return}for(x=l.next();!x.done;){if(a.call(s,p,x.value,g),y)return;x=l.next()}},Gx}var Hx,tT;function wV(){return tT||(tT=1,Hx=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Hx}var qx,rT;function bV(){if(rT)return qx;rT=1;var e=Qa,t=Zb(),r=iV(),n=Gi,i=aV(),a=si,o=qR(),l=_V(),s=bl().toStringTag,c=wV(),p=Array.isArray,x=Object.defineProperty,g=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf,T;return qx=T=function(){var P=arguments[0],b;if(!(this instanceof T))throw new TypeError("Constructor requires 'new'");return b=c&&t&&WeakMap!==T?t(new WeakMap,y(this)):this,e(P)&&(p(P)||(P=o(P))),x(b,"__weakMapData__",a("c","$weakMap$"+i())),P&&l(P,function(_){n(_),b.set(_[0],_[1])}),b},c&&(t&&t(T,WeakMap),T.prototype=Object.create(WeakMap.prototype,{constructor:a(T)})),Object.defineProperties(T.prototype,{delete:a(function(P){return g.call(r(P),this.__weakMapData__)?(delete P[this.__weakMapData__],!0):!1}),get:a(function(P){if(g.call(r(P),this.__weakMapData__))return P[this.__weakMapData__]}),has:a(function(P){return g.call(r(P),this.__weakMapData__)}),set:a(function(P,b){return x(r(P),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),x(T.prototype,s,a("c","WeakMap")),qx}var WR=rV()?WeakMap:bV(),SV=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 Wv=gg,EV=Dd,Yw=vl,gf=IR,AV=uu,CV=Bd,nT=xm,TV=eV,{float32:OV,fract32:Wx}=Ya,kV=WR,iT=mg,MV=SV;var OK=br;function br(e,t){if(!(this instanceof br))return new br(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=br.shaders.has(e)?br.shaders.get(e):br.shaders.set(e,br.createShaders(e)).get(e),this.update(t)}br.dashMult=2;br.maxPatternLength=256;br.precisionThreshold=3e6;br.maxPoints=1e4;br.maxLines=2048;br.shaders=new kV;br.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(Yw({vert:gf("./rect-vert.glsl"),frag:gf("./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(Yw({cull:{enable:!0,face:"back"},vert:gf("./miter-vert.glsl"),frag:gf("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:gf("./fill-vert.glsl"),frag:gf("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};br.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};br.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};br.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>br.precisionThreshold||t.scale[1]*t.viewport.height>br.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=br.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};br.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=AV(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=Yw({},br.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<br.maxLines&&(o.depth=2*(br.maxLines-1-a%br.maxLines)/br.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?Wv(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=iT(i.viewport)),o.viewport||(o.viewport=iT([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,p;if(i.positions.x&&i.positions.y){let T=i.positions.x,P=i.positions.y;p=o.count=Math.max(T.length,P.length),c=new Float64Array(p*2);for(let b=0;b<p;b++)c[b*2]=T[b],c[b*2+1]=P[b]}else c=CV(i.positions,"float64"),p=o.count=Math.floor(c.length/2);let x=o.bounds=EV(c,2);if(o.fill){let T=[],P={},b=0;for(let _=0,E=0,k=o.count;_<k;_++){let F=c[_*2],I=c[_*2+1];isNaN(F)||isNaN(I)||F==null||I==null?(F=c[b*2],I=c[b*2+1],P[_]=b):b=_,T[E++]=F,T[E++]=I}if(i.splitNull){o.count-1 in P||(P[o.count]=o.count-1);let _=Object.keys(P).map(Number).sort((I,$)=>I-$),E=[],k=0,F=o.hole!=null?o.hole[0]:null;if(F!=null){let I=MV(_,$=>$>=F);_=_.slice(0,I),_.push(F)}for(let I=0;I<_.length;I++){let $=T.slice(k*2,_[I]*2).concat(F?T.slice(F*2):[]),ne=(o.hole||[]).map(ae=>ae-F+(_[I]-k)),V=nT($,ne);V=V.map(ae=>ae+k+(ae+k<_[I]?0:F-_[I])),E.push(...V),k=_[I]+1}for(let I=0,$=E.length;I<$;I++)P[E[I]]!=null&&(E[I]=P[E[I]]);o.triangles=E}else{let _=nT(T,o.hole||[]);for(let E=0,k=_.length;E<k;E++)P[_[E]]!=null&&(_[E]=P[_[E]]);o.triangles=_}}let g=new Float64Array(c);TV(g,2,x);let y=new Float64Array(p*2+6);o.close?c[0]===c[p*2-2]&&c[1]===c[p*2-1]?(y[0]=g[p*2-4],y[1]=g[p*2-3]):(y[0]=g[p*2-2],y[1]=g[p*2-1]):(y[0]=g[0],y[1]=g[1]),y.set(g,2),o.close?c[0]===c[p*2-2]&&c[1]===c[p*2-1]?(y[p*2+2]=g[2],y[p*2+3]=g[3],o.count-=1):(y[p*2+2]=g[0],y[p*2+3]=g[1],y[p*2+4]=g[2],y[p*2+5]=g[3]):(y[p*2+2]=g[p*2-2],y[p*2+3]=g[p*2-1],y[p*2+4]=g[p*2-2],y[p*2+5]=g[p*2-1]);var l=OV(y);o.positionBuffer(l);var s=Wx(y,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let c=o.bounds,p=c[2]-c[0],x=c[3]-c[1],g=o.range[2]-o.range[0],y=o.range[3]-o.range[1];o.scale=[p/g,x/y],o.translate=[-o.range[0]/g+c[0]/g||0,-o.range[1]/y+c[1]/y||0],o.scaleFract=Wx(o.scale),o.translateFract=Wx(o.translate)}if(i.dashes){let c=0,p;if(!i.dashes||i.dashes.length<2)c=1,p=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let y=0;y<i.dashes.length;++y)c+=i.dashes[y];p=new Uint8Array(c*br.dashMult);let x=0,g=255;for(let y=0;y<2;y++)for(let T=0;T<i.dashes.length;++T){for(let P=0,b=i.dashes[T]*br.dashMult*.5;P<b;++P)p[x++]=g;g^=255}}o.dashLength=c,o.dashTexture({channels:1,data:p,width:p.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=o.count,p=i.color;p||(p="transparent");let x=new Uint8Array(c*4+4);if(!Array.isArray(p)||typeof p[0]=="number"){let g=Wv(p,"uint8");for(let y=0;y<c+1;y++)x.set(g,y*4)}else{for(let g=0;g<c;g++){let y=Wv(p[g],"uint8");x.set(y,g*4)}x.set(Wv(p[0],"uint8"),c*4)}o.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};br.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const RV=Dd,PV=gg,FV=LR,NV=uu,aT=vl,oT=Bd,{float32:IV,fract32:Vx}=Ya;var kK=LV;const uT=[[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 LV(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,c={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},p=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:uT}),T(t),n=e({vert:`
1025
1025
  precision highp float;
1026
1026
 
1027
1027
  attribute vec2 position, positionFract;
@@ -1065,15 +1065,15 @@ void main() {
1065
1065
  gl_FragColor = fragColor;
1066
1066
  gl_FragColor.a *= opacity;
1067
1067
  }
1068
- `,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,_)=>[_.viewport.x,_.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,_)=>_.offset*4,divisor:1},position:{buffer:i,offset:(b,_)=>_.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,_)=>_.offset*8,divisor:1},error:{buffer:l,offset:(b,_)=>_.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:aC.length}),nC(x,{update:C,draw:g,destroy:P,regl:e,gl:r,canvas:r.canvas,groups:p}),x;function x(b){b?C(b):b===null&&P(),g()}function g(b){if(typeof b=="number")return y(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),p.forEach((_,E)=>{if(_){if(b&&(b[E]?_.draw=!0:_.draw=!1),!_.draw){_.draw=!0;return}y(E)}})}function y(b){typeof b=="number"&&(b=p[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 C(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let _=0,E=0;if(x.groups=p=b.map((I,$)=>{let ne=p[$];if(I)typeof I=="function"?I={after:I}:typeof I[0]=="number"&&(I={positions:I});else return ne;return I=PV(I,{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||(p[$]=ne={id:$,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},I=nC({},c,I)),RV(ne,I,[{lineWidth:V=>+V*.5,capSize:V=>+V*.5,opacity:parseFloat,errors:V=>(V=iC(V),E+=V.length,V),positions:(V,ae)=>(V=iC(V,"float64"),ae.count=Math.floor(V.length/2),ae.bounds=kV(V,2),ae.offset=_,_+=ae.count,V)},{color:(V,ae)=>{let Ce=ae.count;if(V||(V="transparent"),!Array.isArray(V)||typeof V[0]=="number"){let Pe=V;V=Array(Ce);for(let De=0;De<Ce;De++)V[De]=Pe}if(V.length<Ce)throw Error("Not enough colors");let Oe=new Uint8Array(Ce*4);for(let Pe=0;Pe<Ce;Pe++){let De=MV(V[Pe],"uint8");Oe.set(De,Pe*4)}return Oe},range:(V,ae,Ce)=>{let Oe=ae.bounds;return V||(V=Oe),ae.scale=[1/(V[2]-V[0]),1/(V[3]-V[1])],ae.translate=[-V[0],-V[1]],ae.scaleFract=Wx(ae.scale),ae.translateFract=Wx(ae.translate),V},viewport:V=>{let ae;return Array.isArray(V)?ae={x:V[0],y:V[1],width:V[2]-V[0],height:V[3]-V[1]}:V?(ae={x:V.x||V.left||0,y:V.y||V.top||0},V.right?ae.width=V.right-ae.x:ae.width=V.w||V.width||0,V.bottom?ae.height=V.bottom-ae.y:ae.height=V.h||V.height||0):ae={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},ae}}]),ne}),_||E){let I=p.reduce((ae,Ce,Oe)=>ae+(Ce?Ce.count:0),0),$=new Float64Array(I*2),ne=new Uint8Array(I*4),V=new Float32Array(I*4);p.forEach((ae,Ce)=>{if(!ae)return;let{positions:Oe,count:Pe,offset:De,color:Ue,errors:ft}=ae;Pe&&(ne.set(Ue,De*4),V.set(ft,De*4),$.set(Oe,De*2))});var k=FV($);i(k);var F=Wx($,k);a(F),o(ne),l(V)}}function P(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var oC=/[\'\"]/,IV=function(t){return t?(oC.test(t.charAt(0))&&(t=t.substr(1)),oC.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const qR=["inherit","initial","unset"],WR=["caption","icon","menu","message-box","small-caption","status-bar"],VR=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],YR=["normal","italic","oblique"],XR=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function QR(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("")),p=[];function x(g,y,C){var P=r.push(g.slice(s[0].length,-s[1].length))-1;return p.push(P),i+P+i}r.forEach(function(g,y){for(var C,P=0;g!=C;)if(C=g,g=g.replace(c,x),P++>1e4)throw Error("References have circular dependency. Please, check them.");r[y]=g}),p=p.reverse(),r=r.map(function(g){return p.forEach(function(y){g=g.replace(new RegExp("(\\"+i+y+"\\"+i+")","g"),s[0]+"$1"+s[1])}),g})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,c,p){for(var x=[],g,y=0;g=o.exec(s);){if(y++>1e4)throw Error("Circular references in parenthesis");x.push(s.slice(0,g.index)),x.push(l(c[g[1]],c)),s=s.slice(g.index+g[0].length)}return x.push(s),x}return a?r:l(r[0],r)}function ZR(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(c,p){return Array.isArray(p)&&(p=p.reduce(s,"")),c+p},"");function l(s,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function Qb(e,t){return Array.isArray(e)?ZR(e,t):QR(e,t)}Qb.parse=QR;Qb.stringify=ZR;var LV=Qb,uC=LV,$V=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=uC.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var c=o[s],p=o[s+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+p),s++):l.push(c)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=uC.stringify(i,{flat:!0});return o};const DV=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var BV=DV,KR={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||BV.indexOf(t)!==-1}},zV=IV,UV=qR,jV=WR,GV=VR,HV=YR,qV=XR,Vx=$V,WV=KR.isSize,VV=JR,nh=JR.cache={};function JR(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(nh[e])return nh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(jV.indexOf(e)!==-1)return nh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Vx(e,/\s+/),n;n=r.shift();){if(UV.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),nh[e]=t;if(HV.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(qV.indexOf(n)!==-1){t.stretch=n;continue}if(GV.indexOf(n)!==-1){t.weight=n;continue}if(WV(n)){var i=Vx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=lC(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=lC(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Vx(r.join(" "),/\s*,\s*/).map(zV),nh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function lC(e){var t=parseFloat(e);return t.toString()===e?t:e}var YV=uu,XV=KR.isSize,QV=zd(qR),ZV=zd(WR),KV=zd(VR),JV=zd(YR),eY=zd(XR),tY={normal:1,"small-caps":1},rY={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Yx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},eP=function(t){if(t=YV(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&&ih(t.system,ZV),t.system;if(ih(t.style,JV),ih(t.variant,tY),ih(t.weight,KV),ih(t.stretch,eY),t.size==null&&(t.size=Yx.size),typeof t.size=="number"&&(t.size+="px"),!XV)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Yx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Yx.family]),t.family=t.family.map(function(n){return rY[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 ih(e,t){if(e&&!t[e]&&!QV[e])throw Error("Unknown keyword `"+e+"`");return e}function zd(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var nY={parse:VV,stringify:eP},Yw={},iY={get exports(){return Yw},set exports(e){Yw=e}};(function(e,t){(function(r,n){e.exports=n()})(tr,function(){var r=function(R,H){for(var Z=Object.keys(H),we=0;we<Z.length;++we)R[Z[we]]=H[Z[we]];return R},n=0,i=0,a=5,o=6;function l(R,H){this.id=n++,this.type=R,this.data=H}function s(R){return R.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(R){if(R.length===0)return[];var H=R.charAt(0),Z=R.charAt(R.length-1);if(R.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(R.substr(1,R.length-2))+'"'];var we=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(R);if(we)return c(R.substr(0,we.index)).concat(c(we[1])).concat(c(R.substr(we.index+we[0].length)));var ke=R.split(".");if(ke.length===1)return['"'+s(R)+'"'];for(var ge=[],xe=0;xe<ke.length;++xe)ge=ge.concat(c(ke[xe]));return ge}function p(R){return"["+c(R).join("][")+"]"}function x(R,H){return new l(R,p(H+""))}function g(R){return typeof R=="function"&&!R._reglType||R instanceof l}function y(R,H){if(typeof R=="function")return new l(i,R);if(typeof R=="number"||typeof R=="boolean")return new l(a,R);if(Array.isArray(R))return new l(o,R.map(function(Z,we){return y(Z)}));if(R instanceof l)return R}var C={DynamicVariable:l,define:x,isDynamic:g,unbox:y,accessor:p},P={next:typeof requestAnimationFrame=="function"?function(R){return requestAnimationFrame(R)}:function(R){return setTimeout(R,16)},cancel:typeof cancelAnimationFrame=="function"?function(R){return cancelAnimationFrame(R)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function _(){var R={"":0},H=[""];return{id:function(Z){var we=R[Z];return we||(we=R[Z]=H.length,H.push(Z),we)},str:function(Z){return H[Z]}}}function E(R,H,Z){var we=document.createElement("canvas");r(we.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),R.appendChild(we),R===document.body&&(we.style.position="absolute",r(R.style,{margin:0,padding:0}));function ke(){var Ye=window.innerWidth,Xe=window.innerHeight;if(R!==document.body){var Je=we.getBoundingClientRect();Ye=Je.right-Je.left,Xe=Je.bottom-Je.top}we.width=Z*Ye,we.height=Z*Xe}var ge;R!==document.body&&typeof ResizeObserver=="function"?(ge=new ResizeObserver(function(){setTimeout(ke)}),ge.observe(R)):window.addEventListener("resize",ke,!1);function xe(){ge?ge.disconnect():window.removeEventListener("resize",ke),R.removeChild(we)}return ke(),{canvas:we,onDestroy:xe}}function k(R,H){function Z(we){try{return R.getContext(we,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function F(R){return typeof R.nodeName=="string"&&typeof R.appendChild=="function"&&typeof R.getBoundingClientRect=="function"}function I(R){return typeof R.drawArrays=="function"||typeof R.drawElements=="function"}function $(R){return typeof R=="string"?R.split():R}function ne(R){return typeof R=="string"?document.querySelector(R):R}function V(R){var H=R||{},Z,we,ke,ge,xe={},Ye=[],Xe=[],Je=typeof window>"u"?1:window.devicePixelRatio,lt=!1,Rt={},bt=function(he){},it=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(F(H)?Z=H:I(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&&(Ye=$(H.extensions)),"optionalExtensions"in H&&(Xe=$(H.optionalExtensions)),"onDone"in H&&(bt=H.onDone),"profile"in H&&(lt=!!H.profile),"pixelRatio"in H&&(Je=+H.pixelRatio),"cachedCode"in H&&(Rt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?ke=Z:we=Z),!ge){if(!ke){var Ge=E(we||document.body,bt,Je);if(!Ge)return null;ke=Ge.canvas,it=Ge.onDestroy}xe.premultipliedAlpha===void 0&&(xe.premultipliedAlpha=!0),ge=k(ke,xe)}return ge?{gl:ge,canvas:ke,container:we,extensions:Ye,optionalExtensions:Xe,pixelRatio:Je,profile:lt,cachedCode:Rt,onDone:bt,onDestroy:it}:(it(),bt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function ae(R,H){var Z={};function we(xe){var Ye=xe.toLowerCase(),Xe;try{Xe=Z[Ye]=R.getExtension(Ye)}catch{}return!!Xe}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(R,H){for(var Z=Array(R),we=0;we<R;++we)Z[we]=H(we);return Z}var Oe=5120,Pe=5121,De=5122,Ue=5123,ft=5124,nt=5125,$e=5126;function qe(R){for(var H=16;H<=1<<28;H*=16)if(R<=H)return H;return 0}function kt(R){var H,Z;return H=(R>65535)<<4,R>>>=H,Z=(R>255)<<3,R>>>=Z,H|=Z,Z=(R>15)<<2,R>>>=Z,H|=Z,Z=(R>3)<<1,R>>>=Z,H|=Z,H|R>>1}function He(){var R=Ce(8,function(){return[]});function H(ge){var xe=qe(ge),Ye=R[kt(xe)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(xe)}function Z(ge){R[kt(ge.byteLength)>>2].push(ge)}function we(ge,xe){var Ye=null;switch(ge){case Oe:Ye=new Int8Array(H(xe),0,xe);break;case Pe:Ye=new Uint8Array(H(xe),0,xe);break;case De:Ye=new Int16Array(H(2*xe),0,xe);break;case Ue:Ye=new Uint16Array(H(2*xe),0,xe);break;case ft:Ye=new Int32Array(H(4*xe),0,xe);break;case nt:Ye=new Uint32Array(H(4*xe),0,xe);break;case $e:Ye=new Float32Array(H(4*xe),0,xe);break;default:return null}return Ye.length!==xe?Ye.subarray(0,xe):Ye}function ke(ge){Z(ge.buffer)}return{alloc:H,free:Z,allocType:we,freeType:ke}}var be=He();be.zero=He();var Ve=3408,ct=3410,et=3411,pt=3412,wt=3413,qt=3414,Vt=3415,Qe=33901,Et=33902,jt=3379,Ae=3386,G=34921,ie=36347,O=36348,S=35661,T=35660,D=34930,se=36349,Fe=34076,Be=34024,Qt=7936,sr=7937,nr=7938,Vr=35724,kr=34047,qi=36063,fu=34852,va=3553,pi=34067,Vd=34069,Ci=33984,su=6408,Cl=5126,Ol=5121,kl=36160,Lg=36053,ma=36064,$g=16384,Ml=function(R,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=R.getParameter(kr));var we=1,ke=1;H.webgl_draw_buffers&&(we=R.getParameter(fu),ke=R.getParameter(qi));var ge=!!H.oes_texture_float;if(ge){var xe=R.createTexture();R.bindTexture(va,xe),R.texImage2D(va,0,su,1,1,0,su,Cl,null);var Ye=R.createFramebuffer();if(R.bindFramebuffer(kl,Ye),R.framebufferTexture2D(kl,ma,va,xe,0),R.bindTexture(va,null),R.checkFramebufferStatus(kl)!==Lg)ge=!1;else{R.viewport(0,0,1,1),R.clearColor(1,0,0,1),R.clear($g);var Xe=be.allocType(Cl,4);R.readPixels(0,0,1,1,su,Cl,Xe),R.getError()?ge=!1:(R.deleteFramebuffer(Ye),R.deleteTexture(xe),ge=Xe[0]===1),be.freeType(Xe)}}var Je=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lt=!0;if(!Je){var Rt=R.createTexture(),bt=be.allocType(Ol,36);R.activeTexture(Ci),R.bindTexture(pi,Rt),R.texImage2D(Vd,0,su,3,3,0,su,Ol,bt),be.freeType(bt),R.bindTexture(pi,null),R.deleteTexture(Rt),lt=!R.getError()}return{colorBits:[R.getParameter(ct),R.getParameter(et),R.getParameter(pt),R.getParameter(wt)],depthBits:R.getParameter(qt),stencilBits:R.getParameter(Vt),subpixelBits:R.getParameter(Ve),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:Z,maxDrawbuffers:we,maxColorAttachments:ke,pointSizeDims:R.getParameter(Qe),lineWidthDims:R.getParameter(Et),maxViewportDims:R.getParameter(Ae),maxCombinedTextureUnits:R.getParameter(S),maxCubeMapSize:R.getParameter(Fe),maxRenderbufferSize:R.getParameter(Be),maxTextureUnits:R.getParameter(D),maxTextureSize:R.getParameter(jt),maxAttributes:R.getParameter(G),maxVertexUniforms:R.getParameter(ie),maxVertexTextureUnits:R.getParameter(T),maxVaryingVectors:R.getParameter(O),maxFragmentUniforms:R.getParameter(se),glsl:R.getParameter(Vr),renderer:R.getParameter(sr),vendor:R.getParameter(Qt),version:R.getParameter(nr),readFloat:ge,npotTextureCube:lt}},Jr=function(R){return R instanceof Uint8Array||R instanceof Uint16Array||R instanceof Uint32Array||R instanceof Int8Array||R instanceof Int16Array||R instanceof Int32Array||R instanceof Float32Array||R instanceof Float64Array||R instanceof Uint8ClampedArray};function ei(R){return!!R&&typeof R=="object"&&Array.isArray(R.shape)&&Array.isArray(R.stride)&&typeof R.offset=="number"&&R.shape.length===R.stride.length&&(Array.isArray(R.data)||Jr(R.data))}var $n=function(R){return Object.keys(R).map(function(H){return R[H]})},ir={shape:Qd,flatten:vi};function Yd(R,H,Z){for(var we=0;we<H;++we)Z[we]=R[we]}function Oi(R,H,Z,we){for(var ke=0,ge=0;ge<H;++ge)for(var xe=R[ge],Ye=0;Ye<Z;++Ye)we[ke++]=xe[Ye]}function eo(R,H,Z,we,ke,ge){for(var xe=ge,Ye=0;Ye<H;++Ye)for(var Xe=R[Ye],Je=0;Je<Z;++Je)for(var lt=Xe[Je],Rt=0;Rt<we;++Rt)ke[xe++]=lt[Rt]}function Xd(R,H,Z,we,ke){for(var ge=1,xe=Z+1;xe<H.length;++xe)ge*=H[xe];var Ye=H[Z];if(H.length-Z===4){var Xe=H[Z+1],Je=H[Z+2],lt=H[Z+3];for(xe=0;xe<Ye;++xe)eo(R[xe],Xe,Je,lt,we,ke),ke+=ge}else for(xe=0;xe<Ye;++xe)Xd(R[xe],H,Z+1,we,ke),ke+=ge}function vi(R,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||be.allocType(Z,ke);switch(H.length){case 0:break;case 1:Yd(R,H[0],xe);break;case 2:Oi(R,H[0],H[1],xe);break;case 3:eo(R,H[0],H[1],H[2],xe,0);break;default:Xd(R,H,0,xe,0)}return xe}function Qd(R){for(var H=[],Z=R;Z.length;Z=Z[0])H.push(Z.length);return H}var cu={"[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},Dg=5120,Zd=5122,Bg=5124,Kd=5121,zg=5123,hu=5125,Es=5126,Jd=5126,du={int8:Dg,int16:Zd,int32:Bg,uint8:Kd,uint16:zg,uint32:hu,float:Es,float32:Jd},Rl=35048,As=35040,Wi={dynamic:Rl,stream:As,static:35044},Gn=ir.flatten,Pl=ir.shape,Fl=35044,ti=35040,pu=5121,vu=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function ga(R){return cu[Object.prototype.toString.call(R)]|0}function Ts(R,H){for(var Z=0;Z<H.length;++Z)R[Z]=H[Z]}function Cs(R,H,Z,we,ke,ge,xe){for(var Ye=0,Xe=0;Xe<Z;++Xe)for(var Je=0;Je<we;++Je)R[Ye++]=H[ke*Xe+ge*Je+xe]}function ep(R,H,Z,we){var ke=0,ge={};function xe(he){this.id=ke++,this.buffer=R.createBuffer(),this.type=he,this.usage=Fl,this.byteLength=0,this.dimension=1,this.dtype=pu,this.persistentData=null,Z.profile&&(this.stats={size:0})}xe.prototype.bind=function(){R.bindBuffer(this.type,this.buffer)},xe.prototype.destroy=function(){bt(this)};var Ye=[];function Xe(he,Ee){var We=Ye.pop();return We||(We=new xe(he)),We.bind(),Rt(We,Ee,ti,0,1,!1),We}function Je(he){Ye.push(he)}function lt(he,Ee,We){he.byteLength=Ee.byteLength,R.bufferData(he.type,Ee,We)}function Rt(he,Ee,We,Ze,Ne,dt){var ot;if(he.usage=We,Array.isArray(Ee)){if(he.dtype=Ze||vu,Ee.length>0){var Pt;if(Array.isArray(Ee[0])){ot=Pl(Ee);for(var Ie=1,Me=1;Me<ot.length;++Me)Ie*=ot[Me];he.dimension=Ie,Pt=Gn(Ee,ot,he.dtype),lt(he,Pt,We),dt?he.persistentData=Pt:be.freeType(Pt)}else if(typeof Ee[0]=="number"){he.dimension=Ne;var mt=be.allocType(he.dtype,Ee.length);Ts(mt,Ee),lt(he,mt,We),dt?he.persistentData=mt:be.freeType(mt)}else Jr(Ee[0])&&(he.dimension=Ee[0].length,he.dtype=Ze||ga(Ee[0])||vu,Pt=Gn(Ee,[Ee.length,Ee[0].length],he.dtype),lt(he,Pt,We),dt?he.persistentData=Pt:be.freeType(Pt))}}else if(Jr(Ee))he.dtype=Ze||ga(Ee),he.dimension=Ne,lt(he,Ee,We),dt&&(he.persistentData=new Uint8Array(new Uint8Array(Ee.buffer)));else if(ei(Ee)){ot=Ee.shape;var Se=Ee.stride,st=Ee.offset,Ke=0,Ft=0,Jt=0,yt=0;ot.length===1?(Ke=ot[0],Ft=1,Jt=Se[0],yt=0):ot.length===2&&(Ke=ot[0],Ft=ot[1],Jt=Se[0],yt=Se[1]),he.dtype=Ze||ga(Ee.data)||vu,he.dimension=Ft;var Bt=be.allocType(he.dtype,Ke*Ft);Cs(Bt,Ee.data,Ke,Ft,Jt,yt,st),lt(he,Bt,We),dt?he.persistentData=Bt:be.freeType(Bt)}else Ee instanceof ArrayBuffer&&(he.dtype=pu,he.dimension=Ne,lt(he,Ee,We),dt&&(he.persistentData=new Uint8Array(new Uint8Array(Ee))))}function bt(he){H.bufferCount--,we(he);var Ee=he.buffer;R.deleteBuffer(Ee),he.buffer=null,delete ge[he.id]}function it(he,Ee,We,Ze){H.bufferCount++;var Ne=new xe(Ee);ge[Ne.id]=Ne;function dt(Ie){var Me=Fl,mt=null,Se=0,st=0,Ke=1;return Array.isArray(Ie)||Jr(Ie)||ei(Ie)||Ie instanceof ArrayBuffer?mt=Ie:typeof Ie=="number"?Se=Ie|0:Ie&&("data"in Ie&&(mt=Ie.data),"usage"in Ie&&(Me=Wi[Ie.usage]),"type"in Ie&&(st=du[Ie.type]),"dimension"in Ie&&(Ke=Ie.dimension|0),"length"in Ie&&(Se=Ie.length|0)),Ne.bind(),mt?Rt(Ne,mt,Me,st,Ke,Ze):(Se&&R.bufferData(Ne.type,Se,Me),Ne.dtype=st||pu,Ne.usage=Me,Ne.dimension=Ke,Ne.byteLength=Se),Z.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),dt}function ot(Ie,Me){R.bufferSubData(Ne.type,Me,Ie)}function Pt(Ie,Me){var mt=(Me||0)|0,Se;if(Ne.bind(),Jr(Ie)||Ie instanceof ArrayBuffer)ot(Ie,mt);else if(Array.isArray(Ie)){if(Ie.length>0){if(typeof Ie[0]=="number"){var st=be.allocType(Ne.dtype,Ie.length);Ts(st,Ie),ot(st,mt),be.freeType(st)}else if(Array.isArray(Ie[0])||Jr(Ie[0])){Se=Pl(Ie);var Ke=Gn(Ie,Se,Ne.dtype);ot(Ke,mt),be.freeType(Ke)}}}else if(ei(Ie)){Se=Ie.shape;var Ft=Ie.stride,Jt=0,yt=0,Bt=0,ut=0;Se.length===1?(Jt=Se[0],yt=1,Bt=Ft[0],ut=0):Se.length===2&&(Jt=Se[0],yt=Se[1],Bt=Ft[0],ut=Ft[1]);var er=Array.isArray(Ie.data)?Ne.dtype:ga(Ie.data),ur=be.allocType(er,Jt*yt);Cs(ur,Ie.data,Jt,yt,Bt,ut,Ie.offset),ot(ur,mt),be.freeType(ur)}return dt}return We||dt(he),dt._reglType="buffer",dt._buffer=Ne,dt.subdata=Pt,Z.profile&&(dt.stats=Ne.stats),dt.destroy=function(){bt(Ne)},dt}function Ge(){$n(ge).forEach(function(he){he.buffer=R.createBuffer(),R.bindBuffer(he.type,he.buffer),R.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(ge).forEach(function(Ee){he+=ge[Ee].stats.size}),he}),{create:it,createStream:Xe,destroyStream:Je,clear:function(){$n(ge).forEach(bt),Ye.forEach(bt)},getBuffer:function(he){return he&&he._buffer instanceof xe?he._buffer:null},restore:Ge,_initBuffer:Rt}}var Os=0,tp=0,rp=1,ks=1,Ms=4,Rs=4,en={points:Os,point:tp,lines:rp,line:ks,triangles:Ms,triangle:Rs,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},np=0,Nl=1,Vi=4,to=5120,ya=5121,Ps=5122,xa=5123,Il=5124,Yi=5125,ro=34963,gr=35040,Fs=35044;function Ll(R,H,Z,we){var ke={},ge=0,xe={uint8:ya,uint16:xa};H.oes_element_index_uint&&(xe.uint32=Yi);function Ye(Ge){this.id=ge++,ke[this.id]=this,this.buffer=Ge,this.primType=Vi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function Je(Ge){var he=Xe.pop();return he||(he=new Ye(Z.create(null,ro,!0,!1)._buffer)),Rt(he,Ge,gr,-1,-1,0,0),he}function lt(Ge){Xe.push(Ge)}function Rt(Ge,he,Ee,We,Ze,Ne,dt){Ge.buffer.bind();var ot;if(he){var Pt=dt;!dt&&(!Jr(he)||ei(he)&&!Jr(he.data))&&(Pt=H.oes_element_index_uint?Yi:xa),Z._initBuffer(Ge.buffer,he,Ee,Pt,3)}else R.bufferData(ro,Ne,Ee),Ge.buffer.dtype=ot||ya,Ge.buffer.usage=Ee,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=dt,!dt){switch(Ge.buffer.dtype){case ya:case to:ot=ya;break;case xa:case Ps:ot=xa;break;case Yi:case Il:ot=Yi;break}Ge.buffer.dtype=ot}Ge.type=ot;var Ie=Ze;Ie<0&&(Ie=Ge.buffer.byteLength,ot===xa?Ie>>=1:ot===Yi&&(Ie>>=2)),Ge.vertCount=Ie;var Me=We;if(We<0){Me=Vi;var mt=Ge.buffer.dimension;mt===1&&(Me=np),mt===2&&(Me=Nl),mt===3&&(Me=Vi)}Ge.primType=Me}function bt(Ge){we.elementsCount--,delete ke[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Ee=Z.create(null,ro,!0),We=new Ye(Ee._buffer);we.elementsCount++;function Ze(Ne){if(!Ne)Ee(),We.primType=Vi,We.vertCount=0,We.type=ya;else if(typeof Ne=="number")Ee(Ne),We.primType=Vi,We.vertCount=Ne|0,We.type=ya;else{var dt=null,ot=Fs,Pt=-1,Ie=-1,Me=0,mt=0;Array.isArray(Ne)||Jr(Ne)||ei(Ne)?dt=Ne:("data"in Ne&&(dt=Ne.data),"usage"in Ne&&(ot=Wi[Ne.usage]),"primitive"in Ne&&(Pt=en[Ne.primitive]),"count"in Ne&&(Ie=Ne.count|0),"type"in Ne&&(mt=xe[Ne.type]),"length"in Ne?Me=Ne.length|0:(Me=Ie,mt===xa||mt===Ps?Me*=2:(mt===Yi||mt===Il)&&(Me*=4))),Rt(We,dt,ot,Pt,Ie,Me,mt)}return Ze}return Ze(Ge),Ze._reglType="elements",Ze._elements=We,Ze.subdata=function(Ne,dt){return Ee.subdata(Ne,dt),Ze},Ze.destroy=function(){bt(We)},Ze}return{create:it,createStream:Je,destroyStream:lt,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){$n(ke).forEach(bt)}}}var ip=new Float32Array(1),Ug=new Uint32Array(ip.buffer),$l=5123;function mu(R){for(var H=be.allocType($l,R.length),Z=0;Z<R.length;++Z)if(isNaN(R[Z]))H[Z]=65535;else if(R[Z]===1/0)H[Z]=31744;else if(R[Z]===-1/0)H[Z]=64512;else{ip[0]=R[Z];var we=Ug[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 Ye=-14-ge;H[Z]=ke+(xe+(1<<10)>>Ye)}else ge>15?H[Z]=ke+31744:H[Z]=ke+(ge+15<<10)+xe}return H}function ri(R){return Array.isArray(R)||Jr(R)}var Dl=34467,ni=3553,no=34067,io=34069,Xi=6408,Bl=6406,ki=6407,Mi=6409,gu=6410,ap=32854,ao=32855,zl=36194,Ns=32819,op=32820,oo=33635,_a=34042,Qi=6402,yu=34041,xu=35904,wa=35906,ba=36193,Is=33776,Ul=33777,_u=33778,Ls=33779,up=35986,$s=35987,lp=34798,Ds=35840,fp=35841,Bs=35842,sp=35843,Sa=36196,ii=5121,zs=5123,Us=5125,wu=5126,cp=10242,bu=10243,jg=10497,uo=33071,jl=33648,js=10240,Gl=10241,Ea=9728,Su=9729,Hl=9984,ql=9985,hp=9986,lo=9987,Gg=33170,Wl=4352,Hg=4353,dp=4354,Eu=34046,qg=3317,Gs=37440,pp=37441,Ri=37443,Hs=37444,Aa=33984,qs=[Hl,hp,ql,lo],mi=[0,Mi,gu,ki,Xi],kn={};kn[Mi]=kn[Bl]=kn[Qi]=1,kn[yu]=kn[gu]=2,kn[ki]=kn[xu]=3,kn[Xi]=kn[wa]=4;function Ta(R){return"[object "+R+"]"}var vp=Ta("HTMLCanvasElement"),mp=Ta("OffscreenCanvas"),gp=Ta("CanvasRenderingContext2D"),Ws=Ta("ImageBitmap"),Vs=Ta("HTMLImageElement"),yp=Ta("HTMLVideoElement"),Wg=Object.keys(cu).concat([vp,mp,gp,Ws,Vs,yp]),fo=[];fo[ii]=1,fo[wu]=4,fo[ba]=2,fo[zs]=2,fo[Us]=4;var Kr=[];Kr[ap]=2,Kr[ao]=2,Kr[zl]=2,Kr[yu]=4,Kr[Is]=.5,Kr[Ul]=.5,Kr[_u]=1,Kr[Ls]=1,Kr[up]=.5,Kr[$s]=1,Kr[lp]=1,Kr[Ds]=.5,Kr[fp]=.25,Kr[Bs]=.5,Kr[sp]=.25,Kr[Sa]=.5;function xp(R){return Array.isArray(R)&&(R.length===0||typeof R[0]=="number")}function _p(R){if(!Array.isArray(R))return!1;var H=R.length;return!(H===0||!ri(R[0]))}function Ca(R){return Object.prototype.toString.call(R)}function wp(R){return Ca(R)===vp}function bp(R){return Ca(R)===mp}function Vg(R){return Ca(R)===gp}function Yg(R){return Ca(R)===Ws}function Xg(R){return Ca(R)===Vs}function Qg(R){return Ca(R)===yp}function Vl(R){if(!R)return!1;var H=Ca(R);return Wg.indexOf(H)>=0?!0:xp(R)||_p(R)||ei(R)}function Ys(R){return cu[Object.prototype.toString.call(R)]|0}function Sp(R,H){var Z=H.length;switch(R.type){case ii:case zs:case Us:case wu:var we=be.allocType(R.type,Z);we.set(H),R.data=we;break;case ba:R.data=mu(H);break}}function Xs(R,H){return be.allocType(R.type===ba?wu:R.type,H)}function Ep(R,H){R.type===ba?(R.data=mu(H),be.freeType(H)):R.data=H}function Zg(R,H,Z,we,ke,ge){for(var xe=R.width,Ye=R.height,Xe=R.channels,Je=xe*Ye*Xe,lt=Xs(R,Je),Rt=0,bt=0;bt<Ye;++bt)for(var it=0;it<xe;++it)for(var Ge=0;Ge<Xe;++Ge)lt[Rt++]=H[Z*it+we*bt+ke*Ge+ge];Ep(R,lt)}function Pi(R,H,Z,we,ke,ge){var xe;if(typeof Kr[R]<"u"?xe=Kr[R]:xe=kn[R]*fo[H],ge&&(xe*=6),ke){for(var Ye=0,Xe=Z;Xe>=1;)Ye+=xe*Xe*Xe,Xe/=2;return Ye}else return xe*Z*we}function Kg(R,H,Z,we,ke,ge,xe){var Ye={"don't care":Wl,"dont care":Wl,nice:dp,fast:Hg},Xe={repeat:jg,clamp:uo,mirror:jl},Je={nearest:Ea,linear:Su},lt=r({mipmap:lo,"nearest mipmap nearest":Hl,"linear mipmap nearest":ql,"nearest mipmap linear":hp,"linear mipmap linear":lo},Je),Rt={none:0,browser:Hs},bt={uint8:ii,rgba4:Ns,rgb565:oo,"rgb5 a1":op},it={alpha:Bl,luminance:Mi,"luminance alpha":gu,rgb:ki,rgba:Xi,rgba4:ap,"rgb5 a1":ao,rgb565:zl},Ge={};H.ext_srgb&&(it.srgb=xu,it.srgba=wa),H.oes_texture_float&&(bt.float32=bt.float=wu),H.oes_texture_half_float&&(bt.float16=bt["half float"]=ba),H.webgl_depth_texture&&(r(it,{depth:Qi,"depth stencil":yu}),r(bt,{uint16:zs,uint32:Us,"depth stencil":_a})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":Is,"rgba s3tc dxt1":Ul,"rgba s3tc dxt3":_u,"rgba s3tc dxt5":Ls}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":up,"rgba atc explicit alpha":$s,"rgba atc interpolated alpha":lp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":Ds,"rgb pvrtc 2bppv1":fp,"rgba pvrtc 4bppv1":Bs,"rgba pvrtc 2bppv1":sp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Sa);var he=Array.prototype.slice.call(R.getParameter(Dl));Object.keys(Ge).forEach(function(W){var ye=Ge[W];he.indexOf(ye)>=0&&(it[W]=ye)});var Ee=Object.keys(it);Z.textureFormats=Ee;var We=[];Object.keys(it).forEach(function(W){var ye=it[W];We[ye]=W});var Ze=[];Object.keys(bt).forEach(function(W){var ye=bt[W];Ze[ye]=W});var Ne=[];Object.keys(Je).forEach(function(W){var ye=Je[W];Ne[ye]=W});var dt=[];Object.keys(lt).forEach(function(W){var ye=lt[W];dt[ye]=W});var ot=[];Object.keys(Xe).forEach(function(W){var ye=Xe[W];ot[ye]=W});var Pt=Ee.reduce(function(W,ye){var me=it[ye];return me===Mi||me===Bl||me===Mi||me===gu||me===Qi||me===yu||H.ext_srgb&&(me===xu||me===wa)?W[me]=me:me===ao||ye.indexOf("rgba")>=0?W[me]=Xi:W[me]=ki,W},{});function Ie(){this.internalformat=Xi,this.format=Xi,this.type=ii,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Hs,this.width=0,this.height=0,this.channels=0}function Me(W,ye){W.internalformat=ye.internalformat,W.format=ye.format,W.type=ye.type,W.compressed=ye.compressed,W.premultiplyAlpha=ye.premultiplyAlpha,W.flipY=ye.flipY,W.unpackAlignment=ye.unpackAlignment,W.colorSpace=ye.colorSpace,W.width=ye.width,W.height=ye.height,W.channels=ye.channels}function mt(W,ye){if(!(typeof ye!="object"||!ye)){if("premultiplyAlpha"in ye&&(W.premultiplyAlpha=ye.premultiplyAlpha),"flipY"in ye&&(W.flipY=ye.flipY),"alignment"in ye&&(W.unpackAlignment=ye.alignment),"colorSpace"in ye&&(W.colorSpace=Rt[ye.colorSpace]),"type"in ye){var me=ye.type;W.type=bt[me]}var At=W.width,rr=W.height,Rr=W.channels,Tt=!1;"shape"in ye?(At=ye.shape[0],rr=ye.shape[1],ye.shape.length===3&&(Rr=ye.shape[2],Tt=!0)):("radius"in ye&&(At=rr=ye.radius),"width"in ye&&(At=ye.width),"height"in ye&&(rr=ye.height),"channels"in ye&&(Rr=ye.channels,Tt=!0)),W.width=At|0,W.height=rr|0,W.channels=Rr|0;var U=!1;if("format"in ye){var q=ye.format,J=W.internalformat=it[q];W.format=Pt[J],q in bt&&("type"in ye||(W.type=bt[q])),q in Ge&&(W.compressed=!0),U=!0}!Tt&&U?W.channels=kn[W.format]:Tt&&!U&&W.channels!==mi[W.format]&&(W.format=W.internalformat=mi[W.channels])}}function Se(W){R.pixelStorei(Gs,W.flipY),R.pixelStorei(pp,W.premultiplyAlpha),R.pixelStorei(Ri,W.colorSpace),R.pixelStorei(qg,W.unpackAlignment)}function st(){Ie.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Ke(W,ye){var me=null;if(Vl(ye)?me=ye:ye&&(mt(W,ye),"x"in ye&&(W.xOffset=ye.x|0),"y"in ye&&(W.yOffset=ye.y|0),Vl(ye.data)&&(me=ye.data)),ye.copy){var At=ke.viewportWidth,rr=ke.viewportHeight;W.width=W.width||At-W.xOffset,W.height=W.height||rr-W.yOffset,W.needsCopy=!0}else if(!me)W.width=W.width||1,W.height=W.height||1,W.channels=W.channels||4;else if(Jr(me))W.channels=W.channels||4,W.data=me,!("type"in ye)&&W.type===ii&&(W.type=Ys(me));else if(xp(me))W.channels=W.channels||4,Sp(W,me),W.alignment=1,W.needsFree=!0;else if(ei(me)){var Rr=me.data;!Array.isArray(Rr)&&W.type===ii&&(W.type=Ys(Rr));var Tt=me.shape,U=me.stride,q,J,_e,pe,de,ce;Tt.length===3?(_e=Tt[2],ce=U[2]):(_e=1,ce=1),q=Tt[0],J=Tt[1],pe=U[0],de=U[1],W.alignment=1,W.width=q,W.height=J,W.channels=_e,W.format=W.internalformat=mi[_e],W.needsFree=!0,Zg(W,Rr,pe,de,ce,me.offset)}else if(wp(me)||bp(me)||Vg(me))wp(me)||bp(me)?W.element=me:W.element=me.canvas,W.width=W.element.width,W.height=W.element.height,W.channels=4;else if(Yg(me))W.element=me,W.width=me.width,W.height=me.height,W.channels=4;else if(Xg(me))W.element=me,W.width=me.naturalWidth,W.height=me.naturalHeight,W.channels=4;else if(Qg(me))W.element=me,W.width=me.videoWidth,W.height=me.videoHeight,W.channels=4;else if(_p(me)){var fe=W.width||me[0].length,Q=W.height||me.length,te=W.channels;ri(me[0][0])?te=te||me[0][0].length:te=te||1;for(var X=ir.shape(me),ve=1,Te=0;Te<X.length;++Te)ve*=X[Te];var Le=Xs(W,ve);ir.flatten(me,X,"",Le),Ep(W,Le),W.alignment=1,W.width=fe,W.height=Q,W.channels=te,W.format=W.internalformat=mi[te],W.needsFree=!0}W.type===wu||W.type}function Ft(W,ye,me){var At=W.element,rr=W.data,Rr=W.internalformat,Tt=W.format,U=W.type,q=W.width,J=W.height;Se(W),At?R.texImage2D(ye,me,Tt,Tt,U,At):W.compressed?R.compressedTexImage2D(ye,me,Rr,q,J,0,rr):W.needsCopy?(we(),R.copyTexImage2D(ye,me,Tt,W.xOffset,W.yOffset,q,J,0)):R.texImage2D(ye,me,Tt,q,J,0,Tt,U,rr||null)}function Jt(W,ye,me,At,rr){var Rr=W.element,Tt=W.data,U=W.internalformat,q=W.format,J=W.type,_e=W.width,pe=W.height;Se(W),Rr?R.texSubImage2D(ye,rr,me,At,q,J,Rr):W.compressed?R.compressedTexSubImage2D(ye,rr,me,At,U,_e,pe,Tt):W.needsCopy?(we(),R.copyTexSubImage2D(ye,rr,me,At,W.xOffset,W.yOffset,_e,pe)):R.texSubImage2D(ye,rr,me,At,_e,pe,q,J,Tt)}var yt=[];function Bt(){return yt.pop()||new st}function ut(W){W.needsFree&&be.freeType(W.data),st.call(W),yt.push(W)}function er(){Ie.call(this),this.genMipmaps=!1,this.mipmapHint=Wl,this.mipmask=0,this.images=Array(16)}function ur(W,ye,me){var At=W.images[0]=Bt();W.mipmask=1,At.width=W.width=ye,At.height=W.height=me,At.channels=W.channels=4}function hr(W,ye){var me=null;if(Vl(ye))me=W.images[0]=Bt(),Me(me,W),Ke(me,ye),W.mipmask=1;else if(mt(W,ye),Array.isArray(ye.mipmap))for(var At=ye.mipmap,rr=0;rr<At.length;++rr)me=W.images[rr]=Bt(),Me(me,W),me.width>>=rr,me.height>>=rr,Ke(me,At[rr]),W.mipmask|=1<<rr;else me=W.images[0]=Bt(),Me(me,W),Ke(me,ye),W.mipmask=1;Me(W,W.images[0]),W.compressed&&(W.internalformat===Is||W.internalformat===Ul||W.internalformat===_u||W.internalformat)}function nn(W,ye){for(var me=W.images,At=0;At<me.length;++At){if(!me[At])return;Ft(me[At],ye,At)}}var lr=[];function qn(){var W=lr.pop()||new er;Ie.call(W),W.mipmask=0;for(var ye=0;ye<16;++ye)W.images[ye]=null;return W}function Ar(W){for(var ye=W.images,me=0;me<ye.length;++me)ye[me]&&ut(ye[me]),ye[me]=null;lr.push(W)}function wn(){this.minFilter=Ea,this.magFilter=Ea,this.wrapS=uo,this.wrapT=uo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Wl}function Wn(W,ye){if("min"in ye){var me=ye.min;W.minFilter=lt[me],qs.indexOf(W.minFilter)>=0&&!("faces"in ye)&&(W.genMipmaps=!0)}if("mag"in ye){var At=ye.mag;W.magFilter=Je[At]}var rr=W.wrapS,Rr=W.wrapT;if("wrap"in ye){var Tt=ye.wrap;typeof Tt=="string"?rr=Rr=Xe[Tt]:Array.isArray(Tt)&&(rr=Xe[Tt[0]],Rr=Xe[Tt[1]])}else{if("wrapS"in ye){var U=ye.wrapS;rr=Xe[U]}if("wrapT"in ye){var q=ye.wrapT;Rr=Xe[q]}}if(W.wrapS=rr,W.wrapT=Rr,"anisotropic"in ye&&(ye.anisotropic,W.anisotropic=ye.anisotropic),"mipmap"in ye){var J=!1;switch(typeof ye.mipmap){case"string":W.mipmapHint=Ye[ye.mipmap],W.genMipmaps=!0,J=!0;break;case"boolean":J=W.genMipmaps=ye.mipmap;break;case"object":W.genMipmaps=!1,J=!0;break}J&&!("min"in ye)&&(W.minFilter=Hl)}}function Rn(W,ye){R.texParameteri(ye,Gl,W.minFilter),R.texParameteri(ye,js,W.magFilter),R.texParameteri(ye,cp,W.wrapS),R.texParameteri(ye,bu,W.wrapT),H.ext_texture_filter_anisotropic&&R.texParameteri(ye,Eu,W.anisotropic),W.genMipmaps&&(R.hint(Gg,W.mipmapHint),R.generateMipmap(ye))}var Li=0,an={},on=Z.maxTextureUnits,Xt=Array(on).map(function(){return null});function li(W){Ie.call(this),this.mipmask=0,this.internalformat=Xi,this.id=Li++,this.refCount=1,this.target=W,this.texture=R.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new wn,xe.profile&&(this.stats={size:0})}function wr(W){R.activeTexture(Aa),R.bindTexture(W.target,W.texture)}function un(){var W=Xt[0];W?R.bindTexture(W.target,W.texture):R.bindTexture(ni,null)}function Dn(W){var ye=W.texture,me=W.unit,At=W.target;me>=0&&(R.activeTexture(Aa+me),R.bindTexture(At,null),Xt[me]=null),R.deleteTexture(ye),W.texture=null,W.params=null,W.pixels=null,W.refCount=0,delete an[W.id],ge.textureCount--}r(li.prototype,{bind:function(){var W=this;W.bindCount+=1;var ye=W.unit;if(ye<0){for(var me=0;me<on;++me){var At=Xt[me];if(At){if(At.bindCount>0)continue;At.unit=-1}Xt[me]=W,ye=me;break}xe.profile&&ge.maxTextureUnits<ye+1&&(ge.maxTextureUnits=ye+1),W.unit=ye,R.activeTexture(Aa+ye),R.bindTexture(W.target,W.texture)}return ye},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Dn(this)}});function Bn(W,ye){var me=new li(ni);an[me.id]=me,ge.textureCount++;function At(Tt,U){var q=me.texInfo;wn.call(q);var J=qn();return typeof Tt=="number"?typeof U=="number"?ur(J,Tt|0,U|0):ur(J,Tt|0,Tt|0):Tt?(Wn(q,Tt),hr(J,Tt)):ur(J,1,1),q.genMipmaps&&(J.mipmask=(J.width<<1)-1),me.mipmask=J.mipmask,Me(me,J),me.internalformat=J.internalformat,At.width=J.width,At.height=J.height,wr(me),nn(J,ni),Rn(q,ni),un(),Ar(J),xe.profile&&(me.stats.size=Pi(me.internalformat,me.type,J.width,J.height,q.genMipmaps,!1)),At.format=We[me.internalformat],At.type=Ze[me.type],At.mag=Ne[q.magFilter],At.min=dt[q.minFilter],At.wrapS=ot[q.wrapS],At.wrapT=ot[q.wrapT],At}function rr(Tt,U,q,J){var _e=U|0,pe=q|0,de=J|0,ce=Bt();return Me(ce,me),ce.width=0,ce.height=0,Ke(ce,Tt),ce.width=ce.width||(me.width>>de)-_e,ce.height=ce.height||(me.height>>de)-pe,wr(me),Jt(ce,ni,_e,pe,de),un(),ut(ce),At}function Rr(Tt,U){var q=Tt|0,J=U|0||q;if(q===me.width&&J===me.height)return At;At.width=me.width=q,At.height=me.height=J,wr(me);for(var _e=0;me.mipmask>>_e;++_e){var pe=q>>_e,de=J>>_e;if(!pe||!de)break;R.texImage2D(ni,_e,me.format,pe,de,0,me.format,me.type,null)}return un(),xe.profile&&(me.stats.size=Pi(me.internalformat,me.type,q,J,!1,!1)),At}return At(W,ye),At.subimage=rr,At.resize=Rr,At._reglType="texture2d",At._texture=me,xe.profile&&(At.stats=me.stats),At.destroy=function(){me.decRef()},At}function Zt(W,ye,me,At,rr,Rr){var Tt=new li(no);an[Tt.id]=Tt,ge.cubeCount++;var U=new Array(6);function q(pe,de,ce,fe,Q,te){var X,ve=Tt.texInfo;for(wn.call(ve),X=0;X<6;++X)U[X]=qn();if(typeof pe=="number"||!pe){var Te=pe|0||1;for(X=0;X<6;++X)ur(U[X],Te,Te)}else if(typeof pe=="object")if(de)hr(U[0],pe),hr(U[1],de),hr(U[2],ce),hr(U[3],fe),hr(U[4],Q),hr(U[5],te);else if(Wn(ve,pe),mt(Tt,pe),"faces"in pe){var Le=pe.faces;for(X=0;X<6;++X)Me(U[X],Tt),hr(U[X],Le[X])}else for(X=0;X<6;++X)hr(U[X],pe);for(Me(Tt,U[0]),ve.genMipmaps?Tt.mipmask=(U[0].width<<1)-1:Tt.mipmask=U[0].mipmask,Tt.internalformat=U[0].internalformat,q.width=U[0].width,q.height=U[0].height,wr(Tt),X=0;X<6;++X)nn(U[X],io+X);for(Rn(ve,no),un(),xe.profile&&(Tt.stats.size=Pi(Tt.internalformat,Tt.type,q.width,q.height,ve.genMipmaps,!0)),q.format=We[Tt.internalformat],q.type=Ze[Tt.type],q.mag=Ne[ve.magFilter],q.min=dt[ve.minFilter],q.wrapS=ot[ve.wrapS],q.wrapT=ot[ve.wrapT],X=0;X<6;++X)Ar(U[X]);return q}function J(pe,de,ce,fe,Q){var te=ce|0,X=fe|0,ve=Q|0,Te=Bt();return Me(Te,Tt),Te.width=0,Te.height=0,Ke(Te,de),Te.width=Te.width||(Tt.width>>ve)-te,Te.height=Te.height||(Tt.height>>ve)-X,wr(Tt),Jt(Te,io+pe,te,X,ve),un(),ut(Te),q}function _e(pe){var de=pe|0;if(de!==Tt.width){q.width=Tt.width=de,q.height=Tt.height=de,wr(Tt);for(var ce=0;ce<6;++ce)for(var fe=0;Tt.mipmask>>fe;++fe)R.texImage2D(io+ce,fe,Tt.format,de>>fe,de>>fe,0,Tt.format,Tt.type,null);return un(),xe.profile&&(Tt.stats.size=Pi(Tt.internalformat,Tt.type,q.width,q.height,!1,!0)),q}}return q(W,ye,me,At,rr,Rr),q.subimage=J,q.resize=_e,q._reglType="textureCube",q._texture=Tt,xe.profile&&(q.stats=Tt.stats),q.destroy=function(){Tt.decRef()},q}function cr(){for(var W=0;W<on;++W)R.activeTexture(Aa+W),R.bindTexture(ni,null),Xt[W]=null;$n(an).forEach(Dn),ge.cubeCount=0,ge.textureCount=0}xe.profile&&(ge.getTotalTextureSize=function(){var W=0;return Object.keys(an).forEach(function(ye){W+=an[ye].stats.size}),W});function Cr(){for(var W=0;W<on;++W){var ye=Xt[W];ye&&(ye.bindCount=0,ye.unit=-1,Xt[W]=null)}$n(an).forEach(function(me){me.texture=R.createTexture(),R.bindTexture(me.target,me.texture);for(var At=0;At<32;++At)if(me.mipmask&1<<At)if(me.target===ni)R.texImage2D(ni,At,me.internalformat,me.width>>At,me.height>>At,0,me.internalformat,me.type,null);else for(var rr=0;rr<6;++rr)R.texImage2D(io+rr,At,me.internalformat,me.width>>At,me.height>>At,0,me.internalformat,me.type,null);Rn(me.texInfo,me.target)})}function ln(){for(var W=0;W<on;++W){var ye=Xt[W];ye&&(ye.bindCount=0,ye.unit=-1,Xt[W]=null),R.activeTexture(Aa+W),R.bindTexture(ni,null),R.bindTexture(no,null)}}return{create2D:Bn,createCube:Zt,clear:cr,getTexture:function(W){return null},restore:Cr,refresh:ln}}var Zi=36161,Yl=32854,Ap=32855,Qs=36194,Tp=33189,Cp=36168,Op=34041,Zs=35907,kp=34836,Mp=34842,Rp=34843,ai=[];ai[Yl]=2,ai[Ap]=2,ai[Qs]=2,ai[Tp]=2,ai[Cp]=1,ai[Op]=4,ai[Zs]=4,ai[kp]=16,ai[Mp]=8,ai[Rp]=6;function Pp(R,H,Z){return ai[R]*H*Z}var Fp=function(R,H,Z,we,ke){var ge={rgba4:Yl,rgb565:Qs,"rgb5 a1":Ap,depth:Tp,stencil:Cp,"depth stencil":Op};H.ext_srgb&&(ge.srgba=Zs),H.ext_color_buffer_half_float&&(ge.rgba16f=Mp,ge.rgb16f=Rp),H.webgl_color_buffer_float&&(ge.rgba32f=kp);var xe=[];Object.keys(ge).forEach(function(it){var Ge=ge[it];xe[Ge]=it});var Ye=0,Xe={};function Je(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=Yl,this.width=0,this.height=0,ke.profile&&(this.stats={size:0})}Je.prototype.decRef=function(){--this.refCount<=0&&lt(this)};function lt(it){var Ge=it.renderbuffer;R.bindRenderbuffer(Zi,null),R.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],we.renderbufferCount--}function Rt(it,Ge){var he=new Je(R.createRenderbuffer());Xe[he.id]=he,we.renderbufferCount++;function Ee(Ze,Ne){var dt=0,ot=0,Pt=Yl;if(typeof Ze=="object"&&Ze){var Ie=Ze;if("shape"in Ie){var Me=Ie.shape;dt=Me[0]|0,ot=Me[1]|0}else"radius"in Ie&&(dt=ot=Ie.radius|0),"width"in Ie&&(dt=Ie.width|0),"height"in Ie&&(ot=Ie.height|0);"format"in Ie&&(Pt=ge[Ie.format])}else typeof Ze=="number"?(dt=Ze|0,typeof Ne=="number"?ot=Ne|0:ot=dt):Ze||(dt=ot=1);if(!(dt===he.width&&ot===he.height&&Pt===he.format))return Ee.width=he.width=dt,Ee.height=he.height=ot,he.format=Pt,R.bindRenderbuffer(Zi,he.renderbuffer),R.renderbufferStorage(Zi,Pt,dt,ot),ke.profile&&(he.stats.size=Pp(he.format,he.width,he.height)),Ee.format=xe[he.format],Ee}function We(Ze,Ne){var dt=Ze|0,ot=Ne|0||dt;return dt===he.width&&ot===he.height||(Ee.width=he.width=dt,Ee.height=he.height=ot,R.bindRenderbuffer(Zi,he.renderbuffer),R.renderbufferStorage(Zi,he.format,dt,ot),ke.profile&&(he.stats.size=Pp(he.format,he.width,he.height))),Ee}return Ee(it,Ge),Ee.resize=We,Ee._reglType="renderbuffer",Ee._renderbuffer=he,ke.profile&&(Ee.stats=he.stats),Ee.destroy=function(){he.decRef()},Ee}ke.profile&&(we.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function bt(){$n(Xe).forEach(function(it){it.renderbuffer=R.createRenderbuffer(),R.bindRenderbuffer(Zi,it.renderbuffer),R.renderbufferStorage(Zi,it.format,it.width,it.height)}),R.bindRenderbuffer(Zi,null)}return{create:Rt,clear:function(){$n(Xe).forEach(lt)},restore:bt}},Fi=36160,Ks=36161,so=3553,co=34069,ho=36064,oi=36096,Np=36128,Ip=33306,Jg=36053,ey=36193,Lp=5121,ty=5126,ry=6407,ny=6408,Js=[];Js[ny]=4,Js[ry]=3;var Xl=[];Xl[Lp]=1,Xl[ty]=4,Xl[ey]=2;function ec(R,H,Z,we,ke,ge){var xe={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function Je(Se,st,Ke){this.target=Se,this.texture=st,this.renderbuffer=Ke;var Ft=0,Jt=0;st?(Ft=st.width,Jt=st.height):Ke&&(Ft=Ke.width,Jt=Ke.height),this.width=Ft,this.height=Jt}function lt(Se){Se&&(Se.texture&&Se.texture._texture.decRef(),Se.renderbuffer&&Se.renderbuffer._renderbuffer.decRef())}function Rt(Se,st,Ke){if(Se)if(Se.texture){var Ft=Se.texture._texture;Math.max(1,Ft.width),Math.max(1,Ft.height),Ft.refCount+=1}else{var Jt=Se.renderbuffer._renderbuffer;Jt.refCount+=1}}function bt(Se,st){st&&(st.texture?R.framebufferTexture2D(Fi,Se,st.target,st.texture._texture.texture,0):R.framebufferRenderbuffer(Fi,Se,Ks,st.renderbuffer._renderbuffer.renderbuffer))}function it(Se){var st=so,Ke=null,Ft=null,Jt=Se;typeof Se=="object"&&(Jt=Se.data,"target"in Se&&(st=Se.target|0));var yt=Jt._reglType;return yt==="texture2d"||yt==="textureCube"?Ke=Jt:yt==="renderbuffer"&&(Ft=Jt,st=Ks),new Je(st,Ke,Ft)}function Ge(Se,st,Ke,Ft,Jt){if(Ke){var yt=we.create2D({width:Se,height:st,format:Ft,type:Jt});return yt._texture.refCount=0,new Je(so,yt,null)}else{var Bt=ke.create({width:Se,height:st,format:Ft});return Bt._renderbuffer.refCount=0,new Je(Ks,null,Bt)}}function he(Se){return Se&&(Se.texture||Se.renderbuffer)}function Ee(Se,st,Ke){Se&&(Se.texture?Se.texture.resize(st,Ke):Se.renderbuffer&&Se.renderbuffer.resize(st,Ke),Se.width=st,Se.height=Ke)}var We=0,Ze={};function Ne(){this.id=We++,Ze[this.id]=this,this.framebuffer=R.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function dt(Se){Se.colorAttachments.forEach(lt),lt(Se.depthAttachment),lt(Se.stencilAttachment),lt(Se.depthStencilAttachment)}function ot(Se){var st=Se.framebuffer;R.deleteFramebuffer(st),Se.framebuffer=null,ge.framebufferCount--,delete Ze[Se.id]}function Pt(Se){var st;R.bindFramebuffer(Fi,Se.framebuffer);var Ke=Se.colorAttachments;for(st=0;st<Ke.length;++st)bt(ho+st,Ke[st]);for(st=Ke.length;st<Z.maxColorAttachments;++st)R.framebufferTexture2D(Fi,ho+st,so,null,0);R.framebufferTexture2D(Fi,Ip,so,null,0),R.framebufferTexture2D(Fi,oi,so,null,0),R.framebufferTexture2D(Fi,Np,so,null,0),bt(oi,Se.depthAttachment),bt(Np,Se.stencilAttachment),bt(Ip,Se.depthStencilAttachment);var Ft=R.checkFramebufferStatus(Fi);R.isContextLost(),R.bindFramebuffer(Fi,xe.next?xe.next.framebuffer:null),xe.cur=xe.next,R.getError()}function Ie(Se,st){var Ke=new Ne;ge.framebufferCount++;function Ft(yt,Bt){var ut,er=0,ur=0,hr=!0,nn=!0,lr=null,qn=!0,Ar="rgba",wn="uint8",Wn=1,Rn=null,Li=null,an=null,on=!1;if(typeof yt=="number")er=yt|0,ur=Bt|0||er;else if(!yt)er=ur=1;else{var Xt=yt;if("shape"in Xt){var li=Xt.shape;er=li[0],ur=li[1]}else"radius"in Xt&&(er=ur=Xt.radius),"width"in Xt&&(er=Xt.width),"height"in Xt&&(ur=Xt.height);("color"in Xt||"colors"in Xt)&&(lr=Xt.color||Xt.colors),lr||("colorCount"in Xt&&(Wn=Xt.colorCount|0),"colorTexture"in Xt&&(qn=!!Xt.colorTexture,Ar="rgba4"),"colorType"in Xt&&(wn=Xt.colorType,qn||(wn==="half float"||wn==="float16"?Ar="rgba16f":(wn==="float"||wn==="float32")&&(Ar="rgba32f"))),"colorFormat"in Xt&&(Ar=Xt.colorFormat,Ye.indexOf(Ar)>=0?qn=!0:Xe.indexOf(Ar)>=0&&(qn=!1))),("depthTexture"in Xt||"depthStencilTexture"in Xt)&&(on=!!(Xt.depthTexture||Xt.depthStencilTexture)),"depth"in Xt&&(typeof Xt.depth=="boolean"?hr=Xt.depth:(Rn=Xt.depth,nn=!1)),"stencil"in Xt&&(typeof Xt.stencil=="boolean"?nn=Xt.stencil:(Li=Xt.stencil,hr=!1)),"depthStencil"in Xt&&(typeof Xt.depthStencil=="boolean"?hr=nn=Xt.depthStencil:(an=Xt.depthStencil,hr=!1,nn=!1))}var wr=null,un=null,Dn=null,Bn=null;if(Array.isArray(lr))wr=lr.map(it);else if(lr)wr=[it(lr)];else for(wr=new Array(Wn),ut=0;ut<Wn;++ut)wr[ut]=Ge(er,ur,qn,Ar,wn);for(er=er||wr[0].width,ur=ur||wr[0].height,Rn?un=it(Rn):hr&&!nn&&(un=Ge(er,ur,on,"depth","uint32")),Li?Dn=it(Li):nn&&!hr&&(Dn=Ge(er,ur,!1,"stencil","uint8")),an?Bn=it(an):!Rn&&!Li&&nn&&hr&&(Bn=Ge(er,ur,on,"depth stencil","depth stencil")),ut=0;ut<wr.length;++ut)Rt(wr[ut]),wr[ut]&&wr[ut].texture&&Js[wr[ut].texture._texture.format]*Xl[wr[ut].texture._texture.type];return Rt(un),Rt(Dn),Rt(Bn),dt(Ke),Ke.width=er,Ke.height=ur,Ke.colorAttachments=wr,Ke.depthAttachment=un,Ke.stencilAttachment=Dn,Ke.depthStencilAttachment=Bn,Ft.color=wr.map(he),Ft.depth=he(un),Ft.stencil=he(Dn),Ft.depthStencil=he(Bn),Ft.width=Ke.width,Ft.height=Ke.height,Pt(Ke),Ft}function Jt(yt,Bt){var ut=Math.max(yt|0,1),er=Math.max(Bt|0||ut,1);if(ut===Ke.width&&er===Ke.height)return Ft;for(var ur=Ke.colorAttachments,hr=0;hr<ur.length;++hr)Ee(ur[hr],ut,er);return Ee(Ke.depthAttachment,ut,er),Ee(Ke.stencilAttachment,ut,er),Ee(Ke.depthStencilAttachment,ut,er),Ke.width=Ft.width=ut,Ke.height=Ft.height=er,Pt(Ke),Ft}return Ft(Se,st),r(Ft,{resize:Jt,_reglType:"framebuffer",_framebuffer:Ke,destroy:function(){ot(Ke),dt(Ke)},use:function(yt){xe.setFBO({framebuffer:Ft},yt)}})}function Me(Se){var st=Array(6);function Ke(Jt){var yt,Bt={color:null},ut=0,er=null,ur="rgba",hr="uint8",nn=1;if(typeof Jt=="number")ut=Jt|0;else if(!Jt)ut=1;else{var lr=Jt;if("shape"in lr){var qn=lr.shape;ut=qn[0]}else"radius"in lr&&(ut=lr.radius|0),"width"in lr?ut=lr.width|0:"height"in lr&&(ut=lr.height|0);("color"in lr||"colors"in lr)&&(er=lr.color||lr.colors),er||("colorCount"in lr&&(nn=lr.colorCount|0),"colorType"in lr&&(hr=lr.colorType),"colorFormat"in lr&&(ur=lr.colorFormat)),"depth"in lr&&(Bt.depth=lr.depth),"stencil"in lr&&(Bt.stencil=lr.stencil),"depthStencil"in lr&&(Bt.depthStencil=lr.depthStencil)}var Ar;if(er)if(Array.isArray(er))for(Ar=[],yt=0;yt<er.length;++yt)Ar[yt]=er[yt];else Ar=[er];else{Ar=Array(nn);var wn={radius:ut,format:ur,type:hr};for(yt=0;yt<nn;++yt)Ar[yt]=we.createCube(wn)}for(Bt.color=Array(Ar.length),yt=0;yt<Ar.length;++yt){var Wn=Ar[yt];ut=ut||Wn.width,Bt.color[yt]={target:co,data:Ar[yt]}}for(yt=0;yt<6;++yt){for(var Rn=0;Rn<Ar.length;++Rn)Bt.color[Rn].target=co+yt;yt>0&&(Bt.depth=st[0].depth,Bt.stencil=st[0].stencil,Bt.depthStencil=st[0].depthStencil),st[yt]?st[yt](Bt):st[yt]=Ie(Bt)}return r(Ke,{width:ut,height:ut,color:Ar})}function Ft(Jt){var yt,Bt=Jt|0;if(Bt===Ke.width)return Ke;var ut=Ke.color;for(yt=0;yt<ut.length;++yt)ut[yt].resize(Bt);for(yt=0;yt<6;++yt)st[yt].resize(Bt);return Ke.width=Ke.height=Bt,Ke}return Ke(Se),r(Ke,{faces:st,resize:Ft,_reglType:"framebufferCube",destroy:function(){st.forEach(function(Jt){Jt.destroy()})}})}function mt(){xe.cur=null,xe.next=null,xe.dirty=!0,$n(Ze).forEach(function(Se){Se.framebuffer=R.createFramebuffer(),Pt(Se)})}return r(xe,{getFramebuffer:function(Se){if(typeof Se=="function"&&Se._reglType==="framebuffer"){var st=Se._framebuffer;if(st instanceof Ne)return st}return null},create:Ie,createCube:Me,clear:function(){$n(Ze).forEach(ot)},restore:mt})}var tc=5126,$p=34962,Ql=34963;function rc(){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=tc,this.offset=0,this.stride=0,this.divisor=0}function iy(R,H,Z,we,ke,ge,xe){for(var Ye=Z.maxAttributes,Xe=new Array(Ye),Je=0;Je<Ye;++Je)Xe[Je]=new rc;var lt=0,Rt={},bt={Record:rc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Ee,destroyBuffer:it,setVAO:Ge()?We:Ze,clear:Ge()?Ne:function(){}};function it(Ie){for(var Me=0;Me<Xe.length;++Me){var mt=Xe[Me];mt.buffer===Ie&&(R.disableVertexAttribArray(Me),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Ee(Ie){return typeof Ie=="function"&&Ie._vao?Ie._vao:null}function We(Ie){if(Ie!==bt.currentVAO){var Me=Ge();Ie?Me.bindVertexArrayOES(Ie.vao):Me.bindVertexArrayOES(null),bt.currentVAO=Ie}}function Ze(Ie){if(Ie!==bt.currentVAO){if(Ie)Ie.bindAttrs();else{for(var Me=he(),mt=0;mt<Xe.length;++mt){var Se=Xe[mt];Se.buffer?(R.enableVertexAttribArray(mt),Se.buffer.bind(),R.vertexAttribPointer(mt,Se.size,Se.type,Se.normalized,Se.stride,Se.offfset),Me&&Se.divisor&&Me.vertexAttribDivisorANGLE(mt,Se.divisor)):(R.disableVertexAttribArray(mt),R.vertexAttrib4f(mt,Se.x,Se.y,Se.z,Se.w))}xe.elements?R.bindBuffer(Ql,xe.elements.buffer.buffer):R.bindBuffer(Ql,null)}bt.currentVAO=Ie}}function Ne(){$n(Rt).forEach(function(Ie){Ie.destroy()})}function dt(){this.id=++lt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Ie=Ge();Ie?this.vao=Ie.createVertexArrayOES():this.vao=null,Rt[this.id]=this,this.buffers=[]}dt.prototype.bindAttrs=function(){for(var Ie=he(),Me=this.attributes,mt=0;mt<Me.length;++mt){var Se=Me[mt];Se.buffer?(R.enableVertexAttribArray(mt),R.bindBuffer($p,Se.buffer.buffer),R.vertexAttribPointer(mt,Se.size,Se.type,Se.normalized,Se.stride,Se.offset),Ie&&Se.divisor&&Ie.vertexAttribDivisorANGLE(mt,Se.divisor)):(R.disableVertexAttribArray(mt),R.vertexAttrib4f(mt,Se.x,Se.y,Se.z,Se.w))}for(var st=Me.length;st<Ye;++st)R.disableVertexAttribArray(st);var Ke=ge.getElements(this.elements);Ke?R.bindBuffer(Ql,Ke.buffer.buffer):R.bindBuffer(Ql,null)},dt.prototype.refresh=function(){var Ie=Ge();Ie&&(Ie.bindVertexArrayOES(this.vao),this.bindAttrs(),bt.currentVAO=null,Ie.bindVertexArrayOES(null))},dt.prototype.destroy=function(){if(this.vao){var Ie=Ge();this===bt.currentVAO&&(bt.currentVAO=null,Ie.bindVertexArrayOES(null)),Ie.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Rt[this.id]&&(delete Rt[this.id],we.vaoCount-=1)};function ot(){var Ie=Ge();Ie&&$n(Rt).forEach(function(Me){Me.refresh()})}function Pt(Ie){var Me=new dt;we.vaoCount+=1;function mt(Se){var st;if(Array.isArray(Se))st=Se,Me.elements&&Me.ownsElements&&Me.elements.destroy(),Me.elements=null,Me.ownsElements=!1,Me.offset=0,Me.count=0,Me.instances=-1,Me.primitive=4;else{if(Se.elements){var Ke=Se.elements;Me.ownsElements?typeof Ke=="function"&&Ke._reglType==="elements"?(Me.elements.destroy(),Me.ownsElements=!1):(Me.elements(Ke),Me.ownsElements=!1):ge.getElements(Se.elements)?(Me.elements=Se.elements,Me.ownsElements=!1):(Me.elements=ge.create(Se.elements),Me.ownsElements=!0)}else Me.elements=null,Me.ownsElements=!1;st=Se.attributes,Me.offset=0,Me.count=-1,Me.instances=-1,Me.primitive=4,Me.elements&&(Me.count=Me.elements._elements.vertCount,Me.primitive=Me.elements._elements.primType),"offset"in Se&&(Me.offset=Se.offset|0),"count"in Se&&(Me.count=Se.count|0),"instances"in Se&&(Me.instances=Se.instances|0),"primitive"in Se&&(Me.primitive=en[Se.primitive])}var Ft={},Jt=Me.attributes;Jt.length=st.length;for(var yt=0;yt<st.length;++yt){var Bt=st[yt],ut=Jt[yt]=new rc,er=Bt.data||Bt;if(Array.isArray(er)||Jr(er)||ei(er)){var ur;Me.buffers[yt]&&(ur=Me.buffers[yt],Jr(er)&&ur._buffer.byteLength>=er.byteLength?ur.subdata(er):(ur.destroy(),Me.buffers[yt]=null)),Me.buffers[yt]||(ur=Me.buffers[yt]=ke.create(Bt,$p,!1,!0)),ut.buffer=ke.getBuffer(ur),ut.size=ut.buffer.dimension|0,ut.normalized=!1,ut.type=ut.buffer.dtype,ut.offset=0,ut.stride=0,ut.divisor=0,ut.state=1,Ft[yt]=1}else ke.getBuffer(Bt)?(ut.buffer=ke.getBuffer(Bt),ut.size=ut.buffer.dimension|0,ut.normalized=!1,ut.type=ut.buffer.dtype,ut.offset=0,ut.stride=0,ut.divisor=0,ut.state=1):ke.getBuffer(Bt.buffer)?(ut.buffer=ke.getBuffer(Bt.buffer),ut.size=(+Bt.size||ut.buffer.dimension)|0,ut.normalized=!!Bt.normalized||!1,"type"in Bt?ut.type=du[Bt.type]:ut.type=ut.buffer.dtype,ut.offset=(Bt.offset||0)|0,ut.stride=(Bt.stride||0)|0,ut.divisor=(Bt.divisor||0)|0,ut.state=1):"x"in Bt&&(ut.x=+Bt.x||0,ut.y=+Bt.y||0,ut.z=+Bt.z||0,ut.w=+Bt.w||0,ut.state=2)}for(var hr=0;hr<Me.buffers.length;++hr)!Ft[hr]&&Me.buffers[hr]&&(Me.buffers[hr].destroy(),Me.buffers[hr]=null);return Me.refresh(),mt}return mt.destroy=function(){for(var Se=0;Se<Me.buffers.length;++Se)Me.buffers[Se]&&Me.buffers[Se].destroy();Me.buffers.length=0,Me.ownsElements&&(Me.elements.destroy(),Me.elements=null,Me.ownsElements=!1),Me.destroy()},mt._vao=Me,mt._reglType="vao",mt(Ie)}return bt}var nc=35632,ay=35633,oy=35718,ic=35721;function Dp(R,H,Z,we){var ke={},ge={};function xe(he,Ee,We,Ze){this.name=he,this.id=Ee,this.location=We,this.info=Ze}function Ye(he,Ee){for(var We=0;We<he.length;++We)if(he[We].id===Ee.id){he[We].location=Ee.location;return}he.push(Ee)}function Xe(he,Ee,We){var Ze=he===nc?ke:ge,Ne=Ze[Ee];if(!Ne){var dt=H.str(Ee);Ne=R.createShader(he),R.shaderSource(Ne,dt),R.compileShader(Ne),Ze[Ee]=Ne}return Ne}var Je={},lt=[],Rt=0;function bt(he,Ee){this.id=Rt++,this.fragId=he,this.vertId=Ee,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,we.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Ee,We){var Ze,Ne,dt=Xe(nc,he.fragId),ot=Xe(ay,he.vertId),Pt=he.program=R.createProgram();if(R.attachShader(Pt,dt),R.attachShader(Pt,ot),We)for(Ze=0;Ze<We.length;++Ze){var Ie=We[Ze];R.bindAttribLocation(Pt,Ie[0],Ie[1])}R.linkProgram(Pt);var Me=R.getProgramParameter(Pt,oy);we.profile&&(he.stats.uniformsCount=Me);var mt=he.uniforms;for(Ze=0;Ze<Me;++Ze)if(Ne=R.getActiveUniform(Pt,Ze),Ne)if(Ne.size>1)for(var Se=0;Se<Ne.size;++Se){var st=Ne.name.replace("[0]","["+Se+"]");Ye(mt,new xe(st,H.id(st),R.getUniformLocation(Pt,st),Ne))}else Ye(mt,new xe(Ne.name,H.id(Ne.name),R.getUniformLocation(Pt,Ne.name),Ne));var Ke=R.getProgramParameter(Pt,ic);we.profile&&(he.stats.attributesCount=Ke);var Ft=he.attributes;for(Ze=0;Ze<Ke;++Ze)Ne=R.getActiveAttrib(Pt,Ze),Ne&&Ye(Ft,new xe(Ne.name,H.id(Ne.name),R.getAttribLocation(Pt,Ne.name),Ne))}we.profile&&(Z.getMaxUniformsCount=function(){var he=0;return lt.forEach(function(Ee){Ee.stats.uniformsCount>he&&(he=Ee.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return lt.forEach(function(Ee){Ee.stats.attributesCount>he&&(he=Ee.stats.attributesCount)}),he});function Ge(){ke={},ge={};for(var he=0;he<lt.length;++he)it(lt[he],null,lt[he].attributes.map(function(Ee){return[Ee.location,Ee.name]}))}return{clear:function(){var he=R.deleteShader.bind(R);$n(ke).forEach(he),ke={},$n(ge).forEach(he),ge={},lt.forEach(function(Ee){R.deleteProgram(Ee.program)}),lt.length=0,Je={},Z.shaderCount=0},program:function(he,Ee,We,Ze){var Ne=Je[Ee];Ne||(Ne=Je[Ee]={});var dt=Ne[he];if(dt&&(dt.refCount++,!Ze))return dt;var ot=new bt(Ee,he);return Z.shaderCount++,it(ot,We,Ze),dt||(Ne[he]=ot),lt.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){R.deleteProgram(ot.program);var Pt=lt.indexOf(ot);lt.splice(Pt,1),Z.shaderCount--}Ne[ot.vertId].refCount<=0&&(R.deleteShader(ge[ot.vertId]),delete ge[ot.vertId],delete Je[ot.fragId][ot.vertId]),Object.keys(Je[ot.fragId]).length||(R.deleteShader(ke[ot.fragId]),delete ke[ot.fragId],delete Je[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var Bp=6408,ac=5121,uy=3333,ly=5126;function zp(R,H,Z,we,ke,ge,xe){function Ye(lt){var Rt;H.next===null?Rt=ac:Rt=H.next.colorAttachments[0].texture._texture.type;var bt=0,it=0,Ge=we.framebufferWidth,he=we.framebufferHeight,Ee=null;Jr(lt)?Ee=lt:lt&&(bt=lt.x|0,it=lt.y|0,Ge=(lt.width||we.framebufferWidth-bt)|0,he=(lt.height||we.framebufferHeight-it)|0,Ee=lt.data||null),Z();var We=Ge*he*4;return Ee||(Rt===ac?Ee=new Uint8Array(We):Rt===ly&&(Ee=Ee||new Float32Array(We))),R.pixelStorei(uy,4),R.readPixels(bt,it,Ge,he,Bp,Rt,Ee),Ee}function Xe(lt){var Rt;return H.setFBO({framebuffer:lt.framebuffer},function(){Rt=Ye(lt)}),Rt}function Je(lt){return!lt||!("framebuffer"in lt)?Ye(lt):Xe(lt)}return Je}function Up(R){return oc(jp(uc(R)))}function jp(R){return sy(hy(fy(R),R.length*8))}function oc(R){for(var H="0123456789abcdef",Z="",we,ke=0;ke<R.length;ke++)we=R.charCodeAt(ke),Z+=H.charAt(we>>>4&15)+H.charAt(we&15);return Z}function uc(R){for(var H="",Z=-1,we,ke;++Z<R.length;)we=R.charCodeAt(Z),ke=Z+1<R.length?R.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 fy(R){for(var H=Array(R.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<R.length*8;Z+=8)H[Z>>5]|=(R.charCodeAt(Z/8)&255)<<24-Z%32;return H}function sy(R){for(var H="",Z=0;Z<R.length*32;Z+=8)H+=String.fromCharCode(R[Z>>5]>>>24-Z%32&255);return H}function gi(R,H){return R>>>H|R<<32-H}function Gp(R,H){return R>>>H}function cy(R,H,Z){return R&H^~R&Z}function Hp(R,H,Z){return R&H^R&Z^H&Z}function qp(R){return gi(R,2)^gi(R,13)^gi(R,22)}function lc(R){return gi(R,6)^gi(R,11)^gi(R,25)}function Wp(R){return gi(R,7)^gi(R,18)^Gp(R,3)}function Zl(R){return gi(R,17)^gi(R,19)^Gp(R,10)}var Kl=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 hy(R,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),we=new Array(64),ke,ge,xe,Ye,Xe,Je,lt,Rt,bt,it,Ge,he;for(R[H>>5]|=128<<24-H%32,R[(H+64>>9<<4)+15]=H,bt=0;bt<R.length;bt+=16){for(ke=Z[0],ge=Z[1],xe=Z[2],Ye=Z[3],Xe=Z[4],Je=Z[5],lt=Z[6],Rt=Z[7],it=0;it<64;it++)it<16?we[it]=R[it+bt]:we[it]=Gr(Gr(Gr(Zl(we[it-2]),we[it-7]),Wp(we[it-15])),we[it-16]),Ge=Gr(Gr(Gr(Gr(Rt,lc(Xe)),cy(Xe,Je,lt)),Kl[it]),we[it]),he=Gr(qp(ke),Hp(ke,ge,xe)),Rt=lt,lt=Je,Je=Xe,Xe=Gr(Ye,Ge),Ye=xe,xe=ge,ge=ke,ke=Gr(Ge,he);Z[0]=Gr(ke,Z[0]),Z[1]=Gr(ge,Z[1]),Z[2]=Gr(xe,Z[2]),Z[3]=Gr(Ye,Z[3]),Z[4]=Gr(Xe,Z[4]),Z[5]=Gr(Je,Z[5]),Z[6]=Gr(lt,Z[6]),Z[7]=Gr(Rt,Z[7])}return Z}function Gr(R,H){var Z=(R&65535)+(H&65535),we=(R>>16)+(H>>16)+(Z>>16);return we<<16|Z&65535}function Oa(R){return Array.prototype.slice.call(R)}function po(R){return Oa(R).join("")}function dy(R){var H=R&&R.cache,Z=0,we=[],ke=[],ge=[];function xe(Ge,he){var Ee=he&&he.stable;if(!Ee){for(var We=0;We<ke.length;++We)if(ke[We]===Ge&&!ge[We])return we[We]}var Ze="g"+Z++;return we.push(Ze),ke.push(Ge),ge.push(Ee),Ze}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,Oa(arguments))}var Ee=[];function We(){var Ze="v"+Z++;return Ee.push(Ze),arguments.length>0&&(Ge.push(Ze,"="),Ge.push.apply(Ge,Oa(arguments)),Ge.push(";")),Ze}return r(he,{def:We,toString:function(){return po([Ee.length>0?"var "+Ee.join(",")+";":"",po(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Ee=Ge.toString,We=he.toString;function Ze(Ne,dt){he(Ne,dt,"=",Ge.def(Ne,dt),";")}return r(function(){Ge.apply(Ge,Oa(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ze,set:function(Ne,dt,ot){Ze(Ne,dt),Ge(Ne,dt,"=",ot,";")},toString:function(){return Ee()+We()}})}function Je(){var Ge=po(arguments),he=Xe(),Ee=Xe(),We=he.toString,Ze=Ee.toString;return r(he,{then:function(){return he.apply(he,Oa(arguments)),this},else:function(){return Ee.apply(Ee,Oa(arguments)),this},toString:function(){var Ne=Ze();return Ne&&(Ne="else{"+Ne+"}"),po(["if(",Ge,"){",We(),"}",Ne])}})}var lt=Ye(),Rt={};function bt(Ge,he){var Ee=[];function We(){var Pt="a"+Ee.length;return Ee.push(Pt),Pt}he=he||0;for(var Ze=0;Ze<he;++Ze)We();var Ne=Xe(),dt=Ne.toString,ot=Rt[Ge]=r(Ne,{arg:We,toString:function(){return po(["function(",Ee.join(),"){",dt(),"}"])}});return ot}function it(){var Ge=['"use strict";',lt,"return {"];Object.keys(Rt).forEach(function(Ze){Ge.push('"',Ze,'":',Rt[Ze].toString(),",")}),Ge.push("}");var he=po(Ge).replace(/;/g,`;
1068
+ `,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,_)=>[_.viewport.x,_.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,_)=>_.offset*4,divisor:1},position:{buffer:i,offset:(b,_)=>_.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,_)=>_.offset*8,divisor:1},error:{buffer:l,offset:(b,_)=>_.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:uT.length}),aT(x,{update:T,draw:g,destroy:P,regl:e,gl:r,canvas:r.canvas,groups:p}),x;function x(b){b?T(b):b===null&&P(),g()}function g(b){if(typeof b=="number")return y(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),p.forEach((_,E)=>{if(_){if(b&&(b[E]?_.draw=!0:_.draw=!1),!_.draw){_.draw=!0;return}y(E)}})}function y(b){typeof b=="number"&&(b=p[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 T(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let _=0,E=0;if(x.groups=p=b.map((I,$)=>{let ne=p[$];if(I)typeof I=="function"?I={after:I}:typeof I[0]=="number"&&(I={positions:I});else return ne;return I=NV(I,{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||(p[$]=ne={id:$,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},I=aT({},c,I)),FV(ne,I,[{lineWidth:V=>+V*.5,capSize:V=>+V*.5,opacity:parseFloat,errors:V=>(V=oT(V),E+=V.length,V),positions:(V,ae)=>(V=oT(V,"float64"),ae.count=Math.floor(V.length/2),ae.bounds=RV(V,2),ae.offset=_,_+=ae.count,V)},{color:(V,ae)=>{let Te=ae.count;if(V||(V="transparent"),!Array.isArray(V)||typeof V[0]=="number"){let Pe=V;V=Array(Te);for(let De=0;De<Te;De++)V[De]=Pe}if(V.length<Te)throw Error("Not enough colors");let Oe=new Uint8Array(Te*4);for(let Pe=0;Pe<Te;Pe++){let De=PV(V[Pe],"uint8");Oe.set(De,Pe*4)}return Oe},range:(V,ae,Te)=>{let Oe=ae.bounds;return V||(V=Oe),ae.scale=[1/(V[2]-V[0]),1/(V[3]-V[1])],ae.translate=[-V[0],-V[1]],ae.scaleFract=Vx(ae.scale),ae.translateFract=Vx(ae.translate),V},viewport:V=>{let ae;return Array.isArray(V)?ae={x:V[0],y:V[1],width:V[2]-V[0],height:V[3]-V[1]}:V?(ae={x:V.x||V.left||0,y:V.y||V.top||0},V.right?ae.width=V.right-ae.x:ae.width=V.w||V.width||0,V.bottom?ae.height=V.bottom-ae.y:ae.height=V.h||V.height||0):ae={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},ae}}]),ne}),_||E){let I=p.reduce((ae,Te,Oe)=>ae+(Te?Te.count:0),0),$=new Float64Array(I*2),ne=new Uint8Array(I*4),V=new Float32Array(I*4);p.forEach((ae,Te)=>{if(!ae)return;let{positions:Oe,count:Pe,offset:De,color:Ue,errors:ft}=ae;Pe&&(ne.set(Ue,De*4),V.set(ft,De*4),$.set(Oe,De*2))});var k=IV($);i(k);var F=Vx($,k);a(F),o(ne),l(V)}}function P(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var lT=/[\'\"]/,$V=function(t){return t?(lT.test(t.charAt(0))&&(t=t.substr(1)),lT.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const VR=["inherit","initial","unset"],YR=["caption","icon","menu","message-box","small-caption","status-bar"],XR=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],QR=["normal","italic","oblique"],ZR=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function KR(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("")),p=[];function x(g,y,T){var P=r.push(g.slice(s[0].length,-s[1].length))-1;return p.push(P),i+P+i}r.forEach(function(g,y){for(var T,P=0;g!=T;)if(T=g,g=g.replace(c,x),P++>1e4)throw Error("References have circular dependency. Please, check them.");r[y]=g}),p=p.reverse(),r=r.map(function(g){return p.forEach(function(y){g=g.replace(new RegExp("(\\"+i+y+"\\"+i+")","g"),s[0]+"$1"+s[1])}),g})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,c,p){for(var x=[],g,y=0;g=o.exec(s);){if(y++>1e4)throw Error("Circular references in parenthesis");x.push(s.slice(0,g.index)),x.push(l(c[g[1]],c)),s=s.slice(g.index+g[0].length)}return x.push(s),x}return a?r:l(r[0],r)}function JR(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(c,p){return Array.isArray(p)&&(p=p.reduce(s,"")),c+p},"");function l(s,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function Kb(e,t){return Array.isArray(e)?JR(e,t):KR(e,t)}Kb.parse=KR;Kb.stringify=JR;var DV=Kb,fT=DV,BV=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=fT.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var c=o[s],p=o[s+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+p),s++):l.push(c)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=fT.stringify(i,{flat:!0});return o};const zV=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var UV=zV,eP={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||UV.indexOf(t)!==-1}},jV=$V,GV=VR,HV=YR,qV=XR,WV=QR,VV=ZR,Yx=BV,YV=eP.isSize,XV=tP,nh=tP.cache={};function tP(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(nh[e])return nh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(HV.indexOf(e)!==-1)return nh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Yx(e,/\s+/),n;n=r.shift();){if(GV.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),nh[e]=t;if(WV.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(VV.indexOf(n)!==-1){t.stretch=n;continue}if(qV.indexOf(n)!==-1){t.weight=n;continue}if(YV(n)){var i=Yx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=sT(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=sT(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Yx(r.join(" "),/\s*,\s*/).map(jV),nh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function sT(e){var t=parseFloat(e);return t.toString()===e?t:e}var QV=uu,ZV=eP.isSize,KV=zd(VR),JV=zd(YR),eY=zd(XR),tY=zd(QR),rY=zd(ZR),nY={normal:1,"small-caps":1},iY={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Xx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},rP=function(t){if(t=QV(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&&ih(t.system,JV),t.system;if(ih(t.style,tY),ih(t.variant,nY),ih(t.weight,eY),ih(t.stretch,rY),t.size==null&&(t.size=Xx.size),typeof t.size=="number"&&(t.size+="px"),!ZV)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Xx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Xx.family]),t.family=t.family.map(function(n){return iY[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 ih(e,t){if(e&&!t[e]&&!KV[e])throw Error("Unknown keyword `"+e+"`");return e}function zd(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var aY={parse:XV,stringify:rP},Xw={},oY={get exports(){return Xw},set exports(e){Xw=e}};(function(e,t){(function(r,n){e.exports=n()})(tr,function(){var r=function(R,H){for(var Z=Object.keys(H),we=0;we<Z.length;++we)R[Z[we]]=H[Z[we]];return R},n=0,i=0,a=5,o=6;function l(R,H){this.id=n++,this.type=R,this.data=H}function s(R){return R.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(R){if(R.length===0)return[];var H=R.charAt(0),Z=R.charAt(R.length-1);if(R.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(R.substr(1,R.length-2))+'"'];var we=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(R);if(we)return c(R.substr(0,we.index)).concat(c(we[1])).concat(c(R.substr(we.index+we[0].length)));var ke=R.split(".");if(ke.length===1)return['"'+s(R)+'"'];for(var ge=[],xe=0;xe<ke.length;++xe)ge=ge.concat(c(ke[xe]));return ge}function p(R){return"["+c(R).join("][")+"]"}function x(R,H){return new l(R,p(H+""))}function g(R){return typeof R=="function"&&!R._reglType||R instanceof l}function y(R,H){if(typeof R=="function")return new l(i,R);if(typeof R=="number"||typeof R=="boolean")return new l(a,R);if(Array.isArray(R))return new l(o,R.map(function(Z,we){return y(Z)}));if(R instanceof l)return R}var T={DynamicVariable:l,define:x,isDynamic:g,unbox:y,accessor:p},P={next:typeof requestAnimationFrame=="function"?function(R){return requestAnimationFrame(R)}:function(R){return setTimeout(R,16)},cancel:typeof cancelAnimationFrame=="function"?function(R){return cancelAnimationFrame(R)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function _(){var R={"":0},H=[""];return{id:function(Z){var we=R[Z];return we||(we=R[Z]=H.length,H.push(Z),we)},str:function(Z){return H[Z]}}}function E(R,H,Z){var we=document.createElement("canvas");r(we.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),R.appendChild(we),R===document.body&&(we.style.position="absolute",r(R.style,{margin:0,padding:0}));function ke(){var Ye=window.innerWidth,Xe=window.innerHeight;if(R!==document.body){var Je=we.getBoundingClientRect();Ye=Je.right-Je.left,Xe=Je.bottom-Je.top}we.width=Z*Ye,we.height=Z*Xe}var ge;R!==document.body&&typeof ResizeObserver=="function"?(ge=new ResizeObserver(function(){setTimeout(ke)}),ge.observe(R)):window.addEventListener("resize",ke,!1);function xe(){ge?ge.disconnect():window.removeEventListener("resize",ke),R.removeChild(we)}return ke(),{canvas:we,onDestroy:xe}}function k(R,H){function Z(we){try{return R.getContext(we,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function F(R){return typeof R.nodeName=="string"&&typeof R.appendChild=="function"&&typeof R.getBoundingClientRect=="function"}function I(R){return typeof R.drawArrays=="function"||typeof R.drawElements=="function"}function $(R){return typeof R=="string"?R.split():R}function ne(R){return typeof R=="string"?document.querySelector(R):R}function V(R){var H=R||{},Z,we,ke,ge,xe={},Ye=[],Xe=[],Je=typeof window>"u"?1:window.devicePixelRatio,lt=!1,Rt={},bt=function(he){},it=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(F(H)?Z=H:I(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&&(Ye=$(H.extensions)),"optionalExtensions"in H&&(Xe=$(H.optionalExtensions)),"onDone"in H&&(bt=H.onDone),"profile"in H&&(lt=!!H.profile),"pixelRatio"in H&&(Je=+H.pixelRatio),"cachedCode"in H&&(Rt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?ke=Z:we=Z),!ge){if(!ke){var Ge=E(we||document.body,bt,Je);if(!Ge)return null;ke=Ge.canvas,it=Ge.onDestroy}xe.premultipliedAlpha===void 0&&(xe.premultipliedAlpha=!0),ge=k(ke,xe)}return ge?{gl:ge,canvas:ke,container:we,extensions:Ye,optionalExtensions:Xe,pixelRatio:Je,profile:lt,cachedCode:Rt,onDone:bt,onDestroy:it}:(it(),bt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function ae(R,H){var Z={};function we(xe){var Ye=xe.toLowerCase(),Xe;try{Xe=Z[Ye]=R.getExtension(Ye)}catch{}return!!Xe}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 Te(R,H){for(var Z=Array(R),we=0;we<R;++we)Z[we]=H(we);return Z}var Oe=5120,Pe=5121,De=5122,Ue=5123,ft=5124,nt=5125,$e=5126;function qe(R){for(var H=16;H<=1<<28;H*=16)if(R<=H)return H;return 0}function kt(R){var H,Z;return H=(R>65535)<<4,R>>>=H,Z=(R>255)<<3,R>>>=Z,H|=Z,Z=(R>15)<<2,R>>>=Z,H|=Z,Z=(R>3)<<1,R>>>=Z,H|=Z,H|R>>1}function He(){var R=Te(8,function(){return[]});function H(ge){var xe=qe(ge),Ye=R[kt(xe)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(xe)}function Z(ge){R[kt(ge.byteLength)>>2].push(ge)}function we(ge,xe){var Ye=null;switch(ge){case Oe:Ye=new Int8Array(H(xe),0,xe);break;case Pe:Ye=new Uint8Array(H(xe),0,xe);break;case De:Ye=new Int16Array(H(2*xe),0,xe);break;case Ue:Ye=new Uint16Array(H(2*xe),0,xe);break;case ft:Ye=new Int32Array(H(4*xe),0,xe);break;case nt:Ye=new Uint32Array(H(4*xe),0,xe);break;case $e:Ye=new Float32Array(H(4*xe),0,xe);break;default:return null}return Ye.length!==xe?Ye.subarray(0,xe):Ye}function ke(ge){Z(ge.buffer)}return{alloc:H,free:Z,allocType:we,freeType:ke}}var be=He();be.zero=He();var Ve=3408,ct=3410,et=3411,pt=3412,wt=3413,qt=3414,Vt=3415,Qe=33901,Et=33902,jt=3379,Ae=3386,G=34921,ie=36347,O=36348,S=35661,C=35660,D=34930,se=36349,Fe=34076,Be=34024,Qt=7936,sr=7937,nr=7938,Vr=35724,kr=34047,qi=36063,fu=34852,va=3553,pi=34067,Vd=34069,Ti=33984,su=6408,Tl=5126,Ol=5121,kl=36160,$g=36053,ma=36064,Dg=16384,Ml=function(R,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=R.getParameter(kr));var we=1,ke=1;H.webgl_draw_buffers&&(we=R.getParameter(fu),ke=R.getParameter(qi));var ge=!!H.oes_texture_float;if(ge){var xe=R.createTexture();R.bindTexture(va,xe),R.texImage2D(va,0,su,1,1,0,su,Tl,null);var Ye=R.createFramebuffer();if(R.bindFramebuffer(kl,Ye),R.framebufferTexture2D(kl,ma,va,xe,0),R.bindTexture(va,null),R.checkFramebufferStatus(kl)!==$g)ge=!1;else{R.viewport(0,0,1,1),R.clearColor(1,0,0,1),R.clear(Dg);var Xe=be.allocType(Tl,4);R.readPixels(0,0,1,1,su,Tl,Xe),R.getError()?ge=!1:(R.deleteFramebuffer(Ye),R.deleteTexture(xe),ge=Xe[0]===1),be.freeType(Xe)}}var Je=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lt=!0;if(!Je){var Rt=R.createTexture(),bt=be.allocType(Ol,36);R.activeTexture(Ti),R.bindTexture(pi,Rt),R.texImage2D(Vd,0,su,3,3,0,su,Ol,bt),be.freeType(bt),R.bindTexture(pi,null),R.deleteTexture(Rt),lt=!R.getError()}return{colorBits:[R.getParameter(ct),R.getParameter(et),R.getParameter(pt),R.getParameter(wt)],depthBits:R.getParameter(qt),stencilBits:R.getParameter(Vt),subpixelBits:R.getParameter(Ve),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:Z,maxDrawbuffers:we,maxColorAttachments:ke,pointSizeDims:R.getParameter(Qe),lineWidthDims:R.getParameter(Et),maxViewportDims:R.getParameter(Ae),maxCombinedTextureUnits:R.getParameter(S),maxCubeMapSize:R.getParameter(Fe),maxRenderbufferSize:R.getParameter(Be),maxTextureUnits:R.getParameter(D),maxTextureSize:R.getParameter(jt),maxAttributes:R.getParameter(G),maxVertexUniforms:R.getParameter(ie),maxVertexTextureUnits:R.getParameter(C),maxVaryingVectors:R.getParameter(O),maxFragmentUniforms:R.getParameter(se),glsl:R.getParameter(Vr),renderer:R.getParameter(sr),vendor:R.getParameter(Qt),version:R.getParameter(nr),readFloat:ge,npotTextureCube:lt}},Jr=function(R){return R instanceof Uint8Array||R instanceof Uint16Array||R instanceof Uint32Array||R instanceof Int8Array||R instanceof Int16Array||R instanceof Int32Array||R instanceof Float32Array||R instanceof Float64Array||R instanceof Uint8ClampedArray};function ei(R){return!!R&&typeof R=="object"&&Array.isArray(R.shape)&&Array.isArray(R.stride)&&typeof R.offset=="number"&&R.shape.length===R.stride.length&&(Array.isArray(R.data)||Jr(R.data))}var $n=function(R){return Object.keys(R).map(function(H){return R[H]})},ir={shape:Qd,flatten:vi};function Yd(R,H,Z){for(var we=0;we<H;++we)Z[we]=R[we]}function Oi(R,H,Z,we){for(var ke=0,ge=0;ge<H;++ge)for(var xe=R[ge],Ye=0;Ye<Z;++Ye)we[ke++]=xe[Ye]}function eo(R,H,Z,we,ke,ge){for(var xe=ge,Ye=0;Ye<H;++Ye)for(var Xe=R[Ye],Je=0;Je<Z;++Je)for(var lt=Xe[Je],Rt=0;Rt<we;++Rt)ke[xe++]=lt[Rt]}function Xd(R,H,Z,we,ke){for(var ge=1,xe=Z+1;xe<H.length;++xe)ge*=H[xe];var Ye=H[Z];if(H.length-Z===4){var Xe=H[Z+1],Je=H[Z+2],lt=H[Z+3];for(xe=0;xe<Ye;++xe)eo(R[xe],Xe,Je,lt,we,ke),ke+=ge}else for(xe=0;xe<Ye;++xe)Xd(R[xe],H,Z+1,we,ke),ke+=ge}function vi(R,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||be.allocType(Z,ke);switch(H.length){case 0:break;case 1:Yd(R,H[0],xe);break;case 2:Oi(R,H[0],H[1],xe);break;case 3:eo(R,H[0],H[1],H[2],xe,0);break;default:Xd(R,H,0,xe,0)}return xe}function Qd(R){for(var H=[],Z=R;Z.length;Z=Z[0])H.push(Z.length);return H}var cu={"[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},Bg=5120,Zd=5122,zg=5124,Kd=5121,Ug=5123,hu=5125,Es=5126,Jd=5126,du={int8:Bg,int16:Zd,int32:zg,uint8:Kd,uint16:Ug,uint32:hu,float:Es,float32:Jd},Rl=35048,As=35040,Wi={dynamic:Rl,stream:As,static:35044},Gn=ir.flatten,Pl=ir.shape,Fl=35044,ti=35040,pu=5121,vu=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function ga(R){return cu[Object.prototype.toString.call(R)]|0}function Cs(R,H){for(var Z=0;Z<H.length;++Z)R[Z]=H[Z]}function Ts(R,H,Z,we,ke,ge,xe){for(var Ye=0,Xe=0;Xe<Z;++Xe)for(var Je=0;Je<we;++Je)R[Ye++]=H[ke*Xe+ge*Je+xe]}function ep(R,H,Z,we){var ke=0,ge={};function xe(he){this.id=ke++,this.buffer=R.createBuffer(),this.type=he,this.usage=Fl,this.byteLength=0,this.dimension=1,this.dtype=pu,this.persistentData=null,Z.profile&&(this.stats={size:0})}xe.prototype.bind=function(){R.bindBuffer(this.type,this.buffer)},xe.prototype.destroy=function(){bt(this)};var Ye=[];function Xe(he,Ee){var We=Ye.pop();return We||(We=new xe(he)),We.bind(),Rt(We,Ee,ti,0,1,!1),We}function Je(he){Ye.push(he)}function lt(he,Ee,We){he.byteLength=Ee.byteLength,R.bufferData(he.type,Ee,We)}function Rt(he,Ee,We,Ze,Ne,dt){var ot;if(he.usage=We,Array.isArray(Ee)){if(he.dtype=Ze||vu,Ee.length>0){var Pt;if(Array.isArray(Ee[0])){ot=Pl(Ee);for(var Ie=1,Me=1;Me<ot.length;++Me)Ie*=ot[Me];he.dimension=Ie,Pt=Gn(Ee,ot,he.dtype),lt(he,Pt,We),dt?he.persistentData=Pt:be.freeType(Pt)}else if(typeof Ee[0]=="number"){he.dimension=Ne;var mt=be.allocType(he.dtype,Ee.length);Cs(mt,Ee),lt(he,mt,We),dt?he.persistentData=mt:be.freeType(mt)}else Jr(Ee[0])&&(he.dimension=Ee[0].length,he.dtype=Ze||ga(Ee[0])||vu,Pt=Gn(Ee,[Ee.length,Ee[0].length],he.dtype),lt(he,Pt,We),dt?he.persistentData=Pt:be.freeType(Pt))}}else if(Jr(Ee))he.dtype=Ze||ga(Ee),he.dimension=Ne,lt(he,Ee,We),dt&&(he.persistentData=new Uint8Array(new Uint8Array(Ee.buffer)));else if(ei(Ee)){ot=Ee.shape;var Se=Ee.stride,st=Ee.offset,Ke=0,Ft=0,Jt=0,yt=0;ot.length===1?(Ke=ot[0],Ft=1,Jt=Se[0],yt=0):ot.length===2&&(Ke=ot[0],Ft=ot[1],Jt=Se[0],yt=Se[1]),he.dtype=Ze||ga(Ee.data)||vu,he.dimension=Ft;var Bt=be.allocType(he.dtype,Ke*Ft);Ts(Bt,Ee.data,Ke,Ft,Jt,yt,st),lt(he,Bt,We),dt?he.persistentData=Bt:be.freeType(Bt)}else Ee instanceof ArrayBuffer&&(he.dtype=pu,he.dimension=Ne,lt(he,Ee,We),dt&&(he.persistentData=new Uint8Array(new Uint8Array(Ee))))}function bt(he){H.bufferCount--,we(he);var Ee=he.buffer;R.deleteBuffer(Ee),he.buffer=null,delete ge[he.id]}function it(he,Ee,We,Ze){H.bufferCount++;var Ne=new xe(Ee);ge[Ne.id]=Ne;function dt(Ie){var Me=Fl,mt=null,Se=0,st=0,Ke=1;return Array.isArray(Ie)||Jr(Ie)||ei(Ie)||Ie instanceof ArrayBuffer?mt=Ie:typeof Ie=="number"?Se=Ie|0:Ie&&("data"in Ie&&(mt=Ie.data),"usage"in Ie&&(Me=Wi[Ie.usage]),"type"in Ie&&(st=du[Ie.type]),"dimension"in Ie&&(Ke=Ie.dimension|0),"length"in Ie&&(Se=Ie.length|0)),Ne.bind(),mt?Rt(Ne,mt,Me,st,Ke,Ze):(Se&&R.bufferData(Ne.type,Se,Me),Ne.dtype=st||pu,Ne.usage=Me,Ne.dimension=Ke,Ne.byteLength=Se),Z.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),dt}function ot(Ie,Me){R.bufferSubData(Ne.type,Me,Ie)}function Pt(Ie,Me){var mt=(Me||0)|0,Se;if(Ne.bind(),Jr(Ie)||Ie instanceof ArrayBuffer)ot(Ie,mt);else if(Array.isArray(Ie)){if(Ie.length>0){if(typeof Ie[0]=="number"){var st=be.allocType(Ne.dtype,Ie.length);Cs(st,Ie),ot(st,mt),be.freeType(st)}else if(Array.isArray(Ie[0])||Jr(Ie[0])){Se=Pl(Ie);var Ke=Gn(Ie,Se,Ne.dtype);ot(Ke,mt),be.freeType(Ke)}}}else if(ei(Ie)){Se=Ie.shape;var Ft=Ie.stride,Jt=0,yt=0,Bt=0,ut=0;Se.length===1?(Jt=Se[0],yt=1,Bt=Ft[0],ut=0):Se.length===2&&(Jt=Se[0],yt=Se[1],Bt=Ft[0],ut=Ft[1]);var er=Array.isArray(Ie.data)?Ne.dtype:ga(Ie.data),ur=be.allocType(er,Jt*yt);Ts(ur,Ie.data,Jt,yt,Bt,ut,Ie.offset),ot(ur,mt),be.freeType(ur)}return dt}return We||dt(he),dt._reglType="buffer",dt._buffer=Ne,dt.subdata=Pt,Z.profile&&(dt.stats=Ne.stats),dt.destroy=function(){bt(Ne)},dt}function Ge(){$n(ge).forEach(function(he){he.buffer=R.createBuffer(),R.bindBuffer(he.type,he.buffer),R.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(ge).forEach(function(Ee){he+=ge[Ee].stats.size}),he}),{create:it,createStream:Xe,destroyStream:Je,clear:function(){$n(ge).forEach(bt),Ye.forEach(bt)},getBuffer:function(he){return he&&he._buffer instanceof xe?he._buffer:null},restore:Ge,_initBuffer:Rt}}var Os=0,tp=0,rp=1,ks=1,Ms=4,Rs=4,en={points:Os,point:tp,lines:rp,line:ks,triangles:Ms,triangle:Rs,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},np=0,Nl=1,Vi=4,to=5120,ya=5121,Ps=5122,xa=5123,Il=5124,Yi=5125,ro=34963,gr=35040,Fs=35044;function Ll(R,H,Z,we){var ke={},ge=0,xe={uint8:ya,uint16:xa};H.oes_element_index_uint&&(xe.uint32=Yi);function Ye(Ge){this.id=ge++,ke[this.id]=this,this.buffer=Ge,this.primType=Vi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function Je(Ge){var he=Xe.pop();return he||(he=new Ye(Z.create(null,ro,!0,!1)._buffer)),Rt(he,Ge,gr,-1,-1,0,0),he}function lt(Ge){Xe.push(Ge)}function Rt(Ge,he,Ee,We,Ze,Ne,dt){Ge.buffer.bind();var ot;if(he){var Pt=dt;!dt&&(!Jr(he)||ei(he)&&!Jr(he.data))&&(Pt=H.oes_element_index_uint?Yi:xa),Z._initBuffer(Ge.buffer,he,Ee,Pt,3)}else R.bufferData(ro,Ne,Ee),Ge.buffer.dtype=ot||ya,Ge.buffer.usage=Ee,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=dt,!dt){switch(Ge.buffer.dtype){case ya:case to:ot=ya;break;case xa:case Ps:ot=xa;break;case Yi:case Il:ot=Yi;break}Ge.buffer.dtype=ot}Ge.type=ot;var Ie=Ze;Ie<0&&(Ie=Ge.buffer.byteLength,ot===xa?Ie>>=1:ot===Yi&&(Ie>>=2)),Ge.vertCount=Ie;var Me=We;if(We<0){Me=Vi;var mt=Ge.buffer.dimension;mt===1&&(Me=np),mt===2&&(Me=Nl),mt===3&&(Me=Vi)}Ge.primType=Me}function bt(Ge){we.elementsCount--,delete ke[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Ee=Z.create(null,ro,!0),We=new Ye(Ee._buffer);we.elementsCount++;function Ze(Ne){if(!Ne)Ee(),We.primType=Vi,We.vertCount=0,We.type=ya;else if(typeof Ne=="number")Ee(Ne),We.primType=Vi,We.vertCount=Ne|0,We.type=ya;else{var dt=null,ot=Fs,Pt=-1,Ie=-1,Me=0,mt=0;Array.isArray(Ne)||Jr(Ne)||ei(Ne)?dt=Ne:("data"in Ne&&(dt=Ne.data),"usage"in Ne&&(ot=Wi[Ne.usage]),"primitive"in Ne&&(Pt=en[Ne.primitive]),"count"in Ne&&(Ie=Ne.count|0),"type"in Ne&&(mt=xe[Ne.type]),"length"in Ne?Me=Ne.length|0:(Me=Ie,mt===xa||mt===Ps?Me*=2:(mt===Yi||mt===Il)&&(Me*=4))),Rt(We,dt,ot,Pt,Ie,Me,mt)}return Ze}return Ze(Ge),Ze._reglType="elements",Ze._elements=We,Ze.subdata=function(Ne,dt){return Ee.subdata(Ne,dt),Ze},Ze.destroy=function(){bt(We)},Ze}return{create:it,createStream:Je,destroyStream:lt,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){$n(ke).forEach(bt)}}}var ip=new Float32Array(1),jg=new Uint32Array(ip.buffer),$l=5123;function mu(R){for(var H=be.allocType($l,R.length),Z=0;Z<R.length;++Z)if(isNaN(R[Z]))H[Z]=65535;else if(R[Z]===1/0)H[Z]=31744;else if(R[Z]===-1/0)H[Z]=64512;else{ip[0]=R[Z];var we=jg[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 Ye=-14-ge;H[Z]=ke+(xe+(1<<10)>>Ye)}else ge>15?H[Z]=ke+31744:H[Z]=ke+(ge+15<<10)+xe}return H}function ri(R){return Array.isArray(R)||Jr(R)}var Dl=34467,ni=3553,no=34067,io=34069,Xi=6408,Bl=6406,ki=6407,Mi=6409,gu=6410,ap=32854,ao=32855,zl=36194,Ns=32819,op=32820,oo=33635,_a=34042,Qi=6402,yu=34041,xu=35904,wa=35906,ba=36193,Is=33776,Ul=33777,_u=33778,Ls=33779,up=35986,$s=35987,lp=34798,Ds=35840,fp=35841,Bs=35842,sp=35843,Sa=36196,ii=5121,zs=5123,Us=5125,wu=5126,cp=10242,bu=10243,Gg=10497,uo=33071,jl=33648,js=10240,Gl=10241,Ea=9728,Su=9729,Hl=9984,ql=9985,hp=9986,lo=9987,Hg=33170,Wl=4352,qg=4353,dp=4354,Eu=34046,Wg=3317,Gs=37440,pp=37441,Ri=37443,Hs=37444,Aa=33984,qs=[Hl,hp,ql,lo],mi=[0,Mi,gu,ki,Xi],kn={};kn[Mi]=kn[Bl]=kn[Qi]=1,kn[yu]=kn[gu]=2,kn[ki]=kn[xu]=3,kn[Xi]=kn[wa]=4;function Ca(R){return"[object "+R+"]"}var vp=Ca("HTMLCanvasElement"),mp=Ca("OffscreenCanvas"),gp=Ca("CanvasRenderingContext2D"),Ws=Ca("ImageBitmap"),Vs=Ca("HTMLImageElement"),yp=Ca("HTMLVideoElement"),Vg=Object.keys(cu).concat([vp,mp,gp,Ws,Vs,yp]),fo=[];fo[ii]=1,fo[wu]=4,fo[ba]=2,fo[zs]=2,fo[Us]=4;var Kr=[];Kr[ap]=2,Kr[ao]=2,Kr[zl]=2,Kr[yu]=4,Kr[Is]=.5,Kr[Ul]=.5,Kr[_u]=1,Kr[Ls]=1,Kr[up]=.5,Kr[$s]=1,Kr[lp]=1,Kr[Ds]=.5,Kr[fp]=.25,Kr[Bs]=.5,Kr[sp]=.25,Kr[Sa]=.5;function xp(R){return Array.isArray(R)&&(R.length===0||typeof R[0]=="number")}function _p(R){if(!Array.isArray(R))return!1;var H=R.length;return!(H===0||!ri(R[0]))}function Ta(R){return Object.prototype.toString.call(R)}function wp(R){return Ta(R)===vp}function bp(R){return Ta(R)===mp}function Yg(R){return Ta(R)===gp}function Xg(R){return Ta(R)===Ws}function Qg(R){return Ta(R)===Vs}function Zg(R){return Ta(R)===yp}function Vl(R){if(!R)return!1;var H=Ta(R);return Vg.indexOf(H)>=0?!0:xp(R)||_p(R)||ei(R)}function Ys(R){return cu[Object.prototype.toString.call(R)]|0}function Sp(R,H){var Z=H.length;switch(R.type){case ii:case zs:case Us:case wu:var we=be.allocType(R.type,Z);we.set(H),R.data=we;break;case ba:R.data=mu(H);break}}function Xs(R,H){return be.allocType(R.type===ba?wu:R.type,H)}function Ep(R,H){R.type===ba?(R.data=mu(H),be.freeType(H)):R.data=H}function Kg(R,H,Z,we,ke,ge){for(var xe=R.width,Ye=R.height,Xe=R.channels,Je=xe*Ye*Xe,lt=Xs(R,Je),Rt=0,bt=0;bt<Ye;++bt)for(var it=0;it<xe;++it)for(var Ge=0;Ge<Xe;++Ge)lt[Rt++]=H[Z*it+we*bt+ke*Ge+ge];Ep(R,lt)}function Pi(R,H,Z,we,ke,ge){var xe;if(typeof Kr[R]<"u"?xe=Kr[R]:xe=kn[R]*fo[H],ge&&(xe*=6),ke){for(var Ye=0,Xe=Z;Xe>=1;)Ye+=xe*Xe*Xe,Xe/=2;return Ye}else return xe*Z*we}function Jg(R,H,Z,we,ke,ge,xe){var Ye={"don't care":Wl,"dont care":Wl,nice:dp,fast:qg},Xe={repeat:Gg,clamp:uo,mirror:jl},Je={nearest:Ea,linear:Su},lt=r({mipmap:lo,"nearest mipmap nearest":Hl,"linear mipmap nearest":ql,"nearest mipmap linear":hp,"linear mipmap linear":lo},Je),Rt={none:0,browser:Hs},bt={uint8:ii,rgba4:Ns,rgb565:oo,"rgb5 a1":op},it={alpha:Bl,luminance:Mi,"luminance alpha":gu,rgb:ki,rgba:Xi,rgba4:ap,"rgb5 a1":ao,rgb565:zl},Ge={};H.ext_srgb&&(it.srgb=xu,it.srgba=wa),H.oes_texture_float&&(bt.float32=bt.float=wu),H.oes_texture_half_float&&(bt.float16=bt["half float"]=ba),H.webgl_depth_texture&&(r(it,{depth:Qi,"depth stencil":yu}),r(bt,{uint16:zs,uint32:Us,"depth stencil":_a})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":Is,"rgba s3tc dxt1":Ul,"rgba s3tc dxt3":_u,"rgba s3tc dxt5":Ls}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":up,"rgba atc explicit alpha":$s,"rgba atc interpolated alpha":lp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":Ds,"rgb pvrtc 2bppv1":fp,"rgba pvrtc 4bppv1":Bs,"rgba pvrtc 2bppv1":sp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Sa);var he=Array.prototype.slice.call(R.getParameter(Dl));Object.keys(Ge).forEach(function(W){var ye=Ge[W];he.indexOf(ye)>=0&&(it[W]=ye)});var Ee=Object.keys(it);Z.textureFormats=Ee;var We=[];Object.keys(it).forEach(function(W){var ye=it[W];We[ye]=W});var Ze=[];Object.keys(bt).forEach(function(W){var ye=bt[W];Ze[ye]=W});var Ne=[];Object.keys(Je).forEach(function(W){var ye=Je[W];Ne[ye]=W});var dt=[];Object.keys(lt).forEach(function(W){var ye=lt[W];dt[ye]=W});var ot=[];Object.keys(Xe).forEach(function(W){var ye=Xe[W];ot[ye]=W});var Pt=Ee.reduce(function(W,ye){var me=it[ye];return me===Mi||me===Bl||me===Mi||me===gu||me===Qi||me===yu||H.ext_srgb&&(me===xu||me===wa)?W[me]=me:me===ao||ye.indexOf("rgba")>=0?W[me]=Xi:W[me]=ki,W},{});function Ie(){this.internalformat=Xi,this.format=Xi,this.type=ii,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Hs,this.width=0,this.height=0,this.channels=0}function Me(W,ye){W.internalformat=ye.internalformat,W.format=ye.format,W.type=ye.type,W.compressed=ye.compressed,W.premultiplyAlpha=ye.premultiplyAlpha,W.flipY=ye.flipY,W.unpackAlignment=ye.unpackAlignment,W.colorSpace=ye.colorSpace,W.width=ye.width,W.height=ye.height,W.channels=ye.channels}function mt(W,ye){if(!(typeof ye!="object"||!ye)){if("premultiplyAlpha"in ye&&(W.premultiplyAlpha=ye.premultiplyAlpha),"flipY"in ye&&(W.flipY=ye.flipY),"alignment"in ye&&(W.unpackAlignment=ye.alignment),"colorSpace"in ye&&(W.colorSpace=Rt[ye.colorSpace]),"type"in ye){var me=ye.type;W.type=bt[me]}var At=W.width,rr=W.height,Rr=W.channels,Ct=!1;"shape"in ye?(At=ye.shape[0],rr=ye.shape[1],ye.shape.length===3&&(Rr=ye.shape[2],Ct=!0)):("radius"in ye&&(At=rr=ye.radius),"width"in ye&&(At=ye.width),"height"in ye&&(rr=ye.height),"channels"in ye&&(Rr=ye.channels,Ct=!0)),W.width=At|0,W.height=rr|0,W.channels=Rr|0;var U=!1;if("format"in ye){var q=ye.format,J=W.internalformat=it[q];W.format=Pt[J],q in bt&&("type"in ye||(W.type=bt[q])),q in Ge&&(W.compressed=!0),U=!0}!Ct&&U?W.channels=kn[W.format]:Ct&&!U&&W.channels!==mi[W.format]&&(W.format=W.internalformat=mi[W.channels])}}function Se(W){R.pixelStorei(Gs,W.flipY),R.pixelStorei(pp,W.premultiplyAlpha),R.pixelStorei(Ri,W.colorSpace),R.pixelStorei(Wg,W.unpackAlignment)}function st(){Ie.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Ke(W,ye){var me=null;if(Vl(ye)?me=ye:ye&&(mt(W,ye),"x"in ye&&(W.xOffset=ye.x|0),"y"in ye&&(W.yOffset=ye.y|0),Vl(ye.data)&&(me=ye.data)),ye.copy){var At=ke.viewportWidth,rr=ke.viewportHeight;W.width=W.width||At-W.xOffset,W.height=W.height||rr-W.yOffset,W.needsCopy=!0}else if(!me)W.width=W.width||1,W.height=W.height||1,W.channels=W.channels||4;else if(Jr(me))W.channels=W.channels||4,W.data=me,!("type"in ye)&&W.type===ii&&(W.type=Ys(me));else if(xp(me))W.channels=W.channels||4,Sp(W,me),W.alignment=1,W.needsFree=!0;else if(ei(me)){var Rr=me.data;!Array.isArray(Rr)&&W.type===ii&&(W.type=Ys(Rr));var Ct=me.shape,U=me.stride,q,J,_e,pe,de,ce;Ct.length===3?(_e=Ct[2],ce=U[2]):(_e=1,ce=1),q=Ct[0],J=Ct[1],pe=U[0],de=U[1],W.alignment=1,W.width=q,W.height=J,W.channels=_e,W.format=W.internalformat=mi[_e],W.needsFree=!0,Kg(W,Rr,pe,de,ce,me.offset)}else if(wp(me)||bp(me)||Yg(me))wp(me)||bp(me)?W.element=me:W.element=me.canvas,W.width=W.element.width,W.height=W.element.height,W.channels=4;else if(Xg(me))W.element=me,W.width=me.width,W.height=me.height,W.channels=4;else if(Qg(me))W.element=me,W.width=me.naturalWidth,W.height=me.naturalHeight,W.channels=4;else if(Zg(me))W.element=me,W.width=me.videoWidth,W.height=me.videoHeight,W.channels=4;else if(_p(me)){var fe=W.width||me[0].length,Q=W.height||me.length,te=W.channels;ri(me[0][0])?te=te||me[0][0].length:te=te||1;for(var X=ir.shape(me),ve=1,Ce=0;Ce<X.length;++Ce)ve*=X[Ce];var Le=Xs(W,ve);ir.flatten(me,X,"",Le),Ep(W,Le),W.alignment=1,W.width=fe,W.height=Q,W.channels=te,W.format=W.internalformat=mi[te],W.needsFree=!0}W.type===wu||W.type}function Ft(W,ye,me){var At=W.element,rr=W.data,Rr=W.internalformat,Ct=W.format,U=W.type,q=W.width,J=W.height;Se(W),At?R.texImage2D(ye,me,Ct,Ct,U,At):W.compressed?R.compressedTexImage2D(ye,me,Rr,q,J,0,rr):W.needsCopy?(we(),R.copyTexImage2D(ye,me,Ct,W.xOffset,W.yOffset,q,J,0)):R.texImage2D(ye,me,Ct,q,J,0,Ct,U,rr||null)}function Jt(W,ye,me,At,rr){var Rr=W.element,Ct=W.data,U=W.internalformat,q=W.format,J=W.type,_e=W.width,pe=W.height;Se(W),Rr?R.texSubImage2D(ye,rr,me,At,q,J,Rr):W.compressed?R.compressedTexSubImage2D(ye,rr,me,At,U,_e,pe,Ct):W.needsCopy?(we(),R.copyTexSubImage2D(ye,rr,me,At,W.xOffset,W.yOffset,_e,pe)):R.texSubImage2D(ye,rr,me,At,_e,pe,q,J,Ct)}var yt=[];function Bt(){return yt.pop()||new st}function ut(W){W.needsFree&&be.freeType(W.data),st.call(W),yt.push(W)}function er(){Ie.call(this),this.genMipmaps=!1,this.mipmapHint=Wl,this.mipmask=0,this.images=Array(16)}function ur(W,ye,me){var At=W.images[0]=Bt();W.mipmask=1,At.width=W.width=ye,At.height=W.height=me,At.channels=W.channels=4}function hr(W,ye){var me=null;if(Vl(ye))me=W.images[0]=Bt(),Me(me,W),Ke(me,ye),W.mipmask=1;else if(mt(W,ye),Array.isArray(ye.mipmap))for(var At=ye.mipmap,rr=0;rr<At.length;++rr)me=W.images[rr]=Bt(),Me(me,W),me.width>>=rr,me.height>>=rr,Ke(me,At[rr]),W.mipmask|=1<<rr;else me=W.images[0]=Bt(),Me(me,W),Ke(me,ye),W.mipmask=1;Me(W,W.images[0]),W.compressed&&(W.internalformat===Is||W.internalformat===Ul||W.internalformat===_u||W.internalformat)}function nn(W,ye){for(var me=W.images,At=0;At<me.length;++At){if(!me[At])return;Ft(me[At],ye,At)}}var lr=[];function qn(){var W=lr.pop()||new er;Ie.call(W),W.mipmask=0;for(var ye=0;ye<16;++ye)W.images[ye]=null;return W}function Ar(W){for(var ye=W.images,me=0;me<ye.length;++me)ye[me]&&ut(ye[me]),ye[me]=null;lr.push(W)}function wn(){this.minFilter=Ea,this.magFilter=Ea,this.wrapS=uo,this.wrapT=uo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Wl}function Wn(W,ye){if("min"in ye){var me=ye.min;W.minFilter=lt[me],qs.indexOf(W.minFilter)>=0&&!("faces"in ye)&&(W.genMipmaps=!0)}if("mag"in ye){var At=ye.mag;W.magFilter=Je[At]}var rr=W.wrapS,Rr=W.wrapT;if("wrap"in ye){var Ct=ye.wrap;typeof Ct=="string"?rr=Rr=Xe[Ct]:Array.isArray(Ct)&&(rr=Xe[Ct[0]],Rr=Xe[Ct[1]])}else{if("wrapS"in ye){var U=ye.wrapS;rr=Xe[U]}if("wrapT"in ye){var q=ye.wrapT;Rr=Xe[q]}}if(W.wrapS=rr,W.wrapT=Rr,"anisotropic"in ye&&(ye.anisotropic,W.anisotropic=ye.anisotropic),"mipmap"in ye){var J=!1;switch(typeof ye.mipmap){case"string":W.mipmapHint=Ye[ye.mipmap],W.genMipmaps=!0,J=!0;break;case"boolean":J=W.genMipmaps=ye.mipmap;break;case"object":W.genMipmaps=!1,J=!0;break}J&&!("min"in ye)&&(W.minFilter=Hl)}}function Rn(W,ye){R.texParameteri(ye,Gl,W.minFilter),R.texParameteri(ye,js,W.magFilter),R.texParameteri(ye,cp,W.wrapS),R.texParameteri(ye,bu,W.wrapT),H.ext_texture_filter_anisotropic&&R.texParameteri(ye,Eu,W.anisotropic),W.genMipmaps&&(R.hint(Hg,W.mipmapHint),R.generateMipmap(ye))}var Li=0,an={},on=Z.maxTextureUnits,Xt=Array(on).map(function(){return null});function li(W){Ie.call(this),this.mipmask=0,this.internalformat=Xi,this.id=Li++,this.refCount=1,this.target=W,this.texture=R.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new wn,xe.profile&&(this.stats={size:0})}function wr(W){R.activeTexture(Aa),R.bindTexture(W.target,W.texture)}function un(){var W=Xt[0];W?R.bindTexture(W.target,W.texture):R.bindTexture(ni,null)}function Dn(W){var ye=W.texture,me=W.unit,At=W.target;me>=0&&(R.activeTexture(Aa+me),R.bindTexture(At,null),Xt[me]=null),R.deleteTexture(ye),W.texture=null,W.params=null,W.pixels=null,W.refCount=0,delete an[W.id],ge.textureCount--}r(li.prototype,{bind:function(){var W=this;W.bindCount+=1;var ye=W.unit;if(ye<0){for(var me=0;me<on;++me){var At=Xt[me];if(At){if(At.bindCount>0)continue;At.unit=-1}Xt[me]=W,ye=me;break}xe.profile&&ge.maxTextureUnits<ye+1&&(ge.maxTextureUnits=ye+1),W.unit=ye,R.activeTexture(Aa+ye),R.bindTexture(W.target,W.texture)}return ye},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Dn(this)}});function Bn(W,ye){var me=new li(ni);an[me.id]=me,ge.textureCount++;function At(Ct,U){var q=me.texInfo;wn.call(q);var J=qn();return typeof Ct=="number"?typeof U=="number"?ur(J,Ct|0,U|0):ur(J,Ct|0,Ct|0):Ct?(Wn(q,Ct),hr(J,Ct)):ur(J,1,1),q.genMipmaps&&(J.mipmask=(J.width<<1)-1),me.mipmask=J.mipmask,Me(me,J),me.internalformat=J.internalformat,At.width=J.width,At.height=J.height,wr(me),nn(J,ni),Rn(q,ni),un(),Ar(J),xe.profile&&(me.stats.size=Pi(me.internalformat,me.type,J.width,J.height,q.genMipmaps,!1)),At.format=We[me.internalformat],At.type=Ze[me.type],At.mag=Ne[q.magFilter],At.min=dt[q.minFilter],At.wrapS=ot[q.wrapS],At.wrapT=ot[q.wrapT],At}function rr(Ct,U,q,J){var _e=U|0,pe=q|0,de=J|0,ce=Bt();return Me(ce,me),ce.width=0,ce.height=0,Ke(ce,Ct),ce.width=ce.width||(me.width>>de)-_e,ce.height=ce.height||(me.height>>de)-pe,wr(me),Jt(ce,ni,_e,pe,de),un(),ut(ce),At}function Rr(Ct,U){var q=Ct|0,J=U|0||q;if(q===me.width&&J===me.height)return At;At.width=me.width=q,At.height=me.height=J,wr(me);for(var _e=0;me.mipmask>>_e;++_e){var pe=q>>_e,de=J>>_e;if(!pe||!de)break;R.texImage2D(ni,_e,me.format,pe,de,0,me.format,me.type,null)}return un(),xe.profile&&(me.stats.size=Pi(me.internalformat,me.type,q,J,!1,!1)),At}return At(W,ye),At.subimage=rr,At.resize=Rr,At._reglType="texture2d",At._texture=me,xe.profile&&(At.stats=me.stats),At.destroy=function(){me.decRef()},At}function Zt(W,ye,me,At,rr,Rr){var Ct=new li(no);an[Ct.id]=Ct,ge.cubeCount++;var U=new Array(6);function q(pe,de,ce,fe,Q,te){var X,ve=Ct.texInfo;for(wn.call(ve),X=0;X<6;++X)U[X]=qn();if(typeof pe=="number"||!pe){var Ce=pe|0||1;for(X=0;X<6;++X)ur(U[X],Ce,Ce)}else if(typeof pe=="object")if(de)hr(U[0],pe),hr(U[1],de),hr(U[2],ce),hr(U[3],fe),hr(U[4],Q),hr(U[5],te);else if(Wn(ve,pe),mt(Ct,pe),"faces"in pe){var Le=pe.faces;for(X=0;X<6;++X)Me(U[X],Ct),hr(U[X],Le[X])}else for(X=0;X<6;++X)hr(U[X],pe);for(Me(Ct,U[0]),ve.genMipmaps?Ct.mipmask=(U[0].width<<1)-1:Ct.mipmask=U[0].mipmask,Ct.internalformat=U[0].internalformat,q.width=U[0].width,q.height=U[0].height,wr(Ct),X=0;X<6;++X)nn(U[X],io+X);for(Rn(ve,no),un(),xe.profile&&(Ct.stats.size=Pi(Ct.internalformat,Ct.type,q.width,q.height,ve.genMipmaps,!0)),q.format=We[Ct.internalformat],q.type=Ze[Ct.type],q.mag=Ne[ve.magFilter],q.min=dt[ve.minFilter],q.wrapS=ot[ve.wrapS],q.wrapT=ot[ve.wrapT],X=0;X<6;++X)Ar(U[X]);return q}function J(pe,de,ce,fe,Q){var te=ce|0,X=fe|0,ve=Q|0,Ce=Bt();return Me(Ce,Ct),Ce.width=0,Ce.height=0,Ke(Ce,de),Ce.width=Ce.width||(Ct.width>>ve)-te,Ce.height=Ce.height||(Ct.height>>ve)-X,wr(Ct),Jt(Ce,io+pe,te,X,ve),un(),ut(Ce),q}function _e(pe){var de=pe|0;if(de!==Ct.width){q.width=Ct.width=de,q.height=Ct.height=de,wr(Ct);for(var ce=0;ce<6;++ce)for(var fe=0;Ct.mipmask>>fe;++fe)R.texImage2D(io+ce,fe,Ct.format,de>>fe,de>>fe,0,Ct.format,Ct.type,null);return un(),xe.profile&&(Ct.stats.size=Pi(Ct.internalformat,Ct.type,q.width,q.height,!1,!0)),q}}return q(W,ye,me,At,rr,Rr),q.subimage=J,q.resize=_e,q._reglType="textureCube",q._texture=Ct,xe.profile&&(q.stats=Ct.stats),q.destroy=function(){Ct.decRef()},q}function cr(){for(var W=0;W<on;++W)R.activeTexture(Aa+W),R.bindTexture(ni,null),Xt[W]=null;$n(an).forEach(Dn),ge.cubeCount=0,ge.textureCount=0}xe.profile&&(ge.getTotalTextureSize=function(){var W=0;return Object.keys(an).forEach(function(ye){W+=an[ye].stats.size}),W});function Tr(){for(var W=0;W<on;++W){var ye=Xt[W];ye&&(ye.bindCount=0,ye.unit=-1,Xt[W]=null)}$n(an).forEach(function(me){me.texture=R.createTexture(),R.bindTexture(me.target,me.texture);for(var At=0;At<32;++At)if(me.mipmask&1<<At)if(me.target===ni)R.texImage2D(ni,At,me.internalformat,me.width>>At,me.height>>At,0,me.internalformat,me.type,null);else for(var rr=0;rr<6;++rr)R.texImage2D(io+rr,At,me.internalformat,me.width>>At,me.height>>At,0,me.internalformat,me.type,null);Rn(me.texInfo,me.target)})}function ln(){for(var W=0;W<on;++W){var ye=Xt[W];ye&&(ye.bindCount=0,ye.unit=-1,Xt[W]=null),R.activeTexture(Aa+W),R.bindTexture(ni,null),R.bindTexture(no,null)}}return{create2D:Bn,createCube:Zt,clear:cr,getTexture:function(W){return null},restore:Tr,refresh:ln}}var Zi=36161,Yl=32854,Ap=32855,Qs=36194,Cp=33189,Tp=36168,Op=34041,Zs=35907,kp=34836,Mp=34842,Rp=34843,ai=[];ai[Yl]=2,ai[Ap]=2,ai[Qs]=2,ai[Cp]=2,ai[Tp]=1,ai[Op]=4,ai[Zs]=4,ai[kp]=16,ai[Mp]=8,ai[Rp]=6;function Pp(R,H,Z){return ai[R]*H*Z}var Fp=function(R,H,Z,we,ke){var ge={rgba4:Yl,rgb565:Qs,"rgb5 a1":Ap,depth:Cp,stencil:Tp,"depth stencil":Op};H.ext_srgb&&(ge.srgba=Zs),H.ext_color_buffer_half_float&&(ge.rgba16f=Mp,ge.rgb16f=Rp),H.webgl_color_buffer_float&&(ge.rgba32f=kp);var xe=[];Object.keys(ge).forEach(function(it){var Ge=ge[it];xe[Ge]=it});var Ye=0,Xe={};function Je(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=Yl,this.width=0,this.height=0,ke.profile&&(this.stats={size:0})}Je.prototype.decRef=function(){--this.refCount<=0&&lt(this)};function lt(it){var Ge=it.renderbuffer;R.bindRenderbuffer(Zi,null),R.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],we.renderbufferCount--}function Rt(it,Ge){var he=new Je(R.createRenderbuffer());Xe[he.id]=he,we.renderbufferCount++;function Ee(Ze,Ne){var dt=0,ot=0,Pt=Yl;if(typeof Ze=="object"&&Ze){var Ie=Ze;if("shape"in Ie){var Me=Ie.shape;dt=Me[0]|0,ot=Me[1]|0}else"radius"in Ie&&(dt=ot=Ie.radius|0),"width"in Ie&&(dt=Ie.width|0),"height"in Ie&&(ot=Ie.height|0);"format"in Ie&&(Pt=ge[Ie.format])}else typeof Ze=="number"?(dt=Ze|0,typeof Ne=="number"?ot=Ne|0:ot=dt):Ze||(dt=ot=1);if(!(dt===he.width&&ot===he.height&&Pt===he.format))return Ee.width=he.width=dt,Ee.height=he.height=ot,he.format=Pt,R.bindRenderbuffer(Zi,he.renderbuffer),R.renderbufferStorage(Zi,Pt,dt,ot),ke.profile&&(he.stats.size=Pp(he.format,he.width,he.height)),Ee.format=xe[he.format],Ee}function We(Ze,Ne){var dt=Ze|0,ot=Ne|0||dt;return dt===he.width&&ot===he.height||(Ee.width=he.width=dt,Ee.height=he.height=ot,R.bindRenderbuffer(Zi,he.renderbuffer),R.renderbufferStorage(Zi,he.format,dt,ot),ke.profile&&(he.stats.size=Pp(he.format,he.width,he.height))),Ee}return Ee(it,Ge),Ee.resize=We,Ee._reglType="renderbuffer",Ee._renderbuffer=he,ke.profile&&(Ee.stats=he.stats),Ee.destroy=function(){he.decRef()},Ee}ke.profile&&(we.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function bt(){$n(Xe).forEach(function(it){it.renderbuffer=R.createRenderbuffer(),R.bindRenderbuffer(Zi,it.renderbuffer),R.renderbufferStorage(Zi,it.format,it.width,it.height)}),R.bindRenderbuffer(Zi,null)}return{create:Rt,clear:function(){$n(Xe).forEach(lt)},restore:bt}},Fi=36160,Ks=36161,so=3553,co=34069,ho=36064,oi=36096,Np=36128,Ip=33306,ey=36053,ty=36193,Lp=5121,ry=5126,ny=6407,iy=6408,Js=[];Js[iy]=4,Js[ny]=3;var Xl=[];Xl[Lp]=1,Xl[ry]=4,Xl[ty]=2;function ec(R,H,Z,we,ke,ge){var xe={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function Je(Se,st,Ke){this.target=Se,this.texture=st,this.renderbuffer=Ke;var Ft=0,Jt=0;st?(Ft=st.width,Jt=st.height):Ke&&(Ft=Ke.width,Jt=Ke.height),this.width=Ft,this.height=Jt}function lt(Se){Se&&(Se.texture&&Se.texture._texture.decRef(),Se.renderbuffer&&Se.renderbuffer._renderbuffer.decRef())}function Rt(Se,st,Ke){if(Se)if(Se.texture){var Ft=Se.texture._texture;Math.max(1,Ft.width),Math.max(1,Ft.height),Ft.refCount+=1}else{var Jt=Se.renderbuffer._renderbuffer;Jt.refCount+=1}}function bt(Se,st){st&&(st.texture?R.framebufferTexture2D(Fi,Se,st.target,st.texture._texture.texture,0):R.framebufferRenderbuffer(Fi,Se,Ks,st.renderbuffer._renderbuffer.renderbuffer))}function it(Se){var st=so,Ke=null,Ft=null,Jt=Se;typeof Se=="object"&&(Jt=Se.data,"target"in Se&&(st=Se.target|0));var yt=Jt._reglType;return yt==="texture2d"||yt==="textureCube"?Ke=Jt:yt==="renderbuffer"&&(Ft=Jt,st=Ks),new Je(st,Ke,Ft)}function Ge(Se,st,Ke,Ft,Jt){if(Ke){var yt=we.create2D({width:Se,height:st,format:Ft,type:Jt});return yt._texture.refCount=0,new Je(so,yt,null)}else{var Bt=ke.create({width:Se,height:st,format:Ft});return Bt._renderbuffer.refCount=0,new Je(Ks,null,Bt)}}function he(Se){return Se&&(Se.texture||Se.renderbuffer)}function Ee(Se,st,Ke){Se&&(Se.texture?Se.texture.resize(st,Ke):Se.renderbuffer&&Se.renderbuffer.resize(st,Ke),Se.width=st,Se.height=Ke)}var We=0,Ze={};function Ne(){this.id=We++,Ze[this.id]=this,this.framebuffer=R.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function dt(Se){Se.colorAttachments.forEach(lt),lt(Se.depthAttachment),lt(Se.stencilAttachment),lt(Se.depthStencilAttachment)}function ot(Se){var st=Se.framebuffer;R.deleteFramebuffer(st),Se.framebuffer=null,ge.framebufferCount--,delete Ze[Se.id]}function Pt(Se){var st;R.bindFramebuffer(Fi,Se.framebuffer);var Ke=Se.colorAttachments;for(st=0;st<Ke.length;++st)bt(ho+st,Ke[st]);for(st=Ke.length;st<Z.maxColorAttachments;++st)R.framebufferTexture2D(Fi,ho+st,so,null,0);R.framebufferTexture2D(Fi,Ip,so,null,0),R.framebufferTexture2D(Fi,oi,so,null,0),R.framebufferTexture2D(Fi,Np,so,null,0),bt(oi,Se.depthAttachment),bt(Np,Se.stencilAttachment),bt(Ip,Se.depthStencilAttachment);var Ft=R.checkFramebufferStatus(Fi);R.isContextLost(),R.bindFramebuffer(Fi,xe.next?xe.next.framebuffer:null),xe.cur=xe.next,R.getError()}function Ie(Se,st){var Ke=new Ne;ge.framebufferCount++;function Ft(yt,Bt){var ut,er=0,ur=0,hr=!0,nn=!0,lr=null,qn=!0,Ar="rgba",wn="uint8",Wn=1,Rn=null,Li=null,an=null,on=!1;if(typeof yt=="number")er=yt|0,ur=Bt|0||er;else if(!yt)er=ur=1;else{var Xt=yt;if("shape"in Xt){var li=Xt.shape;er=li[0],ur=li[1]}else"radius"in Xt&&(er=ur=Xt.radius),"width"in Xt&&(er=Xt.width),"height"in Xt&&(ur=Xt.height);("color"in Xt||"colors"in Xt)&&(lr=Xt.color||Xt.colors),lr||("colorCount"in Xt&&(Wn=Xt.colorCount|0),"colorTexture"in Xt&&(qn=!!Xt.colorTexture,Ar="rgba4"),"colorType"in Xt&&(wn=Xt.colorType,qn||(wn==="half float"||wn==="float16"?Ar="rgba16f":(wn==="float"||wn==="float32")&&(Ar="rgba32f"))),"colorFormat"in Xt&&(Ar=Xt.colorFormat,Ye.indexOf(Ar)>=0?qn=!0:Xe.indexOf(Ar)>=0&&(qn=!1))),("depthTexture"in Xt||"depthStencilTexture"in Xt)&&(on=!!(Xt.depthTexture||Xt.depthStencilTexture)),"depth"in Xt&&(typeof Xt.depth=="boolean"?hr=Xt.depth:(Rn=Xt.depth,nn=!1)),"stencil"in Xt&&(typeof Xt.stencil=="boolean"?nn=Xt.stencil:(Li=Xt.stencil,hr=!1)),"depthStencil"in Xt&&(typeof Xt.depthStencil=="boolean"?hr=nn=Xt.depthStencil:(an=Xt.depthStencil,hr=!1,nn=!1))}var wr=null,un=null,Dn=null,Bn=null;if(Array.isArray(lr))wr=lr.map(it);else if(lr)wr=[it(lr)];else for(wr=new Array(Wn),ut=0;ut<Wn;++ut)wr[ut]=Ge(er,ur,qn,Ar,wn);for(er=er||wr[0].width,ur=ur||wr[0].height,Rn?un=it(Rn):hr&&!nn&&(un=Ge(er,ur,on,"depth","uint32")),Li?Dn=it(Li):nn&&!hr&&(Dn=Ge(er,ur,!1,"stencil","uint8")),an?Bn=it(an):!Rn&&!Li&&nn&&hr&&(Bn=Ge(er,ur,on,"depth stencil","depth stencil")),ut=0;ut<wr.length;++ut)Rt(wr[ut]),wr[ut]&&wr[ut].texture&&Js[wr[ut].texture._texture.format]*Xl[wr[ut].texture._texture.type];return Rt(un),Rt(Dn),Rt(Bn),dt(Ke),Ke.width=er,Ke.height=ur,Ke.colorAttachments=wr,Ke.depthAttachment=un,Ke.stencilAttachment=Dn,Ke.depthStencilAttachment=Bn,Ft.color=wr.map(he),Ft.depth=he(un),Ft.stencil=he(Dn),Ft.depthStencil=he(Bn),Ft.width=Ke.width,Ft.height=Ke.height,Pt(Ke),Ft}function Jt(yt,Bt){var ut=Math.max(yt|0,1),er=Math.max(Bt|0||ut,1);if(ut===Ke.width&&er===Ke.height)return Ft;for(var ur=Ke.colorAttachments,hr=0;hr<ur.length;++hr)Ee(ur[hr],ut,er);return Ee(Ke.depthAttachment,ut,er),Ee(Ke.stencilAttachment,ut,er),Ee(Ke.depthStencilAttachment,ut,er),Ke.width=Ft.width=ut,Ke.height=Ft.height=er,Pt(Ke),Ft}return Ft(Se,st),r(Ft,{resize:Jt,_reglType:"framebuffer",_framebuffer:Ke,destroy:function(){ot(Ke),dt(Ke)},use:function(yt){xe.setFBO({framebuffer:Ft},yt)}})}function Me(Se){var st=Array(6);function Ke(Jt){var yt,Bt={color:null},ut=0,er=null,ur="rgba",hr="uint8",nn=1;if(typeof Jt=="number")ut=Jt|0;else if(!Jt)ut=1;else{var lr=Jt;if("shape"in lr){var qn=lr.shape;ut=qn[0]}else"radius"in lr&&(ut=lr.radius|0),"width"in lr?ut=lr.width|0:"height"in lr&&(ut=lr.height|0);("color"in lr||"colors"in lr)&&(er=lr.color||lr.colors),er||("colorCount"in lr&&(nn=lr.colorCount|0),"colorType"in lr&&(hr=lr.colorType),"colorFormat"in lr&&(ur=lr.colorFormat)),"depth"in lr&&(Bt.depth=lr.depth),"stencil"in lr&&(Bt.stencil=lr.stencil),"depthStencil"in lr&&(Bt.depthStencil=lr.depthStencil)}var Ar;if(er)if(Array.isArray(er))for(Ar=[],yt=0;yt<er.length;++yt)Ar[yt]=er[yt];else Ar=[er];else{Ar=Array(nn);var wn={radius:ut,format:ur,type:hr};for(yt=0;yt<nn;++yt)Ar[yt]=we.createCube(wn)}for(Bt.color=Array(Ar.length),yt=0;yt<Ar.length;++yt){var Wn=Ar[yt];ut=ut||Wn.width,Bt.color[yt]={target:co,data:Ar[yt]}}for(yt=0;yt<6;++yt){for(var Rn=0;Rn<Ar.length;++Rn)Bt.color[Rn].target=co+yt;yt>0&&(Bt.depth=st[0].depth,Bt.stencil=st[0].stencil,Bt.depthStencil=st[0].depthStencil),st[yt]?st[yt](Bt):st[yt]=Ie(Bt)}return r(Ke,{width:ut,height:ut,color:Ar})}function Ft(Jt){var yt,Bt=Jt|0;if(Bt===Ke.width)return Ke;var ut=Ke.color;for(yt=0;yt<ut.length;++yt)ut[yt].resize(Bt);for(yt=0;yt<6;++yt)st[yt].resize(Bt);return Ke.width=Ke.height=Bt,Ke}return Ke(Se),r(Ke,{faces:st,resize:Ft,_reglType:"framebufferCube",destroy:function(){st.forEach(function(Jt){Jt.destroy()})}})}function mt(){xe.cur=null,xe.next=null,xe.dirty=!0,$n(Ze).forEach(function(Se){Se.framebuffer=R.createFramebuffer(),Pt(Se)})}return r(xe,{getFramebuffer:function(Se){if(typeof Se=="function"&&Se._reglType==="framebuffer"){var st=Se._framebuffer;if(st instanceof Ne)return st}return null},create:Ie,createCube:Me,clear:function(){$n(Ze).forEach(ot)},restore:mt})}var tc=5126,$p=34962,Ql=34963;function rc(){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=tc,this.offset=0,this.stride=0,this.divisor=0}function ay(R,H,Z,we,ke,ge,xe){for(var Ye=Z.maxAttributes,Xe=new Array(Ye),Je=0;Je<Ye;++Je)Xe[Je]=new rc;var lt=0,Rt={},bt={Record:rc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Ee,destroyBuffer:it,setVAO:Ge()?We:Ze,clear:Ge()?Ne:function(){}};function it(Ie){for(var Me=0;Me<Xe.length;++Me){var mt=Xe[Me];mt.buffer===Ie&&(R.disableVertexAttribArray(Me),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Ee(Ie){return typeof Ie=="function"&&Ie._vao?Ie._vao:null}function We(Ie){if(Ie!==bt.currentVAO){var Me=Ge();Ie?Me.bindVertexArrayOES(Ie.vao):Me.bindVertexArrayOES(null),bt.currentVAO=Ie}}function Ze(Ie){if(Ie!==bt.currentVAO){if(Ie)Ie.bindAttrs();else{for(var Me=he(),mt=0;mt<Xe.length;++mt){var Se=Xe[mt];Se.buffer?(R.enableVertexAttribArray(mt),Se.buffer.bind(),R.vertexAttribPointer(mt,Se.size,Se.type,Se.normalized,Se.stride,Se.offfset),Me&&Se.divisor&&Me.vertexAttribDivisorANGLE(mt,Se.divisor)):(R.disableVertexAttribArray(mt),R.vertexAttrib4f(mt,Se.x,Se.y,Se.z,Se.w))}xe.elements?R.bindBuffer(Ql,xe.elements.buffer.buffer):R.bindBuffer(Ql,null)}bt.currentVAO=Ie}}function Ne(){$n(Rt).forEach(function(Ie){Ie.destroy()})}function dt(){this.id=++lt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Ie=Ge();Ie?this.vao=Ie.createVertexArrayOES():this.vao=null,Rt[this.id]=this,this.buffers=[]}dt.prototype.bindAttrs=function(){for(var Ie=he(),Me=this.attributes,mt=0;mt<Me.length;++mt){var Se=Me[mt];Se.buffer?(R.enableVertexAttribArray(mt),R.bindBuffer($p,Se.buffer.buffer),R.vertexAttribPointer(mt,Se.size,Se.type,Se.normalized,Se.stride,Se.offset),Ie&&Se.divisor&&Ie.vertexAttribDivisorANGLE(mt,Se.divisor)):(R.disableVertexAttribArray(mt),R.vertexAttrib4f(mt,Se.x,Se.y,Se.z,Se.w))}for(var st=Me.length;st<Ye;++st)R.disableVertexAttribArray(st);var Ke=ge.getElements(this.elements);Ke?R.bindBuffer(Ql,Ke.buffer.buffer):R.bindBuffer(Ql,null)},dt.prototype.refresh=function(){var Ie=Ge();Ie&&(Ie.bindVertexArrayOES(this.vao),this.bindAttrs(),bt.currentVAO=null,Ie.bindVertexArrayOES(null))},dt.prototype.destroy=function(){if(this.vao){var Ie=Ge();this===bt.currentVAO&&(bt.currentVAO=null,Ie.bindVertexArrayOES(null)),Ie.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Rt[this.id]&&(delete Rt[this.id],we.vaoCount-=1)};function ot(){var Ie=Ge();Ie&&$n(Rt).forEach(function(Me){Me.refresh()})}function Pt(Ie){var Me=new dt;we.vaoCount+=1;function mt(Se){var st;if(Array.isArray(Se))st=Se,Me.elements&&Me.ownsElements&&Me.elements.destroy(),Me.elements=null,Me.ownsElements=!1,Me.offset=0,Me.count=0,Me.instances=-1,Me.primitive=4;else{if(Se.elements){var Ke=Se.elements;Me.ownsElements?typeof Ke=="function"&&Ke._reglType==="elements"?(Me.elements.destroy(),Me.ownsElements=!1):(Me.elements(Ke),Me.ownsElements=!1):ge.getElements(Se.elements)?(Me.elements=Se.elements,Me.ownsElements=!1):(Me.elements=ge.create(Se.elements),Me.ownsElements=!0)}else Me.elements=null,Me.ownsElements=!1;st=Se.attributes,Me.offset=0,Me.count=-1,Me.instances=-1,Me.primitive=4,Me.elements&&(Me.count=Me.elements._elements.vertCount,Me.primitive=Me.elements._elements.primType),"offset"in Se&&(Me.offset=Se.offset|0),"count"in Se&&(Me.count=Se.count|0),"instances"in Se&&(Me.instances=Se.instances|0),"primitive"in Se&&(Me.primitive=en[Se.primitive])}var Ft={},Jt=Me.attributes;Jt.length=st.length;for(var yt=0;yt<st.length;++yt){var Bt=st[yt],ut=Jt[yt]=new rc,er=Bt.data||Bt;if(Array.isArray(er)||Jr(er)||ei(er)){var ur;Me.buffers[yt]&&(ur=Me.buffers[yt],Jr(er)&&ur._buffer.byteLength>=er.byteLength?ur.subdata(er):(ur.destroy(),Me.buffers[yt]=null)),Me.buffers[yt]||(ur=Me.buffers[yt]=ke.create(Bt,$p,!1,!0)),ut.buffer=ke.getBuffer(ur),ut.size=ut.buffer.dimension|0,ut.normalized=!1,ut.type=ut.buffer.dtype,ut.offset=0,ut.stride=0,ut.divisor=0,ut.state=1,Ft[yt]=1}else ke.getBuffer(Bt)?(ut.buffer=ke.getBuffer(Bt),ut.size=ut.buffer.dimension|0,ut.normalized=!1,ut.type=ut.buffer.dtype,ut.offset=0,ut.stride=0,ut.divisor=0,ut.state=1):ke.getBuffer(Bt.buffer)?(ut.buffer=ke.getBuffer(Bt.buffer),ut.size=(+Bt.size||ut.buffer.dimension)|0,ut.normalized=!!Bt.normalized||!1,"type"in Bt?ut.type=du[Bt.type]:ut.type=ut.buffer.dtype,ut.offset=(Bt.offset||0)|0,ut.stride=(Bt.stride||0)|0,ut.divisor=(Bt.divisor||0)|0,ut.state=1):"x"in Bt&&(ut.x=+Bt.x||0,ut.y=+Bt.y||0,ut.z=+Bt.z||0,ut.w=+Bt.w||0,ut.state=2)}for(var hr=0;hr<Me.buffers.length;++hr)!Ft[hr]&&Me.buffers[hr]&&(Me.buffers[hr].destroy(),Me.buffers[hr]=null);return Me.refresh(),mt}return mt.destroy=function(){for(var Se=0;Se<Me.buffers.length;++Se)Me.buffers[Se]&&Me.buffers[Se].destroy();Me.buffers.length=0,Me.ownsElements&&(Me.elements.destroy(),Me.elements=null,Me.ownsElements=!1),Me.destroy()},mt._vao=Me,mt._reglType="vao",mt(Ie)}return bt}var nc=35632,oy=35633,uy=35718,ic=35721;function Dp(R,H,Z,we){var ke={},ge={};function xe(he,Ee,We,Ze){this.name=he,this.id=Ee,this.location=We,this.info=Ze}function Ye(he,Ee){for(var We=0;We<he.length;++We)if(he[We].id===Ee.id){he[We].location=Ee.location;return}he.push(Ee)}function Xe(he,Ee,We){var Ze=he===nc?ke:ge,Ne=Ze[Ee];if(!Ne){var dt=H.str(Ee);Ne=R.createShader(he),R.shaderSource(Ne,dt),R.compileShader(Ne),Ze[Ee]=Ne}return Ne}var Je={},lt=[],Rt=0;function bt(he,Ee){this.id=Rt++,this.fragId=he,this.vertId=Ee,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,we.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Ee,We){var Ze,Ne,dt=Xe(nc,he.fragId),ot=Xe(oy,he.vertId),Pt=he.program=R.createProgram();if(R.attachShader(Pt,dt),R.attachShader(Pt,ot),We)for(Ze=0;Ze<We.length;++Ze){var Ie=We[Ze];R.bindAttribLocation(Pt,Ie[0],Ie[1])}R.linkProgram(Pt);var Me=R.getProgramParameter(Pt,uy);we.profile&&(he.stats.uniformsCount=Me);var mt=he.uniforms;for(Ze=0;Ze<Me;++Ze)if(Ne=R.getActiveUniform(Pt,Ze),Ne)if(Ne.size>1)for(var Se=0;Se<Ne.size;++Se){var st=Ne.name.replace("[0]","["+Se+"]");Ye(mt,new xe(st,H.id(st),R.getUniformLocation(Pt,st),Ne))}else Ye(mt,new xe(Ne.name,H.id(Ne.name),R.getUniformLocation(Pt,Ne.name),Ne));var Ke=R.getProgramParameter(Pt,ic);we.profile&&(he.stats.attributesCount=Ke);var Ft=he.attributes;for(Ze=0;Ze<Ke;++Ze)Ne=R.getActiveAttrib(Pt,Ze),Ne&&Ye(Ft,new xe(Ne.name,H.id(Ne.name),R.getAttribLocation(Pt,Ne.name),Ne))}we.profile&&(Z.getMaxUniformsCount=function(){var he=0;return lt.forEach(function(Ee){Ee.stats.uniformsCount>he&&(he=Ee.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return lt.forEach(function(Ee){Ee.stats.attributesCount>he&&(he=Ee.stats.attributesCount)}),he});function Ge(){ke={},ge={};for(var he=0;he<lt.length;++he)it(lt[he],null,lt[he].attributes.map(function(Ee){return[Ee.location,Ee.name]}))}return{clear:function(){var he=R.deleteShader.bind(R);$n(ke).forEach(he),ke={},$n(ge).forEach(he),ge={},lt.forEach(function(Ee){R.deleteProgram(Ee.program)}),lt.length=0,Je={},Z.shaderCount=0},program:function(he,Ee,We,Ze){var Ne=Je[Ee];Ne||(Ne=Je[Ee]={});var dt=Ne[he];if(dt&&(dt.refCount++,!Ze))return dt;var ot=new bt(Ee,he);return Z.shaderCount++,it(ot,We,Ze),dt||(Ne[he]=ot),lt.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){R.deleteProgram(ot.program);var Pt=lt.indexOf(ot);lt.splice(Pt,1),Z.shaderCount--}Ne[ot.vertId].refCount<=0&&(R.deleteShader(ge[ot.vertId]),delete ge[ot.vertId],delete Je[ot.fragId][ot.vertId]),Object.keys(Je[ot.fragId]).length||(R.deleteShader(ke[ot.fragId]),delete ke[ot.fragId],delete Je[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var Bp=6408,ac=5121,ly=3333,fy=5126;function zp(R,H,Z,we,ke,ge,xe){function Ye(lt){var Rt;H.next===null?Rt=ac:Rt=H.next.colorAttachments[0].texture._texture.type;var bt=0,it=0,Ge=we.framebufferWidth,he=we.framebufferHeight,Ee=null;Jr(lt)?Ee=lt:lt&&(bt=lt.x|0,it=lt.y|0,Ge=(lt.width||we.framebufferWidth-bt)|0,he=(lt.height||we.framebufferHeight-it)|0,Ee=lt.data||null),Z();var We=Ge*he*4;return Ee||(Rt===ac?Ee=new Uint8Array(We):Rt===fy&&(Ee=Ee||new Float32Array(We))),R.pixelStorei(ly,4),R.readPixels(bt,it,Ge,he,Bp,Rt,Ee),Ee}function Xe(lt){var Rt;return H.setFBO({framebuffer:lt.framebuffer},function(){Rt=Ye(lt)}),Rt}function Je(lt){return!lt||!("framebuffer"in lt)?Ye(lt):Xe(lt)}return Je}function Up(R){return oc(jp(uc(R)))}function jp(R){return cy(dy(sy(R),R.length*8))}function oc(R){for(var H="0123456789abcdef",Z="",we,ke=0;ke<R.length;ke++)we=R.charCodeAt(ke),Z+=H.charAt(we>>>4&15)+H.charAt(we&15);return Z}function uc(R){for(var H="",Z=-1,we,ke;++Z<R.length;)we=R.charCodeAt(Z),ke=Z+1<R.length?R.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 sy(R){for(var H=Array(R.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<R.length*8;Z+=8)H[Z>>5]|=(R.charCodeAt(Z/8)&255)<<24-Z%32;return H}function cy(R){for(var H="",Z=0;Z<R.length*32;Z+=8)H+=String.fromCharCode(R[Z>>5]>>>24-Z%32&255);return H}function gi(R,H){return R>>>H|R<<32-H}function Gp(R,H){return R>>>H}function hy(R,H,Z){return R&H^~R&Z}function Hp(R,H,Z){return R&H^R&Z^H&Z}function qp(R){return gi(R,2)^gi(R,13)^gi(R,22)}function lc(R){return gi(R,6)^gi(R,11)^gi(R,25)}function Wp(R){return gi(R,7)^gi(R,18)^Gp(R,3)}function Zl(R){return gi(R,17)^gi(R,19)^Gp(R,10)}var Kl=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 dy(R,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),we=new Array(64),ke,ge,xe,Ye,Xe,Je,lt,Rt,bt,it,Ge,he;for(R[H>>5]|=128<<24-H%32,R[(H+64>>9<<4)+15]=H,bt=0;bt<R.length;bt+=16){for(ke=Z[0],ge=Z[1],xe=Z[2],Ye=Z[3],Xe=Z[4],Je=Z[5],lt=Z[6],Rt=Z[7],it=0;it<64;it++)it<16?we[it]=R[it+bt]:we[it]=Gr(Gr(Gr(Zl(we[it-2]),we[it-7]),Wp(we[it-15])),we[it-16]),Ge=Gr(Gr(Gr(Gr(Rt,lc(Xe)),hy(Xe,Je,lt)),Kl[it]),we[it]),he=Gr(qp(ke),Hp(ke,ge,xe)),Rt=lt,lt=Je,Je=Xe,Xe=Gr(Ye,Ge),Ye=xe,xe=ge,ge=ke,ke=Gr(Ge,he);Z[0]=Gr(ke,Z[0]),Z[1]=Gr(ge,Z[1]),Z[2]=Gr(xe,Z[2]),Z[3]=Gr(Ye,Z[3]),Z[4]=Gr(Xe,Z[4]),Z[5]=Gr(Je,Z[5]),Z[6]=Gr(lt,Z[6]),Z[7]=Gr(Rt,Z[7])}return Z}function Gr(R,H){var Z=(R&65535)+(H&65535),we=(R>>16)+(H>>16)+(Z>>16);return we<<16|Z&65535}function Oa(R){return Array.prototype.slice.call(R)}function po(R){return Oa(R).join("")}function py(R){var H=R&&R.cache,Z=0,we=[],ke=[],ge=[];function xe(Ge,he){var Ee=he&&he.stable;if(!Ee){for(var We=0;We<ke.length;++We)if(ke[We]===Ge&&!ge[We])return we[We]}var Ze="g"+Z++;return we.push(Ze),ke.push(Ge),ge.push(Ee),Ze}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,Oa(arguments))}var Ee=[];function We(){var Ze="v"+Z++;return Ee.push(Ze),arguments.length>0&&(Ge.push(Ze,"="),Ge.push.apply(Ge,Oa(arguments)),Ge.push(";")),Ze}return r(he,{def:We,toString:function(){return po([Ee.length>0?"var "+Ee.join(",")+";":"",po(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Ee=Ge.toString,We=he.toString;function Ze(Ne,dt){he(Ne,dt,"=",Ge.def(Ne,dt),";")}return r(function(){Ge.apply(Ge,Oa(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ze,set:function(Ne,dt,ot){Ze(Ne,dt),Ge(Ne,dt,"=",ot,";")},toString:function(){return Ee()+We()}})}function Je(){var Ge=po(arguments),he=Xe(),Ee=Xe(),We=he.toString,Ze=Ee.toString;return r(he,{then:function(){return he.apply(he,Oa(arguments)),this},else:function(){return Ee.apply(Ee,Oa(arguments)),this},toString:function(){var Ne=Ze();return Ne&&(Ne="else{"+Ne+"}"),po(["if(",Ge,"){",We(),"}",Ne])}})}var lt=Ye(),Rt={};function bt(Ge,he){var Ee=[];function We(){var Pt="a"+Ee.length;return Ee.push(Pt),Pt}he=he||0;for(var Ze=0;Ze<he;++Ze)We();var Ne=Xe(),dt=Ne.toString,ot=Rt[Ge]=r(Ne,{arg:We,toString:function(){return po(["function(",Ee.join(),"){",dt(),"}"])}});return ot}function it(){var Ge=['"use strict";',lt,"return {"];Object.keys(Rt).forEach(function(Ze){Ge.push('"',Ze,'":',Rt[Ze].toString(),",")}),Ge.push("}");var he=po(Ge).replace(/;/g,`;
1069
1069
  `).replace(/}/g,`}
1070
1070
  `).replace(/{/g,`{
1071
- `),Ee;if(H&&(Ee=Up(he),H[Ee]))return H[Ee].apply(null,ke);var We=Function.apply(null,we.concat(he));return H&&(H[Ee]=We),We.apply(null,ke)}return{global:lt,link:xe,block:Ye,proc:bt,scope:Xe,cond:Je,compile:it}}var ka="xyzw".split(""),fc=5121,Ma=1,Au=2,Tu=0,Jl=1,sc=2,ef=3,Ra=4,cc=5,Vp=6,Yp="dither",Xp="blend.enable",Qp="blend.color",tf="blend.equation",rf="blend.func",hc="depth.enable",dc="depth.func",Zp="depth.range",Cu="depth.mask",pc="colorMask",Kp="cull.enable",vc="cull.face",nf="frontFace",mc="lineWidth",Ou="polygonOffset.enable",vo="polygonOffset.offset",gc="sample.alpha",yc="sample.enable",ku="sample.coverage",Hn="stencil.enable",xc="stencil.mask",_c="stencil.func",Mu="stencil.opFront",Pa="stencil.opBack",Jp="scissor.enable",af="scissor.box",Ni="viewport",Fa="profile",Ki="framebuffer",Ru="vert",of="frag",mo="elements",go="primitive",tn="count",uf="offset",lf="instances",ui="vao",Pu="Width",Fu="Height",yo=Ki+Pu,xo=Ki+Fu,py=Ni+Pu,ev=Ni+Fu,wc="drawingBuffer",bc=wc+Pu,Sc=wc+Fu,vy=[rf,tf,_c,Mu,Pa,ku,Ni,af,vo],Na=34962,Ec=34963,my=2884,gy=3042,tv=3024,rv=2960,ff=2929,nv=3089,sf=32823,iv=32926,Nu=32928,Dr=5126,cf=35664,Ii=35665,_o=35666,hf=5124,Ac=35667,Iu=35668,wo=35669,Tc=35670,Cc=35671,Oc=35672,kc=35673,Mc=35674,Lu=35675,Rc=35676,Pc=35678,u=35680,f=4,h=1028,d=1029,v=2304,m=2305,A=32775,w=32776,M=519,N=7680,L=0,B=1,z=32774,re=513,oe=36160,j=36064,Y={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:v,ccw:m};function ee(R){return Array.isArray(R)||Jr(R)||ei(R)}function Re(R){return R.sort(function(H,Z){return H===Ni?-1:Z===Ni?1:H<Z?-1:1})}function ze(R,H,Z,we){this.thisDep=R,this.contextDep=H,this.propDep=Z,this.append=we}function tt(R){return R&&!(R.thisDep||R.contextDep||R.propDep)}function je(R){return new ze(!1,!1,!1,R)}function at(R,H){var Z=R.type;if(Z===Tu){var we=R.data.length;return new ze(!0,we>=1,we>=2,H)}else if(Z===Ra){var ke=R.data;return new ze(ke.thisDep,ke.contextDep,ke.propDep,H)}else{if(Z===cc)return new ze(!1,!1,!1,H);if(Z===Vp){for(var ge=!1,xe=!1,Ye=!1,Xe=0;Xe<R.data.length;++Xe){var Je=R.data[Xe];if(Je.type===Jl)Ye=!0;else if(Je.type===sc)xe=!0;else if(Je.type===ef)ge=!0;else if(Je.type===Tu){ge=!0;var lt=Je.data;lt>=1&&(xe=!0),lt>=2&&(Ye=!0)}else Je.type===Ra&&(ge=ge||Je.data.thisDep,xe=xe||Je.data.contextDep,Ye=Ye||Je.data.propDep)}return new ze(ge,xe,Ye,H)}else return new ze(Z===ef,Z===sc,Z===Jl,H)}}var vt=new ze(!1,!1,!1,function(){});function Gt(R,H,Z,we,ke,ge,xe,Ye,Xe,Je,lt,Rt,bt,it,Ge,he){var Ee=Je.Record,We={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(We.min=A,We.max=w);var Ze=Z.angle_instanced_arrays,Ne=Z.webgl_draw_buffers,dt=Z.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},Ie=[],Me={},mt={};function Se(U){return U.replace(".","_")}function st(U,q,J){var _e=Se(U);Ie.push(U),Pt[_e]=ot[_e]=!!J,Me[_e]=q}function Ke(U,q,J){var _e=Se(U);Ie.push(U),Array.isArray(J)?(ot[_e]=J.slice(),Pt[_e]=J.slice()):ot[_e]=Pt[_e]=J,mt[_e]=q}function Ft(U){return!!isNaN(U)}st(Yp,tv),st(Xp,gy),Ke(Qp,"blendColor",[0,0,0,0]),Ke(tf,"blendEquationSeparate",[z,z]),Ke(rf,"blendFuncSeparate",[B,L,B,L]),st(hc,ff,!0),Ke(dc,"depthFunc",re),Ke(Zp,"depthRange",[0,1]),Ke(Cu,"depthMask",!0),Ke(pc,pc,[!0,!0,!0,!0]),st(Kp,my),Ke(vc,"cullFace",d),Ke(nf,nf,m),Ke(mc,mc,1),st(Ou,sf),Ke(vo,"polygonOffset",[0,0]),st(gc,iv),st(yc,Nu),Ke(ku,"sampleCoverage",[1,!1]),st(Hn,rv),Ke(xc,"stencilMask",-1),Ke(_c,"stencilFunc",[M,0,-1]),Ke(Mu,"stencilOpSeparate",[h,N,N,N]),Ke(Pa,"stencilOpSeparate",[d,N,N,N]),st(Jp,nv),Ke(af,"scissor",[0,0,R.drawingBufferWidth,R.drawingBufferHeight]),Ke(Ni,Ni,[0,0,R.drawingBufferWidth,R.drawingBufferHeight]);var Jt={gl:R,context:bt,strings:H,next:Pt,current:ot,draw:Rt,elements:ge,buffer:ke,shader:lt,attributes:Je.state,vao:Je,uniforms:Xe,framebuffer:Ye,extensions:Z,timer:it,isBufferArgs:ee},yt={primTypes:en,compareFuncs:K,blendFuncs:Y,blendEquations:We,stencilOps:ue,glTypes:du,orientationType:le};Ne&&(yt.backBuffer=[d],yt.drawBuffer=Ce(we.maxDrawbuffers,function(U){return U===0?[0]:Ce(U,function(q){return j+q})}));var Bt=0;function ut(){var U=dy({cache:Ge}),q=U.link,J=U.global;U.id=Bt++,U.batchId="0";var _e=q(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(mt).forEach(function(te){Array.isArray(ot[te])&&(de[te]=J.def(pe.next,".",te),ce[te]=J.def(pe.current,".",te))});var fe=U.constants={};Object.keys(yt).forEach(function(te){fe[te]=J.def(JSON.stringify(yt[te]))}),U.invoke=function(te,X){switch(X.type){case Tu:var ve=["this",pe.context,pe.props,U.batchId];return te.def(q(X.data),".call(",ve.slice(0,Math.max(X.data.length+1,4)),")");case Jl:return te.def(pe.props,X.data);case sc:return te.def(pe.context,X.data);case ef:return te.def("this",X.data);case Ra:return X.data.append(U,te),X.data.ref;case cc:return X.data.toString();case Vp: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=Je.scope[X];ve||(ve=Je.scope[X]=new Ee);var Te=Q[X]=q(ve);return Te},U}function er(U){var q=U.static,J=U.dynamic,_e;if(Fa in q){var pe=!!q[Fa];_e=je(function(ce,fe){return pe}),_e.enable=pe}else if(Fa in J){var de=J[Fa];_e=at(de,function(ce,fe){return ce.invoke(fe,de)})}return _e}function ur(U,q){var J=U.static,_e=U.dynamic;if(Ki in J){var pe=J[Ki];return pe?(pe=Ye.getFramebuffer(pe),je(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,"."+yo,Q+".width"),fe.set(X,"."+xo,Q+".height"),Q})):je(function(ce,fe){var Q=ce.shared;fe.set(Q.framebuffer,".next","null");var te=Q.context;return fe.set(te,"."+yo,te+"."+bc),fe.set(te,"."+xo,te+"."+Sc),"null"})}else if(Ki in _e){var de=_e[Ki];return at(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,"."+yo,ve+"?"+ve+".width:"+Te+"."+bc),fe.set(Te,"."+xo,ve+"?"+ve+".height:"+Te+"."+Sc),ve})}else return null}function hr(U,q,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 ze(!X&&q&&q.thisDep,!X&&q&&q.contextDep,!X&&q&&q.propDep,function(Nt,St){var $t=Nt.shared.context,_t=Le;"width"in te||(_t=St.def($t,".",yo,"-",ve));var Ct=Lt;return"height"in te||(Ct=St.def($t,".",xo,"-",Te)),[ve,Te,_t,Ct]})}else if(Q in pe){var Mt=pe[Q],gt=at(Mt,function(Nt,St){var $t=Nt.invoke(St,Mt),_t=Nt.shared.context,Ct=St.def($t,".x|0"),Ot=St.def($t,".y|0"),Wt=St.def('"width" in ',$t,"?",$t,".width|0:","(",_t,".",yo,"-",Ct,")"),Pr=St.def('"height" in ',$t,"?",$t,".height|0:","(",_t,".",xo,"-",Ot,")");return[Ct,Ot,Wt,Pr]});return q&&(gt.thisDep=gt.thisDep||q.thisDep,gt.contextDep=gt.contextDep||q.contextDep,gt.propDep=gt.propDep||q.propDep),gt}else return q?new ze(q.thisDep,q.contextDep,q.propDep,function(Nt,St){var $t=Nt.shared.context;return[0,0,St.def($t,".",yo),St.def($t,".",xo)]}):null}var ce=de(Ni);if(ce){var fe=ce;ce=new ze(ce.thisDep,ce.contextDep,ce.propDep,function(Q,te){var X=fe.append(Q,te),ve=Q.shared.context;return te.set(ve,"."+py,X[2]),te.set(ve,"."+ev,X[3]),X})}return{viewport:ce,scissor_box:de(af)}}function nn(U,q){var J=U.static,_e=typeof J[of]=="string"&&typeof J[Ru]=="string";if(_e){if(Object.keys(q.dynamic).length>0)return null;var pe=q.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],fe=0;fe<de.length;++fe)ce.push([pe[de[fe]]|0,de[fe]]);return ce}}return null}function lr(U,q,J){var _e=U.static,pe=U.dynamic;function de(X){if(X in _e){var ve=H.id(_e[X]),Te=je(function(){return ve});return Te.id=ve,Te}else if(X in pe){var Le=pe[X];return at(Le,function(Lt,Mt){var gt=Lt.invoke(Mt,Le),Nt=Mt.def(Lt.shared.strings,".id(",gt,")");return Nt})}return null}var ce=de(of),fe=de(Ru),Q=null,te;return tt(ce)&&tt(fe)?(Q=lt.program(fe.id,ce.id,null,J),te=je(function(X,ve){return X.link(Q)})):te=new ze(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,".",of);var Lt;fe?Lt=fe.append(X,ve):Lt=ve.def(Te,".",Ru);var Mt=Te+".program("+Lt+","+Le;return ve.def(Mt+")")}),{frag:ce,vert:fe,progVar:te,program:Q}}function qn(U,q){var J=U.static,_e=U.dynamic,pe={},de=!1;function ce(){if(ui in J){var St=J[ui];return St!==null&&Je.getVAO(St)===null&&(St=Je.createVAO(St)),de=!0,pe.vao=St,je(function(_t){var Ct=Je.getVAO(St);return Ct?_t.link(Ct):"null"})}else if(ui in _e){de=!0;var $t=_e[ui];return at($t,function(_t,Ct){var Ot=_t.invoke(Ct,$t);return Ct.def(_t.shared.vao+".getVAO("+Ot+")")})}return null}var fe=ce(),Q=!1;function te(){if(mo in J){var St=J[mo];if(pe.elements=St,ee(St)){var $t=pe.elements=ge.create(St,!0);St=ge.getElements($t),Q=!0}else St&&(St=ge.getElements(St),Q=!0);var _t=je(function(Ot,Wt){if(St){var Pr=Ot.link(St);return Ot.ELEMENTS=Pr,Pr}return Ot.ELEMENTS=null,null});return _t.value=St,_t}else if(mo in _e){Q=!0;var Ct=_e[mo];return at(Ct,function(Ot,Wt){var Pr=Ot.shared,Vn=Pr.isBufferArgs,Ia=Pr.elements,bo=Ot.invoke(Wt,Ct),So=Wt.def("null"),yi=Wt.def(Vn,"(",bo,")"),Fc=Ot.cond(yi).then(So,"=",Ia,".createStream(",bo,");").else(So,"=",Ia,".getElements(",bo,");");return Wt.entry(Fc),Wt.exit(Ot.cond(yi).then(Ia,".destroyStream(",So,");")),Ot.ELEMENTS=So,So})}else if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.elements+".getElements("+Ot.shared.vao+".currentVAO.elements):null")});return null}var X=te();function ve(){if(go in J){var St=J[go];return pe.primitive=St,je(function(_t,Ct){return en[St]})}else if(go in _e){var $t=_e[go];return at($t,function(_t,Ct){var Ot=_t.constants.primTypes,Wt=_t.invoke(Ct,$t);return Ct.def(Ot,"[",Wt,"]")})}else{if(Q)return tt(X)?X.value?je(function(_t,Ct){return Ct.def(_t.ELEMENTS,".primType")}):je(function(){return f}):new ze(X.thisDep,X.contextDep,X.propDep,function(_t,Ct){var Ot=_t.ELEMENTS;return Ct.def(Ot,"?",Ot,".primType:",f)});if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(_t,Ct){return Ct.def(_t.shared.vao+".currentVAO?"+_t.shared.vao+".currentVAO.primitive:"+f)})}return null}function Te(St,$t){if(St in J){var _t=J[St]|0;return $t?pe.offset=_t:pe.instances=_t,je(function(Ot,Wt){return $t&&(Ot.OFFSET=_t),_t})}else if(St in _e){var Ct=_e[St];return at(Ct,function(Ot,Wt){var Pr=Ot.invoke(Wt,Ct);return $t&&(Ot.OFFSET=Pr),Pr})}else if($t){if(Q)return je(function(Ot,Wt){return Ot.OFFSET=0,0});if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.vao+".currentVAO.offset:0")})}else if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.vao+".currentVAO.instances:-1")});return null}var Le=Te(uf,!0);function Lt(){if(tn in J){var St=J[tn]|0;return pe.count=St,je(function(){return St})}else if(tn in _e){var $t=_e[tn];return at($t,function(Wt,Pr){var Vn=Wt.invoke(Pr,$t);return Vn})}else if(Q)if(tt(X)){if(X)return Le?new ze(Le.thisDep,Le.contextDep,Le.propDep,function(Wt,Pr){var Vn=Pr.def(Wt.ELEMENTS,".vertCount-",Wt.OFFSET);return Vn}):je(function(Wt,Pr){return Pr.def(Wt.ELEMENTS,".vertCount")});var _t=je(function(){return-1});return _t}else{var Ct=new ze(X.thisDep||Le.thisDep,X.contextDep||Le.contextDep,X.propDep||Le.propDep,function(Wt,Pr){var Vn=Wt.ELEMENTS;return Wt.OFFSET?Pr.def(Vn,"?",Vn,".vertCount-",Wt.OFFSET,":-1"):Pr.def(Vn,"?",Vn,".vertCount:-1")});return Ct}else if(de){var Ot=new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Wt,Pr){return Pr.def(Wt.shared.vao,".currentVAO?",Wt.shared.vao,".currentVAO.count:-1")});return Ot}return null}var Mt=ve(),gt=Lt(),Nt=Te(lf,!1);return{elements:X,primitive:Mt,count:gt,instances:Nt,offset:Le,vao:fe,vaoActive:de,elementsActive:Q,static:pe}}function Ar(U,q){var J=U.static,_e=U.dynamic,pe={};return Ie.forEach(function(de){var ce=Se(de);function fe(Q,te){if(de in J){var X=Q(J[de]);pe[ce]=je(function(){return X})}else if(de in _e){var ve=_e[de];pe[ce]=at(ve,function(Te,Le){return te(Te,Le,Te.invoke(Le,ve))})}}switch(de){case Kp:case Xp:case Yp:case Hn:case hc:case Jp:case Ou:case gc:case yc:case Cu:return fe(function(Q){return Q},function(Q,te,X){return X});case dc:return fe(function(Q){return K[Q]},function(Q,te,X){var ve=Q.constants.compareFuncs;return te.def(ve,"[",X,"]")});case Zp: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 rf: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[Y[te],Y[ve],Y[X],Y[Te]]},function(Q,te,X){var ve=Q.constants.blendFuncs;function Te($t,_t){var Ct=te.def('"',$t,_t,'" in ',X,"?",X,".",$t,_t,":",X,".",$t);return Ct}var Le=Te("src","RGB"),Lt=Te("dst","RGB"),Mt=te.def(ve,"[",Le,"]"),gt=te.def(ve,"[",Te("src","Alpha"),"]"),Nt=te.def(ve,"[",Lt,"]"),St=te.def(ve,"[",Te("dst","Alpha"),"]");return[Mt,Nt,gt,St]});case tf:return fe(function(Q){if(typeof Q=="string")return[We[Q],We[Q]];if(typeof Q=="object")return[We[Q.rgb],We[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 Qp: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 xc:return fe(function(Q){return Q|0},function(Q,te,X){return te.def(X,"|0")});case _c: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]",":",N),Le=te.def(X,".ref|0"),Lt=te.def('"mask" in ',X,"?",X,".mask|0:-1");return[Te,Le,Lt]});case Mu:case Pa:return fe(function(Q){var te=Q.fail||"keep",X=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===Pa?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,"]:",N)}return[de===Pa?d:h,Te("fail"),Te("zfail"),Te("zpass")]});case vo: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 vc: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 mc:return fe(function(Q){return Q},function(Q,te,X){return X});case nf:return fe(function(Q){return le[Q]},function(Q,te,X){return te.def(X+'==="cw"?'+v+":"+m)});case pc:return fe(function(Q){return Q.map(function(te){return!!te})},function(Q,te,X){return Ce(4,function(ve){return"!!"+X+"["+ve+"]"})});case ku: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 wn(U,q){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=je(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?fe=je(function(te){return te.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(fe=je(function(te){return te.link(ce.color[0])}))}else ri(ce)&&(fe=je(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]=at(ce,function(fe,Q){return fe.invoke(Q,ce)})}),pe}function Wn(U,q){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 Ee;if(ee(ce))Q.state=Ma,Q.buffer=ke.getBuffer(ke.create(ce,Na,!1,!0)),Q.type=0;else{var te=ke.getBuffer(ce);if(te)Q.state=Ma,Q.buffer=te,Q.type=0;else if("constant"in ce){var X=ce.constant;Q.buffer="null",Q.state=Au,typeof X=="number"?Q.x=X:ka.forEach(function(Nt,St){St<X.length&&(Q[Nt]=X[St])})}else{ee(ce.buffer)?te=ke.getBuffer(ke.create(ce.buffer,Na,!1,!0)):te=ke.getBuffer(ce.buffer);var ve=ce.offset|0,Te=ce.stride|0,Le=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=du[ce.type]);var gt=ce.divisor|0;Q.buffer=te,Q.state=Ma,Q.size=Le,Q.normalized=Lt,Q.type=Mt||te.dtype,Q.offset=ve,Q.stride=Te,Q.divisor=gt}}pe[de]=je(function(Nt,St){var $t=Nt.attribCache;if(fe in $t)return $t[fe];var _t={isStream:!1};return Object.keys(Q).forEach(function(Ct){_t[Ct]=Q[Ct]}),Q.buffer&&(_t.buffer=Nt.link(Q.buffer),_t.type=_t.type||_t.buffer+".dtype"),$t[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,Mt={isStream:te.def(!1)},gt=new Ee;gt.state=Ma,Object.keys(gt).forEach(function(_t){Mt[_t]=te.def(""+gt[_t])});var Nt=Mt.buffer,St=Mt.type;te("if(",Le,"(",X,")){",Mt.isStream,"=true;",Nt,"=",Lt,".createStream(",Na,",",X,");",St,"=",Nt,".dtype;","}else{",Nt,"=",Lt,".getBuffer(",X,");","if(",Nt,"){",St,"=",Nt,".dtype;",'}else if("constant" in ',X,"){",Mt.state,"=",Au,";","if(typeof "+X+'.constant === "number"){',Mt[ka[0]],"=",X,".constant;",ka.slice(1).map(function(_t){return Mt[_t]}).join("="),"=0;","}else{",ka.map(function(_t,Ct){return Mt[_t]+"="+X+".constant.length>"+Ct+"?"+X+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",Le,"(",X,".buffer)){",Nt,"=",Lt,".createStream(",Na,",",X,".buffer);","}else{",Nt,"=",Lt,".getBuffer(",X,".buffer);","}",St,'="type" in ',X,"?",Te.glTypes,"[",X,".type]:",Nt,".dtype;",Mt.normalized,"=!!",X,".normalized;");function $t(_t){te(Mt[_t],"=",X,".",_t,"|0;")}return $t("size"),$t("offset"),$t("stride"),$t("divisor"),te("}}"),te.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Nt,");","}"),Mt}pe[de]=at(ce,fe)}),pe}function Rn(U){var q=U.static,J=U.dynamic,_e={};return Object.keys(q).forEach(function(pe){var de=q[pe];_e[pe]=je(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]=at(de,function(ce,fe){return ce.invoke(fe,de)})}),_e}function Li(U,q,J,_e,pe){U.static,U.dynamic;var de=nn(U,q),ce=ur(U),fe=hr(U,ce),Q=qn(U),te=Ar(U),X=lr(U,pe,de);function ve(Nt){var St=fe[Nt];St&&(te[Nt]=St)}ve(Ni),ve(Se(af));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=wn(J),Le.drawVAO=Le.scopeVAO=Q.vao,!Le.drawVAO&&X.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,Mt=X.program.attributes.map(function(Nt){var St=q.static[Nt];return Lt=Lt&&!!St,St});if(Lt&&Mt.length>0){var gt=Je.getVAO(Je.createVAO({attributes:Mt,elements:Q.static.elements}));Le.drawVAO=new ze(null,null,null,function(Nt,St){return Nt.link(gt)}),Le.useVAO=!0}}return de?Le.useVAO=!0:Le.attributes=Wn(q),Le.context=Rn(_e),Le}function an(U,q,J){var _e=U.shared,pe=_e.context,de=U.scope();Object.keys(J).forEach(function(ce){q.save(pe,"."+ce);var fe=J[ce],Q=fe.append(U,q);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),q(de)}function on(U,q,J,_e){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,fe;Ne&&(fe=q.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,te=Q.drawBuffer,X=Q.backBuffer,ve;J?ve=J.append(U,q):ve=q.def(ce,".next"),_e||q("if(",ve,"!==",ce,".cur){"),q("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&q(fe,".drawBuffersWEBGL(",te,"[",ve,".colorAttachments.length]);"),q("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&q(fe,".drawBuffersWEBGL(",X,");"),q("}",ce,".cur=",ve,";"),_e||q("}")}function Xt(U,q,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");Ie.forEach(function(X){var ve=Se(X);if(!(ve in J.state)){var Te,Le;if(ve in ce){Te=ce[ve],Le=de[ve];var Lt=Ce(ot[ve].length,function(gt){return te.def(Te,"[",gt,"]")});te(U.cond(Lt.map(function(gt,Nt){return gt+"!=="+Le+"["+Nt+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Nt){return Le+"["+Nt+"]="+gt}).join(";"),";"))}else{Te=te.def(Q,".",ve);var Mt=U.cond(Te,"!==",fe,".",ve);te(Mt),ve in Me?Mt(U.cond(Te).then(pe,".enable(",Me[ve],");").else(pe,".disable(",Me[ve],");"),fe,".",ve,"=",Te,";"):Mt(pe,".",mt[ve],"(",Te,");",fe,".",ve,"=",Te,";")}}}),Object.keys(J.state).length===0&&te(fe,".dirty=false;"),q(te)}function li(U,q,J,_e){var pe=U.shared,de=U.current,ce=pe.current,fe=pe.gl,Q;Re(Object.keys(J)).forEach(function(te){var X=J[te];if(!(_e&&!_e(X))){var ve=X.append(U,q);if(Me[te]){var Te=Me[te];tt(X)?(Q=U.link(ve,{stable:!0}),q(U.cond(Q).then(fe,".enable(",Te,");").else(fe,".disable(",Te,");")),q(ce,".",te,"=",Q,";")):(q(U.cond(ve).then(fe,".enable(",Te,");").else(fe,".disable(",Te,");")),q(ce,".",te,"=",ve,";"))}else if(ri(ve)){var Le=de[te];q(fe,".",mt[te],"(",ve,");",ve.map(function(Lt,Mt){return Le+"["+Mt+"]="+Lt}).join(";"),";")}else tt(X)?(Q=U.link(ve,{stable:!0}),q(fe,".",mt[te],"(",Q,");",ce,".",te,"=",Q,";")):q(fe,".",mt[te],"(",ve,");",ce,".",te,"=",ve,";")}})}function wr(U,q){Ze&&(U.instancing=q.def(U.shared.extensions,".angle_instanced_arrays"))}function un(U,q,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($t){ve=q.def(),$t(ve,"=",X(),";"),typeof pe=="string"?$t(ce,".count+=",pe,";"):$t(ce,".count++;"),it&&(_e?(Te=q.def(),$t(Te,"=",Q,".getNumPendingQueries();")):$t(Q,".beginQuery(",ce,");"))}function Lt($t){$t(ce,".cpuTime+=",X(),"-",ve,";"),it&&(_e?$t(Q,".pushScopeStats(",Te,",",Q,".getNumPendingQueries(),",ce,");"):$t(Q,".endQuery();"))}function Mt($t){var _t=q.def(fe,".profile");q(fe,".profile=",$t,";"),q.exit(fe,".profile=",_t,";")}var gt;if(te){if(tt(te)){te.enable?(Le(q),Lt(q.exit),Mt("true")):Mt("false");return}gt=te.append(U,q),Mt(gt)}else gt=q.def(fe,".profile");var Nt=U.block();Le(Nt),q("if(",gt,"){",Nt,"}");var St=U.block();Lt(St),q.exit("if(",gt,"){",St,"}")}function Dn(U,q,J,_e,pe){var de=U.shared;function ce(Q){switch(Q){case cf:case Ac:case Cc:return 2;case Ii:case Iu:case Oc:return 3;case _o:case wo:case kc:return 4;default:return 1}}function fe(Q,te,X){var ve=de.gl,Te=q.def(Q,".location"),Le=q.def(de.attributes,"[",Te,"]"),Lt=X.state,Mt=X.buffer,gt=[X.x,X.y,X.z,X.w],Nt=["buffer","normalized","offset","stride"];function St(){q("if(!",Le,".buffer){",ve,".enableVertexAttribArray(",Te,");}");var _t=X.type,Ct;if(X.size?Ct=q.def(X.size,"||",te):Ct=te,q("if(",Le,".type!==",_t,"||",Le,".size!==",Ct,"||",Nt.map(function(Wt){return Le+"."+Wt+"!=="+X[Wt]}).join("||"),"){",ve,".bindBuffer(",Na,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Te,Ct,_t,X.normalized,X.stride,X.offset],");",Le,".type=",_t,";",Le,".size=",Ct,";",Nt.map(function(Wt){return Le+"."+Wt+"="+X[Wt]+";"}).join(""),"}"),Ze){var Ot=X.divisor;q("if(",Le,".divisor!==",Ot,"){",U.instancing,".vertexAttribDivisorANGLE(",[Te,Ot],");",Le,".divisor=",Ot,";}")}}function $t(){q("if(",Le,".buffer){",ve,".disableVertexAttribArray(",Te,");",Le,".buffer=null;","}if(",ka.map(function(_t,Ct){return Le+"."+_t+"!=="+gt[Ct]}).join("||"),"){",ve,".vertexAttrib4f(",Te,",",gt,");",ka.map(function(_t,Ct){return Le+"."+_t+"="+gt[Ct]+";"}).join(""),"}")}Lt===Ma?St():Lt===Au?$t():(q("if(",Lt,"===",Ma,"){"),St(),q("}else{"),$t(),q("}"))}_e.forEach(function(Q){var te=Q.name,X=J.attributes[te],ve;if(X){if(!pe(X))return;ve=X.append(U,q)}else{if(!pe(vt))return;var Te=U.scopeAttrib(te);ve={},Object.keys(new Ee).forEach(function(Le){ve[Le]=q.def(Te,".",Le)})}fe(U.link(Q),ce(Q.info.type),ve)})}function Bn(U,q,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),Mt=Lt+".location",gt;if(Le){if(!pe(Le))continue;if(tt(Le)){var Nt=Le.value;if(Te===Pc||Te===u){var St=U.link(Nt._texture||Nt.color[0]._texture);q(fe,".uniform1i(",Mt,",",St+".bind());"),q.exit(St,".unbind();")}else if(Te===Mc||Te===Lu||Te===Rc){var $t=U.global.def("new Float32Array(["+Array.prototype.slice.call(Nt)+"])"),_t=2;Te===Lu?_t=3:Te===Rc&&(_t=4),q(fe,".uniformMatrix",_t,"fv(",Mt,",false,",$t,");")}else{switch(Te){case Dr:Q="1f";break;case cf:Q="2f";break;case Ii:Q="3f";break;case _o:Q="4f";break;case Tc:Q="1i";break;case hf:Q="1i";break;case Cc:Q="2i";break;case Ac:Q="2i";break;case Oc:Q="3i";break;case Iu:Q="3i";break;case kc:Q="4i";break;case wo:Q="4i";break}q(fe,".uniform",Q,"(",Mt,",",ri(Nt)?Array.prototype.slice.call(Nt):Nt,");")}continue}else gt=Le.append(U,q)}else{if(!pe(vt))continue;gt=q.def(ce.uniforms,"[",H.id(ve),"]")}Te===Pc?q("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Te===u&&q("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ct=1;switch(Te){case Pc:case u:var Ot=q.def(gt,"._texture");q(fe,".uniform1i(",Mt,",",Ot,".bind());"),q.exit(Ot,".unbind();");continue;case hf:case Tc:Q="1i";break;case Ac:case Cc:Q="2i",Ct=2;break;case Iu:case Oc:Q="3i",Ct=3;break;case wo:case kc:Q="4i",Ct=4;break;case Dr:Q="1f";break;case cf:Q="2f",Ct=2;break;case Ii:Q="3f",Ct=3;break;case _o:Q="4f",Ct=4;break;case Mc:Q="Matrix2fv";break;case Lu:Q="Matrix3fv";break;case Rc:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){q(fe,".uniform",Q,"(",Mt,",");var Wt=Math.pow(Te-Mc+2,2),Pr=U.global.def("new Float32Array(",Wt,")");Array.isArray(gt)?q("false,(",Ce(Wt,function(yi){return Pr+"["+yi+"]="+gt[yi]}),",",Pr,")"):q("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",Ce(Wt,function(yi){return Pr+"["+yi+"]="+gt+"["+yi+"]"}),",",Pr,")"),q(");")}else if(Ct>1){for(var Vn=[],Ia=[],bo=0;bo<Ct;++bo)Array.isArray(gt)?Ia.push(gt[bo]):Ia.push(q.def(gt+"["+bo+"]")),de&&Vn.push(q.def());de&&q("if(!",U.batchId,"||",Vn.map(function(yi,Fc){return yi+"!=="+Ia[Fc]}).join("||"),"){",Vn.map(function(yi,Fc){return yi+"="+Ia[Fc]+";"}).join("")),q(fe,".uniform",Q,"(",Mt,",",Ia.join(","),");"),de&&q("}")}else{if(de){var So=q.def();q("if(!",U.batchId,"||",So,"!==",gt,"){",So,"=",gt,";")}q(fe,".uniform",Q,"(",Mt,",",gt,");"),de&&q("}")}}}function Zt(U,q,J,_e){var pe=U.shared,de=pe.gl,ce=pe.draw,fe=_e.draw;function Q(){var Ct=fe.elements,Ot,Wt=q;return Ct?((Ct.contextDep&&_e.contextDynamic||Ct.propDep)&&(Wt=J),Ot=Ct.append(U,Wt),fe.elementsActive&&Wt("if("+Ot+")"+de+".bindBuffer("+Ec+","+Ot+".buffer.buffer);")):(Ot=Wt.def(),Wt(Ot,"=",ce,".",mo,";","if(",Ot,"){",de,".bindBuffer(",Ec,",",Ot,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",Ot,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",dt?"":"if("+Ot+")"+de+".bindBuffer("+Ec+","+Ot+".buffer.buffer);","}")),Ot}function te(){var Ct=fe.count,Ot,Wt=q;return Ct?((Ct.contextDep&&_e.contextDynamic||Ct.propDep)&&(Wt=J),Ot=Ct.append(U,Wt)):Ot=Wt.def(ce,".",tn),Ot}var X=Q();function ve(Ct){var Ot=fe[Ct];return Ot?Ot.contextDep&&_e.contextDynamic||Ot.propDep?Ot.append(U,J):Ot.append(U,q):q.def(ce,".",Ct)}var Te=ve(go),Le=ve(uf),Lt=te();if(typeof Lt=="number"){if(Lt===0)return}else J("if(",Lt,"){"),J.exit("}");var Mt,gt;Ze&&(Mt=ve(lf),gt=U.instancing);var Nt=X+".type",St=fe.elements&&tt(fe.elements)&&!fe.vaoActive;function $t(){function Ct(){J(gt,".drawElementsInstancedANGLE(",[Te,Lt,Nt,Le+"<<(("+Nt+"-"+fc+")>>1)",Mt],");")}function Ot(){J(gt,".drawArraysInstancedANGLE(",[Te,Le,Lt,Mt],");")}X&&X!=="null"?St?Ct():(J("if(",X,"){"),Ct(),J("}else{"),Ot(),J("}")):Ot()}function _t(){function Ct(){J(de+".drawElements("+[Te,Lt,Nt,Le+"<<(("+Nt+"-"+fc+")>>1)"]+");")}function Ot(){J(de+".drawArrays("+[Te,Le,Lt]+");")}X&&X!=="null"?St?Ct():(J("if(",X,"){"),Ct(),J("}else{"),Ot(),J("}")):Ot()}Ze&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(J("if(",Mt,">0){"),$t(),J("}else if(",Mt,"<0){"),_t(),J("}")):$t():_t()}function cr(U,q,J,_e,pe){var de=ut(),ce=de.proc("body",pe);return Ze&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,J,_e),de.compile().body}function Cr(U,q,J,_e){wr(U,q),J.useVAO?J.drawVAO?q(U.shared.vao,".setVAO(",J.drawVAO.append(U,q),");"):q(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(q(U.shared.vao,".setVAO(null);"),Dn(U,q,J,_e.attributes,function(){return!0})),Bn(U,q,J,_e.uniforms,function(){return!0},!1),Zt(U,q,q,J)}function ln(U,q){var J=U.proc("draw",1);wr(U,J),an(U,J,q.context),on(U,J,q.framebuffer),Xt(U,J,q),li(U,J,q.state),un(U,J,q,!1,!0);var _e=q.shader.progVar.append(U,J);if(J(U.shared.gl,".useProgram(",_e,".program);"),q.shader.program)Cr(U,J,q,q.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 cr(Cr,U,q,fe,1)}),"(",_e,");",ce,".call(this,a0);"))}Object.keys(q.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function W(U,q,J,_e){U.batchId="a1",wr(U,q);function pe(){return!0}Dn(U,q,J,_e.attributes,pe),Bn(U,q,J,_e.uniforms,pe,!1),Zt(U,q,q,J)}function ye(U,q,J,_e){wr(U,q);var pe=J.contextDep,de=q.def(),ce="a0",fe="a1",Q=q.def();U.shared.props=Q,U.batchId=de;var te=U.scope(),X=U.scope();q(te.entry,"for(",de,"=0;",de,"<",fe,";++",de,"){",Q,"=",ce,"[",de,"];",X,"}",te.exit);function ve(Nt){return Nt.contextDep&&pe||Nt.propDep}function Te(Nt){return!ve(Nt)}if(J.needsContext&&an(U,X,J.context),J.needsFramebuffer&&on(U,X,J.framebuffer),li(U,X,J.state,ve),J.profile&&ve(J.profile)&&un(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);"),Dn(U,te,J,_e.attributes,Te),Dn(U,X,J,_e.attributes,ve)),Bn(U,te,J,_e.uniforms,Te,!1),Bn(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),Mt=X.def(Lt,".id"),gt=X.def(Le,"[",Mt,"]");X(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Le,"[",Mt,"]=",U.link(function(Nt){return cr(W,U,J,Nt,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function me(U,q){var J=U.proc("batch",2);U.batchId="0",wr(U,J);var _e=!1,pe=!0;Object.keys(q.context).forEach(function(Le){_e=_e||q.context[Le].propDep}),_e||(an(U,J,q.context),pe=!1);var de=q.framebuffer,ce=!1;de?(de.propDep?_e=ce=!0:de.contextDep&&_e&&(ce=!0),ce||on(U,J,de)):on(U,J,null),q.state.viewport&&q.state.viewport.propDep&&(_e=!0);function fe(Le){return Le.contextDep&&_e||Le.propDep}Xt(U,J,q),li(U,J,q.state,function(Le){return!fe(Le)}),(!q.profile||!fe(q.profile))&&un(U,J,q,!1,"a1"),q.contextDep=_e,q.needsContext=pe,q.needsFramebuffer=ce;var Q=q.shader.progVar;if(Q.contextDep&&_e||Q.propDep)ye(U,J,q,null);else{var te=Q.append(U,J);if(J(U.shared.gl,".useProgram(",te,".program);"),q.shader.program)ye(U,J,q,q.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 cr(ye,U,q,Le,2)}),"(",te,");",Te,".call(this,a0,a1);"))}}Object.keys(q.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function At(U,q){var J=U.proc("scope",3);U.batchId="a2";var _e=U.shared,pe=_e.current;if(an(U,J,q.context),q.framebuffer&&q.framebuffer.append(U,J),Re(Object.keys(q.state)).forEach(function(fe){var Q=q.state[fe],te=Q.append(U,J);ri(te)?te.forEach(function(X,ve){Ft(X)?J.set(U.next[fe],"["+ve+"]",X):J.set(U.next[fe],"["+ve+"]",U.link(X,{stable:!0}))}):tt(Q)?J.set(_e.next,"."+fe,U.link(te,{stable:!0})):J.set(_e.next,"."+fe,te)}),un(U,J,q,!0,!0),[mo,uf,tn,lf,go].forEach(function(fe){var Q=q.draw[fe];if(Q){var te=Q.append(U,J);Ft(te)?J.set(_e.draw,"."+fe,te):J.set(_e.draw,"."+fe,U.link(te),{stable:!0})}}),Object.keys(q.uniforms).forEach(function(fe){var Q=q.uniforms[fe].append(U,J);Array.isArray(Q)&&(Q="["+Q.map(function(te){return Ft(te)?te:U.link(te,{stable:!0})})+"]"),J.set(_e.uniforms,"["+U.link(H.id(fe),{stable:!0})+"]",Q)}),Object.keys(q.attributes).forEach(function(fe){var Q=q.attributes[fe].append(U,J),te=U.scopeAttrib(fe);Object.keys(new Ee).forEach(function(X){J.set(te,"."+X,Q[X])})}),q.scopeVAO){var de=q.scopeVAO.append(U,J);Ft(de)?J.set(_e.vao,".targetVAO",de):J.set(_e.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(fe){var Q=q.shader[fe];if(Q){var te=Q.append(U,J);Ft(te)?J.set(_e.shader,"."+fe,te):J.set(_e.shader,"."+fe,U.link(te,{stable:!0}))}}ce(Ru),ce(of),Object.keys(q.state).length>0&&(J(pe,".dirty=true;"),J.exit(pe,".dirty=true;")),J("a1(",U.shared.context,",a0,",U.batchId,");")}function rr(U){if(!(typeof U!="object"||ri(U))){for(var q=Object.keys(U),J=0;J<q.length;++J)if(C.isDynamic(U[q[J]]))return!0;return!1}}function Rr(U,q,J){var _e=q.static[J];if(!_e||!rr(_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(C.isDynamic(Te)){typeof Te=="function"&&(Te=_e[ve]=C.unbox(Te));var Le=at(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(C.isDynamic(Lt)){var Mt=ve.invoke(Te,Lt);Te(te,".",Le,"=",Mt,";")}})}q.dynamic[J]=new C.DynamicVariable(Ra,{thisDep:ce,contextDep:fe,propDep:Q,ref:te,append:X}),delete q.static[J]}function Tt(U,q,J,_e,pe){var de=ut();de.stats=de.link(pe),Object.keys(q.static).forEach(function(fe){Rr(de,q,fe)}),vy.forEach(function(fe){Rr(de,U,fe)});var ce=Li(U,q,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})),ln(de,ce),At(de,ce),me(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=ut(),q=U.proc("poll"),J=U.proc("refresh"),_e=U.block();q(_e),J(_e);var pe=U.shared,de=pe.gl,ce=pe.next,fe=pe.current;_e(fe,".dirty=false;"),on(U,q),on(U,J,null,!0);var Q;Ze&&(Q=U.link(Ze)),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(",Na,",",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,"}"),Ze&&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(Me).forEach(function(Le){var Lt=Me[Le],Mt=_e.def(ce,".",Le),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",fe,".",Le,"=",Mt,";"),J(gt),q("if(",Mt,"!==",fe,".",Le,"){",gt,"}")}),Object.keys(mt).forEach(function(Le){var Lt=mt[Le],Mt=ot[Le],gt,Nt,St=U.block();if(St(de,".",Lt,"("),ri(Mt)){var $t=Mt.length;gt=U.global.def(ce,".",Le),Nt=U.global.def(fe,".",Le),St(Ce($t,function(_t){return gt+"["+_t+"]"}),");",Ce($t,function(_t){return Nt+"["+_t+"]="+gt+"["+_t+"];"}).join("")),q("if(",Ce($t,function(_t){return gt+"["+_t+"]!=="+Nt+"["+_t+"]"}).join("||"),"){",St,"}")}else gt=_e.def(ce,".",Le),Nt=_e.def(fe,".",Le),St(gt,");",fe,".",Le,"=",gt,";"),q("if(",gt,"!==",Nt,"){",St,"}");J(St)}),U.compile()}(),compile:Tt}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,ar=34919,Mr=35007,dr=function(R,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function we(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function ke(We){Z.push(We)}var ge=[];function xe(We){var Ze=we();H.ext_disjoint_timer_query.beginQueryEXT(Mr,Ze),ge.push(Ze),it(ge.length-1,ge.length,We)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Mr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var Je=[];function lt(){return Je.pop()||new Xe}function Rt(We){Je.push(We)}var bt=[];function it(We,Ze,Ne){var dt=lt();dt.startQueryIndex=We,dt.endQueryIndex=Ze,dt.sum=0,dt.stats=Ne,bt.push(dt)}var Ge=[],he=[];function Ee(){var We,Ze,Ne=ge.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var dt=0;for(We=0,Ze=0;Ze<ge.length;++Ze){var ot=ge[Ze];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,ar)?(dt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,zt),ke(ot)):ge[We++]=ot,Ge[Ze+1]=dt,he[Ze+1]=We}for(ge.length=We,We=0,Ze=0;Ze<bt.length;++Ze){var Pt=bt[Ze],Ie=Pt.startQueryIndex,Me=Pt.endQueryIndex;Pt.sum+=Ge[Me]-Ge[Ie];var mt=he[Ie],Se=he[Me];Se===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,Rt(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Se,bt[We++]=Pt)}bt.length=We}}return{beginQuery:xe,endQuery:Ye,pushScopeStats:it,update:Ee,getNumPendingQueries:function(){return ge.length},clear:function(){Z.push.apply(Z,ge);for(var We=0;We<Z.length;We++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[We]);ge.length=0,Z.length=0},restore:function(){ge.length=0,Z.length=0}}},rt=16384,Ht=256,Yt=1024,or=34962,Er="webglcontextlost",Br="webglcontextrestored",Yr=1,hn=2,_n=3;function rn(R,H){for(var Z=0;Z<R.length;++Z)if(R[Z]===H)return Z;return-1}function Mn(R){var H=V(R);if(!H)return null;var Z=H.gl,we=Z.getContextAttributes();Z.isContextLost();var ke=ae(Z,H);if(!ke)return null;var ge=_(),xe=xt(),Ye=H.cachedCode||{},Xe=ke.extensions,Je=dr(Z,Xe),lt=b(),Rt=Z.drawingBufferWidth,bt=Z.drawingBufferHeight,it={tick:0,time:0,viewportWidth:Rt,viewportHeight:bt,framebufferWidth:Rt,framebufferHeight:bt,drawingBufferWidth:Rt,drawingBufferHeight:bt,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Ee=Ml(Z,Xe),We=ep(Z,xe,H,dt),Ze=Ll(Z,Xe,We,xe),Ne=iy(Z,Xe,Ee,xe,We,Ze,he);function dt(Zt){return Ne.destroyBuffer(Zt)}var ot=Dp(Z,ge,xe,H),Pt=Kg(Z,Xe,Ee,function(){mt.procs.poll()},it,xe,H),Ie=Fp(Z,Xe,Ee,xe,H),Me=ec(Z,Xe,Ee,Pt,Ie,xe),mt=Gt(Z,ge,Xe,Ee,We,Ze,Pt,Me,Ge,Ne,ot,he,it,Je,Ye,H),Se=zp(Z,Me,mt.procs.poll,it),st=mt.next,Ke=Z.canvas,Ft=[],Jt=[],yt=[],Bt=[H.onDestroy],ut=null;function er(){if(Ft.length===0){Je&&Je.update(),ut=null;return}ut=P.next(er),on();for(var Zt=Ft.length-1;Zt>=0;--Zt){var cr=Ft[Zt];cr&&cr(it,null,0)}Z.flush(),Je&&Je.update()}function ur(){!ut&&Ft.length>0&&(ut=P.next(er))}function hr(){ut&&(P.cancel(er),ut=null)}function nn(Zt){Zt.preventDefault(),hr(),Jt.forEach(function(cr){cr()})}function lr(Zt){Z.getError(),ke.restore(),ot.restore(),We.restore(),Pt.restore(),Ie.restore(),Me.restore(),Ne.restore(),Je&&Je.restore(),mt.procs.refresh(),ur(),yt.forEach(function(cr){cr()})}Ke&&(Ke.addEventListener(Er,nn,!1),Ke.addEventListener(Br,lr,!1));function qn(){Ft.length=0,hr(),Ke&&(Ke.removeEventListener(Er,nn),Ke.removeEventListener(Br,lr)),ot.clear(),Me.clear(),Ie.clear(),Ne.clear(),Pt.clear(),Ze.clear(),We.clear(),Je&&Je.clear(),Bt.forEach(function(Zt){Zt()})}function Ar(Zt){function cr(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 Cr(pe,de){var ce={},fe={};return Object.keys(pe).forEach(function(Q){var te=pe[Q];if(C.isDynamic(te)){fe[Q]=C.unbox(te,Q);return}else if(de&&Array.isArray(te)){for(var X=0;X<te.length;++X)if(C.isDynamic(te[X])){fe[Q]=C.unbox(te,Q);return}}ce[Q]=te}),{dynamic:fe,static:ce}}var ln=Cr(Zt.context||{},!0),W=Cr(Zt.uniforms||{},!0),ye=Cr(Zt.attributes||{},!1),me=Cr(cr(Zt),!1),At={gpuTime:0,cpuTime:0,count:0},rr=mt.compile(me,ye,W,ln,At),Rr=rr.draw,Tt=rr.batch,U=rr.scope,q=[];function J(pe){for(;q.length<pe;)q.push(null);return q}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 Tt.call(this,J(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Tt.call(this,pe,pe.length)}else return Rr.call(this,pe)}return r(_e,{stats:At,destroy:function(){rr.destroy()}})}var wn=Me.setFBO=Ar({framebuffer:C.define.call(null,Yr,"framebuffer")});function Wn(Zt,cr){var Cr=0;mt.procs.poll();var ln=cr.color;ln&&(Z.clearColor(+ln[0]||0,+ln[1]||0,+ln[2]||0,+ln[3]||0),Cr|=rt),"depth"in cr&&(Z.clearDepth(+cr.depth),Cr|=Ht),"stencil"in cr&&(Z.clearStencil(cr.stencil|0),Cr|=Yt),Z.clear(Cr)}function Rn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var cr=0;cr<6;++cr)wn(r({framebuffer:Zt.framebuffer.faces[cr]},Zt),Wn);else wn(Zt,Wn);else Wn(null,Zt)}function Li(Zt){Ft.push(Zt);function cr(){var Cr=rn(Ft,Zt);function ln(){var W=rn(Ft,ln);Ft[W]=Ft[Ft.length-1],Ft.length-=1,Ft.length<=0&&hr()}Ft[Cr]=ln}return ur(),{cancel:cr}}function an(){var Zt=st.viewport,cr=st.scissor_box;Zt[0]=Zt[1]=cr[0]=cr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=cr[2]=Z.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=cr[3]=Z.drawingBufferHeight}function on(){it.tick+=1,it.time=li(),an(),mt.procs.poll()}function Xt(){Pt.refresh(),an(),mt.procs.refresh(),Je&&Je.update()}function li(){return(b()-lt)/1e3}Xt();function wr(Zt,cr){var Cr;switch(Zt){case"frame":return Li(cr);case"lost":Cr=Jt;break;case"restore":Cr=yt;break;case"destroy":Cr=Bt;break}return Cr.push(cr),{cancel:function(){for(var ln=0;ln<Cr.length;++ln)if(Cr[ln]===cr){Cr[ln]=Cr[Cr.length-1],Cr.pop();return}}}}function un(){return Ye}function Dn(Zt){Object.entries(Zt).forEach(function(cr){Ye[cr[0]]=cr[1]})}var Bn=r(Ar,{clear:Rn,prop:C.define.bind(null,Yr),context:C.define.bind(null,hn),this:C.define.bind(null,_n),draw:Ar({}),buffer:function(Zt){return We.create(Zt,or,!1,!1)},elements:function(Zt){return Ze.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:Ie.create,framebuffer:Me.create,framebufferCube:Me.createCube,vao:Ne.createVAO,attributes:we,frame:Li,on:wr,limits:Ee,hasExtension:function(Zt){return Ee.extensions.indexOf(Zt.toLowerCase())>=0},read:Se,destroy:qn,_gl:Z,_refresh:Xt,poll:function(){on(),Je&&Je.update()},now:li,stats:xe,getCachedCode:un,preloadCachedCode:Dn});return H.onDone(null,Bn),Bn}return Mn})})(iY);var aY=uu,oY=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},sC(t)?t={container:t}:uY(t)?t={container:t}:lY(t)?t={gl:t}:t=aY(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=tr.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}sC(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=cC(),t.container.appendChild(t.canvas),fC(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=cC(),t.container.appendChild(t.canvas),fC(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 fC(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*tr.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*tr.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 sC(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function uY(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function lY(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function cC(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var fY=eP,sY=[32,126],cY=hY;function hY(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||sY;if(n&&typeof n!="string"&&(n=fY(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var 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 p=i[0]/2,x=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],p,x),(p+=i[0])>t[0]-i[0]/2&&(p=i[0]/2,x+=i[1]);return r}var pr={},jr={},Zb=32;jr.INT_BITS=Zb;jr.INT_MAX=2147483647;jr.INT_MIN=-1<<Zb-1;jr.sign=function(e){return(e>0)-(e<0)};jr.abs=function(e){var t=e>>Zb-1;return(e^t)-t};jr.min=function(e,t){return t^(e^t)&-(e<t)};jr.max=function(e,t){return e^(e^t)&-(e<t)};jr.isPow2=function(e){return!(e&e-1)&&!!e};jr.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};jr.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};jr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function tP(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}jr.countTrailingZeros=tP;jr.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};jr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};jr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ph=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}})(ph);jr.reverse=function(e){return ph[e&255]<<24|ph[e>>>8&255]<<16|ph[e>>>16&255]<<8|ph[e>>>24&255]};jr.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};jr.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};jr.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};jr.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};jr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>tP(e)+1};function rP(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]=rP(e,t,r+1);return i}function dY(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function pY(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return dY(e|0,t);break;case"object":if(typeof e.length=="number")return rP(e,t,0);break}return[]}var vY=pY,nP={},xg={};xg.byteLength=yY;xg.toByteArray=_Y;xg.fromByteArray=SY;var ra=[],_i=[],mY=typeof Uint8Array<"u"?Uint8Array:Array,Xx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var yf=0,gY=Xx.length;yf<gY;++yf)ra[yf]=Xx[yf],_i[Xx.charCodeAt(yf)]=yf;_i["-".charCodeAt(0)]=62;_i["_".charCodeAt(0)]=63;function iP(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 yY(e){var t=iP(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xY(e,t,r){return(t+r)*3/4-r}function _Y(e){var t,r=iP(e),n=r[0],i=r[1],a=new mY(xY(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=_i[e.charCodeAt(s)]<<18|_i[e.charCodeAt(s+1)]<<12|_i[e.charCodeAt(s+2)]<<6|_i[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=_i[e.charCodeAt(s)]<<2|_i[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=_i[e.charCodeAt(s)]<<10|_i[e.charCodeAt(s+1)]<<4|_i[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function wY(e){return ra[e>>18&63]+ra[e>>12&63]+ra[e>>6&63]+ra[e&63]}function bY(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(wY(n));return i.join("")}function SY(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(bY(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(ra[t>>2]+ra[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ra[t>>10]+ra[t>>4&63]+ra[t<<2&63]+"=")),i.join("")}var Kb={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Kb.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,c=s>>1,p=-7,x=r?i-1:0,g=r?-1:1,y=e[t+x];for(x+=g,a=y&(1<<-p)-1,y>>=-p,p+=l;p>0;a=a*256+e[t+x],x+=g,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=n;p>0;o=o*256+e[t+x],x+=g,p-=8);if(a===0)a=1-c;else{if(a===s)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(y?-1:1)*o*Math.pow(2,a-n)};Kb.write=function(e,t,r,n,i,a){var o,l,s,c=a*8-i-1,p=(1<<c)-1,x=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,C=n?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+x>=1?t+=g/s:t+=g*Math.pow(2,1-x),t*s>=2&&(o++,s/=2),o+x>=p?(l=0,o=p):o+x>=1?(l=(t*s-1)*Math.pow(2,i),o=o+x):(l=t*Math.pow(2,x-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=l&255,y+=C,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[r+y]=o&255,y+=C,o/=256,c-=8);e[r+y-C]|=P*128};/*!
1071
+ `),Ee;if(H&&(Ee=Up(he),H[Ee]))return H[Ee].apply(null,ke);var We=Function.apply(null,we.concat(he));return H&&(H[Ee]=We),We.apply(null,ke)}return{global:lt,link:xe,block:Ye,proc:bt,scope:Xe,cond:Je,compile:it}}var ka="xyzw".split(""),fc=5121,Ma=1,Au=2,Cu=0,Jl=1,sc=2,ef=3,Ra=4,cc=5,Vp=6,Yp="dither",Xp="blend.enable",Qp="blend.color",tf="blend.equation",rf="blend.func",hc="depth.enable",dc="depth.func",Zp="depth.range",Tu="depth.mask",pc="colorMask",Kp="cull.enable",vc="cull.face",nf="frontFace",mc="lineWidth",Ou="polygonOffset.enable",vo="polygonOffset.offset",gc="sample.alpha",yc="sample.enable",ku="sample.coverage",Hn="stencil.enable",xc="stencil.mask",_c="stencil.func",Mu="stencil.opFront",Pa="stencil.opBack",Jp="scissor.enable",af="scissor.box",Ni="viewport",Fa="profile",Ki="framebuffer",Ru="vert",of="frag",mo="elements",go="primitive",tn="count",uf="offset",lf="instances",ui="vao",Pu="Width",Fu="Height",yo=Ki+Pu,xo=Ki+Fu,vy=Ni+Pu,ev=Ni+Fu,wc="drawingBuffer",bc=wc+Pu,Sc=wc+Fu,my=[rf,tf,_c,Mu,Pa,ku,Ni,af,vo],Na=34962,Ec=34963,gy=2884,yy=3042,tv=3024,rv=2960,ff=2929,nv=3089,sf=32823,iv=32926,Nu=32928,Dr=5126,cf=35664,Ii=35665,_o=35666,hf=5124,Ac=35667,Iu=35668,wo=35669,Cc=35670,Tc=35671,Oc=35672,kc=35673,Mc=35674,Lu=35675,Rc=35676,Pc=35678,u=35680,f=4,h=1028,d=1029,v=2304,m=2305,A=32775,w=32776,M=519,N=7680,L=0,B=1,z=32774,re=513,oe=36160,j=36064,Y={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:v,ccw:m};function ee(R){return Array.isArray(R)||Jr(R)||ei(R)}function Re(R){return R.sort(function(H,Z){return H===Ni?-1:Z===Ni?1:H<Z?-1:1})}function ze(R,H,Z,we){this.thisDep=R,this.contextDep=H,this.propDep=Z,this.append=we}function tt(R){return R&&!(R.thisDep||R.contextDep||R.propDep)}function je(R){return new ze(!1,!1,!1,R)}function at(R,H){var Z=R.type;if(Z===Cu){var we=R.data.length;return new ze(!0,we>=1,we>=2,H)}else if(Z===Ra){var ke=R.data;return new ze(ke.thisDep,ke.contextDep,ke.propDep,H)}else{if(Z===cc)return new ze(!1,!1,!1,H);if(Z===Vp){for(var ge=!1,xe=!1,Ye=!1,Xe=0;Xe<R.data.length;++Xe){var Je=R.data[Xe];if(Je.type===Jl)Ye=!0;else if(Je.type===sc)xe=!0;else if(Je.type===ef)ge=!0;else if(Je.type===Cu){ge=!0;var lt=Je.data;lt>=1&&(xe=!0),lt>=2&&(Ye=!0)}else Je.type===Ra&&(ge=ge||Je.data.thisDep,xe=xe||Je.data.contextDep,Ye=Ye||Je.data.propDep)}return new ze(ge,xe,Ye,H)}else return new ze(Z===ef,Z===sc,Z===Jl,H)}}var vt=new ze(!1,!1,!1,function(){});function Gt(R,H,Z,we,ke,ge,xe,Ye,Xe,Je,lt,Rt,bt,it,Ge,he){var Ee=Je.Record,We={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(We.min=A,We.max=w);var Ze=Z.angle_instanced_arrays,Ne=Z.webgl_draw_buffers,dt=Z.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},Ie=[],Me={},mt={};function Se(U){return U.replace(".","_")}function st(U,q,J){var _e=Se(U);Ie.push(U),Pt[_e]=ot[_e]=!!J,Me[_e]=q}function Ke(U,q,J){var _e=Se(U);Ie.push(U),Array.isArray(J)?(ot[_e]=J.slice(),Pt[_e]=J.slice()):ot[_e]=Pt[_e]=J,mt[_e]=q}function Ft(U){return!!isNaN(U)}st(Yp,tv),st(Xp,yy),Ke(Qp,"blendColor",[0,0,0,0]),Ke(tf,"blendEquationSeparate",[z,z]),Ke(rf,"blendFuncSeparate",[B,L,B,L]),st(hc,ff,!0),Ke(dc,"depthFunc",re),Ke(Zp,"depthRange",[0,1]),Ke(Tu,"depthMask",!0),Ke(pc,pc,[!0,!0,!0,!0]),st(Kp,gy),Ke(vc,"cullFace",d),Ke(nf,nf,m),Ke(mc,mc,1),st(Ou,sf),Ke(vo,"polygonOffset",[0,0]),st(gc,iv),st(yc,Nu),Ke(ku,"sampleCoverage",[1,!1]),st(Hn,rv),Ke(xc,"stencilMask",-1),Ke(_c,"stencilFunc",[M,0,-1]),Ke(Mu,"stencilOpSeparate",[h,N,N,N]),Ke(Pa,"stencilOpSeparate",[d,N,N,N]),st(Jp,nv),Ke(af,"scissor",[0,0,R.drawingBufferWidth,R.drawingBufferHeight]),Ke(Ni,Ni,[0,0,R.drawingBufferWidth,R.drawingBufferHeight]);var Jt={gl:R,context:bt,strings:H,next:Pt,current:ot,draw:Rt,elements:ge,buffer:ke,shader:lt,attributes:Je.state,vao:Je,uniforms:Xe,framebuffer:Ye,extensions:Z,timer:it,isBufferArgs:ee},yt={primTypes:en,compareFuncs:K,blendFuncs:Y,blendEquations:We,stencilOps:ue,glTypes:du,orientationType:le};Ne&&(yt.backBuffer=[d],yt.drawBuffer=Te(we.maxDrawbuffers,function(U){return U===0?[0]:Te(U,function(q){return j+q})}));var Bt=0;function ut(){var U=py({cache:Ge}),q=U.link,J=U.global;U.id=Bt++,U.batchId="0";var _e=q(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(mt).forEach(function(te){Array.isArray(ot[te])&&(de[te]=J.def(pe.next,".",te),ce[te]=J.def(pe.current,".",te))});var fe=U.constants={};Object.keys(yt).forEach(function(te){fe[te]=J.def(JSON.stringify(yt[te]))}),U.invoke=function(te,X){switch(X.type){case Cu:var ve=["this",pe.context,pe.props,U.batchId];return te.def(q(X.data),".call(",ve.slice(0,Math.max(X.data.length+1,4)),")");case Jl:return te.def(pe.props,X.data);case sc:return te.def(pe.context,X.data);case ef:return te.def("this",X.data);case Ra:return X.data.append(U,te),X.data.ref;case cc:return X.data.toString();case Vp:return X.data.map(function(Ce){return U.invoke(te,Ce)})}},U.attribCache={};var Q={};return U.scopeAttrib=function(te){var X=H.id(te);if(X in Q)return Q[X];var ve=Je.scope[X];ve||(ve=Je.scope[X]=new Ee);var Ce=Q[X]=q(ve);return Ce},U}function er(U){var q=U.static,J=U.dynamic,_e;if(Fa in q){var pe=!!q[Fa];_e=je(function(ce,fe){return pe}),_e.enable=pe}else if(Fa in J){var de=J[Fa];_e=at(de,function(ce,fe){return ce.invoke(fe,de)})}return _e}function ur(U,q){var J=U.static,_e=U.dynamic;if(Ki in J){var pe=J[Ki];return pe?(pe=Ye.getFramebuffer(pe),je(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,"."+yo,Q+".width"),fe.set(X,"."+xo,Q+".height"),Q})):je(function(ce,fe){var Q=ce.shared;fe.set(Q.framebuffer,".next","null");var te=Q.context;return fe.set(te,"."+yo,te+"."+bc),fe.set(te,"."+xo,te+"."+Sc),"null"})}else if(Ki in _e){var de=_e[Ki];return at(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 Ce=te.context;return fe.set(Ce,"."+yo,ve+"?"+ve+".width:"+Ce+"."+bc),fe.set(Ce,"."+xo,ve+"?"+ve+".height:"+Ce+"."+Sc),ve})}else return null}function hr(U,q,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,Ce=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 ze(!X&&q&&q.thisDep,!X&&q&&q.contextDep,!X&&q&&q.propDep,function(Nt,St){var $t=Nt.shared.context,_t=Le;"width"in te||(_t=St.def($t,".",yo,"-",ve));var Tt=Lt;return"height"in te||(Tt=St.def($t,".",xo,"-",Ce)),[ve,Ce,_t,Tt]})}else if(Q in pe){var Mt=pe[Q],gt=at(Mt,function(Nt,St){var $t=Nt.invoke(St,Mt),_t=Nt.shared.context,Tt=St.def($t,".x|0"),Ot=St.def($t,".y|0"),Wt=St.def('"width" in ',$t,"?",$t,".width|0:","(",_t,".",yo,"-",Tt,")"),Pr=St.def('"height" in ',$t,"?",$t,".height|0:","(",_t,".",xo,"-",Ot,")");return[Tt,Ot,Wt,Pr]});return q&&(gt.thisDep=gt.thisDep||q.thisDep,gt.contextDep=gt.contextDep||q.contextDep,gt.propDep=gt.propDep||q.propDep),gt}else return q?new ze(q.thisDep,q.contextDep,q.propDep,function(Nt,St){var $t=Nt.shared.context;return[0,0,St.def($t,".",yo),St.def($t,".",xo)]}):null}var ce=de(Ni);if(ce){var fe=ce;ce=new ze(ce.thisDep,ce.contextDep,ce.propDep,function(Q,te){var X=fe.append(Q,te),ve=Q.shared.context;return te.set(ve,"."+vy,X[2]),te.set(ve,"."+ev,X[3]),X})}return{viewport:ce,scissor_box:de(af)}}function nn(U,q){var J=U.static,_e=typeof J[of]=="string"&&typeof J[Ru]=="string";if(_e){if(Object.keys(q.dynamic).length>0)return null;var pe=q.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],fe=0;fe<de.length;++fe)ce.push([pe[de[fe]]|0,de[fe]]);return ce}}return null}function lr(U,q,J){var _e=U.static,pe=U.dynamic;function de(X){if(X in _e){var ve=H.id(_e[X]),Ce=je(function(){return ve});return Ce.id=ve,Ce}else if(X in pe){var Le=pe[X];return at(Le,function(Lt,Mt){var gt=Lt.invoke(Mt,Le),Nt=Mt.def(Lt.shared.strings,".id(",gt,")");return Nt})}return null}var ce=de(of),fe=de(Ru),Q=null,te;return tt(ce)&&tt(fe)?(Q=lt.program(fe.id,ce.id,null,J),te=je(function(X,ve){return X.link(Q)})):te=new ze(ce&&ce.thisDep||fe&&fe.thisDep,ce&&ce.contextDep||fe&&fe.contextDep,ce&&ce.propDep||fe&&fe.propDep,function(X,ve){var Ce=X.shared.shader,Le;ce?Le=ce.append(X,ve):Le=ve.def(Ce,".",of);var Lt;fe?Lt=fe.append(X,ve):Lt=ve.def(Ce,".",Ru);var Mt=Ce+".program("+Lt+","+Le;return ve.def(Mt+")")}),{frag:ce,vert:fe,progVar:te,program:Q}}function qn(U,q){var J=U.static,_e=U.dynamic,pe={},de=!1;function ce(){if(ui in J){var St=J[ui];return St!==null&&Je.getVAO(St)===null&&(St=Je.createVAO(St)),de=!0,pe.vao=St,je(function(_t){var Tt=Je.getVAO(St);return Tt?_t.link(Tt):"null"})}else if(ui in _e){de=!0;var $t=_e[ui];return at($t,function(_t,Tt){var Ot=_t.invoke(Tt,$t);return Tt.def(_t.shared.vao+".getVAO("+Ot+")")})}return null}var fe=ce(),Q=!1;function te(){if(mo in J){var St=J[mo];if(pe.elements=St,ee(St)){var $t=pe.elements=ge.create(St,!0);St=ge.getElements($t),Q=!0}else St&&(St=ge.getElements(St),Q=!0);var _t=je(function(Ot,Wt){if(St){var Pr=Ot.link(St);return Ot.ELEMENTS=Pr,Pr}return Ot.ELEMENTS=null,null});return _t.value=St,_t}else if(mo in _e){Q=!0;var Tt=_e[mo];return at(Tt,function(Ot,Wt){var Pr=Ot.shared,Vn=Pr.isBufferArgs,Ia=Pr.elements,bo=Ot.invoke(Wt,Tt),So=Wt.def("null"),yi=Wt.def(Vn,"(",bo,")"),Fc=Ot.cond(yi).then(So,"=",Ia,".createStream(",bo,");").else(So,"=",Ia,".getElements(",bo,");");return Wt.entry(Fc),Wt.exit(Ot.cond(yi).then(Ia,".destroyStream(",So,");")),Ot.ELEMENTS=So,So})}else if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.elements+".getElements("+Ot.shared.vao+".currentVAO.elements):null")});return null}var X=te();function ve(){if(go in J){var St=J[go];return pe.primitive=St,je(function(_t,Tt){return en[St]})}else if(go in _e){var $t=_e[go];return at($t,function(_t,Tt){var Ot=_t.constants.primTypes,Wt=_t.invoke(Tt,$t);return Tt.def(Ot,"[",Wt,"]")})}else{if(Q)return tt(X)?X.value?je(function(_t,Tt){return Tt.def(_t.ELEMENTS,".primType")}):je(function(){return f}):new ze(X.thisDep,X.contextDep,X.propDep,function(_t,Tt){var Ot=_t.ELEMENTS;return Tt.def(Ot,"?",Ot,".primType:",f)});if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(_t,Tt){return Tt.def(_t.shared.vao+".currentVAO?"+_t.shared.vao+".currentVAO.primitive:"+f)})}return null}function Ce(St,$t){if(St in J){var _t=J[St]|0;return $t?pe.offset=_t:pe.instances=_t,je(function(Ot,Wt){return $t&&(Ot.OFFSET=_t),_t})}else if(St in _e){var Tt=_e[St];return at(Tt,function(Ot,Wt){var Pr=Ot.invoke(Wt,Tt);return $t&&(Ot.OFFSET=Pr),Pr})}else if($t){if(Q)return je(function(Ot,Wt){return Ot.OFFSET=0,0});if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.vao+".currentVAO.offset:0")})}else if(de)return new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Ot,Wt){return Wt.def(Ot.shared.vao+".currentVAO?"+Ot.shared.vao+".currentVAO.instances:-1")});return null}var Le=Ce(uf,!0);function Lt(){if(tn in J){var St=J[tn]|0;return pe.count=St,je(function(){return St})}else if(tn in _e){var $t=_e[tn];return at($t,function(Wt,Pr){var Vn=Wt.invoke(Pr,$t);return Vn})}else if(Q)if(tt(X)){if(X)return Le?new ze(Le.thisDep,Le.contextDep,Le.propDep,function(Wt,Pr){var Vn=Pr.def(Wt.ELEMENTS,".vertCount-",Wt.OFFSET);return Vn}):je(function(Wt,Pr){return Pr.def(Wt.ELEMENTS,".vertCount")});var _t=je(function(){return-1});return _t}else{var Tt=new ze(X.thisDep||Le.thisDep,X.contextDep||Le.contextDep,X.propDep||Le.propDep,function(Wt,Pr){var Vn=Wt.ELEMENTS;return Wt.OFFSET?Pr.def(Vn,"?",Vn,".vertCount-",Wt.OFFSET,":-1"):Pr.def(Vn,"?",Vn,".vertCount:-1")});return Tt}else if(de){var Ot=new ze(fe.thisDep,fe.contextDep,fe.propDep,function(Wt,Pr){return Pr.def(Wt.shared.vao,".currentVAO?",Wt.shared.vao,".currentVAO.count:-1")});return Ot}return null}var Mt=ve(),gt=Lt(),Nt=Ce(lf,!1);return{elements:X,primitive:Mt,count:gt,instances:Nt,offset:Le,vao:fe,vaoActive:de,elementsActive:Q,static:pe}}function Ar(U,q){var J=U.static,_e=U.dynamic,pe={};return Ie.forEach(function(de){var ce=Se(de);function fe(Q,te){if(de in J){var X=Q(J[de]);pe[ce]=je(function(){return X})}else if(de in _e){var ve=_e[de];pe[ce]=at(ve,function(Ce,Le){return te(Ce,Le,Ce.invoke(Le,ve))})}}switch(de){case Kp:case Xp:case Yp:case Hn:case hc:case Jp:case Ou:case gc:case yc:case Tu:return fe(function(Q){return Q},function(Q,te,X){return X});case dc:return fe(function(Q){return K[Q]},function(Q,te,X){var ve=Q.constants.compareFuncs;return te.def(ve,"[",X,"]")});case Zp:return fe(function(Q){return Q},function(Q,te,X){var ve=te.def("+",X,"[0]"),Ce=te.def("+",X,"[1]");return[ve,Ce]});case rf: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,Ce="dstAlpha"in Q?Q.dstAlpha:Q.dst;return[Y[te],Y[ve],Y[X],Y[Ce]]},function(Q,te,X){var ve=Q.constants.blendFuncs;function Ce($t,_t){var Tt=te.def('"',$t,_t,'" in ',X,"?",X,".",$t,_t,":",X,".",$t);return Tt}var Le=Ce("src","RGB"),Lt=Ce("dst","RGB"),Mt=te.def(ve,"[",Le,"]"),gt=te.def(ve,"[",Ce("src","Alpha"),"]"),Nt=te.def(ve,"[",Lt,"]"),St=te.def(ve,"[",Ce("dst","Alpha"),"]");return[Mt,Nt,gt,St]});case tf:return fe(function(Q){if(typeof Q=="string")return[We[Q],We[Q]];if(typeof Q=="object")return[We[Q.rgb],We[Q.alpha]]},function(Q,te,X){var ve=Q.constants.blendEquations,Ce=te.def(),Le=te.def(),Lt=Q.cond("typeof ",X,'==="string"');return Lt.then(Ce,"=",Le,"=",ve,"[",X,"];"),Lt.else(Ce,"=",ve,"[",X,".rgb];",Le,"=",ve,"[",X,".alpha];"),te(Lt),[Ce,Le]});case Qp:return fe(function(Q){return Te(4,function(te){return+Q[te]})},function(Q,te,X){return Te(4,function(ve){return te.def("+",X,"[",ve,"]")})});case xc:return fe(function(Q){return Q|0},function(Q,te,X){return te.def(X,"|0")});case _c: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,Ce=te.def('"cmp" in ',X,"?",ve,"[",X,".cmp]",":",N),Le=te.def(X,".ref|0"),Lt=te.def('"mask" in ',X,"?",X,".mask|0:-1");return[Ce,Le,Lt]});case Mu:case Pa:return fe(function(Q){var te=Q.fail||"keep",X=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===Pa?d:h,ue[te],ue[X],ue[ve]]},function(Q,te,X){var ve=Q.constants.stencilOps;function Ce(Le){return te.def('"',Le,'" in ',X,"?",ve,"[",X,".",Le,"]:",N)}return[de===Pa?d:h,Ce("fail"),Ce("zfail"),Ce("zpass")]});case vo: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"),Ce=te.def(X,".units|0");return[ve,Ce]});case vc: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 mc:return fe(function(Q){return Q},function(Q,te,X){return X});case nf:return fe(function(Q){return le[Q]},function(Q,te,X){return te.def(X+'==="cw"?'+v+":"+m)});case pc:return fe(function(Q){return Q.map(function(te){return!!te})},function(Q,te,X){return Te(4,function(ve){return"!!"+X+"["+ve+"]"})});case ku: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"),Ce=te.def("!!",X,".invert");return[ve,Ce]})}}),pe}function wn(U,q){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=je(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?fe=je(function(te){return te.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(fe=je(function(te){return te.link(ce.color[0])}))}else ri(ce)&&(fe=je(function(te){var X=te.global.def("[",Te(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]=at(ce,function(fe,Q){return fe.invoke(Q,ce)})}),pe}function Wn(U,q){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 Ee;if(ee(ce))Q.state=Ma,Q.buffer=ke.getBuffer(ke.create(ce,Na,!1,!0)),Q.type=0;else{var te=ke.getBuffer(ce);if(te)Q.state=Ma,Q.buffer=te,Q.type=0;else if("constant"in ce){var X=ce.constant;Q.buffer="null",Q.state=Au,typeof X=="number"?Q.x=X:ka.forEach(function(Nt,St){St<X.length&&(Q[Nt]=X[St])})}else{ee(ce.buffer)?te=ke.getBuffer(ke.create(ce.buffer,Na,!1,!0)):te=ke.getBuffer(ce.buffer);var ve=ce.offset|0,Ce=ce.stride|0,Le=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=du[ce.type]);var gt=ce.divisor|0;Q.buffer=te,Q.state=Ma,Q.size=Le,Q.normalized=Lt,Q.type=Mt||te.dtype,Q.offset=ve,Q.stride=Ce,Q.divisor=gt}}pe[de]=je(function(Nt,St){var $t=Nt.attribCache;if(fe in $t)return $t[fe];var _t={isStream:!1};return Object.keys(Q).forEach(function(Tt){_t[Tt]=Q[Tt]}),Q.buffer&&(_t.buffer=Nt.link(Q.buffer),_t.type=_t.type||_t.buffer+".dtype"),$t[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,Ce=Q.constants,Le=ve.isBufferArgs,Lt=ve.buffer,Mt={isStream:te.def(!1)},gt=new Ee;gt.state=Ma,Object.keys(gt).forEach(function(_t){Mt[_t]=te.def(""+gt[_t])});var Nt=Mt.buffer,St=Mt.type;te("if(",Le,"(",X,")){",Mt.isStream,"=true;",Nt,"=",Lt,".createStream(",Na,",",X,");",St,"=",Nt,".dtype;","}else{",Nt,"=",Lt,".getBuffer(",X,");","if(",Nt,"){",St,"=",Nt,".dtype;",'}else if("constant" in ',X,"){",Mt.state,"=",Au,";","if(typeof "+X+'.constant === "number"){',Mt[ka[0]],"=",X,".constant;",ka.slice(1).map(function(_t){return Mt[_t]}).join("="),"=0;","}else{",ka.map(function(_t,Tt){return Mt[_t]+"="+X+".constant.length>"+Tt+"?"+X+".constant["+Tt+"]:0;"}).join(""),"}}else{","if(",Le,"(",X,".buffer)){",Nt,"=",Lt,".createStream(",Na,",",X,".buffer);","}else{",Nt,"=",Lt,".getBuffer(",X,".buffer);","}",St,'="type" in ',X,"?",Ce.glTypes,"[",X,".type]:",Nt,".dtype;",Mt.normalized,"=!!",X,".normalized;");function $t(_t){te(Mt[_t],"=",X,".",_t,"|0;")}return $t("size"),$t("offset"),$t("stride"),$t("divisor"),te("}}"),te.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Nt,");","}"),Mt}pe[de]=at(ce,fe)}),pe}function Rn(U){var q=U.static,J=U.dynamic,_e={};return Object.keys(q).forEach(function(pe){var de=q[pe];_e[pe]=je(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]=at(de,function(ce,fe){return ce.invoke(fe,de)})}),_e}function Li(U,q,J,_e,pe){U.static,U.dynamic;var de=nn(U,q),ce=ur(U),fe=hr(U,ce),Q=qn(U),te=Ar(U),X=lr(U,pe,de);function ve(Nt){var St=fe[Nt];St&&(te[Nt]=St)}ve(Ni),ve(Se(af));var Ce=Object.keys(te).length>0,Le={framebuffer:ce,draw:Q,shader:X,state:te,dirty:Ce,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Le.profile=er(U),Le.uniforms=wn(J),Le.drawVAO=Le.scopeVAO=Q.vao,!Le.drawVAO&&X.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,Mt=X.program.attributes.map(function(Nt){var St=q.static[Nt];return Lt=Lt&&!!St,St});if(Lt&&Mt.length>0){var gt=Je.getVAO(Je.createVAO({attributes:Mt,elements:Q.static.elements}));Le.drawVAO=new ze(null,null,null,function(Nt,St){return Nt.link(gt)}),Le.useVAO=!0}}return de?Le.useVAO=!0:Le.attributes=Wn(q),Le.context=Rn(_e),Le}function an(U,q,J){var _e=U.shared,pe=_e.context,de=U.scope();Object.keys(J).forEach(function(ce){q.save(pe,"."+ce);var fe=J[ce],Q=fe.append(U,q);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),q(de)}function on(U,q,J,_e){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,fe;Ne&&(fe=q.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,te=Q.drawBuffer,X=Q.backBuffer,ve;J?ve=J.append(U,q):ve=q.def(ce,".next"),_e||q("if(",ve,"!==",ce,".cur){"),q("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&q(fe,".drawBuffersWEBGL(",te,"[",ve,".colorAttachments.length]);"),q("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&q(fe,".drawBuffersWEBGL(",X,");"),q("}",ce,".cur=",ve,";"),_e||q("}")}function Xt(U,q,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");Ie.forEach(function(X){var ve=Se(X);if(!(ve in J.state)){var Ce,Le;if(ve in ce){Ce=ce[ve],Le=de[ve];var Lt=Te(ot[ve].length,function(gt){return te.def(Ce,"[",gt,"]")});te(U.cond(Lt.map(function(gt,Nt){return gt+"!=="+Le+"["+Nt+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Nt){return Le+"["+Nt+"]="+gt}).join(";"),";"))}else{Ce=te.def(Q,".",ve);var Mt=U.cond(Ce,"!==",fe,".",ve);te(Mt),ve in Me?Mt(U.cond(Ce).then(pe,".enable(",Me[ve],");").else(pe,".disable(",Me[ve],");"),fe,".",ve,"=",Ce,";"):Mt(pe,".",mt[ve],"(",Ce,");",fe,".",ve,"=",Ce,";")}}}),Object.keys(J.state).length===0&&te(fe,".dirty=false;"),q(te)}function li(U,q,J,_e){var pe=U.shared,de=U.current,ce=pe.current,fe=pe.gl,Q;Re(Object.keys(J)).forEach(function(te){var X=J[te];if(!(_e&&!_e(X))){var ve=X.append(U,q);if(Me[te]){var Ce=Me[te];tt(X)?(Q=U.link(ve,{stable:!0}),q(U.cond(Q).then(fe,".enable(",Ce,");").else(fe,".disable(",Ce,");")),q(ce,".",te,"=",Q,";")):(q(U.cond(ve).then(fe,".enable(",Ce,");").else(fe,".disable(",Ce,");")),q(ce,".",te,"=",ve,";"))}else if(ri(ve)){var Le=de[te];q(fe,".",mt[te],"(",ve,");",ve.map(function(Lt,Mt){return Le+"["+Mt+"]="+Lt}).join(";"),";")}else tt(X)?(Q=U.link(ve,{stable:!0}),q(fe,".",mt[te],"(",Q,");",ce,".",te,"=",Q,";")):q(fe,".",mt[te],"(",ve,");",ce,".",te,"=",ve,";")}})}function wr(U,q){Ze&&(U.instancing=q.def(U.shared.extensions,".angle_instanced_arrays"))}function un(U,q,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,Ce;function Le($t){ve=q.def(),$t(ve,"=",X(),";"),typeof pe=="string"?$t(ce,".count+=",pe,";"):$t(ce,".count++;"),it&&(_e?(Ce=q.def(),$t(Ce,"=",Q,".getNumPendingQueries();")):$t(Q,".beginQuery(",ce,");"))}function Lt($t){$t(ce,".cpuTime+=",X(),"-",ve,";"),it&&(_e?$t(Q,".pushScopeStats(",Ce,",",Q,".getNumPendingQueries(),",ce,");"):$t(Q,".endQuery();"))}function Mt($t){var _t=q.def(fe,".profile");q(fe,".profile=",$t,";"),q.exit(fe,".profile=",_t,";")}var gt;if(te){if(tt(te)){te.enable?(Le(q),Lt(q.exit),Mt("true")):Mt("false");return}gt=te.append(U,q),Mt(gt)}else gt=q.def(fe,".profile");var Nt=U.block();Le(Nt),q("if(",gt,"){",Nt,"}");var St=U.block();Lt(St),q.exit("if(",gt,"){",St,"}")}function Dn(U,q,J,_e,pe){var de=U.shared;function ce(Q){switch(Q){case cf:case Ac:case Tc:return 2;case Ii:case Iu:case Oc:return 3;case _o:case wo:case kc:return 4;default:return 1}}function fe(Q,te,X){var ve=de.gl,Ce=q.def(Q,".location"),Le=q.def(de.attributes,"[",Ce,"]"),Lt=X.state,Mt=X.buffer,gt=[X.x,X.y,X.z,X.w],Nt=["buffer","normalized","offset","stride"];function St(){q("if(!",Le,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var _t=X.type,Tt;if(X.size?Tt=q.def(X.size,"||",te):Tt=te,q("if(",Le,".type!==",_t,"||",Le,".size!==",Tt,"||",Nt.map(function(Wt){return Le+"."+Wt+"!=="+X[Wt]}).join("||"),"){",ve,".bindBuffer(",Na,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Ce,Tt,_t,X.normalized,X.stride,X.offset],");",Le,".type=",_t,";",Le,".size=",Tt,";",Nt.map(function(Wt){return Le+"."+Wt+"="+X[Wt]+";"}).join(""),"}"),Ze){var Ot=X.divisor;q("if(",Le,".divisor!==",Ot,"){",U.instancing,".vertexAttribDivisorANGLE(",[Ce,Ot],");",Le,".divisor=",Ot,";}")}}function $t(){q("if(",Le,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Le,".buffer=null;","}if(",ka.map(function(_t,Tt){return Le+"."+_t+"!=="+gt[Tt]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",gt,");",ka.map(function(_t,Tt){return Le+"."+_t+"="+gt[Tt]+";"}).join(""),"}")}Lt===Ma?St():Lt===Au?$t():(q("if(",Lt,"===",Ma,"){"),St(),q("}else{"),$t(),q("}"))}_e.forEach(function(Q){var te=Q.name,X=J.attributes[te],ve;if(X){if(!pe(X))return;ve=X.append(U,q)}else{if(!pe(vt))return;var Ce=U.scopeAttrib(te);ve={},Object.keys(new Ee).forEach(function(Le){ve[Le]=q.def(Ce,".",Le)})}fe(U.link(Q),ce(Q.info.type),ve)})}function Bn(U,q,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,Ce=X.info.type,Le=J.uniforms[ve],Lt=U.link(X),Mt=Lt+".location",gt;if(Le){if(!pe(Le))continue;if(tt(Le)){var Nt=Le.value;if(Ce===Pc||Ce===u){var St=U.link(Nt._texture||Nt.color[0]._texture);q(fe,".uniform1i(",Mt,",",St+".bind());"),q.exit(St,".unbind();")}else if(Ce===Mc||Ce===Lu||Ce===Rc){var $t=U.global.def("new Float32Array(["+Array.prototype.slice.call(Nt)+"])"),_t=2;Ce===Lu?_t=3:Ce===Rc&&(_t=4),q(fe,".uniformMatrix",_t,"fv(",Mt,",false,",$t,");")}else{switch(Ce){case Dr:Q="1f";break;case cf:Q="2f";break;case Ii:Q="3f";break;case _o:Q="4f";break;case Cc:Q="1i";break;case hf:Q="1i";break;case Tc:Q="2i";break;case Ac:Q="2i";break;case Oc:Q="3i";break;case Iu:Q="3i";break;case kc:Q="4i";break;case wo:Q="4i";break}q(fe,".uniform",Q,"(",Mt,",",ri(Nt)?Array.prototype.slice.call(Nt):Nt,");")}continue}else gt=Le.append(U,q)}else{if(!pe(vt))continue;gt=q.def(ce.uniforms,"[",H.id(ve),"]")}Ce===Pc?q("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Ce===u&&q("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Tt=1;switch(Ce){case Pc:case u:var Ot=q.def(gt,"._texture");q(fe,".uniform1i(",Mt,",",Ot,".bind());"),q.exit(Ot,".unbind();");continue;case hf:case Cc:Q="1i";break;case Ac:case Tc:Q="2i",Tt=2;break;case Iu:case Oc:Q="3i",Tt=3;break;case wo:case kc:Q="4i",Tt=4;break;case Dr:Q="1f";break;case cf:Q="2f",Tt=2;break;case Ii:Q="3f",Tt=3;break;case _o:Q="4f",Tt=4;break;case Mc:Q="Matrix2fv";break;case Lu:Q="Matrix3fv";break;case Rc:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){q(fe,".uniform",Q,"(",Mt,",");var Wt=Math.pow(Ce-Mc+2,2),Pr=U.global.def("new Float32Array(",Wt,")");Array.isArray(gt)?q("false,(",Te(Wt,function(yi){return Pr+"["+yi+"]="+gt[yi]}),",",Pr,")"):q("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",Te(Wt,function(yi){return Pr+"["+yi+"]="+gt+"["+yi+"]"}),",",Pr,")"),q(");")}else if(Tt>1){for(var Vn=[],Ia=[],bo=0;bo<Tt;++bo)Array.isArray(gt)?Ia.push(gt[bo]):Ia.push(q.def(gt+"["+bo+"]")),de&&Vn.push(q.def());de&&q("if(!",U.batchId,"||",Vn.map(function(yi,Fc){return yi+"!=="+Ia[Fc]}).join("||"),"){",Vn.map(function(yi,Fc){return yi+"="+Ia[Fc]+";"}).join("")),q(fe,".uniform",Q,"(",Mt,",",Ia.join(","),");"),de&&q("}")}else{if(de){var So=q.def();q("if(!",U.batchId,"||",So,"!==",gt,"){",So,"=",gt,";")}q(fe,".uniform",Q,"(",Mt,",",gt,");"),de&&q("}")}}}function Zt(U,q,J,_e){var pe=U.shared,de=pe.gl,ce=pe.draw,fe=_e.draw;function Q(){var Tt=fe.elements,Ot,Wt=q;return Tt?((Tt.contextDep&&_e.contextDynamic||Tt.propDep)&&(Wt=J),Ot=Tt.append(U,Wt),fe.elementsActive&&Wt("if("+Ot+")"+de+".bindBuffer("+Ec+","+Ot+".buffer.buffer);")):(Ot=Wt.def(),Wt(Ot,"=",ce,".",mo,";","if(",Ot,"){",de,".bindBuffer(",Ec,",",Ot,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",Ot,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",dt?"":"if("+Ot+")"+de+".bindBuffer("+Ec+","+Ot+".buffer.buffer);","}")),Ot}function te(){var Tt=fe.count,Ot,Wt=q;return Tt?((Tt.contextDep&&_e.contextDynamic||Tt.propDep)&&(Wt=J),Ot=Tt.append(U,Wt)):Ot=Wt.def(ce,".",tn),Ot}var X=Q();function ve(Tt){var Ot=fe[Tt];return Ot?Ot.contextDep&&_e.contextDynamic||Ot.propDep?Ot.append(U,J):Ot.append(U,q):q.def(ce,".",Tt)}var Ce=ve(go),Le=ve(uf),Lt=te();if(typeof Lt=="number"){if(Lt===0)return}else J("if(",Lt,"){"),J.exit("}");var Mt,gt;Ze&&(Mt=ve(lf),gt=U.instancing);var Nt=X+".type",St=fe.elements&&tt(fe.elements)&&!fe.vaoActive;function $t(){function Tt(){J(gt,".drawElementsInstancedANGLE(",[Ce,Lt,Nt,Le+"<<(("+Nt+"-"+fc+")>>1)",Mt],");")}function Ot(){J(gt,".drawArraysInstancedANGLE(",[Ce,Le,Lt,Mt],");")}X&&X!=="null"?St?Tt():(J("if(",X,"){"),Tt(),J("}else{"),Ot(),J("}")):Ot()}function _t(){function Tt(){J(de+".drawElements("+[Ce,Lt,Nt,Le+"<<(("+Nt+"-"+fc+")>>1)"]+");")}function Ot(){J(de+".drawArrays("+[Ce,Le,Lt]+");")}X&&X!=="null"?St?Tt():(J("if(",X,"){"),Tt(),J("}else{"),Ot(),J("}")):Ot()}Ze&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(J("if(",Mt,">0){"),$t(),J("}else if(",Mt,"<0){"),_t(),J("}")):$t():_t()}function cr(U,q,J,_e,pe){var de=ut(),ce=de.proc("body",pe);return Ze&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,J,_e),de.compile().body}function Tr(U,q,J,_e){wr(U,q),J.useVAO?J.drawVAO?q(U.shared.vao,".setVAO(",J.drawVAO.append(U,q),");"):q(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(q(U.shared.vao,".setVAO(null);"),Dn(U,q,J,_e.attributes,function(){return!0})),Bn(U,q,J,_e.uniforms,function(){return!0},!1),Zt(U,q,q,J)}function ln(U,q){var J=U.proc("draw",1);wr(U,J),an(U,J,q.context),on(U,J,q.framebuffer),Xt(U,J,q),li(U,J,q.state),un(U,J,q,!1,!0);var _e=q.shader.progVar.append(U,J);if(J(U.shared.gl,".useProgram(",_e,".program);"),q.shader.program)Tr(U,J,q,q.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 cr(Tr,U,q,fe,1)}),"(",_e,");",ce,".call(this,a0);"))}Object.keys(q.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function W(U,q,J,_e){U.batchId="a1",wr(U,q);function pe(){return!0}Dn(U,q,J,_e.attributes,pe),Bn(U,q,J,_e.uniforms,pe,!1),Zt(U,q,q,J)}function ye(U,q,J,_e){wr(U,q);var pe=J.contextDep,de=q.def(),ce="a0",fe="a1",Q=q.def();U.shared.props=Q,U.batchId=de;var te=U.scope(),X=U.scope();q(te.entry,"for(",de,"=0;",de,"<",fe,";++",de,"){",Q,"=",ce,"[",de,"];",X,"}",te.exit);function ve(Nt){return Nt.contextDep&&pe||Nt.propDep}function Ce(Nt){return!ve(Nt)}if(J.needsContext&&an(U,X,J.context),J.needsFramebuffer&&on(U,X,J.framebuffer),li(U,X,J.state,ve),J.profile&&ve(J.profile)&&un(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);"),Dn(U,te,J,_e.attributes,Ce),Dn(U,X,J,_e.attributes,ve)),Bn(U,te,J,_e.uniforms,Ce,!1),Bn(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),Mt=X.def(Lt,".id"),gt=X.def(Le,"[",Mt,"]");X(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Le,"[",Mt,"]=",U.link(function(Nt){return cr(W,U,J,Nt,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function me(U,q){var J=U.proc("batch",2);U.batchId="0",wr(U,J);var _e=!1,pe=!0;Object.keys(q.context).forEach(function(Le){_e=_e||q.context[Le].propDep}),_e||(an(U,J,q.context),pe=!1);var de=q.framebuffer,ce=!1;de?(de.propDep?_e=ce=!0:de.contextDep&&_e&&(ce=!0),ce||on(U,J,de)):on(U,J,null),q.state.viewport&&q.state.viewport.propDep&&(_e=!0);function fe(Le){return Le.contextDep&&_e||Le.propDep}Xt(U,J,q),li(U,J,q.state,function(Le){return!fe(Le)}),(!q.profile||!fe(q.profile))&&un(U,J,q,!1,"a1"),q.contextDep=_e,q.needsContext=pe,q.needsFramebuffer=ce;var Q=q.shader.progVar;if(Q.contextDep&&_e||Q.propDep)ye(U,J,q,null);else{var te=Q.append(U,J);if(J(U.shared.gl,".useProgram(",te,".program);"),q.shader.program)ye(U,J,q,q.shader.program);else{J(U.shared.vao,".setVAO(null);");var X=U.global.def("{}"),ve=J.def(te,".id"),Ce=J.def(X,"[",ve,"]");J(U.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",X,"[",ve,"]=",U.link(function(Le){return cr(ye,U,q,Le,2)}),"(",te,");",Ce,".call(this,a0,a1);"))}}Object.keys(q.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function At(U,q){var J=U.proc("scope",3);U.batchId="a2";var _e=U.shared,pe=_e.current;if(an(U,J,q.context),q.framebuffer&&q.framebuffer.append(U,J),Re(Object.keys(q.state)).forEach(function(fe){var Q=q.state[fe],te=Q.append(U,J);ri(te)?te.forEach(function(X,ve){Ft(X)?J.set(U.next[fe],"["+ve+"]",X):J.set(U.next[fe],"["+ve+"]",U.link(X,{stable:!0}))}):tt(Q)?J.set(_e.next,"."+fe,U.link(te,{stable:!0})):J.set(_e.next,"."+fe,te)}),un(U,J,q,!0,!0),[mo,uf,tn,lf,go].forEach(function(fe){var Q=q.draw[fe];if(Q){var te=Q.append(U,J);Ft(te)?J.set(_e.draw,"."+fe,te):J.set(_e.draw,"."+fe,U.link(te),{stable:!0})}}),Object.keys(q.uniforms).forEach(function(fe){var Q=q.uniforms[fe].append(U,J);Array.isArray(Q)&&(Q="["+Q.map(function(te){return Ft(te)?te:U.link(te,{stable:!0})})+"]"),J.set(_e.uniforms,"["+U.link(H.id(fe),{stable:!0})+"]",Q)}),Object.keys(q.attributes).forEach(function(fe){var Q=q.attributes[fe].append(U,J),te=U.scopeAttrib(fe);Object.keys(new Ee).forEach(function(X){J.set(te,"."+X,Q[X])})}),q.scopeVAO){var de=q.scopeVAO.append(U,J);Ft(de)?J.set(_e.vao,".targetVAO",de):J.set(_e.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(fe){var Q=q.shader[fe];if(Q){var te=Q.append(U,J);Ft(te)?J.set(_e.shader,"."+fe,te):J.set(_e.shader,"."+fe,U.link(te,{stable:!0}))}}ce(Ru),ce(of),Object.keys(q.state).length>0&&(J(pe,".dirty=true;"),J.exit(pe,".dirty=true;")),J("a1(",U.shared.context,",a0,",U.batchId,");")}function rr(U){if(!(typeof U!="object"||ri(U))){for(var q=Object.keys(U),J=0;J<q.length;++J)if(T.isDynamic(U[q[J]]))return!0;return!1}}function Rr(U,q,J){var _e=q.static[J];if(!_e||!rr(_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 Ce=_e[ve];if(T.isDynamic(Ce)){typeof Ce=="function"&&(Ce=_e[ve]=T.unbox(Ce));var Le=at(Ce,null);ce=ce||Le.thisDep,Q=Q||Le.propDep,fe=fe||Le.contextDep}else{switch(pe(te,".",ve,"="),typeof Ce){case"number":pe(Ce);break;case"string":pe('"',Ce,'"');break;case"object":Array.isArray(Ce)&&pe("[",Ce.join(),"]");break;default:pe(U.link(Ce));break}pe(";")}});function X(ve,Ce){de.forEach(function(Le){var Lt=_e[Le];if(T.isDynamic(Lt)){var Mt=ve.invoke(Ce,Lt);Ce(te,".",Le,"=",Mt,";")}})}q.dynamic[J]=new T.DynamicVariable(Ra,{thisDep:ce,contextDep:fe,propDep:Q,ref:te,append:X}),delete q.static[J]}function Ct(U,q,J,_e,pe){var de=ut();de.stats=de.link(pe),Object.keys(q.static).forEach(function(fe){Rr(de,q,fe)}),my.forEach(function(fe){Rr(de,U,fe)});var ce=Li(U,q,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})),ln(de,ce),At(de,ce),me(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=ut(),q=U.proc("poll"),J=U.proc("refresh"),_e=U.block();q(_e),J(_e);var pe=U.shared,de=pe.gl,ce=pe.next,fe=pe.current;_e(fe,".dirty=false;"),on(U,q),on(U,J,null,!0);var Q;Ze&&(Q=U.link(Ze)),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(",Na,",",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 Ce=U.link(we.maxAttributes,{stable:!0});return J("for(var i=0;i<",Ce,";++i){",X,"=",te,"[i];",ve,"}"),Ze&&J("for(var i=0;i<",Ce,";++i){",Q,".vertexAttribDivisorANGLE(i,",te,"[i].divisor);","}"),J(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Me).forEach(function(Le){var Lt=Me[Le],Mt=_e.def(ce,".",Le),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",fe,".",Le,"=",Mt,";"),J(gt),q("if(",Mt,"!==",fe,".",Le,"){",gt,"}")}),Object.keys(mt).forEach(function(Le){var Lt=mt[Le],Mt=ot[Le],gt,Nt,St=U.block();if(St(de,".",Lt,"("),ri(Mt)){var $t=Mt.length;gt=U.global.def(ce,".",Le),Nt=U.global.def(fe,".",Le),St(Te($t,function(_t){return gt+"["+_t+"]"}),");",Te($t,function(_t){return Nt+"["+_t+"]="+gt+"["+_t+"];"}).join("")),q("if(",Te($t,function(_t){return gt+"["+_t+"]!=="+Nt+"["+_t+"]"}).join("||"),"){",St,"}")}else gt=_e.def(ce,".",Le),Nt=_e.def(fe,".",Le),St(gt,");",fe,".",Le,"=",gt,";"),q("if(",gt,"!==",Nt,"){",St,"}");J(St)}),U.compile()}(),compile:Ct}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,ar=34919,Mr=35007,dr=function(R,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function we(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function ke(We){Z.push(We)}var ge=[];function xe(We){var Ze=we();H.ext_disjoint_timer_query.beginQueryEXT(Mr,Ze),ge.push(Ze),it(ge.length-1,ge.length,We)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Mr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var Je=[];function lt(){return Je.pop()||new Xe}function Rt(We){Je.push(We)}var bt=[];function it(We,Ze,Ne){var dt=lt();dt.startQueryIndex=We,dt.endQueryIndex=Ze,dt.sum=0,dt.stats=Ne,bt.push(dt)}var Ge=[],he=[];function Ee(){var We,Ze,Ne=ge.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var dt=0;for(We=0,Ze=0;Ze<ge.length;++Ze){var ot=ge[Ze];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,ar)?(dt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,zt),ke(ot)):ge[We++]=ot,Ge[Ze+1]=dt,he[Ze+1]=We}for(ge.length=We,We=0,Ze=0;Ze<bt.length;++Ze){var Pt=bt[Ze],Ie=Pt.startQueryIndex,Me=Pt.endQueryIndex;Pt.sum+=Ge[Me]-Ge[Ie];var mt=he[Ie],Se=he[Me];Se===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,Rt(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Se,bt[We++]=Pt)}bt.length=We}}return{beginQuery:xe,endQuery:Ye,pushScopeStats:it,update:Ee,getNumPendingQueries:function(){return ge.length},clear:function(){Z.push.apply(Z,ge);for(var We=0;We<Z.length;We++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[We]);ge.length=0,Z.length=0},restore:function(){ge.length=0,Z.length=0}}},rt=16384,Ht=256,Yt=1024,or=34962,Er="webglcontextlost",Br="webglcontextrestored",Yr=1,hn=2,_n=3;function rn(R,H){for(var Z=0;Z<R.length;++Z)if(R[Z]===H)return Z;return-1}function Mn(R){var H=V(R);if(!H)return null;var Z=H.gl,we=Z.getContextAttributes();Z.isContextLost();var ke=ae(Z,H);if(!ke)return null;var ge=_(),xe=xt(),Ye=H.cachedCode||{},Xe=ke.extensions,Je=dr(Z,Xe),lt=b(),Rt=Z.drawingBufferWidth,bt=Z.drawingBufferHeight,it={tick:0,time:0,viewportWidth:Rt,viewportHeight:bt,framebufferWidth:Rt,framebufferHeight:bt,drawingBufferWidth:Rt,drawingBufferHeight:bt,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Ee=Ml(Z,Xe),We=ep(Z,xe,H,dt),Ze=Ll(Z,Xe,We,xe),Ne=ay(Z,Xe,Ee,xe,We,Ze,he);function dt(Zt){return Ne.destroyBuffer(Zt)}var ot=Dp(Z,ge,xe,H),Pt=Jg(Z,Xe,Ee,function(){mt.procs.poll()},it,xe,H),Ie=Fp(Z,Xe,Ee,xe,H),Me=ec(Z,Xe,Ee,Pt,Ie,xe),mt=Gt(Z,ge,Xe,Ee,We,Ze,Pt,Me,Ge,Ne,ot,he,it,Je,Ye,H),Se=zp(Z,Me,mt.procs.poll,it),st=mt.next,Ke=Z.canvas,Ft=[],Jt=[],yt=[],Bt=[H.onDestroy],ut=null;function er(){if(Ft.length===0){Je&&Je.update(),ut=null;return}ut=P.next(er),on();for(var Zt=Ft.length-1;Zt>=0;--Zt){var cr=Ft[Zt];cr&&cr(it,null,0)}Z.flush(),Je&&Je.update()}function ur(){!ut&&Ft.length>0&&(ut=P.next(er))}function hr(){ut&&(P.cancel(er),ut=null)}function nn(Zt){Zt.preventDefault(),hr(),Jt.forEach(function(cr){cr()})}function lr(Zt){Z.getError(),ke.restore(),ot.restore(),We.restore(),Pt.restore(),Ie.restore(),Me.restore(),Ne.restore(),Je&&Je.restore(),mt.procs.refresh(),ur(),yt.forEach(function(cr){cr()})}Ke&&(Ke.addEventListener(Er,nn,!1),Ke.addEventListener(Br,lr,!1));function qn(){Ft.length=0,hr(),Ke&&(Ke.removeEventListener(Er,nn),Ke.removeEventListener(Br,lr)),ot.clear(),Me.clear(),Ie.clear(),Ne.clear(),Pt.clear(),Ze.clear(),We.clear(),Je&&Je.clear(),Bt.forEach(function(Zt){Zt()})}function Ar(Zt){function cr(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 Tr(pe,de){var ce={},fe={};return Object.keys(pe).forEach(function(Q){var te=pe[Q];if(T.isDynamic(te)){fe[Q]=T.unbox(te,Q);return}else if(de&&Array.isArray(te)){for(var X=0;X<te.length;++X)if(T.isDynamic(te[X])){fe[Q]=T.unbox(te,Q);return}}ce[Q]=te}),{dynamic:fe,static:ce}}var ln=Tr(Zt.context||{},!0),W=Tr(Zt.uniforms||{},!0),ye=Tr(Zt.attributes||{},!1),me=Tr(cr(Zt),!1),At={gpuTime:0,cpuTime:0,count:0},rr=mt.compile(me,ye,W,ln,At),Rr=rr.draw,Ct=rr.batch,U=rr.scope,q=[];function J(pe){for(;q.length<pe;)q.push(null);return q}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 Ct.call(this,J(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Ct.call(this,pe,pe.length)}else return Rr.call(this,pe)}return r(_e,{stats:At,destroy:function(){rr.destroy()}})}var wn=Me.setFBO=Ar({framebuffer:T.define.call(null,Yr,"framebuffer")});function Wn(Zt,cr){var Tr=0;mt.procs.poll();var ln=cr.color;ln&&(Z.clearColor(+ln[0]||0,+ln[1]||0,+ln[2]||0,+ln[3]||0),Tr|=rt),"depth"in cr&&(Z.clearDepth(+cr.depth),Tr|=Ht),"stencil"in cr&&(Z.clearStencil(cr.stencil|0),Tr|=Yt),Z.clear(Tr)}function Rn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var cr=0;cr<6;++cr)wn(r({framebuffer:Zt.framebuffer.faces[cr]},Zt),Wn);else wn(Zt,Wn);else Wn(null,Zt)}function Li(Zt){Ft.push(Zt);function cr(){var Tr=rn(Ft,Zt);function ln(){var W=rn(Ft,ln);Ft[W]=Ft[Ft.length-1],Ft.length-=1,Ft.length<=0&&hr()}Ft[Tr]=ln}return ur(),{cancel:cr}}function an(){var Zt=st.viewport,cr=st.scissor_box;Zt[0]=Zt[1]=cr[0]=cr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=cr[2]=Z.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=cr[3]=Z.drawingBufferHeight}function on(){it.tick+=1,it.time=li(),an(),mt.procs.poll()}function Xt(){Pt.refresh(),an(),mt.procs.refresh(),Je&&Je.update()}function li(){return(b()-lt)/1e3}Xt();function wr(Zt,cr){var Tr;switch(Zt){case"frame":return Li(cr);case"lost":Tr=Jt;break;case"restore":Tr=yt;break;case"destroy":Tr=Bt;break}return Tr.push(cr),{cancel:function(){for(var ln=0;ln<Tr.length;++ln)if(Tr[ln]===cr){Tr[ln]=Tr[Tr.length-1],Tr.pop();return}}}}function un(){return Ye}function Dn(Zt){Object.entries(Zt).forEach(function(cr){Ye[cr[0]]=cr[1]})}var Bn=r(Ar,{clear:Rn,prop:T.define.bind(null,Yr),context:T.define.bind(null,hn),this:T.define.bind(null,_n),draw:Ar({}),buffer:function(Zt){return We.create(Zt,or,!1,!1)},elements:function(Zt){return Ze.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:Ie.create,framebuffer:Me.create,framebufferCube:Me.createCube,vao:Ne.createVAO,attributes:we,frame:Li,on:wr,limits:Ee,hasExtension:function(Zt){return Ee.extensions.indexOf(Zt.toLowerCase())>=0},read:Se,destroy:qn,_gl:Z,_refresh:Xt,poll:function(){on(),Je&&Je.update()},now:li,stats:xe,getCachedCode:un,preloadCachedCode:Dn});return H.onDone(null,Bn),Bn}return Mn})})(oY);var uY=uu,lY=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},hT(t)?t={container:t}:fY(t)?t={container:t}:sY(t)?t={gl:t}:t=uY(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=tr.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}hT(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=dT(),t.container.appendChild(t.canvas),cT(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=dT(),t.container.appendChild(t.canvas),cT(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 cT(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*tr.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*tr.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 hT(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function fY(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function sY(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function dT(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var cY=rP,hY=[32,126],dY=pY;function pY(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||hY;if(n&&typeof n!="string"&&(n=cY(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var 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 p=i[0]/2,x=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],p,x),(p+=i[0])>t[0]-i[0]/2&&(p=i[0]/2,x+=i[1]);return r}var pr={},jr={},Jb=32;jr.INT_BITS=Jb;jr.INT_MAX=2147483647;jr.INT_MIN=-1<<Jb-1;jr.sign=function(e){return(e>0)-(e<0)};jr.abs=function(e){var t=e>>Jb-1;return(e^t)-t};jr.min=function(e,t){return t^(e^t)&-(e<t)};jr.max=function(e,t){return e^(e^t)&-(e<t)};jr.isPow2=function(e){return!(e&e-1)&&!!e};jr.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};jr.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};jr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function nP(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}jr.countTrailingZeros=nP;jr.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};jr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};jr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ph=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}})(ph);jr.reverse=function(e){return ph[e&255]<<24|ph[e>>>8&255]<<16|ph[e>>>16&255]<<8|ph[e>>>24&255]};jr.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};jr.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};jr.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};jr.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};jr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>nP(e)+1};function iP(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]=iP(e,t,r+1);return i}function vY(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function mY(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return vY(e|0,t);break;case"object":if(typeof e.length=="number")return iP(e,t,0);break}return[]}var gY=mY,aP={},_g={};_g.byteLength=_Y;_g.toByteArray=bY;_g.fromByteArray=AY;var ra=[],_i=[],yY=typeof Uint8Array<"u"?Uint8Array:Array,Qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var yf=0,xY=Qx.length;yf<xY;++yf)ra[yf]=Qx[yf],_i[Qx.charCodeAt(yf)]=yf;_i["-".charCodeAt(0)]=62;_i["_".charCodeAt(0)]=63;function oP(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 _Y(e){var t=oP(e),r=t[0],n=t[1];return(r+n)*3/4-n}function wY(e,t,r){return(t+r)*3/4-r}function bY(e){var t,r=oP(e),n=r[0],i=r[1],a=new yY(wY(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=_i[e.charCodeAt(s)]<<18|_i[e.charCodeAt(s+1)]<<12|_i[e.charCodeAt(s+2)]<<6|_i[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=_i[e.charCodeAt(s)]<<2|_i[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=_i[e.charCodeAt(s)]<<10|_i[e.charCodeAt(s+1)]<<4|_i[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function SY(e){return ra[e>>18&63]+ra[e>>12&63]+ra[e>>6&63]+ra[e&63]}function EY(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(SY(n));return i.join("")}function AY(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(EY(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(ra[t>>2]+ra[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ra[t>>10]+ra[t>>4&63]+ra[t<<2&63]+"=")),i.join("")}var eS={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */eS.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,c=s>>1,p=-7,x=r?i-1:0,g=r?-1:1,y=e[t+x];for(x+=g,a=y&(1<<-p)-1,y>>=-p,p+=l;p>0;a=a*256+e[t+x],x+=g,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=n;p>0;o=o*256+e[t+x],x+=g,p-=8);if(a===0)a=1-c;else{if(a===s)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(y?-1:1)*o*Math.pow(2,a-n)};eS.write=function(e,t,r,n,i,a){var o,l,s,c=a*8-i-1,p=(1<<c)-1,x=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,T=n?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+x>=1?t+=g/s:t+=g*Math.pow(2,1-x),t*s>=2&&(o++,s/=2),o+x>=p?(l=0,o=p):o+x>=1?(l=(t*s-1)*Math.pow(2,i),o=o+x):(l=t*Math.pow(2,x-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=l&255,y+=T,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[r+y]=o&255,y+=T,o/=256,c-=8);e[r+y-T]|=P*128};/*!
1072
1072
  * The buffer module from node.js, for the browser.
1073
1073
  *
1074
1074
  * @author Feross Aboukhadijeh <https://feross.org>
1075
1075
  * @license MIT
1076
- */(function(e){var t=xg,r=Kb;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(O){if(O>n)throw new RangeError('The value "'+O+'" is invalid for option "size"');var S=new Uint8Array(O);return S.__proto__=o.prototype,S}function o(O,S,T){if(typeof O=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return l(O,S,T)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(O,S,T){if(typeof O=="string")return x(O,S);if(ArrayBuffer.isView(O))return g(O);if(O==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(G(O,ArrayBuffer)||O&&G(O.buffer,ArrayBuffer))return y(O,S,T);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=O.valueOf&&O.valueOf();if(D!=null&&D!==O)return o.from(D,S,T);var se=C(O);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return o.from(O[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 O)}o.from=function(O,S,T){return l(O,S,T)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function c(O,S,T){return s(O),O<=0?a(O):S!==void 0?typeof T=="string"?a(O).fill(S,T):a(O).fill(S):a(O)}o.alloc=function(O,S,T){return c(O,S,T)};function p(O){return s(O),a(O<0?0:P(O)|0)}o.allocUnsafe=function(O){return p(O)},o.allocUnsafeSlow=function(O){return p(O)};function x(O,S){if((typeof S!="string"||S==="")&&(S="utf8"),!o.isEncoding(S))throw new TypeError("Unknown encoding: "+S);var T=_(O,S)|0,D=a(T),se=D.write(O,S);return se!==T&&(D=D.slice(0,se)),D}function g(O){for(var S=O.length<0?0:P(O.length)|0,T=a(S),D=0;D<S;D+=1)T[D]=O[D]&255;return T}function y(O,S,T){if(S<0||O.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<S+(T||0))throw new RangeError('"length" is outside of buffer bounds');var D;return S===void 0&&T===void 0?D=new Uint8Array(O):T===void 0?D=new Uint8Array(O,S):D=new Uint8Array(O,S,T),D.__proto__=o.prototype,D}function C(O){if(o.isBuffer(O)){var S=P(O.length)|0,T=a(S);return T.length===0||O.copy(T,0,0,S),T}if(O.length!==void 0)return typeof O.length!="number"||ie(O.length)?a(0):g(O);if(O.type==="Buffer"&&Array.isArray(O.data))return g(O.data)}function P(O){if(O>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return O|0}function b(O){return+O!=O&&(O=0),o.alloc(+O)}o.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==o.prototype},o.compare=function(S,T){if(G(S,Uint8Array)&&(S=o.from(S,S.offset,S.byteLength)),G(T,Uint8Array)&&(T=o.from(T,T.offset,T.byteLength)),!o.isBuffer(S)||!o.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===T)return 0;for(var D=S.length,se=T.length,Fe=0,Be=Math.min(D,se);Fe<Be;++Fe)if(S[Fe]!==T[Fe]){D=S[Fe],se=T[Fe];break}return D<se?-1:se<D?1:0},o.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}},o.concat=function(S,T){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return o.alloc(0);var D;if(T===void 0)for(T=0,D=0;D<S.length;++D)T+=S[D].length;var se=o.allocUnsafe(T),Fe=0;for(D=0;D<S.length;++D){var Be=S[D];if(G(Be,Uint8Array)&&(Be=o.from(Be)),!o.isBuffer(Be))throw new TypeError('"list" argument must be an Array of Buffers');Be.copy(se,Fe),Fe+=Be.length}return se};function _(O,S){if(o.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||G(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);var T=O.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&T===0)return 0;for(var se=!1;;)switch(S){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Vt(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return jt(O).length;default:if(se)return D?-1:Vt(O).length;S=(""+S).toLowerCase(),se=!0}}o.byteLength=_;function E(O,S,T){var D=!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(O||(O="utf8");;)switch(O){case"hex":return qe(this,S,T);case"utf8":case"utf-8":return De(this,S,T);case"ascii":return nt(this,S,T);case"latin1":case"binary":return $e(this,S,T);case"base64":return Pe(this,S,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,S,T);default:if(D)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),D=!0}}o.prototype._isBuffer=!0;function k(O,S,T){var D=O[S];O[S]=O[T],O[T]=D}o.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)k(this,T,T+1);return this},o.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)k(this,T,T+3),k(this,T+1,T+2);return this},o.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)k(this,T,T+7),k(this,T+1,T+6),k(this,T+2,T+5),k(this,T+3,T+4);return this},o.prototype.toString=function(){var S=this.length;return S===0?"":arguments.length===0?De(this,0,S):E.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(S){if(!o.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:o.compare(this,S)===0},o.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+">"},o.prototype.compare=function(S,T,D,se,Fe){if(G(S,Uint8Array)&&(S=o.from(S,S.offset,S.byteLength)),!o.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),D===void 0&&(D=S?S.length:0),se===void 0&&(se=0),Fe===void 0&&(Fe=this.length),T<0||D>S.length||se<0||Fe>this.length)throw new RangeError("out of range index");if(se>=Fe&&T>=D)return 0;if(se>=Fe)return-1;if(T>=D)return 1;if(T>>>=0,D>>>=0,se>>>=0,Fe>>>=0,this===S)return 0;for(var Be=Fe-se,Qt=D-T,sr=Math.min(Be,Qt),nr=this.slice(se,Fe),Vr=S.slice(T,D),kr=0;kr<sr;++kr)if(nr[kr]!==Vr[kr]){Be=nr[kr],Qt=Vr[kr];break}return Be<Qt?-1:Qt<Be?1:0};function F(O,S,T,D,se){if(O.length===0)return-1;if(typeof T=="string"?(D=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,ie(T)&&(T=se?0:O.length-1),T<0&&(T=O.length+T),T>=O.length){if(se)return-1;T=O.length-1}else if(T<0)if(se)T=0;else return-1;if(typeof S=="string"&&(S=o.from(S,D)),o.isBuffer(S))return S.length===0?-1:I(O,S,T,D,se);if(typeof S=="number")return S=S&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(O,S,T):Uint8Array.prototype.lastIndexOf.call(O,S,T):I(O,[S],T,D,se);throw new TypeError("val must be string, number or Buffer")}function I(O,S,T,D,se){var Fe=1,Be=O.length,Qt=S.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(O.length<2||S.length<2)return-1;Fe=2,Be/=2,Qt/=2,T/=2}function sr(fu,va){return Fe===1?fu[va]:fu.readUInt16BE(va*Fe)}var nr;if(se){var Vr=-1;for(nr=T;nr<Be;nr++)if(sr(O,nr)===sr(S,Vr===-1?0:nr-Vr)){if(Vr===-1&&(Vr=nr),nr-Vr+1===Qt)return Vr*Fe}else Vr!==-1&&(nr-=nr-Vr),Vr=-1}else for(T+Qt>Be&&(T=Be-Qt),nr=T;nr>=0;nr--){for(var kr=!0,qi=0;qi<Qt;qi++)if(sr(O,nr+qi)!==sr(S,qi)){kr=!1;break}if(kr)return nr}return-1}o.prototype.includes=function(S,T,D){return this.indexOf(S,T,D)!==-1},o.prototype.indexOf=function(S,T,D){return F(this,S,T,D,!0)},o.prototype.lastIndexOf=function(S,T,D){return F(this,S,T,D,!1)};function $(O,S,T,D){T=Number(T)||0;var se=O.length-T;D?(D=Number(D),D>se&&(D=se)):D=se;var Fe=S.length;D>Fe/2&&(D=Fe/2);for(var Be=0;Be<D;++Be){var Qt=parseInt(S.substr(Be*2,2),16);if(ie(Qt))return Be;O[T+Be]=Qt}return Be}function ne(O,S,T,D){return Ae(Vt(S,O.length-T),O,T,D)}function V(O,S,T,D){return Ae(Qe(S),O,T,D)}function ae(O,S,T,D){return V(O,S,T,D)}function Ce(O,S,T,D){return Ae(jt(S),O,T,D)}function Oe(O,S,T,D){return Ae(Et(S,O.length-T),O,T,D)}o.prototype.write=function(S,T,D,se){if(T===void 0)se="utf8",D=this.length,T=0;else if(D===void 0&&typeof T=="string")se=T,D=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(D)?(D=D>>>0,se===void 0&&(se="utf8")):(se=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-T;if((D===void 0||D>Fe)&&(D=Fe),S.length>0&&(D<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var Be=!1;;)switch(se){case"hex":return $(this,S,T,D);case"utf8":case"utf-8":return ne(this,S,T,D);case"ascii":return V(this,S,T,D);case"latin1":case"binary":return ae(this,S,T,D);case"base64":return Ce(this,S,T,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,S,T,D);default:if(Be)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),Be=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pe(O,S,T){return S===0&&T===O.length?t.fromByteArray(O):t.fromByteArray(O.slice(S,T))}function De(O,S,T){T=Math.min(O.length,T);for(var D=[],se=S;se<T;){var Fe=O[se],Be=null,Qt=Fe>239?4:Fe>223?3:Fe>191?2:1;if(se+Qt<=T){var sr,nr,Vr,kr;switch(Qt){case 1:Fe<128&&(Be=Fe);break;case 2:sr=O[se+1],(sr&192)===128&&(kr=(Fe&31)<<6|sr&63,kr>127&&(Be=kr));break;case 3:sr=O[se+1],nr=O[se+2],(sr&192)===128&&(nr&192)===128&&(kr=(Fe&15)<<12|(sr&63)<<6|nr&63,kr>2047&&(kr<55296||kr>57343)&&(Be=kr));break;case 4:sr=O[se+1],nr=O[se+2],Vr=O[se+3],(sr&192)===128&&(nr&192)===128&&(Vr&192)===128&&(kr=(Fe&15)<<18|(sr&63)<<12|(nr&63)<<6|Vr&63,kr>65535&&kr<1114112&&(Be=kr))}}Be===null?(Be=65533,Qt=1):Be>65535&&(Be-=65536,D.push(Be>>>10&1023|55296),Be=56320|Be&1023),D.push(Be),se+=Qt}return ft(D)}var Ue=4096;function ft(O){var S=O.length;if(S<=Ue)return String.fromCharCode.apply(String,O);for(var T="",D=0;D<S;)T+=String.fromCharCode.apply(String,O.slice(D,D+=Ue));return T}function nt(O,S,T){var D="";T=Math.min(O.length,T);for(var se=S;se<T;++se)D+=String.fromCharCode(O[se]&127);return D}function $e(O,S,T){var D="";T=Math.min(O.length,T);for(var se=S;se<T;++se)D+=String.fromCharCode(O[se]);return D}function qe(O,S,T){var D=O.length;(!S||S<0)&&(S=0),(!T||T<0||T>D)&&(T=D);for(var se="",Fe=S;Fe<T;++Fe)se+=qt(O[Fe]);return se}function kt(O,S,T){for(var D=O.slice(S,T),se="",Fe=0;Fe<D.length;Fe+=2)se+=String.fromCharCode(D[Fe]+D[Fe+1]*256);return se}o.prototype.slice=function(S,T){var D=this.length;S=~~S,T=T===void 0?D:~~T,S<0?(S+=D,S<0&&(S=0)):S>D&&(S=D),T<0?(T+=D,T<0&&(T=0)):T>D&&(T=D),T<S&&(T=S);var se=this.subarray(S,T);return se.__proto__=o.prototype,se};function He(O,S,T){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+S>T)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(S,T,D){S=S>>>0,T=T>>>0,D||He(S,T,this.length);for(var se=this[S],Fe=1,Be=0;++Be<T&&(Fe*=256);)se+=this[S+Be]*Fe;return se},o.prototype.readUIntBE=function(S,T,D){S=S>>>0,T=T>>>0,D||He(S,T,this.length);for(var se=this[S+--T],Fe=1;T>0&&(Fe*=256);)se+=this[S+--T]*Fe;return se},o.prototype.readUInt8=function(S,T){return S=S>>>0,T||He(S,1,this.length),this[S]},o.prototype.readUInt16LE=function(S,T){return S=S>>>0,T||He(S,2,this.length),this[S]|this[S+1]<<8},o.prototype.readUInt16BE=function(S,T){return S=S>>>0,T||He(S,2,this.length),this[S]<<8|this[S+1]},o.prototype.readUInt32LE=function(S,T){return S=S>>>0,T||He(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},o.prototype.readUInt32BE=function(S,T){return S=S>>>0,T||He(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},o.prototype.readIntLE=function(S,T,D){S=S>>>0,T=T>>>0,D||He(S,T,this.length);for(var se=this[S],Fe=1,Be=0;++Be<T&&(Fe*=256);)se+=this[S+Be]*Fe;return Fe*=128,se>=Fe&&(se-=Math.pow(2,8*T)),se},o.prototype.readIntBE=function(S,T,D){S=S>>>0,T=T>>>0,D||He(S,T,this.length);for(var se=T,Fe=1,Be=this[S+--se];se>0&&(Fe*=256);)Be+=this[S+--se]*Fe;return Fe*=128,Be>=Fe&&(Be-=Math.pow(2,8*T)),Be},o.prototype.readInt8=function(S,T){return S=S>>>0,T||He(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},o.prototype.readInt16LE=function(S,T){S=S>>>0,T||He(S,2,this.length);var D=this[S]|this[S+1]<<8;return D&32768?D|4294901760:D},o.prototype.readInt16BE=function(S,T){S=S>>>0,T||He(S,2,this.length);var D=this[S+1]|this[S]<<8;return D&32768?D|4294901760:D},o.prototype.readInt32LE=function(S,T){return S=S>>>0,T||He(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},o.prototype.readInt32BE=function(S,T){return S=S>>>0,T||He(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},o.prototype.readFloatLE=function(S,T){return S=S>>>0,T||He(S,4,this.length),r.read(this,S,!0,23,4)},o.prototype.readFloatBE=function(S,T){return S=S>>>0,T||He(S,4,this.length),r.read(this,S,!1,23,4)},o.prototype.readDoubleLE=function(S,T){return S=S>>>0,T||He(S,8,this.length),r.read(this,S,!0,52,8)},o.prototype.readDoubleBE=function(S,T){return S=S>>>0,T||He(S,8,this.length),r.read(this,S,!1,52,8)};function be(O,S,T,D,se,Fe){if(!o.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>se||S<Fe)throw new RangeError('"value" argument is out of bounds');if(T+D>O.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(S,T,D,se){if(S=+S,T=T>>>0,D=D>>>0,!se){var Fe=Math.pow(2,8*D)-1;be(this,S,T,D,Fe,0)}var Be=1,Qt=0;for(this[T]=S&255;++Qt<D&&(Be*=256);)this[T+Qt]=S/Be&255;return T+D},o.prototype.writeUIntBE=function(S,T,D,se){if(S=+S,T=T>>>0,D=D>>>0,!se){var Fe=Math.pow(2,8*D)-1;be(this,S,T,D,Fe,0)}var Be=D-1,Qt=1;for(this[T+Be]=S&255;--Be>=0&&(Qt*=256);)this[T+Be]=S/Qt&255;return T+D},o.prototype.writeUInt8=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,1,255,0),this[T]=S&255,T+1},o.prototype.writeUInt16LE=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,2,65535,0),this[T]=S&255,this[T+1]=S>>>8,T+2},o.prototype.writeUInt16BE=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,2,65535,0),this[T]=S>>>8,this[T+1]=S&255,T+2},o.prototype.writeUInt32LE=function(S,T,D){return S=+S,T=T>>>0,D||be(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},o.prototype.writeUInt32BE=function(S,T,D){return S=+S,T=T>>>0,D||be(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},o.prototype.writeIntLE=function(S,T,D,se){if(S=+S,T=T>>>0,!se){var Fe=Math.pow(2,8*D-1);be(this,S,T,D,Fe-1,-Fe)}var Be=0,Qt=1,sr=0;for(this[T]=S&255;++Be<D&&(Qt*=256);)S<0&&sr===0&&this[T+Be-1]!==0&&(sr=1),this[T+Be]=(S/Qt>>0)-sr&255;return T+D},o.prototype.writeIntBE=function(S,T,D,se){if(S=+S,T=T>>>0,!se){var Fe=Math.pow(2,8*D-1);be(this,S,T,D,Fe-1,-Fe)}var Be=D-1,Qt=1,sr=0;for(this[T+Be]=S&255;--Be>=0&&(Qt*=256);)S<0&&sr===0&&this[T+Be+1]!==0&&(sr=1),this[T+Be]=(S/Qt>>0)-sr&255;return T+D},o.prototype.writeInt8=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,1,127,-128),S<0&&(S=255+S+1),this[T]=S&255,T+1},o.prototype.writeInt16LE=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,2,32767,-32768),this[T]=S&255,this[T+1]=S>>>8,T+2},o.prototype.writeInt16BE=function(S,T,D){return S=+S,T=T>>>0,D||be(this,S,T,2,32767,-32768),this[T]=S>>>8,this[T+1]=S&255,T+2},o.prototype.writeInt32LE=function(S,T,D){return S=+S,T=T>>>0,D||be(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},o.prototype.writeInt32BE=function(S,T,D){return S=+S,T=T>>>0,D||be(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 Ve(O,S,T,D,se,Fe){if(T+D>O.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ct(O,S,T,D,se){return S=+S,T=T>>>0,se||Ve(O,S,T,4),r.write(O,S,T,D,23,4),T+4}o.prototype.writeFloatLE=function(S,T,D){return ct(this,S,T,!0,D)},o.prototype.writeFloatBE=function(S,T,D){return ct(this,S,T,!1,D)};function et(O,S,T,D,se){return S=+S,T=T>>>0,se||Ve(O,S,T,8),r.write(O,S,T,D,52,8),T+8}o.prototype.writeDoubleLE=function(S,T,D){return et(this,S,T,!0,D)},o.prototype.writeDoubleBE=function(S,T,D){return et(this,S,T,!1,D)},o.prototype.copy=function(S,T,D,se){if(!o.isBuffer(S))throw new TypeError("argument should be a Buffer");if(D||(D=0),!se&&se!==0&&(se=this.length),T>=S.length&&(T=S.length),T||(T=0),se>0&&se<D&&(se=D),se===D||S.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=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-D&&(se=S.length-T+D);var Fe=se-D;if(this===S&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(T,D,se);else if(this===S&&D<T&&T<se)for(var Be=Fe-1;Be>=0;--Be)S[Be+T]=this[Be+D];else Uint8Array.prototype.set.call(S,this.subarray(D,se),T);return Fe},o.prototype.fill=function(S,T,D,se){if(typeof S=="string"){if(typeof T=="string"?(se=T,T=0,D=this.length):typeof D=="string"&&(se=D,D=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!o.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(S.length===1){var Fe=S.charCodeAt(0);(se==="utf8"&&Fe<128||se==="latin1")&&(S=Fe)}}else typeof S=="number"&&(S=S&255);if(T<0||this.length<T||this.length<D)throw new RangeError("Out of range index");if(D<=T)return this;T=T>>>0,D=D===void 0?this.length:D>>>0,S||(S=0);var Be;if(typeof S=="number")for(Be=T;Be<D;++Be)this[Be]=S;else{var Qt=o.isBuffer(S)?S:o.from(S,se),sr=Qt.length;if(sr===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(Be=0;Be<D-T;++Be)this[Be+T]=Qt[Be%sr]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function wt(O){if(O=O.split("=")[0],O=O.trim().replace(pt,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function qt(O){return O<16?"0"+O.toString(16):O.toString(16)}function Vt(O,S){S=S||1/0;for(var T,D=O.length,se=null,Fe=[],Be=0;Be<D;++Be){if(T=O.charCodeAt(Be),T>55295&&T<57344){if(!se){if(T>56319){(S-=3)>-1&&Fe.push(239,191,189);continue}else if(Be+1===D){(S-=3)>-1&&Fe.push(239,191,189);continue}se=T;continue}if(T<56320){(S-=3)>-1&&Fe.push(239,191,189),se=T;continue}T=(se-55296<<10|T-56320)+65536}else se&&(S-=3)>-1&&Fe.push(239,191,189);if(se=null,T<128){if((S-=1)<0)break;Fe.push(T)}else if(T<2048){if((S-=2)<0)break;Fe.push(T>>6|192,T&63|128)}else if(T<65536){if((S-=3)<0)break;Fe.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((S-=4)<0)break;Fe.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return Fe}function Qe(O){for(var S=[],T=0;T<O.length;++T)S.push(O.charCodeAt(T)&255);return S}function Et(O,S){for(var T,D,se,Fe=[],Be=0;Be<O.length&&!((S-=2)<0);++Be)T=O.charCodeAt(Be),D=T>>8,se=T%256,Fe.push(se),Fe.push(D);return Fe}function jt(O){return t.toByteArray(wt(O))}function Ae(O,S,T,D){for(var se=0;se<D&&!(se+T>=S.length||se>=O.length);++se)S[se+T]=O[se];return se}function G(O,S){return O instanceof S||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===S.name}function ie(O){return O!==O}})(nP);var tu=jr,Sn=vY,aP=nP.Buffer;tr.__TYPEDARRAY_POOL||(tr.__TYPEDARRAY_POOL={UINT8:Sn([32,0]),UINT16:Sn([32,0]),UINT32:Sn([32,0]),BIGUINT64:Sn([32,0]),INT8:Sn([32,0]),INT16:Sn([32,0]),INT32:Sn([32,0]),BIGINT64:Sn([32,0]),FLOAT:Sn([32,0]),DOUBLE:Sn([32,0]),DATA:Sn([32,0]),UINT8C:Sn([32,0]),BUFFER:Sn([32,0])});var EY=typeof Uint8ClampedArray<"u",AY=typeof BigUint64Array<"u",TY=typeof BigInt64Array<"u",Xr=tr.__TYPEDARRAY_POOL;Xr.UINT8C||(Xr.UINT8C=Sn([32,0]));Xr.BIGUINT64||(Xr.BIGUINT64=Sn([32,0]));Xr.BIGINT64||(Xr.BIGINT64=Sn([32,0]));Xr.BUFFER||(Xr.BUFFER=Sn([32,0]));var _g=Xr.DATA,wg=Xr.BUFFER;pr.free=function(t){if(aP.isBuffer(t))wg[tu.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=tu.log2(r)|0;_g[n].push(t)}};function oP(e){if(e){var t=e.length||e.byteLength,r=tu.log2(t);_g[r].push(e)}}function CY(e){oP(e.buffer)}pr.freeUint8=pr.freeUint16=pr.freeUint32=pr.freeBigUint64=pr.freeInt8=pr.freeInt16=pr.freeInt32=pr.freeBigInt64=pr.freeFloat32=pr.freeFloat=pr.freeFloat64=pr.freeDouble=pr.freeUint8Clamped=pr.freeDataView=CY;pr.freeArrayBuffer=oP;pr.freeBuffer=function(t){wg[tu.log2(t.length)].push(t)};pr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Jn(t);switch(r){case"uint8":return Jb(t);case"uint16":return uP(t);case"uint32":return lP(t);case"int8":return fP(t);case"int16":return sP(t);case"int32":return cP(t);case"float":case"float32":return hP(t);case"double":case"float64":return dP(t);case"uint8_clamped":return pP(t);case"bigint64":return mP(t);case"biguint64":return vP(t);case"buffer":return yP(t);case"data":case"dataview":return gP(t);default:return null}return null};function Jn(t){var t=tu.nextPow2(t),r=tu.log2(t),n=_g[r];return n.length>0?n.pop():new ArrayBuffer(t)}pr.mallocArrayBuffer=Jn;function Jb(e){return new Uint8Array(Jn(e),0,e)}pr.mallocUint8=Jb;function uP(e){return new Uint16Array(Jn(2*e),0,e)}pr.mallocUint16=uP;function lP(e){return new Uint32Array(Jn(4*e),0,e)}pr.mallocUint32=lP;function fP(e){return new Int8Array(Jn(e),0,e)}pr.mallocInt8=fP;function sP(e){return new Int16Array(Jn(2*e),0,e)}pr.mallocInt16=sP;function cP(e){return new Int32Array(Jn(4*e),0,e)}pr.mallocInt32=cP;function hP(e){return new Float32Array(Jn(4*e),0,e)}pr.mallocFloat32=pr.mallocFloat=hP;function dP(e){return new Float64Array(Jn(8*e),0,e)}pr.mallocFloat64=pr.mallocDouble=dP;function pP(e){return EY?new Uint8ClampedArray(Jn(e),0,e):Jb(e)}pr.mallocUint8Clamped=pP;function vP(e){return AY?new BigUint64Array(Jn(8*e),0,e):null}pr.mallocBigUint64=vP;function mP(e){return TY?new BigInt64Array(Jn(8*e),0,e):null}pr.mallocBigInt64=mP;function gP(e){return new DataView(Jn(e),0,e)}pr.mallocDataView=gP;function yP(e){e=tu.nextPow2(e);var t=tu.log2(e),r=wg[t];return r.length>0?r.pop():new aP(e)}pr.mallocBuffer=yP;pr.clearCache=function(){for(var t=0;t<32;++t)Xr.UINT8[t].length=0,Xr.UINT16[t].length=0,Xr.UINT32[t].length=0,Xr.INT8[t].length=0,Xr.INT16[t].length=0,Xr.INT32[t].length=0,Xr.FLOAT[t].length=0,Xr.DOUBLE[t].length=0,Xr.BIGUINT64[t].length=0,Xr.BIGINT64[t].length=0,Xr.UINT8C[t].length=0,_g[t].length=0,wg[t].length=0};var xP=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},OY=xP,kY=_P,ah=96;function Xw(e,t){var r=OY(getComputedStyle(e).getPropertyValue(t));return r[0]*_P(r[1],e)}function MY(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=Xw(r,"font-size")/128;return t.removeChild(r),n}function _P(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 MY(e,t);case"em":return Xw(t,"font-size");case"rem":return Xw(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 ah;case"cm":return ah/2.54;case"mm":return ah/25.4;case"pt":return ah/72;case"pc":return ah/6}return 1}var RY=bg,PY=bg.canvas=document.createElement("canvas"),Vv=PY.getContext("2d"),wP=wm([32,126]);bg.createPairs=wm;bg.ascii=wP;function bg(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=wm(t):Array.isArray(t)?n=t:(t.o?n=wm(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=wP),Vv.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=Vv.measureText(l[0]).width+Vv.measureText(l[1]).width,c=Vv.measureText(l).width;if(Math.abs(s-c)>i*a){var p=(c-s)/i;r[l]=p*1e3}}return r}function wm(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var FY=Mo;Mo.canvas=document.createElement("canvas");Mo.cache={};function Mo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(Mo.cache[r]&&n<=Mo.cache[r].em)return hC(Mo.cache[r],l);var s=t.canvas||Mo.canvas,c=s.getContext("2d"),p={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=o;var g="H",y={top:0};c.clearRect(0,0,x,x),c.textBaseline="top",c.fillStyle="black",c.fillText(g,0,0);var C=Ji(c.getImageData(0,0,x,x));c.clearRect(0,0,x,x),c.textBaseline="bottom",c.fillText(g,0,x);var P=Ji(c.getImageData(0,0,x,x));y.lineHeight=y.bottom=x-P+C,c.clearRect(0,0,x,x),c.textBaseline="alphabetic",c.fillText(g,0,x);var b=Ji(c.getImageData(0,0,x,x)),_=x-b-1+C;y.baseline=y.alphabetic=_,c.clearRect(0,0,x,x),c.textBaseline="middle",c.fillText(g,0,x*.5);var E=Ji(c.getImageData(0,0,x,x));y.median=y.middle=x-E-1+C-x*.5,c.clearRect(0,0,x,x),c.textBaseline="hanging",c.fillText(g,0,x*.5);var k=Ji(c.getImageData(0,0,x,x));y.hanging=x-k-1+C-x*.5,c.clearRect(0,0,x,x),c.textBaseline="ideographic",c.fillText(g,0,x);var F=Ji(c.getImageData(0,0,x,x));if(y.ideographic=x-F-1+C,p.upper&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.upper,0,0),y.upper=Ji(c.getImageData(0,0,x,x)),y.capHeight=y.baseline-y.upper),p.lower&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.lower,0,0),y.lower=Ji(c.getImageData(0,0,x,x)),y.xHeight=y.baseline-y.lower),p.tittle&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.tittle,0,0),y.tittle=Ji(c.getImageData(0,0,x,x))),p.ascent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.ascent,0,0),y.ascent=Ji(c.getImageData(0,0,x,x))),p.descent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.descent,0,0),y.descent=dC(c.getImageData(0,0,x,x))),p.overshoot){c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.overshoot,0,0);var I=dC(c.getImageData(0,0,x,x));y.overshoot=I-_}for(var $ in y)y[$]/=n;return y.em=n,Mo.cache[r]=y,hC(y,l)}function hC(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 Ji(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 dC(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 xf=nY,NY=uu,IY=Yw,LY=oY,$Y=HR,Qx=mg,DY=cY,Ao=pr,BY=vg,zY=RR,UY=xP,jY=kY,GY=RY,HY=vl,qY=FY,WY=Bd,VY=jr,pC=VY.nextPow2,vC=new $Y,y0=!1;if(document.body){var Zx=document.body.appendChild(document.createElement("div"));Zx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Zx).fontStretch&&(y0=!0),document.body.removeChild(Zx)}var _r=function(t){YY(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=LY(t),this.shader=vC.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||IY({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(),vC.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(zY(t)?t:{})};_r.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:`
1076
+ */(function(e){var t=_g,r=eS;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(O){if(O>n)throw new RangeError('The value "'+O+'" is invalid for option "size"');var S=new Uint8Array(O);return S.__proto__=o.prototype,S}function o(O,S,C){if(typeof O=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return l(O,S,C)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(O,S,C){if(typeof O=="string")return x(O,S);if(ArrayBuffer.isView(O))return g(O);if(O==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(G(O,ArrayBuffer)||O&&G(O.buffer,ArrayBuffer))return y(O,S,C);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=O.valueOf&&O.valueOf();if(D!=null&&D!==O)return o.from(D,S,C);var se=T(O);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return o.from(O[Symbol.toPrimitive]("string"),S,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}o.from=function(O,S,C){return l(O,S,C)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function c(O,S,C){return s(O),O<=0?a(O):S!==void 0?typeof C=="string"?a(O).fill(S,C):a(O).fill(S):a(O)}o.alloc=function(O,S,C){return c(O,S,C)};function p(O){return s(O),a(O<0?0:P(O)|0)}o.allocUnsafe=function(O){return p(O)},o.allocUnsafeSlow=function(O){return p(O)};function x(O,S){if((typeof S!="string"||S==="")&&(S="utf8"),!o.isEncoding(S))throw new TypeError("Unknown encoding: "+S);var C=_(O,S)|0,D=a(C),se=D.write(O,S);return se!==C&&(D=D.slice(0,se)),D}function g(O){for(var S=O.length<0?0:P(O.length)|0,C=a(S),D=0;D<S;D+=1)C[D]=O[D]&255;return C}function y(O,S,C){if(S<0||O.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<S+(C||0))throw new RangeError('"length" is outside of buffer bounds');var D;return S===void 0&&C===void 0?D=new Uint8Array(O):C===void 0?D=new Uint8Array(O,S):D=new Uint8Array(O,S,C),D.__proto__=o.prototype,D}function T(O){if(o.isBuffer(O)){var S=P(O.length)|0,C=a(S);return C.length===0||O.copy(C,0,0,S),C}if(O.length!==void 0)return typeof O.length!="number"||ie(O.length)?a(0):g(O);if(O.type==="Buffer"&&Array.isArray(O.data))return g(O.data)}function P(O){if(O>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return O|0}function b(O){return+O!=O&&(O=0),o.alloc(+O)}o.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==o.prototype},o.compare=function(S,C){if(G(S,Uint8Array)&&(S=o.from(S,S.offset,S.byteLength)),G(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(S)||!o.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===C)return 0;for(var D=S.length,se=C.length,Fe=0,Be=Math.min(D,se);Fe<Be;++Fe)if(S[Fe]!==C[Fe]){D=S[Fe],se=C[Fe];break}return D<se?-1:se<D?1:0},o.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}},o.concat=function(S,C){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return o.alloc(0);var D;if(C===void 0)for(C=0,D=0;D<S.length;++D)C+=S[D].length;var se=o.allocUnsafe(C),Fe=0;for(D=0;D<S.length;++D){var Be=S[D];if(G(Be,Uint8Array)&&(Be=o.from(Be)),!o.isBuffer(Be))throw new TypeError('"list" argument must be an Array of Buffers');Be.copy(se,Fe),Fe+=Be.length}return se};function _(O,S){if(o.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||G(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);var C=O.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&C===0)return 0;for(var se=!1;;)switch(S){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return Vt(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return jt(O).length;default:if(se)return D?-1:Vt(O).length;S=(""+S).toLowerCase(),se=!0}}o.byteLength=_;function E(O,S,C){var D=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,S>>>=0,C<=S))return"";for(O||(O="utf8");;)switch(O){case"hex":return qe(this,S,C);case"utf8":case"utf-8":return De(this,S,C);case"ascii":return nt(this,S,C);case"latin1":case"binary":return $e(this,S,C);case"base64":return Pe(this,S,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,S,C);default:if(D)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),D=!0}}o.prototype._isBuffer=!0;function k(O,S,C){var D=O[S];O[S]=O[C],O[C]=D}o.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 C=0;C<S;C+=2)k(this,C,C+1);return this},o.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 C=0;C<S;C+=4)k(this,C,C+3),k(this,C+1,C+2);return this},o.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 C=0;C<S;C+=8)k(this,C,C+7),k(this,C+1,C+6),k(this,C+2,C+5),k(this,C+3,C+4);return this},o.prototype.toString=function(){var S=this.length;return S===0?"":arguments.length===0?De(this,0,S):E.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(S){if(!o.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:o.compare(this,S)===0},o.prototype.inspect=function(){var S="",C=e.INSPECT_MAX_BYTES;return S=this.toString("hex",0,C).replace(/(.{2})/g,"$1 ").trim(),this.length>C&&(S+=" ... "),"<Buffer "+S+">"},o.prototype.compare=function(S,C,D,se,Fe){if(G(S,Uint8Array)&&(S=o.from(S,S.offset,S.byteLength)),!o.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(C===void 0&&(C=0),D===void 0&&(D=S?S.length:0),se===void 0&&(se=0),Fe===void 0&&(Fe=this.length),C<0||D>S.length||se<0||Fe>this.length)throw new RangeError("out of range index");if(se>=Fe&&C>=D)return 0;if(se>=Fe)return-1;if(C>=D)return 1;if(C>>>=0,D>>>=0,se>>>=0,Fe>>>=0,this===S)return 0;for(var Be=Fe-se,Qt=D-C,sr=Math.min(Be,Qt),nr=this.slice(se,Fe),Vr=S.slice(C,D),kr=0;kr<sr;++kr)if(nr[kr]!==Vr[kr]){Be=nr[kr],Qt=Vr[kr];break}return Be<Qt?-1:Qt<Be?1:0};function F(O,S,C,D,se){if(O.length===0)return-1;if(typeof C=="string"?(D=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,ie(C)&&(C=se?0:O.length-1),C<0&&(C=O.length+C),C>=O.length){if(se)return-1;C=O.length-1}else if(C<0)if(se)C=0;else return-1;if(typeof S=="string"&&(S=o.from(S,D)),o.isBuffer(S))return S.length===0?-1:I(O,S,C,D,se);if(typeof S=="number")return S=S&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(O,S,C):Uint8Array.prototype.lastIndexOf.call(O,S,C):I(O,[S],C,D,se);throw new TypeError("val must be string, number or Buffer")}function I(O,S,C,D,se){var Fe=1,Be=O.length,Qt=S.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(O.length<2||S.length<2)return-1;Fe=2,Be/=2,Qt/=2,C/=2}function sr(fu,va){return Fe===1?fu[va]:fu.readUInt16BE(va*Fe)}var nr;if(se){var Vr=-1;for(nr=C;nr<Be;nr++)if(sr(O,nr)===sr(S,Vr===-1?0:nr-Vr)){if(Vr===-1&&(Vr=nr),nr-Vr+1===Qt)return Vr*Fe}else Vr!==-1&&(nr-=nr-Vr),Vr=-1}else for(C+Qt>Be&&(C=Be-Qt),nr=C;nr>=0;nr--){for(var kr=!0,qi=0;qi<Qt;qi++)if(sr(O,nr+qi)!==sr(S,qi)){kr=!1;break}if(kr)return nr}return-1}o.prototype.includes=function(S,C,D){return this.indexOf(S,C,D)!==-1},o.prototype.indexOf=function(S,C,D){return F(this,S,C,D,!0)},o.prototype.lastIndexOf=function(S,C,D){return F(this,S,C,D,!1)};function $(O,S,C,D){C=Number(C)||0;var se=O.length-C;D?(D=Number(D),D>se&&(D=se)):D=se;var Fe=S.length;D>Fe/2&&(D=Fe/2);for(var Be=0;Be<D;++Be){var Qt=parseInt(S.substr(Be*2,2),16);if(ie(Qt))return Be;O[C+Be]=Qt}return Be}function ne(O,S,C,D){return Ae(Vt(S,O.length-C),O,C,D)}function V(O,S,C,D){return Ae(Qe(S),O,C,D)}function ae(O,S,C,D){return V(O,S,C,D)}function Te(O,S,C,D){return Ae(jt(S),O,C,D)}function Oe(O,S,C,D){return Ae(Et(S,O.length-C),O,C,D)}o.prototype.write=function(S,C,D,se){if(C===void 0)se="utf8",D=this.length,C=0;else if(D===void 0&&typeof C=="string")se=C,D=this.length,C=0;else if(isFinite(C))C=C>>>0,isFinite(D)?(D=D>>>0,se===void 0&&(se="utf8")):(se=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-C;if((D===void 0||D>Fe)&&(D=Fe),S.length>0&&(D<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var Be=!1;;)switch(se){case"hex":return $(this,S,C,D);case"utf8":case"utf-8":return ne(this,S,C,D);case"ascii":return V(this,S,C,D);case"latin1":case"binary":return ae(this,S,C,D);case"base64":return Te(this,S,C,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,S,C,D);default:if(Be)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),Be=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pe(O,S,C){return S===0&&C===O.length?t.fromByteArray(O):t.fromByteArray(O.slice(S,C))}function De(O,S,C){C=Math.min(O.length,C);for(var D=[],se=S;se<C;){var Fe=O[se],Be=null,Qt=Fe>239?4:Fe>223?3:Fe>191?2:1;if(se+Qt<=C){var sr,nr,Vr,kr;switch(Qt){case 1:Fe<128&&(Be=Fe);break;case 2:sr=O[se+1],(sr&192)===128&&(kr=(Fe&31)<<6|sr&63,kr>127&&(Be=kr));break;case 3:sr=O[se+1],nr=O[se+2],(sr&192)===128&&(nr&192)===128&&(kr=(Fe&15)<<12|(sr&63)<<6|nr&63,kr>2047&&(kr<55296||kr>57343)&&(Be=kr));break;case 4:sr=O[se+1],nr=O[se+2],Vr=O[se+3],(sr&192)===128&&(nr&192)===128&&(Vr&192)===128&&(kr=(Fe&15)<<18|(sr&63)<<12|(nr&63)<<6|Vr&63,kr>65535&&kr<1114112&&(Be=kr))}}Be===null?(Be=65533,Qt=1):Be>65535&&(Be-=65536,D.push(Be>>>10&1023|55296),Be=56320|Be&1023),D.push(Be),se+=Qt}return ft(D)}var Ue=4096;function ft(O){var S=O.length;if(S<=Ue)return String.fromCharCode.apply(String,O);for(var C="",D=0;D<S;)C+=String.fromCharCode.apply(String,O.slice(D,D+=Ue));return C}function nt(O,S,C){var D="";C=Math.min(O.length,C);for(var se=S;se<C;++se)D+=String.fromCharCode(O[se]&127);return D}function $e(O,S,C){var D="";C=Math.min(O.length,C);for(var se=S;se<C;++se)D+=String.fromCharCode(O[se]);return D}function qe(O,S,C){var D=O.length;(!S||S<0)&&(S=0),(!C||C<0||C>D)&&(C=D);for(var se="",Fe=S;Fe<C;++Fe)se+=qt(O[Fe]);return se}function kt(O,S,C){for(var D=O.slice(S,C),se="",Fe=0;Fe<D.length;Fe+=2)se+=String.fromCharCode(D[Fe]+D[Fe+1]*256);return se}o.prototype.slice=function(S,C){var D=this.length;S=~~S,C=C===void 0?D:~~C,S<0?(S+=D,S<0&&(S=0)):S>D&&(S=D),C<0?(C+=D,C<0&&(C=0)):C>D&&(C=D),C<S&&(C=S);var se=this.subarray(S,C);return se.__proto__=o.prototype,se};function He(O,S,C){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+S>C)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(S,C,D){S=S>>>0,C=C>>>0,D||He(S,C,this.length);for(var se=this[S],Fe=1,Be=0;++Be<C&&(Fe*=256);)se+=this[S+Be]*Fe;return se},o.prototype.readUIntBE=function(S,C,D){S=S>>>0,C=C>>>0,D||He(S,C,this.length);for(var se=this[S+--C],Fe=1;C>0&&(Fe*=256);)se+=this[S+--C]*Fe;return se},o.prototype.readUInt8=function(S,C){return S=S>>>0,C||He(S,1,this.length),this[S]},o.prototype.readUInt16LE=function(S,C){return S=S>>>0,C||He(S,2,this.length),this[S]|this[S+1]<<8},o.prototype.readUInt16BE=function(S,C){return S=S>>>0,C||He(S,2,this.length),this[S]<<8|this[S+1]},o.prototype.readUInt32LE=function(S,C){return S=S>>>0,C||He(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},o.prototype.readUInt32BE=function(S,C){return S=S>>>0,C||He(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},o.prototype.readIntLE=function(S,C,D){S=S>>>0,C=C>>>0,D||He(S,C,this.length);for(var se=this[S],Fe=1,Be=0;++Be<C&&(Fe*=256);)se+=this[S+Be]*Fe;return Fe*=128,se>=Fe&&(se-=Math.pow(2,8*C)),se},o.prototype.readIntBE=function(S,C,D){S=S>>>0,C=C>>>0,D||He(S,C,this.length);for(var se=C,Fe=1,Be=this[S+--se];se>0&&(Fe*=256);)Be+=this[S+--se]*Fe;return Fe*=128,Be>=Fe&&(Be-=Math.pow(2,8*C)),Be},o.prototype.readInt8=function(S,C){return S=S>>>0,C||He(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},o.prototype.readInt16LE=function(S,C){S=S>>>0,C||He(S,2,this.length);var D=this[S]|this[S+1]<<8;return D&32768?D|4294901760:D},o.prototype.readInt16BE=function(S,C){S=S>>>0,C||He(S,2,this.length);var D=this[S+1]|this[S]<<8;return D&32768?D|4294901760:D},o.prototype.readInt32LE=function(S,C){return S=S>>>0,C||He(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},o.prototype.readInt32BE=function(S,C){return S=S>>>0,C||He(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},o.prototype.readFloatLE=function(S,C){return S=S>>>0,C||He(S,4,this.length),r.read(this,S,!0,23,4)},o.prototype.readFloatBE=function(S,C){return S=S>>>0,C||He(S,4,this.length),r.read(this,S,!1,23,4)},o.prototype.readDoubleLE=function(S,C){return S=S>>>0,C||He(S,8,this.length),r.read(this,S,!0,52,8)},o.prototype.readDoubleBE=function(S,C){return S=S>>>0,C||He(S,8,this.length),r.read(this,S,!1,52,8)};function be(O,S,C,D,se,Fe){if(!o.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>se||S<Fe)throw new RangeError('"value" argument is out of bounds');if(C+D>O.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(S,C,D,se){if(S=+S,C=C>>>0,D=D>>>0,!se){var Fe=Math.pow(2,8*D)-1;be(this,S,C,D,Fe,0)}var Be=1,Qt=0;for(this[C]=S&255;++Qt<D&&(Be*=256);)this[C+Qt]=S/Be&255;return C+D},o.prototype.writeUIntBE=function(S,C,D,se){if(S=+S,C=C>>>0,D=D>>>0,!se){var Fe=Math.pow(2,8*D)-1;be(this,S,C,D,Fe,0)}var Be=D-1,Qt=1;for(this[C+Be]=S&255;--Be>=0&&(Qt*=256);)this[C+Be]=S/Qt&255;return C+D},o.prototype.writeUInt8=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,1,255,0),this[C]=S&255,C+1},o.prototype.writeUInt16LE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,2,65535,0),this[C]=S&255,this[C+1]=S>>>8,C+2},o.prototype.writeUInt16BE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,2,65535,0),this[C]=S>>>8,this[C+1]=S&255,C+2},o.prototype.writeUInt32LE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,4,4294967295,0),this[C+3]=S>>>24,this[C+2]=S>>>16,this[C+1]=S>>>8,this[C]=S&255,C+4},o.prototype.writeUInt32BE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,4,4294967295,0),this[C]=S>>>24,this[C+1]=S>>>16,this[C+2]=S>>>8,this[C+3]=S&255,C+4},o.prototype.writeIntLE=function(S,C,D,se){if(S=+S,C=C>>>0,!se){var Fe=Math.pow(2,8*D-1);be(this,S,C,D,Fe-1,-Fe)}var Be=0,Qt=1,sr=0;for(this[C]=S&255;++Be<D&&(Qt*=256);)S<0&&sr===0&&this[C+Be-1]!==0&&(sr=1),this[C+Be]=(S/Qt>>0)-sr&255;return C+D},o.prototype.writeIntBE=function(S,C,D,se){if(S=+S,C=C>>>0,!se){var Fe=Math.pow(2,8*D-1);be(this,S,C,D,Fe-1,-Fe)}var Be=D-1,Qt=1,sr=0;for(this[C+Be]=S&255;--Be>=0&&(Qt*=256);)S<0&&sr===0&&this[C+Be+1]!==0&&(sr=1),this[C+Be]=(S/Qt>>0)-sr&255;return C+D},o.prototype.writeInt8=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,1,127,-128),S<0&&(S=255+S+1),this[C]=S&255,C+1},o.prototype.writeInt16LE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,2,32767,-32768),this[C]=S&255,this[C+1]=S>>>8,C+2},o.prototype.writeInt16BE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,2,32767,-32768),this[C]=S>>>8,this[C+1]=S&255,C+2},o.prototype.writeInt32LE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,4,2147483647,-2147483648),this[C]=S&255,this[C+1]=S>>>8,this[C+2]=S>>>16,this[C+3]=S>>>24,C+4},o.prototype.writeInt32BE=function(S,C,D){return S=+S,C=C>>>0,D||be(this,S,C,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[C]=S>>>24,this[C+1]=S>>>16,this[C+2]=S>>>8,this[C+3]=S&255,C+4};function Ve(O,S,C,D,se,Fe){if(C+D>O.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function ct(O,S,C,D,se){return S=+S,C=C>>>0,se||Ve(O,S,C,4),r.write(O,S,C,D,23,4),C+4}o.prototype.writeFloatLE=function(S,C,D){return ct(this,S,C,!0,D)},o.prototype.writeFloatBE=function(S,C,D){return ct(this,S,C,!1,D)};function et(O,S,C,D,se){return S=+S,C=C>>>0,se||Ve(O,S,C,8),r.write(O,S,C,D,52,8),C+8}o.prototype.writeDoubleLE=function(S,C,D){return et(this,S,C,!0,D)},o.prototype.writeDoubleBE=function(S,C,D){return et(this,S,C,!1,D)},o.prototype.copy=function(S,C,D,se){if(!o.isBuffer(S))throw new TypeError("argument should be a Buffer");if(D||(D=0),!se&&se!==0&&(se=this.length),C>=S.length&&(C=S.length),C||(C=0),se>0&&se<D&&(se=D),se===D||S.length===0||this.length===0)return 0;if(C<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=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-C<se-D&&(se=S.length-C+D);var Fe=se-D;if(this===S&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(C,D,se);else if(this===S&&D<C&&C<se)for(var Be=Fe-1;Be>=0;--Be)S[Be+C]=this[Be+D];else Uint8Array.prototype.set.call(S,this.subarray(D,se),C);return Fe},o.prototype.fill=function(S,C,D,se){if(typeof S=="string"){if(typeof C=="string"?(se=C,C=0,D=this.length):typeof D=="string"&&(se=D,D=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!o.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(S.length===1){var Fe=S.charCodeAt(0);(se==="utf8"&&Fe<128||se==="latin1")&&(S=Fe)}}else typeof S=="number"&&(S=S&255);if(C<0||this.length<C||this.length<D)throw new RangeError("Out of range index");if(D<=C)return this;C=C>>>0,D=D===void 0?this.length:D>>>0,S||(S=0);var Be;if(typeof S=="number")for(Be=C;Be<D;++Be)this[Be]=S;else{var Qt=o.isBuffer(S)?S:o.from(S,se),sr=Qt.length;if(sr===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(Be=0;Be<D-C;++Be)this[Be+C]=Qt[Be%sr]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function wt(O){if(O=O.split("=")[0],O=O.trim().replace(pt,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function qt(O){return O<16?"0"+O.toString(16):O.toString(16)}function Vt(O,S){S=S||1/0;for(var C,D=O.length,se=null,Fe=[],Be=0;Be<D;++Be){if(C=O.charCodeAt(Be),C>55295&&C<57344){if(!se){if(C>56319){(S-=3)>-1&&Fe.push(239,191,189);continue}else if(Be+1===D){(S-=3)>-1&&Fe.push(239,191,189);continue}se=C;continue}if(C<56320){(S-=3)>-1&&Fe.push(239,191,189),se=C;continue}C=(se-55296<<10|C-56320)+65536}else se&&(S-=3)>-1&&Fe.push(239,191,189);if(se=null,C<128){if((S-=1)<0)break;Fe.push(C)}else if(C<2048){if((S-=2)<0)break;Fe.push(C>>6|192,C&63|128)}else if(C<65536){if((S-=3)<0)break;Fe.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((S-=4)<0)break;Fe.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return Fe}function Qe(O){for(var S=[],C=0;C<O.length;++C)S.push(O.charCodeAt(C)&255);return S}function Et(O,S){for(var C,D,se,Fe=[],Be=0;Be<O.length&&!((S-=2)<0);++Be)C=O.charCodeAt(Be),D=C>>8,se=C%256,Fe.push(se),Fe.push(D);return Fe}function jt(O){return t.toByteArray(wt(O))}function Ae(O,S,C,D){for(var se=0;se<D&&!(se+C>=S.length||se>=O.length);++se)S[se+C]=O[se];return se}function G(O,S){return O instanceof S||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===S.name}function ie(O){return O!==O}})(aP);var tu=jr,Sn=gY,uP=aP.Buffer;tr.__TYPEDARRAY_POOL||(tr.__TYPEDARRAY_POOL={UINT8:Sn([32,0]),UINT16:Sn([32,0]),UINT32:Sn([32,0]),BIGUINT64:Sn([32,0]),INT8:Sn([32,0]),INT16:Sn([32,0]),INT32:Sn([32,0]),BIGINT64:Sn([32,0]),FLOAT:Sn([32,0]),DOUBLE:Sn([32,0]),DATA:Sn([32,0]),UINT8C:Sn([32,0]),BUFFER:Sn([32,0])});var CY=typeof Uint8ClampedArray<"u",TY=typeof BigUint64Array<"u",OY=typeof BigInt64Array<"u",Xr=tr.__TYPEDARRAY_POOL;Xr.UINT8C||(Xr.UINT8C=Sn([32,0]));Xr.BIGUINT64||(Xr.BIGUINT64=Sn([32,0]));Xr.BIGINT64||(Xr.BIGINT64=Sn([32,0]));Xr.BUFFER||(Xr.BUFFER=Sn([32,0]));var wg=Xr.DATA,bg=Xr.BUFFER;pr.free=function(t){if(uP.isBuffer(t))bg[tu.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=tu.log2(r)|0;wg[n].push(t)}};function lP(e){if(e){var t=e.length||e.byteLength,r=tu.log2(t);wg[r].push(e)}}function kY(e){lP(e.buffer)}pr.freeUint8=pr.freeUint16=pr.freeUint32=pr.freeBigUint64=pr.freeInt8=pr.freeInt16=pr.freeInt32=pr.freeBigInt64=pr.freeFloat32=pr.freeFloat=pr.freeFloat64=pr.freeDouble=pr.freeUint8Clamped=pr.freeDataView=kY;pr.freeArrayBuffer=lP;pr.freeBuffer=function(t){bg[tu.log2(t.length)].push(t)};pr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Jn(t);switch(r){case"uint8":return tS(t);case"uint16":return fP(t);case"uint32":return sP(t);case"int8":return cP(t);case"int16":return hP(t);case"int32":return dP(t);case"float":case"float32":return pP(t);case"double":case"float64":return vP(t);case"uint8_clamped":return mP(t);case"bigint64":return yP(t);case"biguint64":return gP(t);case"buffer":return _P(t);case"data":case"dataview":return xP(t);default:return null}return null};function Jn(t){var t=tu.nextPow2(t),r=tu.log2(t),n=wg[r];return n.length>0?n.pop():new ArrayBuffer(t)}pr.mallocArrayBuffer=Jn;function tS(e){return new Uint8Array(Jn(e),0,e)}pr.mallocUint8=tS;function fP(e){return new Uint16Array(Jn(2*e),0,e)}pr.mallocUint16=fP;function sP(e){return new Uint32Array(Jn(4*e),0,e)}pr.mallocUint32=sP;function cP(e){return new Int8Array(Jn(e),0,e)}pr.mallocInt8=cP;function hP(e){return new Int16Array(Jn(2*e),0,e)}pr.mallocInt16=hP;function dP(e){return new Int32Array(Jn(4*e),0,e)}pr.mallocInt32=dP;function pP(e){return new Float32Array(Jn(4*e),0,e)}pr.mallocFloat32=pr.mallocFloat=pP;function vP(e){return new Float64Array(Jn(8*e),0,e)}pr.mallocFloat64=pr.mallocDouble=vP;function mP(e){return CY?new Uint8ClampedArray(Jn(e),0,e):tS(e)}pr.mallocUint8Clamped=mP;function gP(e){return TY?new BigUint64Array(Jn(8*e),0,e):null}pr.mallocBigUint64=gP;function yP(e){return OY?new BigInt64Array(Jn(8*e),0,e):null}pr.mallocBigInt64=yP;function xP(e){return new DataView(Jn(e),0,e)}pr.mallocDataView=xP;function _P(e){e=tu.nextPow2(e);var t=tu.log2(e),r=bg[t];return r.length>0?r.pop():new uP(e)}pr.mallocBuffer=_P;pr.clearCache=function(){for(var t=0;t<32;++t)Xr.UINT8[t].length=0,Xr.UINT16[t].length=0,Xr.UINT32[t].length=0,Xr.INT8[t].length=0,Xr.INT16[t].length=0,Xr.INT32[t].length=0,Xr.FLOAT[t].length=0,Xr.DOUBLE[t].length=0,Xr.BIGUINT64[t].length=0,Xr.BIGINT64[t].length=0,Xr.UINT8C[t].length=0,wg[t].length=0,bg[t].length=0};var wP=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},MY=wP,RY=bP,ah=96;function Qw(e,t){var r=MY(getComputedStyle(e).getPropertyValue(t));return r[0]*bP(r[1],e)}function PY(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=Qw(r,"font-size")/128;return t.removeChild(r),n}function bP(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 PY(e,t);case"em":return Qw(t,"font-size");case"rem":return Qw(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 ah;case"cm":return ah/2.54;case"mm":return ah/25.4;case"pt":return ah/72;case"pc":return ah/6}return 1}var FY=Sg,NY=Sg.canvas=document.createElement("canvas"),Vv=NY.getContext("2d"),SP=bm([32,126]);Sg.createPairs=bm;Sg.ascii=SP;function Sg(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=bm(t):Array.isArray(t)?n=t:(t.o?n=bm(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=SP),Vv.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=Vv.measureText(l[0]).width+Vv.measureText(l[1]).width,c=Vv.measureText(l).width;if(Math.abs(s-c)>i*a){var p=(c-s)/i;r[l]=p*1e3}}return r}function bm(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var IY=Mo;Mo.canvas=document.createElement("canvas");Mo.cache={};function Mo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(Mo.cache[r]&&n<=Mo.cache[r].em)return pT(Mo.cache[r],l);var s=t.canvas||Mo.canvas,c=s.getContext("2d"),p={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=o;var g="H",y={top:0};c.clearRect(0,0,x,x),c.textBaseline="top",c.fillStyle="black",c.fillText(g,0,0);var T=Ji(c.getImageData(0,0,x,x));c.clearRect(0,0,x,x),c.textBaseline="bottom",c.fillText(g,0,x);var P=Ji(c.getImageData(0,0,x,x));y.lineHeight=y.bottom=x-P+T,c.clearRect(0,0,x,x),c.textBaseline="alphabetic",c.fillText(g,0,x);var b=Ji(c.getImageData(0,0,x,x)),_=x-b-1+T;y.baseline=y.alphabetic=_,c.clearRect(0,0,x,x),c.textBaseline="middle",c.fillText(g,0,x*.5);var E=Ji(c.getImageData(0,0,x,x));y.median=y.middle=x-E-1+T-x*.5,c.clearRect(0,0,x,x),c.textBaseline="hanging",c.fillText(g,0,x*.5);var k=Ji(c.getImageData(0,0,x,x));y.hanging=x-k-1+T-x*.5,c.clearRect(0,0,x,x),c.textBaseline="ideographic",c.fillText(g,0,x);var F=Ji(c.getImageData(0,0,x,x));if(y.ideographic=x-F-1+T,p.upper&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.upper,0,0),y.upper=Ji(c.getImageData(0,0,x,x)),y.capHeight=y.baseline-y.upper),p.lower&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.lower,0,0),y.lower=Ji(c.getImageData(0,0,x,x)),y.xHeight=y.baseline-y.lower),p.tittle&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.tittle,0,0),y.tittle=Ji(c.getImageData(0,0,x,x))),p.ascent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.ascent,0,0),y.ascent=Ji(c.getImageData(0,0,x,x))),p.descent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.descent,0,0),y.descent=vT(c.getImageData(0,0,x,x))),p.overshoot){c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(p.overshoot,0,0);var I=vT(c.getImageData(0,0,x,x));y.overshoot=I-_}for(var $ in y)y[$]/=n;return y.em=n,Mo.cache[r]=y,pT(y,l)}function pT(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 Ji(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 vT(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 xf=aY,LY=uu,$Y=Xw,DY=lY,BY=WR,Zx=gg,zY=dY,Ao=pr,UY=mg,jY=FR,GY=wP,HY=RY,qY=FY,WY=vl,VY=IY,YY=Bd,XY=jr,mT=XY.nextPow2,gT=new BY,x0=!1;if(document.body){var Kx=document.body.appendChild(document.createElement("div"));Kx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Kx).fontStretch&&(x0=!0),document.body.removeChild(Kx)}var _r=function(t){QY(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=DY(t),this.shader=gT.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||$Y({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(),gT.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(jY(t)?t:{})};_r.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:`
1077
1077
  precision highp float;
1078
1078
  attribute float width, charOffset, char;
1079
1079
  attribute vec2 position;
@@ -1147,5 +1147,5 @@ void main() {
1147
1147
  // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1148
1148
 
1149
1149
  gl_FragColor = color;
1150
- }`}),n={};return{regl:t,draw:r,atlas:n}};_r.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=NY(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(et){return parseFloat(et)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=BY(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=WY(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=_r.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(et,pt){if(typeof et=="string")try{et=xf.parse(et)}catch{et=xf.parse(_r.baseFontSize+"px "+et)}else et=xf.parse(xf.stringify(et));var wt=xf.stringify({size:_r.baseFontSize,family:et.family,stretch:y0?et.stretch:void 0,variant:et.variant,weight:et.weight,style:et.style}),qt=UY(et.size),Vt=Math.round(qt[0]*jY(qt[1]));if(Vt!==r.fontSize[pt]&&(i=!0,r.fontSize[pt]=Vt),(!r.font[pt]||wt!=r.font[pt].baseString)&&(n=!0,r.font[pt]=_r.fonts[wt],!r.font[pt])){var Qe=et.family.join(", "),Et=[et.style];et.style!=et.variant&&Et.push(et.variant),et.variant!=et.weight&&Et.push(et.weight),y0&&et.weight!=et.stretch&&Et.push(et.stretch),r.font[pt]={baseString:wt,family:Qe,weight:et.weight,stretch:et.stretch,style:et.style,variant:et.variant,width:{},kerning:{},metrics:qY(Qe,{origin:"top",fontSize:_r.baseFontSize,fontStyle:Et.join(" ")})},_r.fonts[wt]=r.font[pt]}}),(n||i)&&this.font.forEach(function(et,pt){var wt=xf.stringify({size:r.fontSize[pt],family:et.family,stretch:y0?et.stretch:void 0,variant:et.variant,weight:et.weight,style:et.style});if(r.fontAtlas[pt]=r.shader.atlas[wt],!r.fontAtlas[pt]){var qt=et.metrics;r.shader.atlas[wt]=r.fontAtlas[pt]={fontString:wt,step:Math.ceil(r.fontSize[pt]*qt.bottom*.5)*2,em:r.fontSize[pt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(et,pt){_r.atlasContext.font=et.baseString;for(var wt=r.fontAtlas[pt],qt=0;qt<r.text.length;qt++){var Vt=r.text.charAt(qt);if(wt.ids[Vt]==null&&(wt.ids[Vt]=wt.chars.length,wt.chars.push(Vt),l.push(Vt)),et.width[Vt]==null&&(et.width[Vt]=_r.atlasContext.measureText(Vt).width/_r.baseFontSize,r.kerning)){var Qe=[];for(var Et in et.width)Qe.push(Et+Vt,Vt+Et);HY(et.kerning,GY(et.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,p=Ao.mallocFloat(this.count*2),x=0,g=0;x<this.counts.length;x++){var y=this.counts[x];if(c)for(var C=0;C<y;C++)p[g++]=t.position[x*2],p[g++]=t.position[x*2+1];else for(var P=0;P<y;P++)p[g++]=t.position[x][0],p[g++]=t.position[x][1]}this.position.call?this.position({type:"float",data:p}):this.position=this.regl.buffer({type:"float",data:p}),Ao.freeFloat(p)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=Ao.mallocUint8(this.count),_=Ao.mallocFloat(this.count*2);this.textWidth=[];for(var E=0,k=0;E<this.counts.length;E++){for(var F=this.counts[E],I=this.font[E]||this.font[0],$=this.fontAtlas[E]||this.fontAtlas[0],ne=0;ne<F;ne++){var V=this.text.charAt(k),ae=this.text.charAt(k-1);if(b[k]=$.ids[V],_[k*2]=I.width[V],ne){var Ce=_[k*2-2],Oe=_[k*2],Pe=_[k*2-1],De=Pe+Ce*.5+Oe*.5;if(this.kerning){var Ue=I.kerning[ae+V];Ue&&(De+=Ue*.001)}_[k*2+1]=De}else _[k*2+1]=_[k*2]*.5;k++}this.textWidth.push(_.length?_[k*2-2]*.5+_[k*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:_,type:"float",usage:"stream"}),Ao.freeUint8(b),Ao.freeFloat(_),l.length&&this.font.forEach(function(et,pt){var wt=r.fontAtlas[pt],qt=wt.step,Vt=Math.floor(_r.maxAtlasSize/qt),Qe=Math.min(Vt,wt.chars.length),Et=Math.ceil(wt.chars.length/Qe),jt=pC(Qe*qt),Ae=pC(Et*qt);wt.width=jt,wt.height=Ae,wt.rows=Et,wt.cols=Qe,wt.em&&wt.texture({data:DY({canvas:_r.atlasCanvas,font:wt.fontString,chars:wt.chars,shape:[jt,Ae],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(et,pt){var wt=Array.isArray(r.align)?r.align.length>1?r.align[pt]:r.align[0]:r.align;if(typeof wt=="number")return wt;switch(wt){case"right":case"end":return-et;case"center":case"centre":case"middle":return-et*.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(et,pt){var wt=(r.font[pt]||r.font[0]).metrics,qt=0;return qt+=wt.bottom*.5,typeof et=="number"?qt+=et-wt.baseline:qt+=-wt[et],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Qx(t.color,"uint8");else{var ft;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ft=Ao.mallocUint8(nt);for(var $e=(t.color.subarray||t.color.slice).bind(t.color),qe=0;qe<nt;qe+=4)ft.set(Qx($e(qe,qe+4),"uint8"),qe)}else{var kt=t.color.length;ft=Ao.mallocUint8(kt*4);for(var He=0;He<kt;He++)ft.set(Qx(t.color[He]||0,"uint8"),He*4)}this.color=ft}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var Ve=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(Ve);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=[]}};_r.prototype.destroy=function(){};_r.prototype.kerning=!0;_r.prototype.position={constant:new Float32Array(2)};_r.prototype.translate=null;_r.prototype.scale=null;_r.prototype.font=null;_r.prototype.text="";_r.prototype.positionOffset=[0,0];_r.prototype.opacity=1;_r.prototype.color=new Uint8Array([0,0,0,255]);_r.prototype.alignOffset=[0,0];_r.maxAtlasSize=1024;_r.atlasCanvas=document.createElement("canvas");_r.atlasContext=_r.atlasCanvas.getContext("2d",{alpha:!1});_r.baseFontSize=64;_r.fonts={};function YY(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var CK=_r;function XY(e,t){return e.parent===t.parent?1:2}function QY(e){return e.reduce(ZY,0)/e.length}function ZY(e,t){return e+t.x}function KY(e){return 1+e.reduce(JY,0)}function JY(e,t){return Math.max(e,t.y)}function eX(e){for(var t;t=e.children;)e=t[0];return e}function tX(e){for(var t;t=e.children;)e=t[t.length-1];return e}function rX(){var e=XY,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(g){var y=g.children;y?(g.x=QY(y),g.y=KY(y)):(g.x=o?l+=e(g,o):0,g.y=0,o=g)});var s=eX(a),c=tX(a),p=s.x-e(s,c)/2,x=c.x+e(c,s)/2;return a.eachAfter(n?function(g){g.x=(g.x-a.x)*t,g.y=(a.y-g.y)*r}:function(g){g.x=(g.x-p)/(x-p)*t,g.y=(1-(a.y?g.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 nX(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 iX(){return this.eachAfter(nX)}function aX(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function oX(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 uX(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function lX(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 fX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function sX(e){for(var t=this,r=cX(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 cX(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 hX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function dX(){var e=[];return this.each(function(t){e.push(t)}),e}function pX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function vX(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function eS(e,t){var r=new ss(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,c;for(t==null&&(t=gX);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(o=i.children[s]=new ss(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(bP)}function mX(){return eS(this).eachBefore(yX)}function gX(e){return e.children}function yX(e){e.data=e.data.data}function bP(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ss(e){this.data=e,this.depth=this.height=0,this.parent=null}ss.prototype=eS.prototype={constructor:ss,count:iX,each:aX,eachAfter:uX,eachBefore:oX,sum:lX,sort:fX,path:sX,ancestors:hX,descendants:dX,leaves:pX,links:vX,copy:mX};var xX=Array.prototype.slice;function _X(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 SP(e){for(var t=0,r=(e=_X(xX.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&EP(a,i)?++t:(a=bX(n=wX(n,i)),t=0);return a}function wX(e,t){var r,n;if(Kx(t,e))return[t];for(r=0;r<e.length;++r)if(Yv(t,e[r])&&Kx(vh(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(Yv(vh(e[r],e[n]),t)&&Yv(vh(e[r],t),e[n])&&Yv(vh(e[n],t),e[r])&&Kx(AP(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function Yv(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 EP(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 Kx(e,t){for(var r=0;r<t.length;++r)if(!EP(e,t[r]))return!1;return!0}function bX(e){switch(e.length){case 1:return SX(e[0]);case 2:return vh(e[0],e[1]);case 3:return AP(e[0],e[1],e[2])}}function SX(e){return{x:e.x,y:e.y,r:e.r}}function vh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,c=o-n,p=l-i,x=Math.sqrt(s*s+c*c);return{x:(r+a+s/x*p)/2,y:(n+o+c/x*p)/2,r:(x+i+l)/2}}function AP(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,c=r.x,p=r.y,x=r.r,g=n-o,y=n-c,C=i-l,P=i-p,b=s-a,_=x-a,E=n*n+i*i-a*a,k=E-o*o-l*l+s*s,F=E-c*c-p*p+x*x,I=y*C-g*P,$=(C*F-P*k)/(I*2)-n,ne=(P*b-C*_)/I,V=(y*k-g*F)/(I*2)-i,ae=(g*_-y*b)/I,Ce=ne*ne+ae*ae-1,Oe=2*(a+$*ne+V*ae),Pe=$*$+V*V-a*a,De=-(Ce?(Oe+Math.sqrt(Oe*Oe-4*Ce*Pe))/(2*Ce):Pe/Oe);return{x:n+$+ne*De,y:i+V+ae*De,r:De}}function mC(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,c=n*n+o*o;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*o,r.y=e.y-i*o+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*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function gC(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 yC(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 Xv(e){this._=e,this.next=null,this.previous=null}function TP(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,c,p,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;mC(r,t,n=e[2]),t=new Xv(t),r=new Xv(r),n=new Xv(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){mC(t._,r._,n=e[l]),n=new Xv(n),s=r.next,c=t.previous,p=r._.r,x=t._.r;do if(p<=x){if(gC(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}p+=s._.r,s=s.next}else{if(gC(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=yC(t);(n=n.next)!==r;)(o=yC(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=SP(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function EX(e){return TP(e),e}function AX(e){return e==null?null:bm(e)}function bm(e){if(typeof e!="function")throw new Error;return e}function Gu(){return 0}function Ef(e){return function(){return e}}function TX(e){return Math.sqrt(e.value)}function CX(){var e=null,t=1,r=1,n=Gu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(xC(e)).eachAfter(Jx(n,.5)).eachBefore(_C(1)):a.eachBefore(xC(TX)).eachAfter(Jx(Gu,1)).eachAfter(Jx(n,a.r/Math.min(t,r))).eachBefore(_C(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=AX(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:Ef(+a),i):n},i}function xC(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Jx(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=TP(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function _C(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 CP(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 Ud(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function OX(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(CP),o}function a(o,l){return function(s){s.children&&Ud(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var c=s.x0,p=s.y0,x=s.x1-r,g=s.y1-r;x<c&&(c=x=(c+x)/2),g<p&&(p=g=(p+g)/2),s.x0=c,s.y0=p,s.x1=x,s.y1=g}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var wC="$",kX={depth:-1},bC={};function MX(e){return e.id}function RX(e){return e.parentId}function PX(){var e=MX,t=RX;function r(n){var i,a,o=n.length,l,s,c,p=new Array(o),x,g,y={};for(a=0;a<o;++a)i=n[a],c=p[a]=new ss(i),(x=e(i,a,n))!=null&&(x+="")&&(g=wC+(c.id=x),y[g]=g in y?bC:c);for(a=0;a<o;++a)if(c=p[a],x=t(n[a],a,n),x==null||!(x+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=y[wC+x],!s)throw new Error("missing: "+x);if(s===bC)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=kX,l.eachBefore(function(C){C.depth=C.parent.depth+1,--o}).eachBefore(bP),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=bm(n),r):e},r.parentId=function(n){return arguments.length?(t=bm(n),r):t},r}function FX(e,t){return e.parent===t.parent?1:2}function e_(e){var t=e.children;return t?t[0]:e.t}function t_(e){var t=e.children;return t?t[t.length-1]:e.t}function NX(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 IX(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 LX(e,t,r){return e.a.parent===t.parent?e.a:r}function x0(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}x0.prototype=Object.create(ss.prototype);function $X(e){for(var t=new x0(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new x0(a[o],o)),i.parent=r;return(t.parent=new x0(null,0)).children=[t],t}function DX(){var e=FX,t=1,r=1,n=null;function i(c){var p=$X(c);if(p.eachAfter(a),p.parent.m=-p.z,p.eachBefore(o),n)c.eachBefore(s);else{var x=c,g=c,y=c;c.eachBefore(function(E){E.x<x.x&&(x=E),E.x>g.x&&(g=E),E.depth>y.depth&&(y=E)});var C=x===g?1:e(x,g)/2,P=C-x.x,b=t/(g.x+C+P),_=r/(y.depth||1);c.eachBefore(function(E){E.x=(E.x+P)*b,E.y=E.depth*_})}return c}function a(c){var p=c.children,x=c.parent.children,g=c.i?x[c.i-1]:null;if(p){IX(c);var y=(p[0].z+p[p.length-1].z)/2;g?(c.z=g.z+e(c._,g._),c.m=c.z-y):c.z=y}else g&&(c.z=g.z+e(c._,g._));c.parent.A=l(c,g,c.parent.A||x[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,p,x){if(p){for(var g=c,y=c,C=p,P=g.parent.children[0],b=g.m,_=y.m,E=C.m,k=P.m,F;C=t_(C),g=e_(g),C&&g;)P=e_(P),y=t_(y),y.a=c,F=C.z+E-g.z-b+e(C._,g._),F>0&&(NX(LX(C,c,x),c,F),b+=F,_+=F),E+=C.m,b+=g.m,k+=P.m,_+=y.m;C&&!t_(y)&&(y.t=C,y.m+=E-_),g&&!e_(P)&&(P.t=g,P.m+=b-k,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 Sg(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}var OP=(1+Math.sqrt(5))/2;function kP(e,t,r,n,i,a){for(var o=[],l=t.children,s,c,p=0,x=0,g=l.length,y,C,P=t.value,b,_,E,k,F,I,$;p<g;){y=i-r,C=a-n;do b=l[x++].value;while(!b&&x<g);for(_=E=b,I=Math.max(C/y,y/C)/(P*e),$=b*b*I,F=Math.max(E/$,$/_);x<g;++x){if(b+=c=l[x].value,c<_&&(_=c),c>E&&(E=c),$=b*b*I,k=Math.max(E/$,$/_),k>F){b-=c;break}F=k}o.push(s={value:b,dice:y<C,children:l.slice(p,x)}),s.dice?Ud(s,r,n,i,P?n+=C*b/P:a):Sg(s,r,n,P?r+=y*b/P:i,a),P-=b,p=x}return o}const MP=function e(t){function r(n,i,a,o,l){kP(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(OP);function BX(){var e=MP,t=!1,r=1,n=1,i=[0],a=Gu,o=Gu,l=Gu,s=Gu,c=Gu;function p(g){return g.x0=g.y0=0,g.x1=r,g.y1=n,g.eachBefore(x),i=[0],t&&g.eachBefore(CP),g}function x(g){var y=i[g.depth],C=g.x0+y,P=g.y0+y,b=g.x1-y,_=g.y1-y;b<C&&(C=b=(C+b)/2),_<P&&(P=_=(P+_)/2),g.x0=C,g.y0=P,g.x1=b,g.y1=_,g.children&&(y=i[g.depth+1]=a(g)/2,C+=c(g)-y,P+=o(g)-y,b-=l(g)-y,_-=s(g)-y,b<C&&(C=b=(C+b)/2),_<P&&(P=_=(P+_)/2),e(g,C,P,b,_))}return p.round=function(g){return arguments.length?(t=!!g,p):t},p.size=function(g){return arguments.length?(r=+g[0],n=+g[1],p):[r,n]},p.tile=function(g){return arguments.length?(e=bm(g),p):e},p.padding=function(g){return arguments.length?p.paddingInner(g).paddingOuter(g):p.paddingInner()},p.paddingInner=function(g){return arguments.length?(a=typeof g=="function"?g:Ef(+g),p):a},p.paddingOuter=function(g){return arguments.length?p.paddingTop(g).paddingRight(g).paddingBottom(g).paddingLeft(g):p.paddingTop()},p.paddingTop=function(g){return arguments.length?(o=typeof g=="function"?g:Ef(+g),p):o},p.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:Ef(+g),p):l},p.paddingBottom=function(g){return arguments.length?(s=typeof g=="function"?g:Ef(+g),p):s},p.paddingLeft=function(g){return arguments.length?(c=typeof g=="function"?g:Ef(+g),p):c},p}function zX(e,t,r,n,i){var a=e.children,o,l=a.length,s,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;p(0,l,e.value,t,r,n,i);function p(x,g,y,C,P,b,_){if(x>=g-1){var E=a[x];E.x0=C,E.y0=P,E.x1=b,E.y1=_;return}for(var k=c[x],F=y/2+k,I=x+1,$=g-1;I<$;){var ne=I+$>>>1;c[ne]<F?I=ne+1:$=ne}F-c[I-1]<c[I]-F&&x+1<I&&--I;var V=c[I]-k,ae=y-V;if(b-C>_-P){var Ce=(C*ae+b*V)/y;p(x,I,V,C,P,Ce,_),p(I,g,ae,Ce,P,b,_)}else{var Oe=(P*ae+_*V)/y;p(x,I,V,C,P,b,Oe),p(I,g,ae,C,Oe,b,_)}}}function UX(e,t,r,n,i){(e.depth&1?Sg:Ud)(e,t,r,n,i)}const jX=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,p,x,g=-1,y,C=s.length,P=n.value;++g<C;){for(c=s[g],p=c.children,x=c.value=0,y=p.length;x<y;++x)c.value+=p[x].value;c.dice?Ud(c,i,a,o,a+=(l-a)*c.value/P):Sg(c,i,a,i+=(o-i)*c.value/P,l),P-=c.value}else n._squarify=s=kP(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(OP),GX=Object.freeze(Object.defineProperty({__proto__:null,cluster:rX,hierarchy:eS,pack:CX,packEnclose:SP,packSiblings:EX,partition:OX,stratify:PX,tree:DX,treemap:BX,treemapBinary:zX,treemapDice:Ud,treemapResquarify:jX,treemapSlice:Sg,treemapSliceDice:UX,treemapSquarify:MP},Symbol.toStringTag,{value:"Module"})),OK=pl(GX);function bs(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function lu(){}var cl=.7,cs=1/cl,Xf="\\s*([+-]?\\d+)\\s*",dd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HX=/^#([0-9a-f]{3,8})$/,qX=new RegExp(`^rgb\\(${Xf},${Xf},${Xf}\\)$`),WX=new RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),VX=new RegExp(`^rgba\\(${Xf},${Xf},${Xf},${dd}\\)$`),YX=new RegExp(`^rgba\\(${fa},${fa},${fa},${dd}\\)$`),XX=new RegExp(`^hsl\\(${dd},${fa},${fa}\\)$`),QX=new RegExp(`^hsla\\(${dd},${fa},${fa},${dd}\\)$`),SC={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};bs(lu,pd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:EC,formatHex:EC,formatHex8:ZX,formatHsl:KX,formatRgb:AC,toString:AC});function EC(){return this.rgb().formatHex()}function ZX(){return this.rgb().formatHex8()}function KX(){return RP(this).formatHsl()}function AC(){return this.rgb().formatRgb()}function pd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=HX.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?TC(t):r===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qv(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=qX.exec(e))?new vn(t[1],t[2],t[3],1):(t=WX.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=VX.exec(e))?Qv(t[1],t[2],t[3],t[4]):(t=YX.exec(e))?Qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XX.exec(e))?kC(t[1],t[2]/100,t[3]/100,1):(t=QX.exec(e))?kC(t[1],t[2]/100,t[3]/100,t[4]):SC.hasOwnProperty(e)?TC(SC[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function TC(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function Qv(e,t,r,n){return n<=0&&(e=t=r=NaN),new vn(e,t,r,n)}function tS(e){return e instanceof lu||(e=pd(e)),e?(e=e.rgb(),new vn(e.r,e.g,e.b,e.opacity)):new vn}function Sm(e,t,r,n){return arguments.length===1?tS(e):new vn(e,t,r,n??1)}function vn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}bs(vn,Sm,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(tl(this.r),tl(this.g),tl(this.b),Em(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:CC,formatHex:CC,formatHex8:JX,formatRgb:OC,toString:OC}));function CC(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}`}function JX(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}${Zu((isNaN(this.opacity)?1:this.opacity)*255)}`}function OC(){const e=Em(this.opacity);return`${e===1?"rgb(":"rgba("}${tl(this.r)}, ${tl(this.g)}, ${tl(this.b)}${e===1?")":`, ${e})`}`}function Em(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zu(e){return e=tl(e),(e<16?"0":"")+e.toString(16)}function kC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zi(e,t,r,n)}function RP(e){if(e instanceof zi)return new zi(e.h,e.s,e.l,e.opacity);if(e instanceof lu||(e=pd(e)),!e)return new zi;if(e instanceof zi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new zi(o,l,s,e.opacity)}function Qw(e,t,r,n){return arguments.length===1?RP(e):new zi(e,t,r,n??1)}function zi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bs(zi,Qw,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new zi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new zi(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 vn(r_(e>=240?e-240:e+120,i,n),r_(e,i,n),r_(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zi(MC(this.h),Zv(this.s),Zv(this.l),Em(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=Em(this.opacity);return`${e===1?"hsl(":"hsla("}${MC(this.h)}, ${Zv(this.s)*100}%, ${Zv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MC(e){return e=(e||0)%360,e<0?e+360:e}function Zv(e){return Math.max(0,Math.min(1,e||0))}function r_(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 PP=Math.PI/180,FP=180/Math.PI,Am=18,NP=.96422,IP=1,LP=.82521,$P=4/29,Qf=6/29,DP=3*Qf*Qf,eQ=Qf*Qf*Qf;function BP(e){if(e instanceof sa)return new sa(e.l,e.a,e.b,e.opacity);if(e instanceof Ua)return zP(e);e instanceof vn||(e=tS(e));var t=o_(e.r),r=o_(e.g),n=o_(e.b),i=n_((.2225045*t+.7168786*r+.0606169*n)/IP),a,o;return t===r&&r===n?a=o=i:(a=n_((.4360747*t+.3850649*r+.1430804*n)/NP),o=n_((.0139322*t+.0971045*r+.7141733*n)/LP)),new sa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function Zw(e,t,r,n){return arguments.length===1?BP(e):new sa(e,t,r,n??1)}function sa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}bs(sa,Zw,jd(lu,{brighter(e){return new sa(this.l+Am*(e??1),this.a,this.b,this.opacity)},darker(e){return new sa(this.l-Am*(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=NP*i_(t),e=IP*i_(e),r=LP*i_(r),new vn(a_(3.1338561*t-1.6168667*e-.4906146*r),a_(-.9787684*t+1.9161415*e+.033454*r),a_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function n_(e){return e>eQ?Math.pow(e,1/3):e/DP+$P}function i_(e){return e>Qf?e*e*e:DP*(e-$P)}function a_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function o_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tQ(e){if(e instanceof Ua)return new Ua(e.h,e.c,e.l,e.opacity);if(e instanceof sa||(e=BP(e)),e.a===0&&e.b===0)return new Ua(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*FP;return new Ua(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Kw(e,t,r,n){return arguments.length===1?tQ(e):new Ua(e,t,r,n??1)}function Ua(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function zP(e){if(isNaN(e.h))return new sa(e.l,0,0,e.opacity);var t=e.h*PP;return new sa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}bs(Ua,Kw,jd(lu,{brighter(e){return new Ua(this.h,this.c,this.l+Am*(e??1),this.opacity)},darker(e){return new Ua(this.h,this.c,this.l-Am*(e??1),this.opacity)},rgb(){return zP(this).rgb()}}));var UP=-.14861,rS=1.78277,nS=-.29227,Eg=-.90649,vd=1.97294,RC=vd*Eg,PC=vd*rS,FC=rS*nS-Eg*UP;function rQ(e){if(e instanceof rl)return new rl(e.h,e.s,e.l,e.opacity);e instanceof vn||(e=tS(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(FC*n+RC*t-PC*r)/(FC+RC-PC),a=n-i,o=(vd*(r-i)-nS*a)/Eg,l=Math.sqrt(o*o+a*a)/(vd*i*(1-i)),s=l?Math.atan2(o,a)*FP-120:NaN;return new rl(s<0?s+360:s,l,i,e.opacity)}function Jw(e,t,r,n){return arguments.length===1?rQ(e):new rl(e,t,r,n??1)}function rl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bs(rl,Jw,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new rl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new rl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*PP,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new vn(255*(t+r*(UP*n+rS*i)),255*(t+r*(nS*n+Eg*i)),255*(t+r*(vd*n)),this.opacity)}}));function jP(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function GP(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return jP((r-n/t)*t,o,i,a,l)}}function HP(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return jP((r-n/t)*t,i,a,o,l)}}const Ag=e=>()=>e;function qP(e,t){return function(r){return e+r*t}}function nQ(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 Tg(e,t){var r=t-e;return r?qP(e,r>180||r<-180?r-360*Math.round(r/360):r):Ag(isNaN(e)?t:e)}function iQ(e){return(e=+e)==1?mn:function(t,r){return r-t?nQ(t,r,e):Ag(isNaN(t)?r:t)}}function mn(e,t){var r=t-e;return r?qP(e,r):Ag(isNaN(e)?t:e)}const e2=function e(t){var r=iQ(t);function n(i,a){var o=r((i=Sm(i)).r,(a=Sm(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=mn(i.opacity,a.opacity);return function(p){return i.r=o(p),i.g=l(p),i.b=s(p),i.opacity=c(p),i+""}}return n.gamma=e,n}(1);function WP(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=Sm(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var aQ=WP(GP),oQ=WP(HP);function iS(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 VP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uQ(e,t){return(VP(t)?iS:YP)(e,t)}function YP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Cg(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function XP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ta(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function QP(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]=Cg(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var t2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u_=new RegExp(t2.source,"g");function lQ(e){return function(){return e}}function fQ(e){return function(t){return e(t)+""}}function ZP(e,t){var r=t2.lastIndex=u_.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=t2.exec(e))&&(i=u_.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ta(n,i)})),r=u_.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?fQ(s[0].x):lQ(t):(t=s.length,function(c){for(var p=0,x;p<t;++p)l[(x=s[p]).i]=x.x(c);return l.join("")})}function Cg(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ag(t):(r==="number"?ta:r==="string"?(n=pd(t))?(t=n,e2):ZP:t instanceof pd?e2:t instanceof Date?XP:VP(t)?iS:Array.isArray(t)?YP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QP:ta)(e,t)}function sQ(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function cQ(e,t){var r=Tg(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function hQ(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var NC=180/Math.PI,r2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KP(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*NC,skewX:Math.atan(s)*NC,scaleX:o,scaleY:l}}var Kv;function dQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?r2:KP(t.a,t.b,t.c,t.d,t.e,t.f)}function pQ(e){return e==null||(Kv||(Kv=document.createElementNS("http://www.w3.org/2000/svg","g")),Kv.setAttribute("transform",e),!(e=Kv.transform.baseVal.consolidate()))?r2:(e=e.matrix,KP(e.a,e.b,e.c,e.d,e.e,e.f))}function JP(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,p,x,g,y,C){if(c!==x||p!==g){var P=y.push("translate(",null,t,null,r);C.push({i:P-4,x:ta(c,x)},{i:P-2,x:ta(p,g)})}else(x||g)&&y.push("translate("+x+t+g+r)}function o(c,p,x,g){c!==p?(c-p>180?p+=360:p-c>180&&(c+=360),g.push({i:x.push(i(x)+"rotate(",null,n)-2,x:ta(c,p)})):p&&x.push(i(x)+"rotate("+p+n)}function l(c,p,x,g){c!==p?g.push({i:x.push(i(x)+"skewX(",null,n)-2,x:ta(c,p)}):p&&x.push(i(x)+"skewX("+p+n)}function s(c,p,x,g,y,C){if(c!==x||p!==g){var P=y.push(i(y)+"scale(",null,",",null,")");C.push({i:P-4,x:ta(c,x)},{i:P-2,x:ta(p,g)})}else(x!==1||g!==1)&&y.push(i(y)+"scale("+x+","+g+")")}return function(c,p){var x=[],g=[];return c=e(c),p=e(p),a(c.translateX,c.translateY,p.translateX,p.translateY,x,g),o(c.rotate,p.rotate,x,g),l(c.skewX,p.skewX,x,g),s(c.scaleX,c.scaleY,p.scaleX,p.scaleY,x,g),c=p=null,function(y){for(var C=-1,P=g.length,b;++C<P;)x[(b=g[C]).i]=b.x(y);return x.join("")}}}var vQ=JP(dQ,"px, ","px)","deg)"),mQ=JP(pQ,", ",")",")"),gQ=1e-12;function IC(e){return((e=Math.exp(e))+1/e)/2}function yQ(e){return((e=Math.exp(e))-1/e)/2}function xQ(e){return((e=Math.exp(2*e))-1)/(e+1)}const _Q=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],c=a[2],p=o[0],x=o[1],g=o[2],y=p-l,C=x-s,P=y*y+C*C,b,_;if(P<gQ)_=Math.log(g/c)/t,b=function(ne){return[l+ne*y,s+ne*C,c*Math.exp(t*ne*_)]};else{var E=Math.sqrt(P),k=(g*g-c*c+n*P)/(2*c*r*E),F=(g*g-c*c-n*P)/(2*g*r*E),I=Math.log(Math.sqrt(k*k+1)-k),$=Math.log(Math.sqrt(F*F+1)-F);_=($-I)/t,b=function(ne){var V=ne*_,ae=IC(I),Ce=c/(r*E)*(ae*xQ(t*V+I)-yQ(I));return[l+Ce*y,s+Ce*C,c*ae/IC(t*V+I)]}}return b.duration=_*1e3*t/Math.SQRT2,b}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function eF(e){return function(t,r){var n=e((t=Qw(t)).h,(r=Qw(r)).h),i=mn(t.s,r.s),a=mn(t.l,r.l),o=mn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const wQ=eF(Tg);var bQ=eF(mn);function SQ(e,t){var r=mn((e=Zw(e)).l,(t=Zw(t)).l),n=mn(e.a,t.a),i=mn(e.b,t.b),a=mn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function tF(e){return function(t,r){var n=e((t=Kw(t)).h,(r=Kw(r)).h),i=mn(t.c,r.c),a=mn(t.l,r.l),o=mn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const EQ=tF(Tg);var AQ=tF(mn);function rF(e){return function t(r){r=+r;function n(i,a){var o=e((i=Jw(i)).h,(a=Jw(a)).h),l=mn(i.s,a.s),s=mn(i.l,a.l),c=mn(i.opacity,a.opacity);return function(p){return i.h=o(p),i.s=l(p),i.l=s(Math.pow(p,r)),i.opacity=c(p),i+""}}return n.gamma=t,n}(1)}const TQ=rF(Tg);var CQ=rF(mn);function OQ(e,t){t===void 0&&(t=e,e=Cg);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function kQ(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const MQ=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Cg,interpolateArray:uQ,interpolateBasis:GP,interpolateBasisClosed:HP,interpolateCubehelix:TQ,interpolateCubehelixLong:CQ,interpolateDate:XP,interpolateDiscrete:sQ,interpolateHcl:EQ,interpolateHclLong:AQ,interpolateHsl:wQ,interpolateHslLong:bQ,interpolateHue:cQ,interpolateLab:SQ,interpolateNumber:ta,interpolateNumberArray:iS,interpolateObject:QP,interpolateRgb:e2,interpolateRgbBasis:aQ,interpolateRgbBasisClosed:oQ,interpolateRound:hQ,interpolateString:ZP,interpolateTransformCss:vQ,interpolateTransformSvg:mQ,interpolateZoom:_Q,piecewise:OQ,quantize:kQ},Symbol.toStringTag,{value:"Module"})),kK=pl(MQ);var RQ="Expected a function",nF="__lodash_hash_undefined__",iF=1/0,PQ=9007199254740991,FQ="[object Function]",NQ="[object GeneratorFunction]",IQ="[object Symbol]",LQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$Q=/^\w*$/,DQ=/^\./,BQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zQ=/[\\^$.*+?()[\]{}|]/g,UQ=/\\(\\)?/g,jQ=/^\[object .+?Constructor\]$/,GQ=/^(?:0|[1-9]\d*)$/,HQ=typeof tr=="object"&&tr&&tr.Object===Object&&tr,qQ=typeof self=="object"&&self&&self.Object===Object&&self,aS=HQ||qQ||Function("return this")();function WQ(e,t){return e==null?void 0:e[t]}function VQ(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var YQ=Array.prototype,XQ=Function.prototype,aF=Object.prototype,l_=aS["__core-js_shared__"],LC=function(){var e=/[^.]+$/.exec(l_&&l_.keys&&l_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oF=XQ.toString,Og=aF.hasOwnProperty,uF=aF.toString,QQ=RegExp("^"+oF.call(Og).replace(zQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$C=aS.Symbol,ZQ=YQ.splice,KQ=lF(aS,"Map"),md=lF(Object,"create"),DC=$C?$C.prototype:void 0,BC=DC?DC.toString:void 0;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 JQ(){this.__data__=md?md(null):{}}function eZ(e){return this.has(e)&&delete this.__data__[e]}function tZ(e){var t=this.__data__;if(md){var r=t[e];return r===nF?void 0:r}return Og.call(t,e)?t[e]:void 0}function rZ(e){var t=this.__data__;return md?t[e]!==void 0:Og.call(t,e)}function nZ(e,t){var r=this.__data__;return r[e]=md&&t===void 0?nF:t,this}hl.prototype.clear=JQ;hl.prototype.delete=eZ;hl.prototype.get=tZ;hl.prototype.has=rZ;hl.prototype.set=nZ;function Ss(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 iZ(){this.__data__=[]}function aZ(e){var t=this.__data__,r=kg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ZQ.call(t,r,1),!0}function oZ(e){var t=this.__data__,r=kg(t,e);return r<0?void 0:t[r][1]}function uZ(e){return kg(this.__data__,e)>-1}function lZ(e,t){var r=this.__data__,n=kg(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ss.prototype.clear=iZ;Ss.prototype.delete=aZ;Ss.prototype.get=oZ;Ss.prototype.has=uZ;Ss.prototype.set=lZ;function Tl(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 fZ(){this.__data__={hash:new hl,map:new(KQ||Ss),string:new hl}}function sZ(e){return Mg(this,e).delete(e)}function cZ(e){return Mg(this,e).get(e)}function hZ(e){return Mg(this,e).has(e)}function dZ(e,t){return Mg(this,e).set(e,t),this}Tl.prototype.clear=fZ;Tl.prototype.delete=sZ;Tl.prototype.get=cZ;Tl.prototype.has=hZ;Tl.prototype.set=dZ;function pZ(e,t,r){var n=e[t];(!(Og.call(e,t)&&fF(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function kg(e,t){for(var r=e.length;r--;)if(fF(e[r][0],t))return r;return-1}function vZ(e){if(!Tm(e)||bZ(e))return!1;var t=TZ(e)||VQ(e)?QQ:jQ;return t.test(AZ(e))}function mZ(e,t,r,n){if(!Tm(e))return e;t=_Z(t,e)?[t]:yZ(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=EZ(t[i]),c=r;if(i!=o){var p=l[s];c=n?n(p,s,l):void 0,c===void 0&&(c=Tm(p)?p:xZ(t[i+1])?[]:{})}pZ(l,s,c),l=l[s]}return e}function gZ(e){if(typeof e=="string")return e;if(uS(e))return BC?BC.call(e):"";var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function yZ(e){return sF(e)?e:SZ(e)}function Mg(e,t){var r=e.__data__;return wZ(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lF(e,t){var r=WQ(e,t);return vZ(r)?r:void 0}function xZ(e,t){return t=t??PQ,!!t&&(typeof e=="number"||GQ.test(e))&&e>-1&&e%1==0&&e<t}function _Z(e,t){if(sF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||uS(e)?!0:$Q.test(e)||!LQ.test(e)||t!=null&&e in Object(t)}function wZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bZ(e){return!!LC&&LC in e}var SZ=oS(function(e){e=OZ(e);var t=[];return DQ.test(e)&&t.push(""),e.replace(BQ,function(r,n,i,a){t.push(i?a.replace(UQ,"$1"):n||r)}),t});function EZ(e){if(typeof e=="string"||uS(e))return e;var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function AZ(e){if(e!=null){try{return oF.call(e)}catch{}try{return e+""}catch{}}return""}function oS(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(RQ);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(oS.Cache||Tl),r}oS.Cache=Tl;function fF(e,t){return e===t||e!==e&&t!==t}var sF=Array.isArray;function TZ(e){var t=Tm(e)?uF.call(e):"";return t==FQ||t==NQ}function Tm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function CZ(e){return!!e&&typeof e=="object"}function uS(e){return typeof e=="symbol"||CZ(e)&&uF.call(e)==IQ}function OZ(e){return e==null?"":gZ(e)}function kZ(e,t,r){return e==null?e:mZ(e,t,r)}var MK=kZ;var MZ={},Gd={},Hd={},Rg={},cF={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(cF);var hF={},dl={};dl.__esModule=!0;dl.InternalServerError=dl.OK=void 0;dl.OK=200;dl.InternalServerError=500;(function(e){var t=tr&&tr.__spreadArray||function(l,s,c){if(c||arguments.length===2)for(var p=0,x=s.length,g;p<x;p++)(g||!(p in s))&&(g||(g=Array.prototype.slice.call(s,0,p)),g[p]=s[p]);return l.concat(g||Array.prototype.slice.call(s))};e.__esModule=!0;var r=Pw,n=Pw,i=dl,a=function(l){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];return typeof l!="string"?{on:function(p,x){x(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,c){a(l,function(p){if(p.statusCode!==i.OK)return c(new Error("HTTP Error Response: "+p.statusCode+" "+p.statusMessage+" ("+l+")"));var x=null;p.on("data",function(g){if(x===null){x=g;return}x+=g}),p.on("end",function(){return s(x)})}).on("error",c)})};e.default=o})(hF);var dF={},qo={};qo.__esModule=!0;qo.DONE=qo.OPENED=qo.UNSENT=void 0;qo.UNSENT=0;qo.OPENED=1;qo.DONE=4;(function(e){e.__esModule=!0;var t=dl,r=qo,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(dF);Rg.__esModule=!0;Rg.createLoadRemoteModule=void 0;var RZ=cF,PZ=hF,FZ=dF,NZ=typeof window<"u"&&typeof window.document<"u",IZ=NZ?FZ.default:PZ.default,LZ=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},$Z=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||LZ,a=n||IZ;return(0,RZ.default)(function(o){return a(o).then(function(l){var s={},c={exports:s},p=new Function("require","module","exports",l);return p(i,c,s),c.exports})})};Rg.createLoadRemoteModule=$Z;var Pg={};Pg.__esModule=!0;Pg.createRequires=void 0;var DZ=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Pg.createRequires=DZ;(function(e){var t=tr&&tr.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Rg;t(e,r,"createLoadRemoteModule","default");var n=Pg;t(e,n,"createRequires")})(Hd);const RK=Cm(Hd);var BZ=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Gd.__esModule=!0;Gd.createUseRemoteComponent=void 0;var zC=vr,zZ=BZ(Hd),UZ=function(e){var t=zZ.default(e),r=function(n,i){i===void 0&&(i="default");var a=zC.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,c=o.component,p=a[1];return zC.useEffect(function(){var x=p;return x({loading:!0,err:void 0,component:void 0}),t(n).then(function(g){return x({loading:!1,err:void 0,component:g[i]})}).catch(function(g){return x({loading:!1,err:g,component:void 0})}),function(){x=function(){}}},[n]),[l,s,c]};return r};Gd.createUseRemoteComponent=UZ;var qd={};qd.__esModule=!0;qd.createRequires=void 0;var jZ=function(e){return typeof e=="function"?e():e||{}},GZ=function(e){var t=!1;return function(r){if(t||(e=jZ(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};qd.createRequires=GZ;var lS={};(function(e){var t=tr&&tr.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,c=arguments.length;s<c;s++){l=arguments[s];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(o[p]=l[p])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(lS);var Wd={},n2=tr&&tr.__assign||function(){return n2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},n2.apply(this,arguments)},HZ=tr&&tr.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},qZ=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Wd.__esModule=!0;Wd.createRemoteComponent=void 0;var UC=qZ(vr),WZ=Gd,VZ=function(e){var t=WZ.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=HZ(n,["url","fallback","render"]),c=t(i),p=c[0],x=c[1],g=c[2];return p?o:l?l({err:x,Component:g}):x||!g?UC.default.createElement("div",null,"Unknown Error: ",(x||"UNKNOWN").toString()):UC.default.createElement(g,n2({},s))};return r};Wd.createRemoteComponent=VZ;var Fg={};Fg.__esModule=!0;Fg.RemoteComponent=void 0;var YZ=Wd,XZ=qd,QZ=lS,ZZ=XZ.createRequires(QZ.getDependencies);Fg.RemoteComponent=YZ.createRemoteComponent({requires:ZZ});var Ng={},KZ=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ng.__esModule=!0;Ng.fetchRemoteComponent=void 0;var JZ=KZ(Hd),eK=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=JZ.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Ng.fetchRemoteComponent=eK;var Ig={},tK=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ig.__esModule=!0;Ig.getServerSideProps=void 0;var rK=tK(Hd),nK=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=rK.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Ig.getServerSideProps=nK;(function(e){var t=tr&&tr.__createBinding||(Object.create?function(c,p,x,g){g===void 0&&(g=x),Object.defineProperty(c,g,{enumerable:!0,get:function(){return p[x]}})}:function(c,p,x,g){g===void 0&&(g=x),c[g]=p[x]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Gd;t(e,r,"createUseRemoteComponent");var n=qd;t(e,n,"createRequires");var i=lS;t(e,i,"getDependencies");var a=Wd;t(e,a,"createRemoteComponent");var o=Fg;t(e,o,"RemoteComponent");var l=Ng;t(e,l,"fetchRemoteComponent");var s=Ig;t(e,s,"getServerSideProps")})(MZ);export{vr as A,fr as B,fS as C,uK as D,z3 as E,Km as F,Tn as G,MK as H,cK as I,hK as J,oK as K,aK as L,lK as M,fK as N,sK as O,MZ as P,Hd as Q,gv as R,RK as S,pK as a,xK as b,_K as c,z5 as d,zw as e,vK as f,mK as g,gK as h,gm as i,tH as j,bK as k,mg as l,yK as m,wK as n,Uw as o,AR as p,Yw as q,dK as r,SK as s,lT as t,EK as u,AK as v,TK as w,CK as x,OK as y,kK as z};
1151
- //# sourceMappingURL=vendor-73e67738.js.map
1150
+ }`}),n={};return{regl:t,draw:r,atlas:n}};_r.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=LY(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(et){return parseFloat(et)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=UY(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=YY(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=_r.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(et,pt){if(typeof et=="string")try{et=xf.parse(et)}catch{et=xf.parse(_r.baseFontSize+"px "+et)}else et=xf.parse(xf.stringify(et));var wt=xf.stringify({size:_r.baseFontSize,family:et.family,stretch:x0?et.stretch:void 0,variant:et.variant,weight:et.weight,style:et.style}),qt=GY(et.size),Vt=Math.round(qt[0]*HY(qt[1]));if(Vt!==r.fontSize[pt]&&(i=!0,r.fontSize[pt]=Vt),(!r.font[pt]||wt!=r.font[pt].baseString)&&(n=!0,r.font[pt]=_r.fonts[wt],!r.font[pt])){var Qe=et.family.join(", "),Et=[et.style];et.style!=et.variant&&Et.push(et.variant),et.variant!=et.weight&&Et.push(et.weight),x0&&et.weight!=et.stretch&&Et.push(et.stretch),r.font[pt]={baseString:wt,family:Qe,weight:et.weight,stretch:et.stretch,style:et.style,variant:et.variant,width:{},kerning:{},metrics:VY(Qe,{origin:"top",fontSize:_r.baseFontSize,fontStyle:Et.join(" ")})},_r.fonts[wt]=r.font[pt]}}),(n||i)&&this.font.forEach(function(et,pt){var wt=xf.stringify({size:r.fontSize[pt],family:et.family,stretch:x0?et.stretch:void 0,variant:et.variant,weight:et.weight,style:et.style});if(r.fontAtlas[pt]=r.shader.atlas[wt],!r.fontAtlas[pt]){var qt=et.metrics;r.shader.atlas[wt]=r.fontAtlas[pt]={fontString:wt,step:Math.ceil(r.fontSize[pt]*qt.bottom*.5)*2,em:r.fontSize[pt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(et,pt){_r.atlasContext.font=et.baseString;for(var wt=r.fontAtlas[pt],qt=0;qt<r.text.length;qt++){var Vt=r.text.charAt(qt);if(wt.ids[Vt]==null&&(wt.ids[Vt]=wt.chars.length,wt.chars.push(Vt),l.push(Vt)),et.width[Vt]==null&&(et.width[Vt]=_r.atlasContext.measureText(Vt).width/_r.baseFontSize,r.kerning)){var Qe=[];for(var Et in et.width)Qe.push(Et+Vt,Vt+Et);WY(et.kerning,qY(et.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,p=Ao.mallocFloat(this.count*2),x=0,g=0;x<this.counts.length;x++){var y=this.counts[x];if(c)for(var T=0;T<y;T++)p[g++]=t.position[x*2],p[g++]=t.position[x*2+1];else for(var P=0;P<y;P++)p[g++]=t.position[x][0],p[g++]=t.position[x][1]}this.position.call?this.position({type:"float",data:p}):this.position=this.regl.buffer({type:"float",data:p}),Ao.freeFloat(p)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=Ao.mallocUint8(this.count),_=Ao.mallocFloat(this.count*2);this.textWidth=[];for(var E=0,k=0;E<this.counts.length;E++){for(var F=this.counts[E],I=this.font[E]||this.font[0],$=this.fontAtlas[E]||this.fontAtlas[0],ne=0;ne<F;ne++){var V=this.text.charAt(k),ae=this.text.charAt(k-1);if(b[k]=$.ids[V],_[k*2]=I.width[V],ne){var Te=_[k*2-2],Oe=_[k*2],Pe=_[k*2-1],De=Pe+Te*.5+Oe*.5;if(this.kerning){var Ue=I.kerning[ae+V];Ue&&(De+=Ue*.001)}_[k*2+1]=De}else _[k*2+1]=_[k*2]*.5;k++}this.textWidth.push(_.length?_[k*2-2]*.5+_[k*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:_,type:"float",usage:"stream"}),Ao.freeUint8(b),Ao.freeFloat(_),l.length&&this.font.forEach(function(et,pt){var wt=r.fontAtlas[pt],qt=wt.step,Vt=Math.floor(_r.maxAtlasSize/qt),Qe=Math.min(Vt,wt.chars.length),Et=Math.ceil(wt.chars.length/Qe),jt=mT(Qe*qt),Ae=mT(Et*qt);wt.width=jt,wt.height=Ae,wt.rows=Et,wt.cols=Qe,wt.em&&wt.texture({data:zY({canvas:_r.atlasCanvas,font:wt.fontString,chars:wt.chars,shape:[jt,Ae],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(et,pt){var wt=Array.isArray(r.align)?r.align.length>1?r.align[pt]:r.align[0]:r.align;if(typeof wt=="number")return wt;switch(wt){case"right":case"end":return-et;case"center":case"centre":case"middle":return-et*.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(et,pt){var wt=(r.font[pt]||r.font[0]).metrics,qt=0;return qt+=wt.bottom*.5,typeof et=="number"?qt+=et-wt.baseline:qt+=-wt[et],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Zx(t.color,"uint8");else{var ft;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ft=Ao.mallocUint8(nt);for(var $e=(t.color.subarray||t.color.slice).bind(t.color),qe=0;qe<nt;qe+=4)ft.set(Zx($e(qe,qe+4),"uint8"),qe)}else{var kt=t.color.length;ft=Ao.mallocUint8(kt*4);for(var He=0;He<kt;He++)ft.set(Zx(t.color[He]||0,"uint8"),He*4)}this.color=ft}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var Ve=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(Ve);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=[]}};_r.prototype.destroy=function(){};_r.prototype.kerning=!0;_r.prototype.position={constant:new Float32Array(2)};_r.prototype.translate=null;_r.prototype.scale=null;_r.prototype.font=null;_r.prototype.text="";_r.prototype.positionOffset=[0,0];_r.prototype.opacity=1;_r.prototype.color=new Uint8Array([0,0,0,255]);_r.prototype.alignOffset=[0,0];_r.maxAtlasSize=1024;_r.atlasCanvas=document.createElement("canvas");_r.atlasContext=_r.atlasCanvas.getContext("2d",{alpha:!1});_r.baseFontSize=64;_r.fonts={};function QY(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var MK=_r;function ZY(e,t){return e.parent===t.parent?1:2}function KY(e){return e.reduce(JY,0)/e.length}function JY(e,t){return e+t.x}function eX(e){return 1+e.reduce(tX,0)}function tX(e,t){return Math.max(e,t.y)}function rX(e){for(var t;t=e.children;)e=t[0];return e}function nX(e){for(var t;t=e.children;)e=t[t.length-1];return e}function iX(){var e=ZY,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(g){var y=g.children;y?(g.x=KY(y),g.y=eX(y)):(g.x=o?l+=e(g,o):0,g.y=0,o=g)});var s=rX(a),c=nX(a),p=s.x-e(s,c)/2,x=c.x+e(c,s)/2;return a.eachAfter(n?function(g){g.x=(g.x-a.x)*t,g.y=(a.y-g.y)*r}:function(g){g.x=(g.x-p)/(x-p)*t,g.y=(1-(a.y?g.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 aX(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 oX(){return this.eachAfter(aX)}function uX(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function lX(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 fX(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function sX(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 cX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function hX(e){for(var t=this,r=dX(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 dX(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 pX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function vX(){var e=[];return this.each(function(t){e.push(t)}),e}function mX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function gX(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function rS(e,t){var r=new ss(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,c;for(t==null&&(t=xX);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(o=i.children[s]=new ss(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(EP)}function yX(){return rS(this).eachBefore(_X)}function xX(e){return e.children}function _X(e){e.data=e.data.data}function EP(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ss(e){this.data=e,this.depth=this.height=0,this.parent=null}ss.prototype=rS.prototype={constructor:ss,count:oX,each:uX,eachAfter:fX,eachBefore:lX,sum:sX,sort:cX,path:hX,ancestors:pX,descendants:vX,leaves:mX,links:gX,copy:yX};var wX=Array.prototype.slice;function bX(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 AP(e){for(var t=0,r=(e=bX(wX.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&CP(a,i)?++t:(a=EX(n=SX(n,i)),t=0);return a}function SX(e,t){var r,n;if(Jx(t,e))return[t];for(r=0;r<e.length;++r)if(Yv(t,e[r])&&Jx(vh(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(Yv(vh(e[r],e[n]),t)&&Yv(vh(e[r],t),e[n])&&Yv(vh(e[n],t),e[r])&&Jx(TP(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function Yv(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 CP(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 Jx(e,t){for(var r=0;r<t.length;++r)if(!CP(e,t[r]))return!1;return!0}function EX(e){switch(e.length){case 1:return AX(e[0]);case 2:return vh(e[0],e[1]);case 3:return TP(e[0],e[1],e[2])}}function AX(e){return{x:e.x,y:e.y,r:e.r}}function vh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,c=o-n,p=l-i,x=Math.sqrt(s*s+c*c);return{x:(r+a+s/x*p)/2,y:(n+o+c/x*p)/2,r:(x+i+l)/2}}function TP(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,c=r.x,p=r.y,x=r.r,g=n-o,y=n-c,T=i-l,P=i-p,b=s-a,_=x-a,E=n*n+i*i-a*a,k=E-o*o-l*l+s*s,F=E-c*c-p*p+x*x,I=y*T-g*P,$=(T*F-P*k)/(I*2)-n,ne=(P*b-T*_)/I,V=(y*k-g*F)/(I*2)-i,ae=(g*_-y*b)/I,Te=ne*ne+ae*ae-1,Oe=2*(a+$*ne+V*ae),Pe=$*$+V*V-a*a,De=-(Te?(Oe+Math.sqrt(Oe*Oe-4*Te*Pe))/(2*Te):Pe/Oe);return{x:n+$+ne*De,y:i+V+ae*De,r:De}}function yT(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,c=n*n+o*o;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*o,r.y=e.y-i*o+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*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function xT(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 _T(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 Xv(e){this._=e,this.next=null,this.previous=null}function OP(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,c,p,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;yT(r,t,n=e[2]),t=new Xv(t),r=new Xv(r),n=new Xv(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){yT(t._,r._,n=e[l]),n=new Xv(n),s=r.next,c=t.previous,p=r._.r,x=t._.r;do if(p<=x){if(xT(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}p+=s._.r,s=s.next}else{if(xT(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=_T(t);(n=n.next)!==r;)(o=_T(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=AP(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function CX(e){return OP(e),e}function TX(e){return e==null?null:Sm(e)}function Sm(e){if(typeof e!="function")throw new Error;return e}function Gu(){return 0}function Ef(e){return function(){return e}}function OX(e){return Math.sqrt(e.value)}function kX(){var e=null,t=1,r=1,n=Gu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(wT(e)).eachAfter(e_(n,.5)).eachBefore(bT(1)):a.eachBefore(wT(OX)).eachAfter(e_(Gu,1)).eachAfter(e_(n,a.r/Math.min(t,r))).eachBefore(bT(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=TX(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:Ef(+a),i):n},i}function wT(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function e_(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=OP(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function bT(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 kP(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 Ud(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function MX(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(kP),o}function a(o,l){return function(s){s.children&&Ud(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var c=s.x0,p=s.y0,x=s.x1-r,g=s.y1-r;x<c&&(c=x=(c+x)/2),g<p&&(p=g=(p+g)/2),s.x0=c,s.y0=p,s.x1=x,s.y1=g}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var ST="$",RX={depth:-1},ET={};function PX(e){return e.id}function FX(e){return e.parentId}function NX(){var e=PX,t=FX;function r(n){var i,a,o=n.length,l,s,c,p=new Array(o),x,g,y={};for(a=0;a<o;++a)i=n[a],c=p[a]=new ss(i),(x=e(i,a,n))!=null&&(x+="")&&(g=ST+(c.id=x),y[g]=g in y?ET:c);for(a=0;a<o;++a)if(c=p[a],x=t(n[a],a,n),x==null||!(x+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=y[ST+x],!s)throw new Error("missing: "+x);if(s===ET)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=RX,l.eachBefore(function(T){T.depth=T.parent.depth+1,--o}).eachBefore(EP),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=Sm(n),r):e},r.parentId=function(n){return arguments.length?(t=Sm(n),r):t},r}function IX(e,t){return e.parent===t.parent?1:2}function t_(e){var t=e.children;return t?t[0]:e.t}function r_(e){var t=e.children;return t?t[t.length-1]:e.t}function LX(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 $X(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 DX(e,t,r){return e.a.parent===t.parent?e.a:r}function _0(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}_0.prototype=Object.create(ss.prototype);function BX(e){for(var t=new _0(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new _0(a[o],o)),i.parent=r;return(t.parent=new _0(null,0)).children=[t],t}function zX(){var e=IX,t=1,r=1,n=null;function i(c){var p=BX(c);if(p.eachAfter(a),p.parent.m=-p.z,p.eachBefore(o),n)c.eachBefore(s);else{var x=c,g=c,y=c;c.eachBefore(function(E){E.x<x.x&&(x=E),E.x>g.x&&(g=E),E.depth>y.depth&&(y=E)});var T=x===g?1:e(x,g)/2,P=T-x.x,b=t/(g.x+T+P),_=r/(y.depth||1);c.eachBefore(function(E){E.x=(E.x+P)*b,E.y=E.depth*_})}return c}function a(c){var p=c.children,x=c.parent.children,g=c.i?x[c.i-1]:null;if(p){$X(c);var y=(p[0].z+p[p.length-1].z)/2;g?(c.z=g.z+e(c._,g._),c.m=c.z-y):c.z=y}else g&&(c.z=g.z+e(c._,g._));c.parent.A=l(c,g,c.parent.A||x[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,p,x){if(p){for(var g=c,y=c,T=p,P=g.parent.children[0],b=g.m,_=y.m,E=T.m,k=P.m,F;T=r_(T),g=t_(g),T&&g;)P=t_(P),y=r_(y),y.a=c,F=T.z+E-g.z-b+e(T._,g._),F>0&&(LX(DX(T,c,x),c,F),b+=F,_+=F),E+=T.m,b+=g.m,k+=P.m,_+=y.m;T&&!r_(y)&&(y.t=T,y.m+=E-_),g&&!t_(P)&&(P.t=g,P.m+=b-k,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 Eg(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}var MP=(1+Math.sqrt(5))/2;function RP(e,t,r,n,i,a){for(var o=[],l=t.children,s,c,p=0,x=0,g=l.length,y,T,P=t.value,b,_,E,k,F,I,$;p<g;){y=i-r,T=a-n;do b=l[x++].value;while(!b&&x<g);for(_=E=b,I=Math.max(T/y,y/T)/(P*e),$=b*b*I,F=Math.max(E/$,$/_);x<g;++x){if(b+=c=l[x].value,c<_&&(_=c),c>E&&(E=c),$=b*b*I,k=Math.max(E/$,$/_),k>F){b-=c;break}F=k}o.push(s={value:b,dice:y<T,children:l.slice(p,x)}),s.dice?Ud(s,r,n,i,P?n+=T*b/P:a):Eg(s,r,n,P?r+=y*b/P:i,a),P-=b,p=x}return o}const PP=function e(t){function r(n,i,a,o,l){RP(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(MP);function UX(){var e=PP,t=!1,r=1,n=1,i=[0],a=Gu,o=Gu,l=Gu,s=Gu,c=Gu;function p(g){return g.x0=g.y0=0,g.x1=r,g.y1=n,g.eachBefore(x),i=[0],t&&g.eachBefore(kP),g}function x(g){var y=i[g.depth],T=g.x0+y,P=g.y0+y,b=g.x1-y,_=g.y1-y;b<T&&(T=b=(T+b)/2),_<P&&(P=_=(P+_)/2),g.x0=T,g.y0=P,g.x1=b,g.y1=_,g.children&&(y=i[g.depth+1]=a(g)/2,T+=c(g)-y,P+=o(g)-y,b-=l(g)-y,_-=s(g)-y,b<T&&(T=b=(T+b)/2),_<P&&(P=_=(P+_)/2),e(g,T,P,b,_))}return p.round=function(g){return arguments.length?(t=!!g,p):t},p.size=function(g){return arguments.length?(r=+g[0],n=+g[1],p):[r,n]},p.tile=function(g){return arguments.length?(e=Sm(g),p):e},p.padding=function(g){return arguments.length?p.paddingInner(g).paddingOuter(g):p.paddingInner()},p.paddingInner=function(g){return arguments.length?(a=typeof g=="function"?g:Ef(+g),p):a},p.paddingOuter=function(g){return arguments.length?p.paddingTop(g).paddingRight(g).paddingBottom(g).paddingLeft(g):p.paddingTop()},p.paddingTop=function(g){return arguments.length?(o=typeof g=="function"?g:Ef(+g),p):o},p.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:Ef(+g),p):l},p.paddingBottom=function(g){return arguments.length?(s=typeof g=="function"?g:Ef(+g),p):s},p.paddingLeft=function(g){return arguments.length?(c=typeof g=="function"?g:Ef(+g),p):c},p}function jX(e,t,r,n,i){var a=e.children,o,l=a.length,s,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;p(0,l,e.value,t,r,n,i);function p(x,g,y,T,P,b,_){if(x>=g-1){var E=a[x];E.x0=T,E.y0=P,E.x1=b,E.y1=_;return}for(var k=c[x],F=y/2+k,I=x+1,$=g-1;I<$;){var ne=I+$>>>1;c[ne]<F?I=ne+1:$=ne}F-c[I-1]<c[I]-F&&x+1<I&&--I;var V=c[I]-k,ae=y-V;if(b-T>_-P){var Te=(T*ae+b*V)/y;p(x,I,V,T,P,Te,_),p(I,g,ae,Te,P,b,_)}else{var Oe=(P*ae+_*V)/y;p(x,I,V,T,P,b,Oe),p(I,g,ae,T,Oe,b,_)}}}function GX(e,t,r,n,i){(e.depth&1?Eg:Ud)(e,t,r,n,i)}const HX=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,p,x,g=-1,y,T=s.length,P=n.value;++g<T;){for(c=s[g],p=c.children,x=c.value=0,y=p.length;x<y;++x)c.value+=p[x].value;c.dice?Ud(c,i,a,o,a+=(l-a)*c.value/P):Eg(c,i,a,i+=(o-i)*c.value/P,l),P-=c.value}else n._squarify=s=RP(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(MP),qX=Object.freeze(Object.defineProperty({__proto__:null,cluster:iX,hierarchy:rS,pack:kX,packEnclose:AP,packSiblings:CX,partition:MX,stratify:NX,tree:zX,treemap:UX,treemapBinary:jX,treemapDice:Ud,treemapResquarify:HX,treemapSlice:Eg,treemapSliceDice:GX,treemapSquarify:PP},Symbol.toStringTag,{value:"Module"})),RK=pl(qX);function bs(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function lu(){}var cl=.7,cs=1/cl,Xf="\\s*([+-]?\\d+)\\s*",dd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WX=/^#([0-9a-f]{3,8})$/,VX=new RegExp(`^rgb\\(${Xf},${Xf},${Xf}\\)$`),YX=new RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),XX=new RegExp(`^rgba\\(${Xf},${Xf},${Xf},${dd}\\)$`),QX=new RegExp(`^rgba\\(${fa},${fa},${fa},${dd}\\)$`),ZX=new RegExp(`^hsl\\(${dd},${fa},${fa}\\)$`),KX=new RegExp(`^hsla\\(${dd},${fa},${fa},${dd}\\)$`),AT={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};bs(lu,pd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:CT,formatHex:CT,formatHex8:JX,formatHsl:eQ,formatRgb:TT,toString:TT});function CT(){return this.rgb().formatHex()}function JX(){return this.rgb().formatHex8()}function eQ(){return FP(this).formatHsl()}function TT(){return this.rgb().formatRgb()}function pd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=WX.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?OT(t):r===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qv(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=VX.exec(e))?new vn(t[1],t[2],t[3],1):(t=YX.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XX.exec(e))?Qv(t[1],t[2],t[3],t[4]):(t=QX.exec(e))?Qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZX.exec(e))?RT(t[1],t[2]/100,t[3]/100,1):(t=KX.exec(e))?RT(t[1],t[2]/100,t[3]/100,t[4]):AT.hasOwnProperty(e)?OT(AT[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function OT(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function Qv(e,t,r,n){return n<=0&&(e=t=r=NaN),new vn(e,t,r,n)}function nS(e){return e instanceof lu||(e=pd(e)),e?(e=e.rgb(),new vn(e.r,e.g,e.b,e.opacity)):new vn}function Em(e,t,r,n){return arguments.length===1?nS(e):new vn(e,t,r,n??1)}function vn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}bs(vn,Em,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(tl(this.r),tl(this.g),tl(this.b),Am(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:kT,formatHex:kT,formatHex8:tQ,formatRgb:MT,toString:MT}));function kT(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}`}function tQ(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}${Zu((isNaN(this.opacity)?1:this.opacity)*255)}`}function MT(){const e=Am(this.opacity);return`${e===1?"rgb(":"rgba("}${tl(this.r)}, ${tl(this.g)}, ${tl(this.b)}${e===1?")":`, ${e})`}`}function Am(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zu(e){return e=tl(e),(e<16?"0":"")+e.toString(16)}function RT(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zi(e,t,r,n)}function FP(e){if(e instanceof zi)return new zi(e.h,e.s,e.l,e.opacity);if(e instanceof lu||(e=pd(e)),!e)return new zi;if(e instanceof zi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new zi(o,l,s,e.opacity)}function Zw(e,t,r,n){return arguments.length===1?FP(e):new zi(e,t,r,n??1)}function zi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bs(zi,Zw,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new zi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new zi(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 vn(n_(e>=240?e-240:e+120,i,n),n_(e,i,n),n_(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zi(PT(this.h),Zv(this.s),Zv(this.l),Am(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=Am(this.opacity);return`${e===1?"hsl(":"hsla("}${PT(this.h)}, ${Zv(this.s)*100}%, ${Zv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PT(e){return e=(e||0)%360,e<0?e+360:e}function Zv(e){return Math.max(0,Math.min(1,e||0))}function n_(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 NP=Math.PI/180,IP=180/Math.PI,Cm=18,LP=.96422,$P=1,DP=.82521,BP=4/29,Qf=6/29,zP=3*Qf*Qf,rQ=Qf*Qf*Qf;function UP(e){if(e instanceof sa)return new sa(e.l,e.a,e.b,e.opacity);if(e instanceof Ua)return jP(e);e instanceof vn||(e=nS(e));var t=u_(e.r),r=u_(e.g),n=u_(e.b),i=i_((.2225045*t+.7168786*r+.0606169*n)/$P),a,o;return t===r&&r===n?a=o=i:(a=i_((.4360747*t+.3850649*r+.1430804*n)/LP),o=i_((.0139322*t+.0971045*r+.7141733*n)/DP)),new sa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function Kw(e,t,r,n){return arguments.length===1?UP(e):new sa(e,t,r,n??1)}function sa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}bs(sa,Kw,jd(lu,{brighter(e){return new sa(this.l+Cm*(e??1),this.a,this.b,this.opacity)},darker(e){return new sa(this.l-Cm*(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=LP*a_(t),e=$P*a_(e),r=DP*a_(r),new vn(o_(3.1338561*t-1.6168667*e-.4906146*r),o_(-.9787684*t+1.9161415*e+.033454*r),o_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function i_(e){return e>rQ?Math.pow(e,1/3):e/zP+BP}function a_(e){return e>Qf?e*e*e:zP*(e-BP)}function o_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function u_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nQ(e){if(e instanceof Ua)return new Ua(e.h,e.c,e.l,e.opacity);if(e instanceof sa||(e=UP(e)),e.a===0&&e.b===0)return new Ua(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*IP;return new Ua(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Jw(e,t,r,n){return arguments.length===1?nQ(e):new Ua(e,t,r,n??1)}function Ua(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function jP(e){if(isNaN(e.h))return new sa(e.l,0,0,e.opacity);var t=e.h*NP;return new sa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}bs(Ua,Jw,jd(lu,{brighter(e){return new Ua(this.h,this.c,this.l+Cm*(e??1),this.opacity)},darker(e){return new Ua(this.h,this.c,this.l-Cm*(e??1),this.opacity)},rgb(){return jP(this).rgb()}}));var GP=-.14861,iS=1.78277,aS=-.29227,Ag=-.90649,vd=1.97294,FT=vd*Ag,NT=vd*iS,IT=iS*aS-Ag*GP;function iQ(e){if(e instanceof rl)return new rl(e.h,e.s,e.l,e.opacity);e instanceof vn||(e=nS(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(IT*n+FT*t-NT*r)/(IT+FT-NT),a=n-i,o=(vd*(r-i)-aS*a)/Ag,l=Math.sqrt(o*o+a*a)/(vd*i*(1-i)),s=l?Math.atan2(o,a)*IP-120:NaN;return new rl(s<0?s+360:s,l,i,e.opacity)}function e2(e,t,r,n){return arguments.length===1?iQ(e):new rl(e,t,r,n??1)}function rl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bs(rl,e2,jd(lu,{brighter(e){return e=e==null?cs:Math.pow(cs,e),new rl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new rl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*NP,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new vn(255*(t+r*(GP*n+iS*i)),255*(t+r*(aS*n+Ag*i)),255*(t+r*(vd*n)),this.opacity)}}));function HP(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function qP(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return HP((r-n/t)*t,o,i,a,l)}}function WP(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return HP((r-n/t)*t,i,a,o,l)}}const Cg=e=>()=>e;function VP(e,t){return function(r){return e+r*t}}function aQ(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 Tg(e,t){var r=t-e;return r?VP(e,r>180||r<-180?r-360*Math.round(r/360):r):Cg(isNaN(e)?t:e)}function oQ(e){return(e=+e)==1?mn:function(t,r){return r-t?aQ(t,r,e):Cg(isNaN(t)?r:t)}}function mn(e,t){var r=t-e;return r?VP(e,r):Cg(isNaN(e)?t:e)}const t2=function e(t){var r=oQ(t);function n(i,a){var o=r((i=Em(i)).r,(a=Em(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=mn(i.opacity,a.opacity);return function(p){return i.r=o(p),i.g=l(p),i.b=s(p),i.opacity=c(p),i+""}}return n.gamma=e,n}(1);function YP(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=Em(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var uQ=YP(qP),lQ=YP(WP);function oS(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 XP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fQ(e,t){return(XP(t)?oS:QP)(e,t)}function QP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Og(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function ZP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ta(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function KP(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]=Og(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var r2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,l_=new RegExp(r2.source,"g");function sQ(e){return function(){return e}}function cQ(e){return function(t){return e(t)+""}}function JP(e,t){var r=r2.lastIndex=l_.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=r2.exec(e))&&(i=l_.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ta(n,i)})),r=l_.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?cQ(s[0].x):sQ(t):(t=s.length,function(c){for(var p=0,x;p<t;++p)l[(x=s[p]).i]=x.x(c);return l.join("")})}function Og(e,t){var r=typeof t,n;return t==null||r==="boolean"?Cg(t):(r==="number"?ta:r==="string"?(n=pd(t))?(t=n,t2):JP:t instanceof pd?t2:t instanceof Date?ZP:XP(t)?oS:Array.isArray(t)?QP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?KP:ta)(e,t)}function hQ(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function dQ(e,t){var r=Tg(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function pQ(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var LT=180/Math.PI,n2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eF(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*LT,skewX:Math.atan(s)*LT,scaleX:o,scaleY:l}}var Kv;function vQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?n2:eF(t.a,t.b,t.c,t.d,t.e,t.f)}function mQ(e){return e==null||(Kv||(Kv=document.createElementNS("http://www.w3.org/2000/svg","g")),Kv.setAttribute("transform",e),!(e=Kv.transform.baseVal.consolidate()))?n2:(e=e.matrix,eF(e.a,e.b,e.c,e.d,e.e,e.f))}function tF(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,p,x,g,y,T){if(c!==x||p!==g){var P=y.push("translate(",null,t,null,r);T.push({i:P-4,x:ta(c,x)},{i:P-2,x:ta(p,g)})}else(x||g)&&y.push("translate("+x+t+g+r)}function o(c,p,x,g){c!==p?(c-p>180?p+=360:p-c>180&&(c+=360),g.push({i:x.push(i(x)+"rotate(",null,n)-2,x:ta(c,p)})):p&&x.push(i(x)+"rotate("+p+n)}function l(c,p,x,g){c!==p?g.push({i:x.push(i(x)+"skewX(",null,n)-2,x:ta(c,p)}):p&&x.push(i(x)+"skewX("+p+n)}function s(c,p,x,g,y,T){if(c!==x||p!==g){var P=y.push(i(y)+"scale(",null,",",null,")");T.push({i:P-4,x:ta(c,x)},{i:P-2,x:ta(p,g)})}else(x!==1||g!==1)&&y.push(i(y)+"scale("+x+","+g+")")}return function(c,p){var x=[],g=[];return c=e(c),p=e(p),a(c.translateX,c.translateY,p.translateX,p.translateY,x,g),o(c.rotate,p.rotate,x,g),l(c.skewX,p.skewX,x,g),s(c.scaleX,c.scaleY,p.scaleX,p.scaleY,x,g),c=p=null,function(y){for(var T=-1,P=g.length,b;++T<P;)x[(b=g[T]).i]=b.x(y);return x.join("")}}}var gQ=tF(vQ,"px, ","px)","deg)"),yQ=tF(mQ,", ",")",")"),xQ=1e-12;function $T(e){return((e=Math.exp(e))+1/e)/2}function _Q(e){return((e=Math.exp(e))-1/e)/2}function wQ(e){return((e=Math.exp(2*e))-1)/(e+1)}const bQ=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],c=a[2],p=o[0],x=o[1],g=o[2],y=p-l,T=x-s,P=y*y+T*T,b,_;if(P<xQ)_=Math.log(g/c)/t,b=function(ne){return[l+ne*y,s+ne*T,c*Math.exp(t*ne*_)]};else{var E=Math.sqrt(P),k=(g*g-c*c+n*P)/(2*c*r*E),F=(g*g-c*c-n*P)/(2*g*r*E),I=Math.log(Math.sqrt(k*k+1)-k),$=Math.log(Math.sqrt(F*F+1)-F);_=($-I)/t,b=function(ne){var V=ne*_,ae=$T(I),Te=c/(r*E)*(ae*wQ(t*V+I)-_Q(I));return[l+Te*y,s+Te*T,c*ae/$T(t*V+I)]}}return b.duration=_*1e3*t/Math.SQRT2,b}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function rF(e){return function(t,r){var n=e((t=Zw(t)).h,(r=Zw(r)).h),i=mn(t.s,r.s),a=mn(t.l,r.l),o=mn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const SQ=rF(Tg);var EQ=rF(mn);function AQ(e,t){var r=mn((e=Kw(e)).l,(t=Kw(t)).l),n=mn(e.a,t.a),i=mn(e.b,t.b),a=mn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function nF(e){return function(t,r){var n=e((t=Jw(t)).h,(r=Jw(r)).h),i=mn(t.c,r.c),a=mn(t.l,r.l),o=mn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const CQ=nF(Tg);var TQ=nF(mn);function iF(e){return function t(r){r=+r;function n(i,a){var o=e((i=e2(i)).h,(a=e2(a)).h),l=mn(i.s,a.s),s=mn(i.l,a.l),c=mn(i.opacity,a.opacity);return function(p){return i.h=o(p),i.s=l(p),i.l=s(Math.pow(p,r)),i.opacity=c(p),i+""}}return n.gamma=t,n}(1)}const OQ=iF(Tg);var kQ=iF(mn);function MQ(e,t){t===void 0&&(t=e,e=Og);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function RQ(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const PQ=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Og,interpolateArray:fQ,interpolateBasis:qP,interpolateBasisClosed:WP,interpolateCubehelix:OQ,interpolateCubehelixLong:kQ,interpolateDate:ZP,interpolateDiscrete:hQ,interpolateHcl:CQ,interpolateHclLong:TQ,interpolateHsl:SQ,interpolateHslLong:EQ,interpolateHue:dQ,interpolateLab:AQ,interpolateNumber:ta,interpolateNumberArray:oS,interpolateObject:KP,interpolateRgb:t2,interpolateRgbBasis:uQ,interpolateRgbBasisClosed:lQ,interpolateRound:pQ,interpolateString:JP,interpolateTransformCss:gQ,interpolateTransformSvg:yQ,interpolateZoom:bQ,piecewise:MQ,quantize:RQ},Symbol.toStringTag,{value:"Module"})),PK=pl(PQ);var FQ="Expected a function",aF="__lodash_hash_undefined__",oF=1/0,NQ=9007199254740991,IQ="[object Function]",LQ="[object GeneratorFunction]",$Q="[object Symbol]",DQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BQ=/^\w*$/,zQ=/^\./,UQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jQ=/[\\^$.*+?()[\]{}|]/g,GQ=/\\(\\)?/g,HQ=/^\[object .+?Constructor\]$/,qQ=/^(?:0|[1-9]\d*)$/,WQ=typeof tr=="object"&&tr&&tr.Object===Object&&tr,VQ=typeof self=="object"&&self&&self.Object===Object&&self,uS=WQ||VQ||Function("return this")();function YQ(e,t){return e==null?void 0:e[t]}function XQ(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var QQ=Array.prototype,ZQ=Function.prototype,uF=Object.prototype,f_=uS["__core-js_shared__"],DT=function(){var e=/[^.]+$/.exec(f_&&f_.keys&&f_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lF=ZQ.toString,kg=uF.hasOwnProperty,fF=uF.toString,KQ=RegExp("^"+lF.call(kg).replace(jQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BT=uS.Symbol,JQ=QQ.splice,eZ=sF(uS,"Map"),md=sF(Object,"create"),zT=BT?BT.prototype:void 0,UT=zT?zT.toString:void 0;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 tZ(){this.__data__=md?md(null):{}}function rZ(e){return this.has(e)&&delete this.__data__[e]}function nZ(e){var t=this.__data__;if(md){var r=t[e];return r===aF?void 0:r}return kg.call(t,e)?t[e]:void 0}function iZ(e){var t=this.__data__;return md?t[e]!==void 0:kg.call(t,e)}function aZ(e,t){var r=this.__data__;return r[e]=md&&t===void 0?aF:t,this}hl.prototype.clear=tZ;hl.prototype.delete=rZ;hl.prototype.get=nZ;hl.prototype.has=iZ;hl.prototype.set=aZ;function Ss(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 oZ(){this.__data__=[]}function uZ(e){var t=this.__data__,r=Mg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():JQ.call(t,r,1),!0}function lZ(e){var t=this.__data__,r=Mg(t,e);return r<0?void 0:t[r][1]}function fZ(e){return Mg(this.__data__,e)>-1}function sZ(e,t){var r=this.__data__,n=Mg(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ss.prototype.clear=oZ;Ss.prototype.delete=uZ;Ss.prototype.get=lZ;Ss.prototype.has=fZ;Ss.prototype.set=sZ;function Cl(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 cZ(){this.__data__={hash:new hl,map:new(eZ||Ss),string:new hl}}function hZ(e){return Rg(this,e).delete(e)}function dZ(e){return Rg(this,e).get(e)}function pZ(e){return Rg(this,e).has(e)}function vZ(e,t){return Rg(this,e).set(e,t),this}Cl.prototype.clear=cZ;Cl.prototype.delete=hZ;Cl.prototype.get=dZ;Cl.prototype.has=pZ;Cl.prototype.set=vZ;function mZ(e,t,r){var n=e[t];(!(kg.call(e,t)&&cF(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Mg(e,t){for(var r=e.length;r--;)if(cF(e[r][0],t))return r;return-1}function gZ(e){if(!Tm(e)||EZ(e))return!1;var t=OZ(e)||XQ(e)?KQ:HQ;return t.test(TZ(e))}function yZ(e,t,r,n){if(!Tm(e))return e;t=bZ(t,e)?[t]:_Z(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=CZ(t[i]),c=r;if(i!=o){var p=l[s];c=n?n(p,s,l):void 0,c===void 0&&(c=Tm(p)?p:wZ(t[i+1])?[]:{})}mZ(l,s,c),l=l[s]}return e}function xZ(e){if(typeof e=="string")return e;if(fS(e))return UT?UT.call(e):"";var t=e+"";return t=="0"&&1/e==-oF?"-0":t}function _Z(e){return hF(e)?e:AZ(e)}function Rg(e,t){var r=e.__data__;return SZ(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sF(e,t){var r=YQ(e,t);return gZ(r)?r:void 0}function wZ(e,t){return t=t??NQ,!!t&&(typeof e=="number"||qQ.test(e))&&e>-1&&e%1==0&&e<t}function bZ(e,t){if(hF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fS(e)?!0:BQ.test(e)||!DQ.test(e)||t!=null&&e in Object(t)}function SZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function EZ(e){return!!DT&&DT in e}var AZ=lS(function(e){e=MZ(e);var t=[];return zQ.test(e)&&t.push(""),e.replace(UQ,function(r,n,i,a){t.push(i?a.replace(GQ,"$1"):n||r)}),t});function CZ(e){if(typeof e=="string"||fS(e))return e;var t=e+"";return t=="0"&&1/e==-oF?"-0":t}function TZ(e){if(e!=null){try{return lF.call(e)}catch{}try{return e+""}catch{}}return""}function lS(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(FQ);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(lS.Cache||Cl),r}lS.Cache=Cl;function cF(e,t){return e===t||e!==e&&t!==t}var hF=Array.isArray;function OZ(e){var t=Tm(e)?fF.call(e):"";return t==IQ||t==LQ}function Tm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kZ(e){return!!e&&typeof e=="object"}function fS(e){return typeof e=="symbol"||kZ(e)&&fF.call(e)==$Q}function MZ(e){return e==null?"":xZ(e)}function RZ(e,t,r){return e==null?e:yZ(e,t,r)}var FK=RZ;/*! js-cookie v3.0.5 | MIT */function Jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var PZ={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function i2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=Jv({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),c=s.slice(1).join("=");try{var p=decodeURIComponent(s[0]);if(o[p]=e.read(c,p),i===p)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",Jv({},a,{expires:-1}))},withAttributes:function(i){return i2(this.converter,Jv({},this.attributes,i))},withConverter:function(i){return i2(Jv({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var NK=i2(PZ,{path:"/"});var FZ={},Gd={},Hd={},Pg={},dF={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(dF);var pF={},dl={};dl.__esModule=!0;dl.InternalServerError=dl.OK=void 0;dl.OK=200;dl.InternalServerError=500;(function(e){var t=tr&&tr.__spreadArray||function(l,s,c){if(c||arguments.length===2)for(var p=0,x=s.length,g;p<x;p++)(g||!(p in s))&&(g||(g=Array.prototype.slice.call(s,0,p)),g[p]=s[p]);return l.concat(g||Array.prototype.slice.call(s))};e.__esModule=!0;var r=Fw,n=Fw,i=dl,a=function(l){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];return typeof l!="string"?{on:function(p,x){x(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,c){a(l,function(p){if(p.statusCode!==i.OK)return c(new Error("HTTP Error Response: "+p.statusCode+" "+p.statusMessage+" ("+l+")"));var x=null;p.on("data",function(g){if(x===null){x=g;return}x+=g}),p.on("end",function(){return s(x)})}).on("error",c)})};e.default=o})(pF);var vF={},qo={};qo.__esModule=!0;qo.DONE=qo.OPENED=qo.UNSENT=void 0;qo.UNSENT=0;qo.OPENED=1;qo.DONE=4;(function(e){e.__esModule=!0;var t=dl,r=qo,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(vF);Pg.__esModule=!0;Pg.createLoadRemoteModule=void 0;var NZ=dF,IZ=pF,LZ=vF,$Z=typeof window<"u"&&typeof window.document<"u",DZ=$Z?LZ.default:IZ.default,BZ=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},zZ=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||BZ,a=n||DZ;return(0,NZ.default)(function(o){return a(o).then(function(l){var s={},c={exports:s},p=new Function("require","module","exports",l);return p(i,c,s),c.exports})})};Pg.createLoadRemoteModule=zZ;var Fg={};Fg.__esModule=!0;Fg.createRequires=void 0;var UZ=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Fg.createRequires=UZ;(function(e){var t=tr&&tr.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Pg;t(e,r,"createLoadRemoteModule","default");var n=Fg;t(e,n,"createRequires")})(Hd);const IK=Om(Hd);var jZ=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Gd.__esModule=!0;Gd.createUseRemoteComponent=void 0;var jT=vr,GZ=jZ(Hd),HZ=function(e){var t=GZ.default(e),r=function(n,i){i===void 0&&(i="default");var a=jT.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,c=o.component,p=a[1];return jT.useEffect(function(){var x=p;return x({loading:!0,err:void 0,component:void 0}),t(n).then(function(g){return x({loading:!1,err:void 0,component:g[i]})}).catch(function(g){return x({loading:!1,err:g,component:void 0})}),function(){x=function(){}}},[n]),[l,s,c]};return r};Gd.createUseRemoteComponent=HZ;var qd={};qd.__esModule=!0;qd.createRequires=void 0;var qZ=function(e){return typeof e=="function"?e():e||{}},WZ=function(e){var t=!1;return function(r){if(t||(e=qZ(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};qd.createRequires=WZ;var sS={};(function(e){var t=tr&&tr.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,c=arguments.length;s<c;s++){l=arguments[s];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(o[p]=l[p])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(sS);var Wd={},a2=tr&&tr.__assign||function(){return a2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a2.apply(this,arguments)},VZ=tr&&tr.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},YZ=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Wd.__esModule=!0;Wd.createRemoteComponent=void 0;var GT=YZ(vr),XZ=Gd,QZ=function(e){var t=XZ.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=VZ(n,["url","fallback","render"]),c=t(i),p=c[0],x=c[1],g=c[2];return p?o:l?l({err:x,Component:g}):x||!g?GT.default.createElement("div",null,"Unknown Error: ",(x||"UNKNOWN").toString()):GT.default.createElement(g,a2({},s))};return r};Wd.createRemoteComponent=QZ;var Ng={};Ng.__esModule=!0;Ng.RemoteComponent=void 0;var ZZ=Wd,KZ=qd,JZ=sS,eK=KZ.createRequires(JZ.getDependencies);Ng.RemoteComponent=ZZ.createRemoteComponent({requires:eK});var Ig={},tK=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ig.__esModule=!0;Ig.fetchRemoteComponent=void 0;var rK=tK(Hd),nK=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=rK.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Ig.fetchRemoteComponent=nK;var Lg={},iK=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Lg.__esModule=!0;Lg.getServerSideProps=void 0;var aK=iK(Hd),oK=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=aK.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Lg.getServerSideProps=oK;(function(e){var t=tr&&tr.__createBinding||(Object.create?function(c,p,x,g){g===void 0&&(g=x),Object.defineProperty(c,g,{enumerable:!0,get:function(){return p[x]}})}:function(c,p,x,g){g===void 0&&(g=x),c[g]=p[x]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Gd;t(e,r,"createUseRemoteComponent");var n=qd;t(e,n,"createRequires");var i=sS;t(e,i,"getDependencies");var a=Wd;t(e,a,"createRemoteComponent");var o=Ng;t(e,o,"RemoteComponent");var l=Ig;t(e,l,"fetchRemoteComponent");var s=Lg;t(e,s,"getServerSideProps")})(FZ);export{vr as A,fr as B,cS as C,sK as D,j3 as E,Jm as F,Cn as G,FK as H,pK as I,vK as J,fK as K,lK as L,cK as M,NK as N,hK as O,dK as P,FZ as Q,gv as R,Hd as S,IK as T,gK as a,bK as b,SK as c,j5 as d,Uw as e,yK as f,xK as g,_K as h,ym as i,nH as j,AK as k,gg as l,wK as m,EK as n,jw as o,TR as p,Xw as q,mK as r,CK as s,sC as t,TK as u,OK as v,kK as w,MK as x,RK as y,PK as z};
1151
+ //# sourceMappingURL=vendor-fc22456a.js.map