streamlit-webrtc 0.55.0__py3-none-any.whl → 0.57.0__py3-none-any.whl
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.
- streamlit_webrtc/component.py +22 -17
- streamlit_webrtc/credentials.py +10 -3
- streamlit_webrtc/frontend/dist/assets/{index-DMhSSwr2.js → index-D0wGDB0z.js} +36 -36
- streamlit_webrtc/frontend/dist/index.html +1 -1
- streamlit_webrtc/webrtc.py +40 -3
- {streamlit_webrtc-0.55.0.dist-info → streamlit_webrtc-0.57.0.dist-info}/METADATA +1 -1
- {streamlit_webrtc-0.55.0.dist-info → streamlit_webrtc-0.57.0.dist-info}/RECORD +9 -9
- {streamlit_webrtc-0.55.0.dist-info → streamlit_webrtc-0.57.0.dist-info}/WHEEL +0 -0
- {streamlit_webrtc-0.55.0.dist-info → streamlit_webrtc-0.57.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
var
|
1
|
+
var Iw=Object.defineProperty;var kw=(t,e,n)=>e in t?Iw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var $a=(t,e,n)=>kw(t,typeof e!="symbol"?e+"":e,n);function T1(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const a=Object.getOwnPropertyDescriptor(r,s);a&&Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function R1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pp={exports:{}},za={},hp={exports:{}},Be={};/**
|
2
2
|
* @license React
|
3
3
|
* react.production.min.js
|
4
4
|
*
|
@@ -6,7 +6,7 @@ var ww=Object.defineProperty;var xw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,config
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var
|
9
|
+
*/var M0;function Tw(){if(M0)return Be;M0=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function I(R,G,ue){this.props=R,this.context=G,this.refs=_,this.updater=ue||C}I.prototype.isReactComponent={},I.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,G,"setState")},I.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function P(){}P.prototype=I.prototype;function L(R,G,ue){this.props=R,this.context=G,this.refs=_,this.updater=ue||C}var N=L.prototype=new P;N.constructor=L,w(N,I.prototype),N.isPureReactComponent=!0;var E=Array.isArray,O=Object.prototype.hasOwnProperty,z={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function V(R,G,ue){var ge,De={},xe=null,$e=null;if(G!=null)for(ge in G.ref!==void 0&&($e=G.ref),G.key!==void 0&&(xe=""+G.key),G)O.call(G,ge)&&!M.hasOwnProperty(ge)&&(De[ge]=G[ge]);var Ne=arguments.length-2;if(Ne===1)De.children=ue;else if(1<Ne){for(var je=Array(Ne),Bt=0;Bt<Ne;Bt++)je[Bt]=arguments[Bt+2];De.children=je}if(R&&R.defaultProps)for(ge in Ne=R.defaultProps,Ne)De[ge]===void 0&&(De[ge]=Ne[ge]);return{$$typeof:t,type:R,key:xe,ref:$e,props:De,_owner:z.current}}function Y(R,G){return{$$typeof:t,type:R.type,key:G,ref:R.ref,props:R.props,_owner:R._owner}}function S(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function j(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ue){return G[ue]})}var W=/\/+/g;function X(R,G){return typeof R=="object"&&R!==null&&R.key!=null?j(""+R.key):G.toString(36)}function ae(R,G,ue,ge,De){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var $e=!1;if(R===null)$e=!0;else switch(xe){case"string":case"number":$e=!0;break;case"object":switch(R.$$typeof){case t:case e:$e=!0}}if($e)return $e=R,De=De($e),R=ge===""?"."+X($e,0):ge,E(De)?(ue="",R!=null&&(ue=R.replace(W,"$&/")+"/"),ae(De,G,ue,"",function(Bt){return Bt})):De!=null&&(S(De)&&(De=Y(De,ue+(!De.key||$e&&$e.key===De.key?"":(""+De.key).replace(W,"$&/")+"/")+R)),G.push(De)),1;if($e=0,ge=ge===""?".":ge+":",E(R))for(var Ne=0;Ne<R.length;Ne++){xe=R[Ne];var je=ge+X(xe,Ne);$e+=ae(xe,G,ue,je,De)}else if(je=v(R),typeof je=="function")for(R=je.call(R),Ne=0;!(xe=R.next()).done;)xe=xe.value,je=ge+X(xe,Ne++),$e+=ae(xe,G,ue,je,De);else if(xe==="object")throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return $e}function ce(R,G,ue){if(R==null)return R;var ge=[],De=0;return ae(R,ge,"","",function(xe){return G.call(ue,xe,De++)}),ge}function de(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(ue){(R._status===0||R._status===-1)&&(R._status=1,R._result=ue)},function(ue){(R._status===0||R._status===-1)&&(R._status=2,R._result=ue)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var fe={current:null},q={transition:null},te={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:q,ReactCurrentOwner:z};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:ce,forEach:function(R,G,ue){ce(R,function(){G.apply(this,arguments)},ue)},count:function(R){var G=0;return ce(R,function(){G++}),G},toArray:function(R){return ce(R,function(G){return G})||[]},only:function(R){if(!S(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Be.Component=I,Be.Fragment=n,Be.Profiler=s,Be.PureComponent=L,Be.StrictMode=r,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Be.act=ne,Be.cloneElement=function(R,G,ue){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ge=w({},R.props),De=R.key,xe=R.ref,$e=R._owner;if(G!=null){if(G.ref!==void 0&&(xe=G.ref,$e=z.current),G.key!==void 0&&(De=""+G.key),R.type&&R.type.defaultProps)var Ne=R.type.defaultProps;for(je in G)O.call(G,je)&&!M.hasOwnProperty(je)&&(ge[je]=G[je]===void 0&&Ne!==void 0?Ne[je]:G[je])}var je=arguments.length-2;if(je===1)ge.children=ue;else if(1<je){Ne=Array(je);for(var Bt=0;Bt<je;Bt++)Ne[Bt]=arguments[Bt+2];ge.children=Ne}return{$$typeof:t,type:R.type,key:De,ref:xe,props:ge,_owner:$e}},Be.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:a,_context:R},R.Consumer=R},Be.createElement=V,Be.createFactory=function(R){var G=V.bind(null,R);return G.type=R,G},Be.createRef=function(){return{current:null}},Be.forwardRef=function(R){return{$$typeof:u,render:R}},Be.isValidElement=S,Be.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:de}},Be.memo=function(R,G){return{$$typeof:h,type:R,compare:G===void 0?null:G}},Be.startTransition=function(R){var G=q.transition;q.transition={};try{R()}finally{q.transition=G}},Be.unstable_act=ne,Be.useCallback=function(R,G){return fe.current.useCallback(R,G)},Be.useContext=function(R){return fe.current.useContext(R)},Be.useDebugValue=function(){},Be.useDeferredValue=function(R){return fe.current.useDeferredValue(R)},Be.useEffect=function(R,G){return fe.current.useEffect(R,G)},Be.useId=function(){return fe.current.useId()},Be.useImperativeHandle=function(R,G,ue){return fe.current.useImperativeHandle(R,G,ue)},Be.useInsertionEffect=function(R,G){return fe.current.useInsertionEffect(R,G)},Be.useLayoutEffect=function(R,G){return fe.current.useLayoutEffect(R,G)},Be.useMemo=function(R,G){return fe.current.useMemo(R,G)},Be.useReducer=function(R,G,ue){return fe.current.useReducer(R,G,ue)},Be.useRef=function(R){return fe.current.useRef(R)},Be.useState=function(R){return fe.current.useState(R)},Be.useSyncExternalStore=function(R,G,ue){return fe.current.useSyncExternalStore(R,G,ue)},Be.useTransition=function(){return fe.current.useTransition()},Be.version="18.3.1",Be}var D0;function Bh(){return D0||(D0=1,hp.exports=Tw()),hp.exports}/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.production.min.js
|
12
12
|
*
|
@@ -14,7 +14,7 @@ var ww=Object.defineProperty;var xw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,config
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var
|
17
|
+
*/var N0;function Rw(){if(N0)return za;N0=1;var t=Bh(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,h){var y,g={},v=null,C=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(y in f)r.call(f,y)&&!a.hasOwnProperty(y)&&(g[y]=f[y]);if(u&&u.defaultProps)for(y in f=u.defaultProps,f)g[y]===void 0&&(g[y]=f[y]);return{$$typeof:e,type:u,key:v,ref:C,props:g,_owner:s.current}}return za.Fragment=n,za.jsx=c,za.jsxs=c,za}var B0;function Ew(){return B0||(B0=1,pp.exports=Rw()),pp.exports}var $=Ew(),T=Bh();const Kt=R1(T),gu=T1({__proto__:null,default:Kt},[T]);var zc={},mp={exports:{}},Cn={},yp={exports:{}},gp={};/**
|
18
18
|
* @license React
|
19
19
|
* scheduler.production.min.js
|
20
20
|
*
|
@@ -22,7 +22,7 @@ var ww=Object.defineProperty;var xw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,config
|
|
22
22
|
*
|
23
23
|
* This source code is licensed under the MIT license found in the
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
25
|
-
*/var
|
25
|
+
*/var L0;function Aw(){return L0||(L0=1,function(t){function e(q,te){var ne=q.length;q.push(te);e:for(;0<ne;){var R=ne-1>>>1,G=q[R];if(0<s(G,te))q[R]=te,q[ne]=G,ne=R;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var te=q[0],ne=q.pop();if(ne!==te){q[0]=ne;e:for(var R=0,G=q.length,ue=G>>>1;R<ue;){var ge=2*(R+1)-1,De=q[ge],xe=ge+1,$e=q[xe];if(0>s(De,ne))xe<G&&0>s($e,De)?(q[R]=$e,q[xe]=ne,R=xe):(q[R]=De,q[ge]=ne,R=ge);else if(xe<G&&0>s($e,ne))q[R]=$e,q[xe]=ne,R=xe;else break e}}return te}function s(q,te){var ne=q.sortIndex-te.sortIndex;return ne!==0?ne:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}var f=[],h=[],y=1,g=null,v=3,C=!1,w=!1,_=!1,I=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(q){for(var te=n(h);te!==null;){if(te.callback===null)r(h);else if(te.startTime<=q)r(h),te.sortIndex=te.expirationTime,e(f,te);else break;te=n(h)}}function E(q){if(_=!1,N(q),!w)if(n(f)!==null)w=!0,de(O);else{var te=n(h);te!==null&&fe(E,te.startTime-q)}}function O(q,te){w=!1,_&&(_=!1,P(V),V=-1),C=!0;var ne=v;try{for(N(te),g=n(f);g!==null&&(!(g.expirationTime>te)||q&&!j());){var R=g.callback;if(typeof R=="function"){g.callback=null,v=g.priorityLevel;var G=R(g.expirationTime<=te);te=t.unstable_now(),typeof G=="function"?g.callback=G:g===n(f)&&r(f),N(te)}else r(f);g=n(f)}if(g!==null)var ue=!0;else{var ge=n(h);ge!==null&&fe(E,ge.startTime-te),ue=!1}return ue}finally{g=null,v=ne,C=!1}}var z=!1,M=null,V=-1,Y=5,S=-1;function j(){return!(t.unstable_now()-S<Y)}function W(){if(M!==null){var q=t.unstable_now();S=q;var te=!0;try{te=M(!0,q)}finally{te?X():(z=!1,M=null)}}else z=!1}var X;if(typeof L=="function")X=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=W,X=function(){ce.postMessage(null)}}else X=function(){I(W,0)};function de(q){M=q,z||(z=!0,X())}function fe(q,te){V=I(function(){q(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_continueExecution=function(){w||C||(w=!0,de(O))},t.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<q?Math.floor(1e3/q):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(q){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var ne=v;v=te;try{return q()}finally{v=ne}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=v;v=q;try{return te()}finally{v=ne}},t.unstable_scheduleCallback=function(q,te,ne){var R=t.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?R+ne:R):ne=R,q){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=ne+G,q={id:y++,callback:te,priorityLevel:q,startTime:ne,expirationTime:G,sortIndex:-1},ne>R?(q.sortIndex=ne,e(h,q),n(f)===null&&q===n(h)&&(_?(P(V),V=-1):_=!0,fe(E,ne-R))):(q.sortIndex=G,e(f,q),w||C||(w=!0,de(O))),q},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(q){var te=v;return function(){var ne=v;v=te;try{return q.apply(this,arguments)}finally{v=ne}}}}(gp)),gp}var F0;function Pw(){return F0||(F0=1,yp.exports=Aw()),yp.exports}/**
|
26
26
|
* @license React
|
27
27
|
* react-dom.production.min.js
|
28
28
|
*
|
@@ -30,24 +30,24 @@ var ww=Object.defineProperty;var xw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,config
|
|
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
|
34
|
-
`+
|
33
|
+
*/var $0;function Ow(){if($0)return Cn;$0=1;var t=Bh(),e=Pw();function n(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function a(i,o){c(i,o),c(i+"Capture",o)}function c(i,o){for(s[i]=o,i=0;i<o.length;i++)r.add(o[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},g={};function v(i){return f.call(g,i)?!0:f.call(y,i)?!1:h.test(i)?g[i]=!0:(y[i]=!0,!1)}function C(i,o,l,d){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,o,l,d){if(o===null||typeof o>"u"||C(i,o,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function _(i,o,l,d,p,m,b){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=i,this.type=o,this.sanitizeURL=m,this.removeEmptyString=b}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){I[i]=new _(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];I[o]=new _(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){I[i]=new _(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){I[i]=new _(i,2,!1,i,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(i){I[i]=new _(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){I[i]=new _(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){I[i]=new _(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){I[i]=new _(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){I[i]=new _(i,5,!1,i.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function L(i){return i[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(i){var o=i.replace(P,L);I[o]=new _(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(P,L);I[o]=new _(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(P,L);I[o]=new _(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){I[i]=new _(i,1,!1,i.toLowerCase(),null,!1,!1)}),I.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){I[i]=new _(i,1,!1,i.toLowerCase(),null,!0,!0)});function N(i,o,l,d){var p=I.hasOwnProperty(o)?I[o]:null;(p!==null?p.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(w(o,l,p,d)&&(l=null),d||p===null?v(o)&&(l===null?i.removeAttribute(o):i.setAttribute(o,""+l)):p.mustUseProperty?i[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,d=p.attributeNamespace,l===null?i.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,d?i.setAttributeNS(d,o,l):i.setAttribute(o,l))))}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),j=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),q=Symbol.iterator;function te(i){return i===null||typeof i!="object"?null:(i=q&&i[q]||i["@@iterator"],typeof i=="function"?i:null)}var ne=Object.assign,R;function G(i){if(R===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);R=o&&o[1]||""}return`
|
34
|
+
`+R+i}var ue=!1;function ge(i,o){if(!i||ue)return"";ue=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(U){var d=U}Reflect.construct(i,[],o)}else{try{o.call()}catch(U){d=U}i.call(o.prototype)}else{try{throw Error()}catch(U){d=U}i()}}catch(U){if(U&&d&&typeof U.stack=="string"){for(var p=U.stack.split(`
|
35
35
|
`),m=d.stack.split(`
|
36
36
|
`),b=p.length-1,x=m.length-1;1<=b&&0<=x&&p[b]!==m[x];)x--;for(;1<=b&&0<=x;b--,x--)if(p[b]!==m[x]){if(b!==1||x!==1)do if(b--,x--,0>x||p[b]!==m[x]){var k=`
|
37
|
-
`+p[b].replace(" at new "," at ");return i.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",i.displayName)),k}while(1<=b&&0<=x);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(i=i?i.displayName||i.name:"")?G(i):""}function De(i){switch(i.tag){case 5:return G(i.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return i=ge(i.type,!1),i;case 11:return i=ge(i.type.render,!1),i;case 1:return i=ge(i.type,!0),i;default:return""}}function xe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case M:return"Fragment";case F:return"Portal";case Y:return"Profiler";case V:return"StrictMode";case X:return"Suspense";case ae:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case j:return(i.displayName||"Context")+".Consumer";case S:return(i._context.displayName||"Context")+".Provider";case W:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ce:return o=i.displayName||null,o!==null?o:xe(i.type)||"Memo";case de:o=i._payload,i=i._init;try{return xe(i(o))}catch{}}return null}function $e(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(o);case 8:return o===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ne(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function je(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Bt(i){var o=je(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),d=""+i[o];if(!i.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return p.call(this)},set:function(b){d=""+b,m.call(this,b)}}),Object.defineProperty(i,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(b){d=""+b},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function ur(i){i._valueTracker||(i._valueTracker=Bt(i))}function dr(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return i&&(d=je(i)?i.checked?"true":"false":i.value),i=d,i!==l?(o.setValue(i),!0):!1}function Dn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Je(i,o){var l=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??i._wrapperState.initialChecked})}function jt(i,o){var l=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;l=Ne(o.value!=null?o.value:l),i._wrapperState={initialChecked:d,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function fr(i,o){o=o.checked,o!=null&&B(i,"checked",o,!1)}function Qt(i,o){fr(i,o);var l=Ne(o.value),d=o.type;if(l!=null)d==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+l):i.value!==""+l&&(i.value=""+l);else if(d==="submit"||d==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?Nn(i,o.type,l):o.hasOwnProperty("defaultValue")&&Nn(i,o.type,Ne(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function st(i,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,l||o===i.value||(i.value=o),i.defaultValue=o}l=i.name,l!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,l!==""&&(i.name=l)}function Nn(i,o,l){(o!=="number"||Dn(i.ownerDocument)!==i)&&(l==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+l&&(i.defaultValue=""+l))}var Xt=Array.isArray;function Yn(i,o,l,d){if(i=i.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<i.length;l++)p=o.hasOwnProperty("$"+i[l].value),i[l].selected!==p&&(i[l].selected=p),p&&d&&(i[l].defaultSelected=!0)}else{for(l=""+Ne(l),o=null,p=0;p<i.length;p++){if(i[p].value===l){i[p].selected=!0,d&&(i[p].defaultSelected=!0);return}o!==null||i[p].disabled||(o=i[p])}o!==null&&(o.selected=!0)}}function me(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Zr(i,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Xt(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}i._wrapperState={initialValue:Ne(l)}}function an(i,o){var l=Ne(o.value),d=Ne(o.defaultValue);l!=null&&(l=""+l,l!==i.value&&(i.value=l),o.defaultValue==null&&i.defaultValue!==l&&(i.defaultValue=l)),d!=null&&(i.defaultValue=""+d)}function ho(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function ei(i){switch(i){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 ti(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?ei(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var vt,Tt=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,d,p){MSApp.execUnsafeLocalFunction(function(){return i(o,l,d,p)})}:i}(function(i,o){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=o;else{for(vt=vt||document.createElement("div"),vt.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=vt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function wt(i,o){if(o){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=o;return}}i.textContent=o}var He={animationIterationCount:!0,aspectRatio:!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},Jt=["Webkit","ms","Moz","O"];Object.keys(He).forEach(function(i){Jt.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),He[o]=He[i]})});function ln(i,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||He.hasOwnProperty(i)&&He[i]?(""+o).trim():o+"px"}function Km(i,o){i=i.style;for(var l in o)if(o.hasOwnProperty(l)){var d=l.indexOf("--")===0,p=ln(l,o[l],d);l==="float"&&(l="cssFloat"),d?i.setProperty(l,p):i[l]=p}}var R_=ne({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 Id(i,o){if(o){if(R_[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function kd(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Td=null;function Rd(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ed=null,Wo=null,Ho=null;function Qm(i){if(i=xa(i)){if(typeof Ed!="function")throw Error(n(280));var o=i.stateNode;o&&(o=tc(o),Ed(i.stateNode,i.type,o))}}function Xm(i){Wo?Ho?Ho.push(i):Ho=[i]:Wo=i}function Jm(){if(Wo){var i=Wo,o=Ho;if(Ho=Wo=null,Qm(i),o)for(i=0;i<o.length;i++)Qm(o[i])}}function qm(i,o){return i(o)}function Zm(){}var Ad=!1;function ey(i,o,l){if(Ad)return i(o,l);Ad=!0;try{return qm(i,o,l)}finally{Ad=!1,(Wo!==null||Ho!==null)&&(Zm(),Jm())}}function ra(i,o){var l=i.stateNode;if(l===null)return null;var d=tc(l);if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Pd=!1;if(u)try{var ia={};Object.defineProperty(ia,"passive",{get:function(){Pd=!0}}),window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{Pd=!1}function E_(i,o,l,d,p,m,b,x,k){var U=Array.prototype.slice.call(arguments,3);try{o.apply(l,U)}catch(Q){this.onError(Q)}}var oa=!1,Ml=null,Dl=!1,Od=null,A_={onError:function(i){oa=!0,Ml=i}};function P_(i,o,l,d,p,m,b,x,k){oa=!1,Ml=null,E_.apply(A_,arguments)}function O_(i,o,l,d,p,m,b,x,k){if(P_.apply(this,arguments),oa){if(oa){var U=Ml;oa=!1,Ml=null}else throw Error(n(198));Dl||(Dl=!0,Od=U)}}function mo(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function ty(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function ny(i){if(mo(i)!==i)throw Error(n(188))}function M_(i){var o=i.alternate;if(!o){if(o=mo(i),o===null)throw Error(n(188));return o!==i?null:i}for(var l=i,d=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return ny(p),i;if(m===d)return ny(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==d.return)l=p,d=m;else{for(var b=!1,x=p.child;x;){if(x===l){b=!0,l=p,d=m;break}if(x===d){b=!0,d=p,l=m;break}x=x.sibling}if(!b){for(x=m.child;x;){if(x===l){b=!0,l=m,d=p;break}if(x===d){b=!0,d=m,l=p;break}x=x.sibling}if(!b)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:o}function ry(i){return i=M_(i),i!==null?iy(i):null}function iy(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=iy(i);if(o!==null)return o;i=i.sibling}return null}var oy=e.unstable_scheduleCallback,sy=e.unstable_cancelCallback,D_=e.unstable_shouldYield,N_=e.unstable_requestPaint,Rt=e.unstable_now,B_=e.unstable_getCurrentPriorityLevel,Md=e.unstable_ImmediatePriority,ay=e.unstable_UserBlockingPriority,Nl=e.unstable_NormalPriority,L_=e.unstable_LowPriority,ly=e.unstable_IdlePriority,Bl=null,Tr=null;function F_(i){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{Tr.onCommitFiberRoot(Bl,i,void 0,(i.current.flags&128)===128)}catch{}}var pr=Math.clz32?Math.clz32:j_,$_=Math.log,z_=Math.LN2;function j_(i){return i>>>=0,i===0?32:31-($_(i)/z_|0)|0}var Ll=64,Fl=4194304;function sa(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function $l(i,o){var l=i.pendingLanes;if(l===0)return 0;var d=0,p=i.suspendedLanes,m=i.pingedLanes,b=l&268435455;if(b!==0){var x=b&~p;x!==0?d=sa(x):(m&=b,m!==0&&(d=sa(m)))}else b=l&~p,b!==0?d=sa(b):m!==0&&(d=sa(m));if(d===0)return 0;if(o!==0&&o!==d&&(o&p)===0&&(p=d&-d,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if((d&4)!==0&&(d|=l&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=d;0<o;)l=31-pr(o),p=1<<l,d|=i[l],o&=~p;return d}function U_(i,o){switch(i){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V_(i,o){for(var l=i.suspendedLanes,d=i.pingedLanes,p=i.expirationTimes,m=i.pendingLanes;0<m;){var b=31-pr(m),x=1<<b,k=p[b];k===-1?((x&l)===0||(x&d)!==0)&&(p[b]=U_(x,o)):k<=o&&(i.expiredLanes|=x),m&=~x}}function Dd(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function cy(){var i=Ll;return Ll<<=1,(Ll&4194240)===0&&(Ll=64),i}function Nd(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function aa(i,o,l){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-pr(o),i[o]=l}function W_(i,o){var l=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var d=i.eventTimes;for(i=i.expirationTimes;0<l;){var p=31-pr(l),m=1<<p;o[p]=0,d[p]=-1,i[p]=-1,l&=~m}}function Bd(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var d=31-pr(l),p=1<<d;p&o|i[d]&o&&(i[d]|=o),l&=~p}}var nt=0;function uy(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var dy,Ld,fy,py,hy,Fd=!1,zl=[],Ei=null,Ai=null,Pi=null,la=new Map,ca=new Map,Oi=[],H_="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 my(i,o){switch(i){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":la.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ca.delete(o.pointerId)}}function ua(i,o,l,d,p,m){return i===null||i.nativeEvent!==m?(i={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:m,targetContainers:[p]},o!==null&&(o=xa(o),o!==null&&Ld(o)),i):(i.eventSystemFlags|=d,o=i.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),i)}function G_(i,o,l,d,p){switch(o){case"focusin":return Ei=ua(Ei,i,o,l,d,p),!0;case"dragenter":return Ai=ua(Ai,i,o,l,d,p),!0;case"mouseover":return Pi=ua(Pi,i,o,l,d,p),!0;case"pointerover":var m=p.pointerId;return la.set(m,ua(la.get(m)||null,i,o,l,d,p)),!0;case"gotpointercapture":return m=p.pointerId,ca.set(m,ua(ca.get(m)||null,i,o,l,d,p)),!0}return!1}function yy(i){var o=yo(i.target);if(o!==null){var l=mo(o);if(l!==null){if(o=l.tag,o===13){if(o=ty(l),o!==null){i.blockedOn=o,hy(i.priority,function(){fy(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function jl(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var l=zd(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(l===null){l=i.nativeEvent;var d=new l.constructor(l.type,l);Td=d,l.target.dispatchEvent(d),Td=null}else return o=xa(l),o!==null&&Ld(o),i.blockedOn=l,!1;o.shift()}return!0}function gy(i,o,l){jl(i)&&l.delete(o)}function Y_(){Fd=!1,Ei!==null&&jl(Ei)&&(Ei=null),Ai!==null&&jl(Ai)&&(Ai=null),Pi!==null&&jl(Pi)&&(Pi=null),la.forEach(gy),ca.forEach(gy)}function da(i,o){i.blockedOn===o&&(i.blockedOn=null,Fd||(Fd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Y_)))}function fa(i){function o(p){return da(p,i)}if(0<zl.length){da(zl[0],i);for(var l=1;l<zl.length;l++){var d=zl[l];d.blockedOn===i&&(d.blockedOn=null)}}for(Ei!==null&&da(Ei,i),Ai!==null&&da(Ai,i),Pi!==null&&da(Pi,i),la.forEach(o),ca.forEach(o),l=0;l<Oi.length;l++)d=Oi[l],d.blockedOn===i&&(d.blockedOn=null);for(;0<Oi.length&&(l=Oi[0],l.blockedOn===null);)yy(l),l.blockedOn===null&&Oi.shift()}var Go=A.ReactCurrentBatchConfig,Ul=!0;function K_(i,o,l,d){var p=nt,m=Go.transition;Go.transition=null;try{nt=1,$d(i,o,l,d)}finally{nt=p,Go.transition=m}}function Q_(i,o,l,d){var p=nt,m=Go.transition;Go.transition=null;try{nt=4,$d(i,o,l,d)}finally{nt=p,Go.transition=m}}function $d(i,o,l,d){if(Ul){var p=zd(i,o,l,d);if(p===null)rf(i,o,d,Vl,l),my(i,d);else if(G_(p,i,o,l,d))d.stopPropagation();else if(my(i,d),o&4&&-1<H_.indexOf(i)){for(;p!==null;){var m=xa(p);if(m!==null&&dy(m),m=zd(i,o,l,d),m===null&&rf(i,o,d,Vl,l),m===p)break;p=m}p!==null&&d.stopPropagation()}else rf(i,o,d,null,l)}}var Vl=null;function zd(i,o,l,d){if(Vl=null,i=Rd(d),i=yo(i),i!==null)if(o=mo(i),o===null)i=null;else if(l=o.tag,l===13){if(i=ty(o),i!==null)return i;i=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null);return Vl=i,null}function vy(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(B_()){case Md:return 1;case ay:return 4;case Nl:case L_:return 16;case ly:return 536870912;default:return 16}default:return 16}}var Mi=null,jd=null,Wl=null;function by(){if(Wl)return Wl;var i,o=jd,l=o.length,d,p="value"in Mi?Mi.value:Mi.textContent,m=p.length;for(i=0;i<l&&o[i]===p[i];i++);var b=l-i;for(d=1;d<=b&&o[l-d]===p[m-d];d++);return Wl=p.slice(i,1<d?1-d:void 0)}function Hl(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Gl(){return!0}function Sy(){return!1}function Bn(i){function o(l,d,p,m,b){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var x in i)i.hasOwnProperty(x)&&(l=i[x],this[x]=l?l(m):m[x]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Gl:Sy,this.isPropagationStopped=Sy,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),o}var Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ud=Bn(Yo),pa=ne({},Yo,{view:0,detail:0}),X_=Bn(pa),Vd,Wd,ha,Yl=ne({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==ha&&(ha&&i.type==="mousemove"?(Vd=i.screenX-ha.screenX,Wd=i.screenY-ha.screenY):Wd=Vd=0,ha=i),Vd)},movementY:function(i){return"movementY"in i?i.movementY:Wd}}),_y=Bn(Yl),J_=ne({},Yl,{dataTransfer:0}),q_=Bn(J_),Z_=ne({},pa,{relatedTarget:0}),Hd=Bn(Z_),eC=ne({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),tC=Bn(eC),nC=ne({},Yo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),rC=Bn(nC),iC=ne({},Yo,{data:0}),Cy=Bn(iC),oC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sC={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"},aC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lC(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=aC[i])?!!o[i]:!1}function Gd(){return lC}var cC=ne({},pa,{key:function(i){if(i.key){var o=oC[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Hl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?sC[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gd,charCode:function(i){return i.type==="keypress"?Hl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Hl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),uC=Bn(cC),dC=ne({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wy=Bn(dC),fC=ne({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gd}),pC=Bn(fC),hC=ne({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),mC=Bn(hC),yC=ne({},Yl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),gC=Bn(yC),vC=[9,13,27,32],Yd=u&&"CompositionEvent"in window,ma=null;u&&"documentMode"in document&&(ma=document.documentMode);var bC=u&&"TextEvent"in window&&!ma,xy=u&&(!Yd||ma&&8<ma&&11>=ma),Iy=" ",ky=!1;function Ty(i,o){switch(i){case"keyup":return vC.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ry(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ko=!1;function SC(i,o){switch(i){case"compositionend":return Ry(o);case"keypress":return o.which!==32?null:(ky=!0,Iy);case"textInput":return i=o.data,i===Iy&&ky?null:i;default:return null}}function _C(i,o){if(Ko)return i==="compositionend"||!Yd&&Ty(i,o)?(i=by(),Wl=jd=Mi=null,Ko=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return xy&&o.locale!=="ko"?null:o.data;default:return null}}var CC={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 Ey(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!CC[i.type]:o==="textarea"}function Ay(i,o,l,d){Xm(d),o=ql(o,"onChange"),0<o.length&&(l=new Ud("onChange","change",null,l,d),i.push({event:l,listeners:o}))}var ya=null,ga=null;function wC(i){Ky(i,0)}function Kl(i){var o=Zo(i);if(dr(o))return i}function xC(i,o){if(i==="change")return o}var Py=!1;if(u){var Kd;if(u){var Qd="oninput"in document;if(!Qd){var Oy=document.createElement("div");Oy.setAttribute("oninput","return;"),Qd=typeof Oy.oninput=="function"}Kd=Qd}else Kd=!1;Py=Kd&&(!document.documentMode||9<document.documentMode)}function My(){ya&&(ya.detachEvent("onpropertychange",Dy),ga=ya=null)}function Dy(i){if(i.propertyName==="value"&&Kl(ga)){var o=[];Ay(o,ga,i,Rd(i)),ey(wC,o)}}function IC(i,o,l){i==="focusin"?(My(),ya=o,ga=l,ya.attachEvent("onpropertychange",Dy)):i==="focusout"&&My()}function kC(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Kl(ga)}function TC(i,o){if(i==="click")return Kl(o)}function RC(i,o){if(i==="input"||i==="change")return Kl(o)}function EC(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var hr=typeof Object.is=="function"?Object.is:EC;function va(i,o){if(hr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var l=Object.keys(i),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!f.call(o,p)||!hr(i[p],o[p]))return!1}return!0}function Ny(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function By(i,o){var l=Ny(i);i=0;for(var d;l;){if(l.nodeType===3){if(d=i+l.textContent.length,i<=o&&d>=o)return{node:l,offset:o-i};i=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ny(l)}}function Ly(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Ly(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Fy(){for(var i=window,o=Dn();o instanceof i.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)i=o.contentWindow;else break;o=Dn(i.document)}return o}function Xd(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function AC(i){var o=Fy(),l=i.focusedElem,d=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&Ly(l.ownerDocument.documentElement,l)){if(d!==null&&Xd(l)){if(o=d.start,i=d.end,i===void 0&&(i=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(i,l.value.length);else if(i=(o=l.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var p=l.textContent.length,m=Math.min(d.start,p);d=d.end===void 0?m:Math.min(d.end,p),!i.extend&&m>d&&(p=d,d=m,m=p),p=By(l,m);var b=By(l,d);p&&b&&(i.rangeCount!==1||i.anchorNode!==p.node||i.anchorOffset!==p.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),i.removeAllRanges(),m>d?(i.addRange(o),i.extend(b.node,b.offset)):(o.setEnd(b.node,b.offset),i.addRange(o)))}}for(o=[],i=l;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)i=o[l],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var PC=u&&"documentMode"in document&&11>=document.documentMode,Qo=null,Jd=null,ba=null,qd=!1;function $y(i,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;qd||Qo==null||Qo!==Dn(d)||(d=Qo,"selectionStart"in d&&Xd(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ba&&va(ba,d)||(ba=d,d=ql(Jd,"onSelect"),0<d.length&&(o=new Ud("onSelect","select",null,o,l),i.push({event:o,listeners:d}),o.target=Qo)))}function Ql(i,o){var l={};return l[i.toLowerCase()]=o.toLowerCase(),l["Webkit"+i]="webkit"+o,l["Moz"+i]="moz"+o,l}var Xo={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},Zd={},zy={};u&&(zy=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);function Xl(i){if(Zd[i])return Zd[i];if(!Xo[i])return i;var o=Xo[i],l;for(l in o)if(o.hasOwnProperty(l)&&l in zy)return Zd[i]=o[l];return i}var jy=Xl("animationend"),Uy=Xl("animationiteration"),Vy=Xl("animationstart"),Wy=Xl("transitionend"),Hy=new Map,Gy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Di(i,o){Hy.set(i,o),a(o,[i])}for(var ef=0;ef<Gy.length;ef++){var tf=Gy[ef],OC=tf.toLowerCase(),MC=tf[0].toUpperCase()+tf.slice(1);Di(OC,"on"+MC)}Di(jy,"onAnimationEnd"),Di(Uy,"onAnimationIteration"),Di(Vy,"onAnimationStart"),Di("dblclick","onDoubleClick"),Di("focusin","onFocus"),Di("focusout","onBlur"),Di(Wy,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sa));function Yy(i,o,l){var d=i.type||"unknown-event";i.currentTarget=l,O_(d,o,void 0,i),i.currentTarget=null}function Ky(i,o){o=(o&4)!==0;for(var l=0;l<i.length;l++){var d=i[l],p=d.event;d=d.listeners;e:{var m=void 0;if(o)for(var b=d.length-1;0<=b;b--){var x=d[b],k=x.instance,U=x.currentTarget;if(x=x.listener,k!==m&&p.isPropagationStopped())break e;Yy(p,x,U),m=k}else for(b=0;b<d.length;b++){if(x=d[b],k=x.instance,U=x.currentTarget,x=x.listener,k!==m&&p.isPropagationStopped())break e;Yy(p,x,U),m=k}}}if(Dl)throw i=Od,Dl=!1,Od=null,i}function pt(i,o){var l=o[uf];l===void 0&&(l=o[uf]=new Set);var d=i+"__bubble";l.has(d)||(Qy(o,i,2,!1),l.add(d))}function nf(i,o,l){var d=0;o&&(d|=4),Qy(l,i,d,o)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function _a(i){if(!i[Jl]){i[Jl]=!0,r.forEach(function(l){l!=="selectionchange"&&(DC.has(l)||nf(l,!1,i),nf(l,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Jl]||(o[Jl]=!0,nf("selectionchange",!1,o))}}function Qy(i,o,l,d){switch(vy(o)){case 1:var p=K_;break;case 4:p=Q_;break;default:p=$d}l=p.bind(null,o,l,i),p=void 0,!Pd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),d?p!==void 0?i.addEventListener(o,l,{capture:!0,passive:p}):i.addEventListener(o,l,!0):p!==void 0?i.addEventListener(o,l,{passive:p}):i.addEventListener(o,l,!1)}function rf(i,o,l,d,p){var m=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var b=d.tag;if(b===3||b===4){var x=d.stateNode.containerInfo;if(x===p||x.nodeType===8&&x.parentNode===p)break;if(b===4)for(b=d.return;b!==null;){var k=b.tag;if((k===3||k===4)&&(k=b.stateNode.containerInfo,k===p||k.nodeType===8&&k.parentNode===p))return;b=b.return}for(;x!==null;){if(b=yo(x),b===null)return;if(k=b.tag,k===5||k===6){d=m=b;continue e}x=x.parentNode}}d=d.return}ey(function(){var U=m,Q=Rd(l),J=[];e:{var K=Hy.get(i);if(K!==void 0){var re=Ud,oe=i;switch(i){case"keypress":if(Hl(l)===0)break e;case"keydown":case"keyup":re=uC;break;case"focusin":oe="focus",re=Hd;break;case"focusout":oe="blur",re=Hd;break;case"beforeblur":case"afterblur":re=Hd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=_y;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=q_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=pC;break;case jy:case Uy:case Vy:re=tC;break;case Wy:re=mC;break;case"scroll":re=X_;break;case"wheel":re=gC;break;case"copy":case"cut":case"paste":re=rC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=wy}var se=(o&4)!==0,Et=!se&&i==="scroll",N=se?K!==null?K+"Capture":null:K;se=[];for(var E=U,$;E!==null;){$=E;var ee=$.stateNode;if($.tag===5&&ee!==null&&($=ee,N!==null&&(ee=ra(E,N),ee!=null&&se.push(Ca(E,ee,$)))),Et)break;E=E.return}0<se.length&&(K=new re(K,oe,null,l,Q),J.push({event:K,listeners:se}))}}if((o&7)===0){e:{if(K=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",K&&l!==Td&&(oe=l.relatedTarget||l.fromElement)&&(yo(oe)||oe[ni]))break e;if((re||K)&&(K=Q.window===Q?Q:(K=Q.ownerDocument)?K.defaultView||K.parentWindow:window,re?(oe=l.relatedTarget||l.toElement,re=U,oe=oe?yo(oe):null,oe!==null&&(Et=mo(oe),oe!==Et||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(re=null,oe=U),re!==oe)){if(se=_y,ee="onMouseLeave",N="onMouseEnter",E="mouse",(i==="pointerout"||i==="pointerover")&&(se=wy,ee="onPointerLeave",N="onPointerEnter",E="pointer"),Et=re==null?K:Zo(re),$=oe==null?K:Zo(oe),K=new se(ee,E+"leave",re,l,Q),K.target=Et,K.relatedTarget=$,ee=null,yo(Q)===U&&(se=new se(N,E+"enter",oe,l,Q),se.target=$,se.relatedTarget=Et,ee=se),Et=ee,re&&oe)t:{for(se=re,N=oe,E=0,$=se;$;$=Jo($))E++;for($=0,ee=N;ee;ee=Jo(ee))$++;for(;0<E-$;)se=Jo(se),E--;for(;0<$-E;)N=Jo(N),$--;for(;E--;){if(se===N||N!==null&&se===N.alternate)break t;se=Jo(se),N=Jo(N)}se=null}else se=null;re!==null&&Xy(J,K,re,se,!1),oe!==null&&Et!==null&&Xy(J,Et,oe,se,!0)}}e:{if(K=U?Zo(U):window,re=K.nodeName&&K.nodeName.toLowerCase(),re==="select"||re==="input"&&K.type==="file")var le=xC;else if(Ey(K))if(Py)le=RC;else{le=kC;var pe=IC}else(re=K.nodeName)&&re.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(le=TC);if(le&&(le=le(i,U))){Ay(J,le,l,Q);break e}pe&&pe(i,K,U),i==="focusout"&&(pe=K._wrapperState)&&pe.controlled&&K.type==="number"&&Nn(K,"number",K.value)}switch(pe=U?Zo(U):window,i){case"focusin":(Ey(pe)||pe.contentEditable==="true")&&(Qo=pe,Jd=U,ba=null);break;case"focusout":ba=Jd=Qo=null;break;case"mousedown":qd=!0;break;case"contextmenu":case"mouseup":case"dragend":qd=!1,$y(J,l,Q);break;case"selectionchange":if(PC)break;case"keydown":case"keyup":$y(J,l,Q)}var he;if(Yd)e:{switch(i){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Ko?Ty(i,l)&&(ye="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(xy&&l.locale!=="ko"&&(Ko||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Ko&&(he=by()):(Mi=Q,jd="value"in Mi?Mi.value:Mi.textContent,Ko=!0)),pe=ql(U,ye),0<pe.length&&(ye=new Cy(ye,i,null,l,Q),J.push({event:ye,listeners:pe}),he?ye.data=he:(he=Ry(l),he!==null&&(ye.data=he)))),(he=bC?SC(i,l):_C(i,l))&&(U=ql(U,"onBeforeInput"),0<U.length&&(Q=new Cy("onBeforeInput","beforeinput",null,l,Q),J.push({event:Q,listeners:U}),Q.data=he))}Ky(J,o)})}function Ca(i,o,l){return{instance:i,listener:o,currentTarget:l}}function ql(i,o){for(var l=o+"Capture",d=[];i!==null;){var p=i,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=ra(i,l),m!=null&&d.unshift(Ca(i,m,p)),m=ra(i,o),m!=null&&d.push(Ca(i,m,p))),i=i.return}return d}function Jo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Xy(i,o,l,d,p){for(var m=o._reactName,b=[];l!==null&&l!==d;){var x=l,k=x.alternate,U=x.stateNode;if(k!==null&&k===d)break;x.tag===5&&U!==null&&(x=U,p?(k=ra(l,m),k!=null&&b.unshift(Ca(l,k,x))):p||(k=ra(l,m),k!=null&&b.push(Ca(l,k,x)))),l=l.return}b.length!==0&&i.push({event:o,listeners:b})}var NC=/\r\n?/g,BC=/\u0000|\uFFFD/g;function Jy(i){return(typeof i=="string"?i:""+i).replace(NC,`
|
38
|
-
`).replace(BC,"")}function Zl(i,o,l){if(o=Jy(o),Jy(i)!==o&&l)throw Error(n(425))}function ec(){}var of=null,sf=null;function af(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var lf=typeof setTimeout=="function"?setTimeout:void 0,LC=typeof clearTimeout=="function"?clearTimeout:void 0,qy=typeof Promise=="function"?Promise:void 0,FC=typeof queueMicrotask=="function"?queueMicrotask:typeof qy<"u"?function(i){return qy.resolve(null).then(i).catch($C)}:lf;function $C(i){setTimeout(function(){throw i})}function cf(i,o){var l=o,d=0;do{var p=l.nextSibling;if(i.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(d===0){i.removeChild(p),fa(o);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=p}while(l);fa(o)}function Ni(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return i}function Zy(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return i;o--}else l==="/$"&&o++}i=i.previousSibling}return null}var qo=Math.random().toString(36).slice(2),Rr="__reactFiber$"+qo,wa="__reactProps$"+qo,ni="__reactContainer$"+qo,uf="__reactEvents$"+qo,zC="__reactListeners$"+qo,jC="__reactHandles$"+qo;function yo(i){var o=i[Rr];if(o)return o;for(var l=i.parentNode;l;){if(o=l[ni]||l[Rr]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(i=Zy(i);i!==null;){if(l=i[Rr])return l;i=Zy(i)}return o}i=l,l=i.parentNode}return null}function xa(i){return i=i[Rr]||i[ni],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Zo(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function tc(i){return i[wa]||null}var df=[],es=-1;function Bi(i){return{current:i}}function ht(i){0>es||(i.current=df[es],df[es]=null,es--)}function dt(i,o){es++,df[es]=i.current,i.current=o}var Li={},qt=Bi(Li),gn=Bi(!1),go=Li;function ts(i,o){var l=i.type.contextTypes;if(!l)return Li;var d=i.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=p),p}function vn(i){return i=i.childContextTypes,i!=null}function nc(){ht(gn),ht(qt)}function eg(i,o,l){if(qt.current!==Li)throw Error(n(168));dt(qt,o),dt(gn,l)}function tg(i,o,l){var d=i.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var p in d)if(!(p in o))throw Error(n(108,$e(i)||"Unknown",p));return ne({},l,d)}function rc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Li,go=qt.current,dt(qt,i),dt(gn,gn.current),!0}function ng(i,o,l){var d=i.stateNode;if(!d)throw Error(n(169));l?(i=tg(i,o,go),d.__reactInternalMemoizedMergedChildContext=i,ht(gn),ht(qt),dt(qt,i)):ht(gn),dt(gn,l)}var ri=null,ic=!1,ff=!1;function rg(i){ri===null?ri=[i]:ri.push(i)}function UC(i){ic=!0,rg(i)}function Fi(){if(!ff&&ri!==null){ff=!0;var i=0,o=nt;try{var l=ri;for(nt=1;i<l.length;i++){var d=l[i];do d=d(!0);while(d!==null)}ri=null,ic=!1}catch(p){throw ri!==null&&(ri=ri.slice(i+1)),oy(Md,Fi),p}finally{nt=o,ff=!1}}return null}var ns=[],rs=0,oc=null,sc=0,Kn=[],Qn=0,vo=null,ii=1,oi="";function bo(i,o){ns[rs++]=sc,ns[rs++]=oc,oc=i,sc=o}function ig(i,o,l){Kn[Qn++]=ii,Kn[Qn++]=oi,Kn[Qn++]=vo,vo=i;var d=ii;i=oi;var p=32-pr(d)-1;d&=~(1<<p),l+=1;var m=32-pr(o)+p;if(30<m){var b=p-p%5;m=(d&(1<<b)-1).toString(32),d>>=b,p-=b,ii=1<<32-pr(o)+p|l<<p|d,oi=m+i}else ii=1<<m|l<<p|d,oi=i}function pf(i){i.return!==null&&(bo(i,1),ig(i,1,0))}function hf(i){for(;i===oc;)oc=ns[--rs],ns[rs]=null,sc=ns[--rs],ns[rs]=null;for(;i===vo;)vo=Kn[--Qn],Kn[Qn]=null,oi=Kn[--Qn],Kn[Qn]=null,ii=Kn[--Qn],Kn[Qn]=null}var Ln=null,Fn=null,yt=!1,mr=null;function og(i,o){var l=Zn(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=i,o=i.deletions,o===null?(i.deletions=[l],i.flags|=16):o.push(l)}function sg(i,o){switch(i.tag){case 5:var l=i.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,Ln=i,Fn=Ni(o.firstChild),!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,Ln=i,Fn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=vo!==null?{id:ii,overflow:oi}:null,i.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Zn(18,null,null,0),l.stateNode=o,l.return=i,i.child=l,Ln=i,Fn=null,!0):!1;default:return!1}}function mf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function yf(i){if(yt){var o=Fn;if(o){var l=o;if(!sg(i,o)){if(mf(i))throw Error(n(418));o=Ni(l.nextSibling);var d=Ln;o&&sg(i,o)?og(d,l):(i.flags=i.flags&-4097|2,yt=!1,Ln=i)}}else{if(mf(i))throw Error(n(418));i.flags=i.flags&-4097|2,yt=!1,Ln=i}}}function ag(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ln=i}function ac(i){if(i!==Ln)return!1;if(!yt)return ag(i),yt=!0,!1;var o;if((o=i.tag!==3)&&!(o=i.tag!==5)&&(o=i.type,o=o!=="head"&&o!=="body"&&!af(i.type,i.memoizedProps)),o&&(o=Fn)){if(mf(i))throw lg(),Error(n(418));for(;o;)og(i,o),o=Ni(o.nextSibling)}if(ag(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"){if(o===0){Fn=Ni(i.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}i=i.nextSibling}Fn=null}}else Fn=Ln?Ni(i.stateNode.nextSibling):null;return!0}function lg(){for(var i=Fn;i;)i=Ni(i.nextSibling)}function is(){Fn=Ln=null,yt=!1}function gf(i){mr===null?mr=[i]:mr.push(i)}var VC=A.ReactCurrentBatchConfig;function Ia(i,o,l){if(i=l.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,i));var p=d,m=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(b){var x=p.refs;b===null?delete x[m]:x[m]=b},o._stringRef=m,o)}if(typeof i!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,i))}return i}function lc(i,o){throw i=Object.prototype.toString.call(o),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function cg(i){var o=i._init;return o(i._payload)}function ug(i){function o(N,E){if(i){var $=N.deletions;$===null?(N.deletions=[E],N.flags|=16):$.push(E)}}function l(N,E){if(!i)return null;for(;E!==null;)o(N,E),E=E.sibling;return null}function d(N,E){for(N=new Map;E!==null;)E.key!==null?N.set(E.key,E):N.set(E.index,E),E=E.sibling;return N}function p(N,E){return N=Gi(N,E),N.index=0,N.sibling=null,N}function m(N,E,$){return N.index=$,i?($=N.alternate,$!==null?($=$.index,$<E?(N.flags|=2,E):$):(N.flags|=2,E)):(N.flags|=1048576,E)}function b(N){return i&&N.alternate===null&&(N.flags|=2),N}function x(N,E,$,ee){return E===null||E.tag!==6?(E=lp($,N.mode,ee),E.return=N,E):(E=p(E,$),E.return=N,E)}function k(N,E,$,ee){var le=$.type;return le===M?Q(N,E,$.props.children,ee,$.key):E!==null&&(E.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===de&&cg(le)===E.type)?(ee=p(E,$.props),ee.ref=Ia(N,E,$),ee.return=N,ee):(ee=Oc($.type,$.key,$.props,null,N.mode,ee),ee.ref=Ia(N,E,$),ee.return=N,ee)}function U(N,E,$,ee){return E===null||E.tag!==4||E.stateNode.containerInfo!==$.containerInfo||E.stateNode.implementation!==$.implementation?(E=cp($,N.mode,ee),E.return=N,E):(E=p(E,$.children||[]),E.return=N,E)}function Q(N,E,$,ee,le){return E===null||E.tag!==7?(E=To($,N.mode,ee,le),E.return=N,E):(E=p(E,$),E.return=N,E)}function J(N,E,$){if(typeof E=="string"&&E!==""||typeof E=="number")return E=lp(""+E,N.mode,$),E.return=N,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case O:return $=Oc(E.type,E.key,E.props,null,N.mode,$),$.ref=Ia(N,null,E),$.return=N,$;case F:return E=cp(E,N.mode,$),E.return=N,E;case de:var ee=E._init;return J(N,ee(E._payload),$)}if(Xt(E)||te(E))return E=To(E,N.mode,$,null),E.return=N,E;lc(N,E)}return null}function K(N,E,$,ee){var le=E!==null?E.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return le!==null?null:x(N,E,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case O:return $.key===le?k(N,E,$,ee):null;case F:return $.key===le?U(N,E,$,ee):null;case de:return le=$._init,K(N,E,le($._payload),ee)}if(Xt($)||te($))return le!==null?null:Q(N,E,$,ee,null);lc(N,$)}return null}function re(N,E,$,ee,le){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return N=N.get($)||null,x(E,N,""+ee,le);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case O:return N=N.get(ee.key===null?$:ee.key)||null,k(E,N,ee,le);case F:return N=N.get(ee.key===null?$:ee.key)||null,U(E,N,ee,le);case de:var pe=ee._init;return re(N,E,$,pe(ee._payload),le)}if(Xt(ee)||te(ee))return N=N.get($)||null,Q(E,N,ee,le,null);lc(E,ee)}return null}function oe(N,E,$,ee){for(var le=null,pe=null,he=E,ye=E=0,Wt=null;he!==null&&ye<$.length;ye++){he.index>ye?(Wt=he,he=null):Wt=he.sibling;var Ge=K(N,he,$[ye],ee);if(Ge===null){he===null&&(he=Wt);break}i&&he&&Ge.alternate===null&&o(N,he),E=m(Ge,E,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge,he=Wt}if(ye===$.length)return l(N,he),yt&&bo(N,ye),le;if(he===null){for(;ye<$.length;ye++)he=J(N,$[ye],ee),he!==null&&(E=m(he,E,ye),pe===null?le=he:pe.sibling=he,pe=he);return yt&&bo(N,ye),le}for(he=d(N,he);ye<$.length;ye++)Wt=re(he,N,ye,$[ye],ee),Wt!==null&&(i&&Wt.alternate!==null&&he.delete(Wt.key===null?ye:Wt.key),E=m(Wt,E,ye),pe===null?le=Wt:pe.sibling=Wt,pe=Wt);return i&&he.forEach(function(Yi){return o(N,Yi)}),yt&&bo(N,ye),le}function se(N,E,$,ee){var le=te($);if(typeof le!="function")throw Error(n(150));if($=le.call($),$==null)throw Error(n(151));for(var pe=le=null,he=E,ye=E=0,Wt=null,Ge=$.next();he!==null&&!Ge.done;ye++,Ge=$.next()){he.index>ye?(Wt=he,he=null):Wt=he.sibling;var Yi=K(N,he,Ge.value,ee);if(Yi===null){he===null&&(he=Wt);break}i&&he&&Yi.alternate===null&&o(N,he),E=m(Yi,E,ye),pe===null?le=Yi:pe.sibling=Yi,pe=Yi,he=Wt}if(Ge.done)return l(N,he),yt&&bo(N,ye),le;if(he===null){for(;!Ge.done;ye++,Ge=$.next())Ge=J(N,Ge.value,ee),Ge!==null&&(E=m(Ge,E,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge);return yt&&bo(N,ye),le}for(he=d(N,he);!Ge.done;ye++,Ge=$.next())Ge=re(he,N,ye,Ge.value,ee),Ge!==null&&(i&&Ge.alternate!==null&&he.delete(Ge.key===null?ye:Ge.key),E=m(Ge,E,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge);return i&&he.forEach(function(Cw){return o(N,Cw)}),yt&&bo(N,ye),le}function Et(N,E,$,ee){if(typeof $=="object"&&$!==null&&$.type===M&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case O:e:{for(var le=$.key,pe=E;pe!==null;){if(pe.key===le){if(le=$.type,le===M){if(pe.tag===7){l(N,pe.sibling),E=p(pe,$.props.children),E.return=N,N=E;break e}}else if(pe.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===de&&cg(le)===pe.type){l(N,pe.sibling),E=p(pe,$.props),E.ref=Ia(N,pe,$),E.return=N,N=E;break e}l(N,pe);break}else o(N,pe);pe=pe.sibling}$.type===M?(E=To($.props.children,N.mode,ee,$.key),E.return=N,N=E):(ee=Oc($.type,$.key,$.props,null,N.mode,ee),ee.ref=Ia(N,E,$),ee.return=N,N=ee)}return b(N);case F:e:{for(pe=$.key;E!==null;){if(E.key===pe)if(E.tag===4&&E.stateNode.containerInfo===$.containerInfo&&E.stateNode.implementation===$.implementation){l(N,E.sibling),E=p(E,$.children||[]),E.return=N,N=E;break e}else{l(N,E);break}else o(N,E);E=E.sibling}E=cp($,N.mode,ee),E.return=N,N=E}return b(N);case de:return pe=$._init,Et(N,E,pe($._payload),ee)}if(Xt($))return oe(N,E,$,ee);if(te($))return se(N,E,$,ee);lc(N,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,E!==null&&E.tag===6?(l(N,E.sibling),E=p(E,$),E.return=N,N=E):(l(N,E),E=lp($,N.mode,ee),E.return=N,N=E),b(N)):l(N,E)}return Et}var os=ug(!0),dg=ug(!1),cc=Bi(null),uc=null,ss=null,vf=null;function bf(){vf=ss=uc=null}function Sf(i){var o=cc.current;ht(cc),i._currentValue=o}function _f(i,o,l){for(;i!==null;){var d=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),i===l)break;i=i.return}}function as(i,o){uc=i,vf=ss=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(bn=!0),i.firstContext=null)}function Xn(i){var o=i._currentValue;if(vf!==i)if(i={context:i,memoizedValue:o,next:null},ss===null){if(uc===null)throw Error(n(308));ss=i,uc.dependencies={lanes:0,firstContext:i}}else ss=ss.next=i;return o}var So=null;function Cf(i){So===null?So=[i]:So.push(i)}function fg(i,o,l,d){var p=o.interleaved;return p===null?(l.next=l,Cf(o)):(l.next=p.next,p.next=l),o.interleaved=l,si(i,d)}function si(i,o){i.lanes|=o;var l=i.alternate;for(l!==null&&(l.lanes|=o),l=i,i=i.return;i!==null;)i.childLanes|=o,l=i.alternate,l!==null&&(l.childLanes|=o),l=i,i=i.return;return l.tag===3?l.stateNode:null}var $i=!1;function wf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pg(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ai(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function zi(i,o,l){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(We&2)!==0){var p=d.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),d.pending=o,si(i,l)}return p=d.interleaved,p===null?(o.next=o,Cf(d)):(o.next=p.next,p.next=o),d.interleaved=o,si(i,l)}function dc(i,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Bd(i,l)}}function hg(i,o){var l=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var b={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=b:m=m.next=b,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:d.shared,effects:d.effects},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=o:i.next=o,l.lastBaseUpdate=o}function fc(i,o,l,d){var p=i.updateQueue;$i=!1;var m=p.firstBaseUpdate,b=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var k=x,U=k.next;k.next=null,b===null?m=U:b.next=U,b=k;var Q=i.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==b&&(x===null?Q.firstBaseUpdate=U:x.next=U,Q.lastBaseUpdate=k))}if(m!==null){var J=p.baseState;b=0,Q=U=k=null,x=m;do{var K=x.lane,re=x.eventTime;if((d&K)===K){Q!==null&&(Q=Q.next={eventTime:re,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var oe=i,se=x;switch(K=o,re=l,se.tag){case 1:if(oe=se.payload,typeof oe=="function"){J=oe.call(re,J,K);break e}J=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=se.payload,K=typeof oe=="function"?oe.call(re,J,K):oe,K==null)break e;J=ne({},J,K);break e;case 2:$i=!0}}x.callback!==null&&x.lane!==0&&(i.flags|=64,K=p.effects,K===null?p.effects=[x]:K.push(x))}else re={eventTime:re,lane:K,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(U=Q=re,k=J):Q=Q.next=re,b|=K;if(x=x.next,x===null){if(x=p.shared.pending,x===null)break;K=x,x=K.next,K.next=null,p.lastBaseUpdate=K,p.shared.pending=null}}while(!0);if(Q===null&&(k=J),p.baseState=k,p.firstBaseUpdate=U,p.lastBaseUpdate=Q,o=p.shared.interleaved,o!==null){p=o;do b|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);wo|=b,i.lanes=b,i.memoizedState=J}}function mg(i,o,l){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var d=i[o],p=d.callback;if(p!==null){if(d.callback=null,d=l,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var ka={},Er=Bi(ka),Ta=Bi(ka),Ra=Bi(ka);function _o(i){if(i===ka)throw Error(n(174));return i}function xf(i,o){switch(dt(Ra,o),dt(Ta,i),dt(Er,ka),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ti(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=ti(o,i)}ht(Er),dt(Er,o)}function ls(){ht(Er),ht(Ta),ht(Ra)}function yg(i){_o(Ra.current);var o=_o(Er.current),l=ti(o,i.type);o!==l&&(dt(Ta,i),dt(Er,l))}function If(i){Ta.current===i&&(ht(Er),ht(Ta))}var bt=Bi(0);function pc(i){for(var o=i;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var kf=[];function Tf(){for(var i=0;i<kf.length;i++)kf[i]._workInProgressVersionPrimary=null;kf.length=0}var hc=A.ReactCurrentDispatcher,Rf=A.ReactCurrentBatchConfig,Co=0,St=null,Lt=null,Ut=null,mc=!1,Ea=!1,Aa=0,WC=0;function Zt(){throw Error(n(321))}function Ef(i,o){if(o===null)return!1;for(var l=0;l<o.length&&l<i.length;l++)if(!hr(i[l],o[l]))return!1;return!0}function Af(i,o,l,d,p,m){if(Co=m,St=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,hc.current=i===null||i.memoizedState===null?KC:QC,i=l(d,p),Ea){m=0;do{if(Ea=!1,Aa=0,25<=m)throw Error(n(301));m+=1,Ut=Lt=null,o.updateQueue=null,hc.current=XC,i=l(d,p)}while(Ea)}if(hc.current=vc,o=Lt!==null&&Lt.next!==null,Co=0,Ut=Lt=St=null,mc=!1,o)throw Error(n(300));return i}function Pf(){var i=Aa!==0;return Aa=0,i}function Ar(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?St.memoizedState=Ut=i:Ut=Ut.next=i,Ut}function Jn(){if(Lt===null){var i=St.alternate;i=i!==null?i.memoizedState:null}else i=Lt.next;var o=Ut===null?St.memoizedState:Ut.next;if(o!==null)Ut=o,Lt=i;else{if(i===null)throw Error(n(310));Lt=i,i={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Ut===null?St.memoizedState=Ut=i:Ut=Ut.next=i}return Ut}function Pa(i,o){return typeof o=="function"?o(i):o}function Of(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=Lt,p=d.baseQueue,m=l.pending;if(m!==null){if(p!==null){var b=p.next;p.next=m.next,m.next=b}d.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,d=d.baseState;var x=b=null,k=null,U=m;do{var Q=U.lane;if((Co&Q)===Q)k!==null&&(k=k.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),d=U.hasEagerState?U.eagerState:i(d,U.action);else{var J={lane:Q,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};k===null?(x=k=J,b=d):k=k.next=J,St.lanes|=Q,wo|=Q}U=U.next}while(U!==null&&U!==m);k===null?b=d:k.next=x,hr(d,o.memoizedState)||(bn=!0),o.memoizedState=d,o.baseState=b,o.baseQueue=k,l.lastRenderedState=d}if(i=l.interleaved,i!==null){p=i;do m=p.lane,St.lanes|=m,wo|=m,p=p.next;while(p!==i)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Mf(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var b=p=p.next;do m=i(m,b.action),b=b.next;while(b!==p);hr(m,o.memoizedState)||(bn=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,d]}function gg(){}function vg(i,o){var l=St,d=Jn(),p=o(),m=!hr(d.memoizedState,p);if(m&&(d.memoizedState=p,bn=!0),d=d.queue,Df(_g.bind(null,l,d,i),[i]),d.getSnapshot!==o||m||Ut!==null&&Ut.memoizedState.tag&1){if(l.flags|=2048,Oa(9,Sg.bind(null,l,d,p,o),void 0,null),Vt===null)throw Error(n(349));(Co&30)!==0||bg(l,o,p)}return p}function bg(i,o,l){i.flags|=16384,i={getSnapshot:o,value:l},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.stores=[i]):(l=o.stores,l===null?o.stores=[i]:l.push(i))}function Sg(i,o,l,d){o.value=l,o.getSnapshot=d,Cg(o)&&wg(i)}function _g(i,o,l){return l(function(){Cg(o)&&wg(i)})}function Cg(i){var o=i.getSnapshot;i=i.value;try{var l=o();return!hr(i,l)}catch{return!0}}function wg(i){var o=si(i,1);o!==null&&br(o,i,1,-1)}function xg(i){var o=Ar();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:i},o.queue=i,i=i.dispatch=YC.bind(null,St,i),[o.memoizedState,i]}function Oa(i,o,l,d){return i={tag:i,create:o,destroy:l,deps:d,next:null},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.lastEffect=i.next=i):(l=o.lastEffect,l===null?o.lastEffect=i.next=i:(d=l.next,l.next=i,i.next=d,o.lastEffect=i)),i}function Ig(){return Jn().memoizedState}function yc(i,o,l,d){var p=Ar();St.flags|=i,p.memoizedState=Oa(1|o,l,void 0,d===void 0?null:d)}function gc(i,o,l,d){var p=Jn();d=d===void 0?null:d;var m=void 0;if(Lt!==null){var b=Lt.memoizedState;if(m=b.destroy,d!==null&&Ef(d,b.deps)){p.memoizedState=Oa(o,l,m,d);return}}St.flags|=i,p.memoizedState=Oa(1|o,l,m,d)}function kg(i,o){return yc(8390656,8,i,o)}function Df(i,o){return gc(2048,8,i,o)}function Tg(i,o){return gc(4,2,i,o)}function Rg(i,o){return gc(4,4,i,o)}function Eg(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Ag(i,o,l){return l=l!=null?l.concat([i]):null,gc(4,4,Eg.bind(null,o,i),l)}function Nf(){}function Pg(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Ef(o,d[1])?d[0]:(l.memoizedState=[i,o],i)}function Og(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Ef(o,d[1])?d[0]:(i=i(),l.memoizedState=[i,o],i)}function Mg(i,o,l){return(Co&21)===0?(i.baseState&&(i.baseState=!1,bn=!0),i.memoizedState=l):(hr(l,o)||(l=cy(),St.lanes|=l,wo|=l,i.baseState=!0),o)}function HC(i,o){var l=nt;nt=l!==0&&4>l?l:4,i(!0);var d=Rf.transition;Rf.transition={};try{i(!1),o()}finally{nt=l,Rf.transition=d}}function Dg(){return Jn().memoizedState}function GC(i,o,l){var d=Wi(i);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Ng(i))Bg(o,l);else if(l=fg(i,o,l,d),l!==null){var p=un();br(l,i,d,p),Lg(l,o,d)}}function YC(i,o,l){var d=Wi(i),p={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ng(i))Bg(o,p);else{var m=i.alternate;if(i.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var b=o.lastRenderedState,x=m(b,l);if(p.hasEagerState=!0,p.eagerState=x,hr(x,b)){var k=o.interleaved;k===null?(p.next=p,Cf(o)):(p.next=k.next,k.next=p),o.interleaved=p;return}}catch{}finally{}l=fg(i,o,p,d),l!==null&&(p=un(),br(l,i,d,p),Lg(l,o,d))}}function Ng(i){var o=i.alternate;return i===St||o!==null&&o===St}function Bg(i,o){Ea=mc=!0;var l=i.pending;l===null?o.next=o:(o.next=l.next,l.next=o),i.pending=o}function Lg(i,o,l){if((l&4194240)!==0){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Bd(i,l)}}var vc={readContext:Xn,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},KC={readContext:Xn,useCallback:function(i,o){return Ar().memoizedState=[i,o===void 0?null:o],i},useContext:Xn,useEffect:kg,useImperativeHandle:function(i,o,l){return l=l!=null?l.concat([i]):null,yc(4194308,4,Eg.bind(null,o,i),l)},useLayoutEffect:function(i,o){return yc(4194308,4,i,o)},useInsertionEffect:function(i,o){return yc(4,2,i,o)},useMemo:function(i,o){var l=Ar();return o=o===void 0?null:o,i=i(),l.memoizedState=[i,o],i},useReducer:function(i,o,l){var d=Ar();return o=l!==void 0?l(o):o,d.memoizedState=d.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},d.queue=i,i=i.dispatch=GC.bind(null,St,i),[d.memoizedState,i]},useRef:function(i){var o=Ar();return i={current:i},o.memoizedState=i},useState:xg,useDebugValue:Nf,useDeferredValue:function(i){return Ar().memoizedState=i},useTransition:function(){var i=xg(!1),o=i[0];return i=HC.bind(null,i[1]),Ar().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,l){var d=St,p=Ar();if(yt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),Vt===null)throw Error(n(349));(Co&30)!==0||bg(d,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,kg(_g.bind(null,d,m,i),[i]),d.flags|=2048,Oa(9,Sg.bind(null,d,m,l,o),void 0,null),l},useId:function(){var i=Ar(),o=Vt.identifierPrefix;if(yt){var l=oi,d=ii;l=(d&~(1<<32-pr(d)-1)).toString(32)+l,o=":"+o+"R"+l,l=Aa++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=WC++,o=":"+o+"r"+l.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},QC={readContext:Xn,useCallback:Pg,useContext:Xn,useEffect:Df,useImperativeHandle:Ag,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:Og,useReducer:Of,useRef:Ig,useState:function(){return Of(Pa)},useDebugValue:Nf,useDeferredValue:function(i){var o=Jn();return Mg(o,Lt.memoizedState,i)},useTransition:function(){var i=Of(Pa)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:gg,useSyncExternalStore:vg,useId:Dg,unstable_isNewReconciler:!1},XC={readContext:Xn,useCallback:Pg,useContext:Xn,useEffect:Df,useImperativeHandle:Ag,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:Og,useReducer:Mf,useRef:Ig,useState:function(){return Mf(Pa)},useDebugValue:Nf,useDeferredValue:function(i){var o=Jn();return Lt===null?o.memoizedState=i:Mg(o,Lt.memoizedState,i)},useTransition:function(){var i=Mf(Pa)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:gg,useSyncExternalStore:vg,useId:Dg,unstable_isNewReconciler:!1};function yr(i,o){if(i&&i.defaultProps){o=ne({},o),i=i.defaultProps;for(var l in i)o[l]===void 0&&(o[l]=i[l]);return o}return o}function Bf(i,o,l,d){o=i.memoizedState,l=l(d,o),l=l==null?o:ne({},o,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var bc={isMounted:function(i){return(i=i._reactInternals)?mo(i)===i:!1},enqueueSetState:function(i,o,l){i=i._reactInternals;var d=un(),p=Wi(i),m=ai(d,p);m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(br(o,i,p,d),dc(o,i,p))},enqueueReplaceState:function(i,o,l){i=i._reactInternals;var d=un(),p=Wi(i),m=ai(d,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(br(o,i,p,d),dc(o,i,p))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var l=un(),d=Wi(i),p=ai(l,d);p.tag=2,o!=null&&(p.callback=o),o=zi(i,p,d),o!==null&&(br(o,i,d,l),dc(o,i,d))}};function Fg(i,o,l,d,p,m,b){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,m,b):o.prototype&&o.prototype.isPureReactComponent?!va(l,d)||!va(p,m):!0}function $g(i,o,l){var d=!1,p=Li,m=o.contextType;return typeof m=="object"&&m!==null?m=Xn(m):(p=vn(o)?go:qt.current,d=o.contextTypes,m=(d=d!=null)?ts(i,p):Li),o=new o(l,m),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=bc,i.stateNode=o,o._reactInternals=i,d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=p,i.__reactInternalMemoizedMaskedChildContext=m),o}function zg(i,o,l,d){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==i&&bc.enqueueReplaceState(o,o.state,null)}function Lf(i,o,l,d){var p=i.stateNode;p.props=l,p.state=i.memoizedState,p.refs={},wf(i);var m=o.contextType;typeof m=="object"&&m!==null?p.context=Xn(m):(m=vn(o)?go:qt.current,p.context=ts(i,m)),p.state=i.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(Bf(i,o,m,l),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&bc.enqueueReplaceState(p,p.state,null),fc(i,l,p,d),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308)}function cs(i,o){try{var l="",d=o;do l+=De(d),d=d.return;while(d);var p=l}catch(m){p=`
|
37
|
+
`+p[b].replace(" at new "," at ");return i.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",i.displayName)),k}while(1<=b&&0<=x);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(i=i?i.displayName||i.name:"")?G(i):""}function De(i){switch(i.tag){case 5:return G(i.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return i=ge(i.type,!1),i;case 11:return i=ge(i.type.render,!1),i;case 1:return i=ge(i.type,!0),i;default:return""}}function xe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case M:return"Fragment";case z:return"Portal";case Y:return"Profiler";case V:return"StrictMode";case X:return"Suspense";case ae:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case j:return(i.displayName||"Context")+".Consumer";case S:return(i._context.displayName||"Context")+".Provider";case W:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ce:return o=i.displayName||null,o!==null?o:xe(i.type)||"Memo";case de:o=i._payload,i=i._init;try{return xe(i(o))}catch{}}return null}function $e(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(o);case 8:return o===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ne(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function je(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Bt(i){var o=je(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),d=""+i[o];if(!i.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return p.call(this)},set:function(b){d=""+b,m.call(this,b)}}),Object.defineProperty(i,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(b){d=""+b},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function ur(i){i._valueTracker||(i._valueTracker=Bt(i))}function dr(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return i&&(d=je(i)?i.checked?"true":"false":i.value),i=d,i!==l?(o.setValue(i),!0):!1}function Dn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Je(i,o){var l=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??i._wrapperState.initialChecked})}function jt(i,o){var l=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;l=Ne(o.value!=null?o.value:l),i._wrapperState={initialChecked:d,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function fr(i,o){o=o.checked,o!=null&&N(i,"checked",o,!1)}function Qt(i,o){fr(i,o);var l=Ne(o.value),d=o.type;if(l!=null)d==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+l):i.value!==""+l&&(i.value=""+l);else if(d==="submit"||d==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?Nn(i,o.type,l):o.hasOwnProperty("defaultValue")&&Nn(i,o.type,Ne(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function st(i,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,l||o===i.value||(i.value=o),i.defaultValue=o}l=i.name,l!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,l!==""&&(i.name=l)}function Nn(i,o,l){(o!=="number"||Dn(i.ownerDocument)!==i)&&(l==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+l&&(i.defaultValue=""+l))}var Xt=Array.isArray;function Yn(i,o,l,d){if(i=i.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<i.length;l++)p=o.hasOwnProperty("$"+i[l].value),i[l].selected!==p&&(i[l].selected=p),p&&d&&(i[l].defaultSelected=!0)}else{for(l=""+Ne(l),o=null,p=0;p<i.length;p++){if(i[p].value===l){i[p].selected=!0,d&&(i[p].defaultSelected=!0);return}o!==null||i[p].disabled||(o=i[p])}o!==null&&(o.selected=!0)}}function me(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Zr(i,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Xt(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}i._wrapperState={initialValue:Ne(l)}}function an(i,o){var l=Ne(o.value),d=Ne(o.defaultValue);l!=null&&(l=""+l,l!==i.value&&(i.value=l),o.defaultValue==null&&i.defaultValue!==l&&(i.defaultValue=l)),d!=null&&(i.defaultValue=""+d)}function ho(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function ei(i){switch(i){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 ti(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?ei(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var vt,Tt=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,d,p){MSApp.execUnsafeLocalFunction(function(){return i(o,l,d,p)})}:i}(function(i,o){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=o;else{for(vt=vt||document.createElement("div"),vt.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=vt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function wt(i,o){if(o){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=o;return}}i.textContent=o}var He={animationIterationCount:!0,aspectRatio:!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},Jt=["Webkit","ms","Moz","O"];Object.keys(He).forEach(function(i){Jt.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),He[o]=He[i]})});function ln(i,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||He.hasOwnProperty(i)&&He[i]?(""+o).trim():o+"px"}function Qm(i,o){i=i.style;for(var l in o)if(o.hasOwnProperty(l)){var d=l.indexOf("--")===0,p=ln(l,o[l],d);l==="float"&&(l="cssFloat"),d?i.setProperty(l,p):i[l]=p}}var A_=ne({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 xd(i,o){if(o){if(A_[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Id(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kd=null;function Td(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Rd=null,Wo=null,Ho=null;function Xm(i){if(i=xa(i)){if(typeof Rd!="function")throw Error(n(280));var o=i.stateNode;o&&(o=tc(o),Rd(i.stateNode,i.type,o))}}function Jm(i){Wo?Ho?Ho.push(i):Ho=[i]:Wo=i}function qm(){if(Wo){var i=Wo,o=Ho;if(Ho=Wo=null,Xm(i),o)for(i=0;i<o.length;i++)Xm(o[i])}}function Zm(i,o){return i(o)}function ey(){}var Ed=!1;function ty(i,o,l){if(Ed)return i(o,l);Ed=!0;try{return Zm(i,o,l)}finally{Ed=!1,(Wo!==null||Ho!==null)&&(ey(),qm())}}function ra(i,o){var l=i.stateNode;if(l===null)return null;var d=tc(l);if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Ad=!1;if(u)try{var ia={};Object.defineProperty(ia,"passive",{get:function(){Ad=!0}}),window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{Ad=!1}function P_(i,o,l,d,p,m,b,x,k){var U=Array.prototype.slice.call(arguments,3);try{o.apply(l,U)}catch(Q){this.onError(Q)}}var oa=!1,Ml=null,Dl=!1,Pd=null,O_={onError:function(i){oa=!0,Ml=i}};function M_(i,o,l,d,p,m,b,x,k){oa=!1,Ml=null,P_.apply(O_,arguments)}function D_(i,o,l,d,p,m,b,x,k){if(M_.apply(this,arguments),oa){if(oa){var U=Ml;oa=!1,Ml=null}else throw Error(n(198));Dl||(Dl=!0,Pd=U)}}function mo(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function ny(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function ry(i){if(mo(i)!==i)throw Error(n(188))}function N_(i){var o=i.alternate;if(!o){if(o=mo(i),o===null)throw Error(n(188));return o!==i?null:i}for(var l=i,d=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return ry(p),i;if(m===d)return ry(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==d.return)l=p,d=m;else{for(var b=!1,x=p.child;x;){if(x===l){b=!0,l=p,d=m;break}if(x===d){b=!0,d=p,l=m;break}x=x.sibling}if(!b){for(x=m.child;x;){if(x===l){b=!0,l=m,d=p;break}if(x===d){b=!0,d=m,l=p;break}x=x.sibling}if(!b)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:o}function iy(i){return i=N_(i),i!==null?oy(i):null}function oy(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=oy(i);if(o!==null)return o;i=i.sibling}return null}var sy=e.unstable_scheduleCallback,ay=e.unstable_cancelCallback,B_=e.unstable_shouldYield,L_=e.unstable_requestPaint,Rt=e.unstable_now,F_=e.unstable_getCurrentPriorityLevel,Od=e.unstable_ImmediatePriority,ly=e.unstable_UserBlockingPriority,Nl=e.unstable_NormalPriority,$_=e.unstable_LowPriority,cy=e.unstable_IdlePriority,Bl=null,Tr=null;function z_(i){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{Tr.onCommitFiberRoot(Bl,i,void 0,(i.current.flags&128)===128)}catch{}}var pr=Math.clz32?Math.clz32:V_,j_=Math.log,U_=Math.LN2;function V_(i){return i>>>=0,i===0?32:31-(j_(i)/U_|0)|0}var Ll=64,Fl=4194304;function sa(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function $l(i,o){var l=i.pendingLanes;if(l===0)return 0;var d=0,p=i.suspendedLanes,m=i.pingedLanes,b=l&268435455;if(b!==0){var x=b&~p;x!==0?d=sa(x):(m&=b,m!==0&&(d=sa(m)))}else b=l&~p,b!==0?d=sa(b):m!==0&&(d=sa(m));if(d===0)return 0;if(o!==0&&o!==d&&(o&p)===0&&(p=d&-d,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if((d&4)!==0&&(d|=l&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=d;0<o;)l=31-pr(o),p=1<<l,d|=i[l],o&=~p;return d}function W_(i,o){switch(i){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function H_(i,o){for(var l=i.suspendedLanes,d=i.pingedLanes,p=i.expirationTimes,m=i.pendingLanes;0<m;){var b=31-pr(m),x=1<<b,k=p[b];k===-1?((x&l)===0||(x&d)!==0)&&(p[b]=W_(x,o)):k<=o&&(i.expiredLanes|=x),m&=~x}}function Md(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function uy(){var i=Ll;return Ll<<=1,(Ll&4194240)===0&&(Ll=64),i}function Dd(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function aa(i,o,l){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-pr(o),i[o]=l}function G_(i,o){var l=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var d=i.eventTimes;for(i=i.expirationTimes;0<l;){var p=31-pr(l),m=1<<p;o[p]=0,d[p]=-1,i[p]=-1,l&=~m}}function Nd(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var d=31-pr(l),p=1<<d;p&o|i[d]&o&&(i[d]|=o),l&=~p}}var nt=0;function dy(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var fy,Bd,py,hy,my,Ld=!1,zl=[],Ei=null,Ai=null,Pi=null,la=new Map,ca=new Map,Oi=[],Y_="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 yy(i,o){switch(i){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":la.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ca.delete(o.pointerId)}}function ua(i,o,l,d,p,m){return i===null||i.nativeEvent!==m?(i={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:m,targetContainers:[p]},o!==null&&(o=xa(o),o!==null&&Bd(o)),i):(i.eventSystemFlags|=d,o=i.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),i)}function K_(i,o,l,d,p){switch(o){case"focusin":return Ei=ua(Ei,i,o,l,d,p),!0;case"dragenter":return Ai=ua(Ai,i,o,l,d,p),!0;case"mouseover":return Pi=ua(Pi,i,o,l,d,p),!0;case"pointerover":var m=p.pointerId;return la.set(m,ua(la.get(m)||null,i,o,l,d,p)),!0;case"gotpointercapture":return m=p.pointerId,ca.set(m,ua(ca.get(m)||null,i,o,l,d,p)),!0}return!1}function gy(i){var o=yo(i.target);if(o!==null){var l=mo(o);if(l!==null){if(o=l.tag,o===13){if(o=ny(l),o!==null){i.blockedOn=o,my(i.priority,function(){py(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function jl(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var l=$d(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(l===null){l=i.nativeEvent;var d=new l.constructor(l.type,l);kd=d,l.target.dispatchEvent(d),kd=null}else return o=xa(l),o!==null&&Bd(o),i.blockedOn=l,!1;o.shift()}return!0}function vy(i,o,l){jl(i)&&l.delete(o)}function Q_(){Ld=!1,Ei!==null&&jl(Ei)&&(Ei=null),Ai!==null&&jl(Ai)&&(Ai=null),Pi!==null&&jl(Pi)&&(Pi=null),la.forEach(vy),ca.forEach(vy)}function da(i,o){i.blockedOn===o&&(i.blockedOn=null,Ld||(Ld=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Q_)))}function fa(i){function o(p){return da(p,i)}if(0<zl.length){da(zl[0],i);for(var l=1;l<zl.length;l++){var d=zl[l];d.blockedOn===i&&(d.blockedOn=null)}}for(Ei!==null&&da(Ei,i),Ai!==null&&da(Ai,i),Pi!==null&&da(Pi,i),la.forEach(o),ca.forEach(o),l=0;l<Oi.length;l++)d=Oi[l],d.blockedOn===i&&(d.blockedOn=null);for(;0<Oi.length&&(l=Oi[0],l.blockedOn===null);)gy(l),l.blockedOn===null&&Oi.shift()}var Go=E.ReactCurrentBatchConfig,Ul=!0;function X_(i,o,l,d){var p=nt,m=Go.transition;Go.transition=null;try{nt=1,Fd(i,o,l,d)}finally{nt=p,Go.transition=m}}function J_(i,o,l,d){var p=nt,m=Go.transition;Go.transition=null;try{nt=4,Fd(i,o,l,d)}finally{nt=p,Go.transition=m}}function Fd(i,o,l,d){if(Ul){var p=$d(i,o,l,d);if(p===null)nf(i,o,d,Vl,l),yy(i,d);else if(K_(p,i,o,l,d))d.stopPropagation();else if(yy(i,d),o&4&&-1<Y_.indexOf(i)){for(;p!==null;){var m=xa(p);if(m!==null&&fy(m),m=$d(i,o,l,d),m===null&&nf(i,o,d,Vl,l),m===p)break;p=m}p!==null&&d.stopPropagation()}else nf(i,o,d,null,l)}}var Vl=null;function $d(i,o,l,d){if(Vl=null,i=Td(d),i=yo(i),i!==null)if(o=mo(i),o===null)i=null;else if(l=o.tag,l===13){if(i=ny(o),i!==null)return i;i=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null);return Vl=i,null}function by(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(F_()){case Od:return 1;case ly:return 4;case Nl:case $_:return 16;case cy:return 536870912;default:return 16}default:return 16}}var Mi=null,zd=null,Wl=null;function Sy(){if(Wl)return Wl;var i,o=zd,l=o.length,d,p="value"in Mi?Mi.value:Mi.textContent,m=p.length;for(i=0;i<l&&o[i]===p[i];i++);var b=l-i;for(d=1;d<=b&&o[l-d]===p[m-d];d++);return Wl=p.slice(i,1<d?1-d:void 0)}function Hl(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Gl(){return!0}function _y(){return!1}function Bn(i){function o(l,d,p,m,b){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var x in i)i.hasOwnProperty(x)&&(l=i[x],this[x]=l?l(m):m[x]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Gl:_y,this.isPropagationStopped=_y,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),o}var Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=Bn(Yo),pa=ne({},Yo,{view:0,detail:0}),q_=Bn(pa),Ud,Vd,ha,Yl=ne({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==ha&&(ha&&i.type==="mousemove"?(Ud=i.screenX-ha.screenX,Vd=i.screenY-ha.screenY):Vd=Ud=0,ha=i),Ud)},movementY:function(i){return"movementY"in i?i.movementY:Vd}}),Cy=Bn(Yl),Z_=ne({},Yl,{dataTransfer:0}),eC=Bn(Z_),tC=ne({},pa,{relatedTarget:0}),Wd=Bn(tC),nC=ne({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),rC=Bn(nC),iC=ne({},Yo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),oC=Bn(iC),sC=ne({},Yo,{data:0}),wy=Bn(sC),aC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lC={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"},cC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uC(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=cC[i])?!!o[i]:!1}function Hd(){return uC}var dC=ne({},pa,{key:function(i){if(i.key){var o=aC[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Hl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?lC[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hd,charCode:function(i){return i.type==="keypress"?Hl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Hl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),fC=Bn(dC),pC=ne({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xy=Bn(pC),hC=ne({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hd}),mC=Bn(hC),yC=ne({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),gC=Bn(yC),vC=ne({},Yl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),bC=Bn(vC),SC=[9,13,27,32],Gd=u&&"CompositionEvent"in window,ma=null;u&&"documentMode"in document&&(ma=document.documentMode);var _C=u&&"TextEvent"in window&&!ma,Iy=u&&(!Gd||ma&&8<ma&&11>=ma),ky=" ",Ty=!1;function Ry(i,o){switch(i){case"keyup":return SC.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ey(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ko=!1;function CC(i,o){switch(i){case"compositionend":return Ey(o);case"keypress":return o.which!==32?null:(Ty=!0,ky);case"textInput":return i=o.data,i===ky&&Ty?null:i;default:return null}}function wC(i,o){if(Ko)return i==="compositionend"||!Gd&&Ry(i,o)?(i=Sy(),Wl=zd=Mi=null,Ko=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Iy&&o.locale!=="ko"?null:o.data;default:return null}}var xC={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 Ay(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!xC[i.type]:o==="textarea"}function Py(i,o,l,d){Jm(d),o=ql(o,"onChange"),0<o.length&&(l=new jd("onChange","change",null,l,d),i.push({event:l,listeners:o}))}var ya=null,ga=null;function IC(i){Qy(i,0)}function Kl(i){var o=Zo(i);if(dr(o))return i}function kC(i,o){if(i==="change")return o}var Oy=!1;if(u){var Yd;if(u){var Kd="oninput"in document;if(!Kd){var My=document.createElement("div");My.setAttribute("oninput","return;"),Kd=typeof My.oninput=="function"}Yd=Kd}else Yd=!1;Oy=Yd&&(!document.documentMode||9<document.documentMode)}function Dy(){ya&&(ya.detachEvent("onpropertychange",Ny),ga=ya=null)}function Ny(i){if(i.propertyName==="value"&&Kl(ga)){var o=[];Py(o,ga,i,Td(i)),ty(IC,o)}}function TC(i,o,l){i==="focusin"?(Dy(),ya=o,ga=l,ya.attachEvent("onpropertychange",Ny)):i==="focusout"&&Dy()}function RC(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Kl(ga)}function EC(i,o){if(i==="click")return Kl(o)}function AC(i,o){if(i==="input"||i==="change")return Kl(o)}function PC(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var hr=typeof Object.is=="function"?Object.is:PC;function va(i,o){if(hr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var l=Object.keys(i),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!f.call(o,p)||!hr(i[p],o[p]))return!1}return!0}function By(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ly(i,o){var l=By(i);i=0;for(var d;l;){if(l.nodeType===3){if(d=i+l.textContent.length,i<=o&&d>=o)return{node:l,offset:o-i};i=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=By(l)}}function Fy(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Fy(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function $y(){for(var i=window,o=Dn();o instanceof i.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)i=o.contentWindow;else break;o=Dn(i.document)}return o}function Qd(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function OC(i){var o=$y(),l=i.focusedElem,d=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&Fy(l.ownerDocument.documentElement,l)){if(d!==null&&Qd(l)){if(o=d.start,i=d.end,i===void 0&&(i=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(i,l.value.length);else if(i=(o=l.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var p=l.textContent.length,m=Math.min(d.start,p);d=d.end===void 0?m:Math.min(d.end,p),!i.extend&&m>d&&(p=d,d=m,m=p),p=Ly(l,m);var b=Ly(l,d);p&&b&&(i.rangeCount!==1||i.anchorNode!==p.node||i.anchorOffset!==p.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),i.removeAllRanges(),m>d?(i.addRange(o),i.extend(b.node,b.offset)):(o.setEnd(b.node,b.offset),i.addRange(o)))}}for(o=[],i=l;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)i=o[l],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var MC=u&&"documentMode"in document&&11>=document.documentMode,Qo=null,Xd=null,ba=null,Jd=!1;function zy(i,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jd||Qo==null||Qo!==Dn(d)||(d=Qo,"selectionStart"in d&&Qd(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ba&&va(ba,d)||(ba=d,d=ql(Xd,"onSelect"),0<d.length&&(o=new jd("onSelect","select",null,o,l),i.push({event:o,listeners:d}),o.target=Qo)))}function Ql(i,o){var l={};return l[i.toLowerCase()]=o.toLowerCase(),l["Webkit"+i]="webkit"+o,l["Moz"+i]="moz"+o,l}var Xo={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},qd={},jy={};u&&(jy=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);function Xl(i){if(qd[i])return qd[i];if(!Xo[i])return i;var o=Xo[i],l;for(l in o)if(o.hasOwnProperty(l)&&l in jy)return qd[i]=o[l];return i}var Uy=Xl("animationend"),Vy=Xl("animationiteration"),Wy=Xl("animationstart"),Hy=Xl("transitionend"),Gy=new Map,Yy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Di(i,o){Gy.set(i,o),a(o,[i])}for(var Zd=0;Zd<Yy.length;Zd++){var ef=Yy[Zd],DC=ef.toLowerCase(),NC=ef[0].toUpperCase()+ef.slice(1);Di(DC,"on"+NC)}Di(Uy,"onAnimationEnd"),Di(Vy,"onAnimationIteration"),Di(Wy,"onAnimationStart"),Di("dblclick","onDoubleClick"),Di("focusin","onFocus"),Di("focusout","onBlur"),Di(Hy,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),BC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sa));function Ky(i,o,l){var d=i.type||"unknown-event";i.currentTarget=l,D_(d,o,void 0,i),i.currentTarget=null}function Qy(i,o){o=(o&4)!==0;for(var l=0;l<i.length;l++){var d=i[l],p=d.event;d=d.listeners;e:{var m=void 0;if(o)for(var b=d.length-1;0<=b;b--){var x=d[b],k=x.instance,U=x.currentTarget;if(x=x.listener,k!==m&&p.isPropagationStopped())break e;Ky(p,x,U),m=k}else for(b=0;b<d.length;b++){if(x=d[b],k=x.instance,U=x.currentTarget,x=x.listener,k!==m&&p.isPropagationStopped())break e;Ky(p,x,U),m=k}}}if(Dl)throw i=Pd,Dl=!1,Pd=null,i}function pt(i,o){var l=o[cf];l===void 0&&(l=o[cf]=new Set);var d=i+"__bubble";l.has(d)||(Xy(o,i,2,!1),l.add(d))}function tf(i,o,l){var d=0;o&&(d|=4),Xy(l,i,d,o)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function _a(i){if(!i[Jl]){i[Jl]=!0,r.forEach(function(l){l!=="selectionchange"&&(BC.has(l)||tf(l,!1,i),tf(l,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Jl]||(o[Jl]=!0,tf("selectionchange",!1,o))}}function Xy(i,o,l,d){switch(by(o)){case 1:var p=X_;break;case 4:p=J_;break;default:p=Fd}l=p.bind(null,o,l,i),p=void 0,!Ad||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),d?p!==void 0?i.addEventListener(o,l,{capture:!0,passive:p}):i.addEventListener(o,l,!0):p!==void 0?i.addEventListener(o,l,{passive:p}):i.addEventListener(o,l,!1)}function nf(i,o,l,d,p){var m=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var b=d.tag;if(b===3||b===4){var x=d.stateNode.containerInfo;if(x===p||x.nodeType===8&&x.parentNode===p)break;if(b===4)for(b=d.return;b!==null;){var k=b.tag;if((k===3||k===4)&&(k=b.stateNode.containerInfo,k===p||k.nodeType===8&&k.parentNode===p))return;b=b.return}for(;x!==null;){if(b=yo(x),b===null)return;if(k=b.tag,k===5||k===6){d=m=b;continue e}x=x.parentNode}}d=d.return}ty(function(){var U=m,Q=Td(l),J=[];e:{var K=Gy.get(i);if(K!==void 0){var re=jd,oe=i;switch(i){case"keypress":if(Hl(l)===0)break e;case"keydown":case"keyup":re=fC;break;case"focusin":oe="focus",re=Wd;break;case"focusout":oe="blur",re=Wd;break;case"beforeblur":case"afterblur":re=Wd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=Cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=eC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=mC;break;case Uy:case Vy:case Wy:re=rC;break;case Hy:re=gC;break;case"scroll":re=q_;break;case"wheel":re=bC;break;case"copy":case"cut":case"paste":re=oC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=xy}var se=(o&4)!==0,Et=!se&&i==="scroll",B=se?K!==null?K+"Capture":null:K;se=[];for(var A=U,F;A!==null;){F=A;var ee=F.stateNode;if(F.tag===5&&ee!==null&&(F=ee,B!==null&&(ee=ra(A,B),ee!=null&&se.push(Ca(A,ee,F)))),Et)break;A=A.return}0<se.length&&(K=new re(K,oe,null,l,Q),J.push({event:K,listeners:se}))}}if((o&7)===0){e:{if(K=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",K&&l!==kd&&(oe=l.relatedTarget||l.fromElement)&&(yo(oe)||oe[ni]))break e;if((re||K)&&(K=Q.window===Q?Q:(K=Q.ownerDocument)?K.defaultView||K.parentWindow:window,re?(oe=l.relatedTarget||l.toElement,re=U,oe=oe?yo(oe):null,oe!==null&&(Et=mo(oe),oe!==Et||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(re=null,oe=U),re!==oe)){if(se=Cy,ee="onMouseLeave",B="onMouseEnter",A="mouse",(i==="pointerout"||i==="pointerover")&&(se=xy,ee="onPointerLeave",B="onPointerEnter",A="pointer"),Et=re==null?K:Zo(re),F=oe==null?K:Zo(oe),K=new se(ee,A+"leave",re,l,Q),K.target=Et,K.relatedTarget=F,ee=null,yo(Q)===U&&(se=new se(B,A+"enter",oe,l,Q),se.target=F,se.relatedTarget=Et,ee=se),Et=ee,re&&oe)t:{for(se=re,B=oe,A=0,F=se;F;F=Jo(F))A++;for(F=0,ee=B;ee;ee=Jo(ee))F++;for(;0<A-F;)se=Jo(se),A--;for(;0<F-A;)B=Jo(B),F--;for(;A--;){if(se===B||B!==null&&se===B.alternate)break t;se=Jo(se),B=Jo(B)}se=null}else se=null;re!==null&&Jy(J,K,re,se,!1),oe!==null&&Et!==null&&Jy(J,Et,oe,se,!0)}}e:{if(K=U?Zo(U):window,re=K.nodeName&&K.nodeName.toLowerCase(),re==="select"||re==="input"&&K.type==="file")var le=kC;else if(Ay(K))if(Oy)le=AC;else{le=RC;var pe=TC}else(re=K.nodeName)&&re.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(le=EC);if(le&&(le=le(i,U))){Py(J,le,l,Q);break e}pe&&pe(i,K,U),i==="focusout"&&(pe=K._wrapperState)&&pe.controlled&&K.type==="number"&&Nn(K,"number",K.value)}switch(pe=U?Zo(U):window,i){case"focusin":(Ay(pe)||pe.contentEditable==="true")&&(Qo=pe,Xd=U,ba=null);break;case"focusout":ba=Xd=Qo=null;break;case"mousedown":Jd=!0;break;case"contextmenu":case"mouseup":case"dragend":Jd=!1,zy(J,l,Q);break;case"selectionchange":if(MC)break;case"keydown":case"keyup":zy(J,l,Q)}var he;if(Gd)e:{switch(i){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Ko?Ry(i,l)&&(ye="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Iy&&l.locale!=="ko"&&(Ko||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Ko&&(he=Sy()):(Mi=Q,zd="value"in Mi?Mi.value:Mi.textContent,Ko=!0)),pe=ql(U,ye),0<pe.length&&(ye=new wy(ye,i,null,l,Q),J.push({event:ye,listeners:pe}),he?ye.data=he:(he=Ey(l),he!==null&&(ye.data=he)))),(he=_C?CC(i,l):wC(i,l))&&(U=ql(U,"onBeforeInput"),0<U.length&&(Q=new wy("onBeforeInput","beforeinput",null,l,Q),J.push({event:Q,listeners:U}),Q.data=he))}Qy(J,o)})}function Ca(i,o,l){return{instance:i,listener:o,currentTarget:l}}function ql(i,o){for(var l=o+"Capture",d=[];i!==null;){var p=i,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=ra(i,l),m!=null&&d.unshift(Ca(i,m,p)),m=ra(i,o),m!=null&&d.push(Ca(i,m,p))),i=i.return}return d}function Jo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Jy(i,o,l,d,p){for(var m=o._reactName,b=[];l!==null&&l!==d;){var x=l,k=x.alternate,U=x.stateNode;if(k!==null&&k===d)break;x.tag===5&&U!==null&&(x=U,p?(k=ra(l,m),k!=null&&b.unshift(Ca(l,k,x))):p||(k=ra(l,m),k!=null&&b.push(Ca(l,k,x)))),l=l.return}b.length!==0&&i.push({event:o,listeners:b})}var LC=/\r\n?/g,FC=/\u0000|\uFFFD/g;function qy(i){return(typeof i=="string"?i:""+i).replace(LC,`
|
38
|
+
`).replace(FC,"")}function Zl(i,o,l){if(o=qy(o),qy(i)!==o&&l)throw Error(n(425))}function ec(){}var rf=null,of=null;function sf(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var af=typeof setTimeout=="function"?setTimeout:void 0,$C=typeof clearTimeout=="function"?clearTimeout:void 0,Zy=typeof Promise=="function"?Promise:void 0,zC=typeof queueMicrotask=="function"?queueMicrotask:typeof Zy<"u"?function(i){return Zy.resolve(null).then(i).catch(jC)}:af;function jC(i){setTimeout(function(){throw i})}function lf(i,o){var l=o,d=0;do{var p=l.nextSibling;if(i.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(d===0){i.removeChild(p),fa(o);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=p}while(l);fa(o)}function Ni(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return i}function eg(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return i;o--}else l==="/$"&&o++}i=i.previousSibling}return null}var qo=Math.random().toString(36).slice(2),Rr="__reactFiber$"+qo,wa="__reactProps$"+qo,ni="__reactContainer$"+qo,cf="__reactEvents$"+qo,UC="__reactListeners$"+qo,VC="__reactHandles$"+qo;function yo(i){var o=i[Rr];if(o)return o;for(var l=i.parentNode;l;){if(o=l[ni]||l[Rr]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(i=eg(i);i!==null;){if(l=i[Rr])return l;i=eg(i)}return o}i=l,l=i.parentNode}return null}function xa(i){return i=i[Rr]||i[ni],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Zo(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function tc(i){return i[wa]||null}var uf=[],es=-1;function Bi(i){return{current:i}}function ht(i){0>es||(i.current=uf[es],uf[es]=null,es--)}function dt(i,o){es++,uf[es]=i.current,i.current=o}var Li={},qt=Bi(Li),gn=Bi(!1),go=Li;function ts(i,o){var l=i.type.contextTypes;if(!l)return Li;var d=i.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=p),p}function vn(i){return i=i.childContextTypes,i!=null}function nc(){ht(gn),ht(qt)}function tg(i,o,l){if(qt.current!==Li)throw Error(n(168));dt(qt,o),dt(gn,l)}function ng(i,o,l){var d=i.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var p in d)if(!(p in o))throw Error(n(108,$e(i)||"Unknown",p));return ne({},l,d)}function rc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Li,go=qt.current,dt(qt,i),dt(gn,gn.current),!0}function rg(i,o,l){var d=i.stateNode;if(!d)throw Error(n(169));l?(i=ng(i,o,go),d.__reactInternalMemoizedMergedChildContext=i,ht(gn),ht(qt),dt(qt,i)):ht(gn),dt(gn,l)}var ri=null,ic=!1,df=!1;function ig(i){ri===null?ri=[i]:ri.push(i)}function WC(i){ic=!0,ig(i)}function Fi(){if(!df&&ri!==null){df=!0;var i=0,o=nt;try{var l=ri;for(nt=1;i<l.length;i++){var d=l[i];do d=d(!0);while(d!==null)}ri=null,ic=!1}catch(p){throw ri!==null&&(ri=ri.slice(i+1)),sy(Od,Fi),p}finally{nt=o,df=!1}}return null}var ns=[],rs=0,oc=null,sc=0,Kn=[],Qn=0,vo=null,ii=1,oi="";function bo(i,o){ns[rs++]=sc,ns[rs++]=oc,oc=i,sc=o}function og(i,o,l){Kn[Qn++]=ii,Kn[Qn++]=oi,Kn[Qn++]=vo,vo=i;var d=ii;i=oi;var p=32-pr(d)-1;d&=~(1<<p),l+=1;var m=32-pr(o)+p;if(30<m){var b=p-p%5;m=(d&(1<<b)-1).toString(32),d>>=b,p-=b,ii=1<<32-pr(o)+p|l<<p|d,oi=m+i}else ii=1<<m|l<<p|d,oi=i}function ff(i){i.return!==null&&(bo(i,1),og(i,1,0))}function pf(i){for(;i===oc;)oc=ns[--rs],ns[rs]=null,sc=ns[--rs],ns[rs]=null;for(;i===vo;)vo=Kn[--Qn],Kn[Qn]=null,oi=Kn[--Qn],Kn[Qn]=null,ii=Kn[--Qn],Kn[Qn]=null}var Ln=null,Fn=null,yt=!1,mr=null;function sg(i,o){var l=Zn(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=i,o=i.deletions,o===null?(i.deletions=[l],i.flags|=16):o.push(l)}function ag(i,o){switch(i.tag){case 5:var l=i.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,Ln=i,Fn=Ni(o.firstChild),!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,Ln=i,Fn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=vo!==null?{id:ii,overflow:oi}:null,i.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Zn(18,null,null,0),l.stateNode=o,l.return=i,i.child=l,Ln=i,Fn=null,!0):!1;default:return!1}}function hf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function mf(i){if(yt){var o=Fn;if(o){var l=o;if(!ag(i,o)){if(hf(i))throw Error(n(418));o=Ni(l.nextSibling);var d=Ln;o&&ag(i,o)?sg(d,l):(i.flags=i.flags&-4097|2,yt=!1,Ln=i)}}else{if(hf(i))throw Error(n(418));i.flags=i.flags&-4097|2,yt=!1,Ln=i}}}function lg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ln=i}function ac(i){if(i!==Ln)return!1;if(!yt)return lg(i),yt=!0,!1;var o;if((o=i.tag!==3)&&!(o=i.tag!==5)&&(o=i.type,o=o!=="head"&&o!=="body"&&!sf(i.type,i.memoizedProps)),o&&(o=Fn)){if(hf(i))throw cg(),Error(n(418));for(;o;)sg(i,o),o=Ni(o.nextSibling)}if(lg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"){if(o===0){Fn=Ni(i.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}i=i.nextSibling}Fn=null}}else Fn=Ln?Ni(i.stateNode.nextSibling):null;return!0}function cg(){for(var i=Fn;i;)i=Ni(i.nextSibling)}function is(){Fn=Ln=null,yt=!1}function yf(i){mr===null?mr=[i]:mr.push(i)}var HC=E.ReactCurrentBatchConfig;function Ia(i,o,l){if(i=l.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,i));var p=d,m=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(b){var x=p.refs;b===null?delete x[m]:x[m]=b},o._stringRef=m,o)}if(typeof i!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,i))}return i}function lc(i,o){throw i=Object.prototype.toString.call(o),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function ug(i){var o=i._init;return o(i._payload)}function dg(i){function o(B,A){if(i){var F=B.deletions;F===null?(B.deletions=[A],B.flags|=16):F.push(A)}}function l(B,A){if(!i)return null;for(;A!==null;)o(B,A),A=A.sibling;return null}function d(B,A){for(B=new Map;A!==null;)A.key!==null?B.set(A.key,A):B.set(A.index,A),A=A.sibling;return B}function p(B,A){return B=Gi(B,A),B.index=0,B.sibling=null,B}function m(B,A,F){return B.index=F,i?(F=B.alternate,F!==null?(F=F.index,F<A?(B.flags|=2,A):F):(B.flags|=2,A)):(B.flags|=1048576,A)}function b(B){return i&&B.alternate===null&&(B.flags|=2),B}function x(B,A,F,ee){return A===null||A.tag!==6?(A=ap(F,B.mode,ee),A.return=B,A):(A=p(A,F),A.return=B,A)}function k(B,A,F,ee){var le=F.type;return le===M?Q(B,A,F.props.children,ee,F.key):A!==null&&(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===de&&ug(le)===A.type)?(ee=p(A,F.props),ee.ref=Ia(B,A,F),ee.return=B,ee):(ee=Oc(F.type,F.key,F.props,null,B.mode,ee),ee.ref=Ia(B,A,F),ee.return=B,ee)}function U(B,A,F,ee){return A===null||A.tag!==4||A.stateNode.containerInfo!==F.containerInfo||A.stateNode.implementation!==F.implementation?(A=lp(F,B.mode,ee),A.return=B,A):(A=p(A,F.children||[]),A.return=B,A)}function Q(B,A,F,ee,le){return A===null||A.tag!==7?(A=To(F,B.mode,ee,le),A.return=B,A):(A=p(A,F),A.return=B,A)}function J(B,A,F){if(typeof A=="string"&&A!==""||typeof A=="number")return A=ap(""+A,B.mode,F),A.return=B,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return F=Oc(A.type,A.key,A.props,null,B.mode,F),F.ref=Ia(B,null,A),F.return=B,F;case z:return A=lp(A,B.mode,F),A.return=B,A;case de:var ee=A._init;return J(B,ee(A._payload),F)}if(Xt(A)||te(A))return A=To(A,B.mode,F,null),A.return=B,A;lc(B,A)}return null}function K(B,A,F,ee){var le=A!==null?A.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return le!==null?null:x(B,A,""+F,ee);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case O:return F.key===le?k(B,A,F,ee):null;case z:return F.key===le?U(B,A,F,ee):null;case de:return le=F._init,K(B,A,le(F._payload),ee)}if(Xt(F)||te(F))return le!==null?null:Q(B,A,F,ee,null);lc(B,F)}return null}function re(B,A,F,ee,le){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return B=B.get(F)||null,x(A,B,""+ee,le);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case O:return B=B.get(ee.key===null?F:ee.key)||null,k(A,B,ee,le);case z:return B=B.get(ee.key===null?F:ee.key)||null,U(A,B,ee,le);case de:var pe=ee._init;return re(B,A,F,pe(ee._payload),le)}if(Xt(ee)||te(ee))return B=B.get(F)||null,Q(A,B,ee,le,null);lc(A,ee)}return null}function oe(B,A,F,ee){for(var le=null,pe=null,he=A,ye=A=0,Wt=null;he!==null&&ye<F.length;ye++){he.index>ye?(Wt=he,he=null):Wt=he.sibling;var Ge=K(B,he,F[ye],ee);if(Ge===null){he===null&&(he=Wt);break}i&&he&&Ge.alternate===null&&o(B,he),A=m(Ge,A,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge,he=Wt}if(ye===F.length)return l(B,he),yt&&bo(B,ye),le;if(he===null){for(;ye<F.length;ye++)he=J(B,F[ye],ee),he!==null&&(A=m(he,A,ye),pe===null?le=he:pe.sibling=he,pe=he);return yt&&bo(B,ye),le}for(he=d(B,he);ye<F.length;ye++)Wt=re(he,B,ye,F[ye],ee),Wt!==null&&(i&&Wt.alternate!==null&&he.delete(Wt.key===null?ye:Wt.key),A=m(Wt,A,ye),pe===null?le=Wt:pe.sibling=Wt,pe=Wt);return i&&he.forEach(function(Yi){return o(B,Yi)}),yt&&bo(B,ye),le}function se(B,A,F,ee){var le=te(F);if(typeof le!="function")throw Error(n(150));if(F=le.call(F),F==null)throw Error(n(151));for(var pe=le=null,he=A,ye=A=0,Wt=null,Ge=F.next();he!==null&&!Ge.done;ye++,Ge=F.next()){he.index>ye?(Wt=he,he=null):Wt=he.sibling;var Yi=K(B,he,Ge.value,ee);if(Yi===null){he===null&&(he=Wt);break}i&&he&&Yi.alternate===null&&o(B,he),A=m(Yi,A,ye),pe===null?le=Yi:pe.sibling=Yi,pe=Yi,he=Wt}if(Ge.done)return l(B,he),yt&&bo(B,ye),le;if(he===null){for(;!Ge.done;ye++,Ge=F.next())Ge=J(B,Ge.value,ee),Ge!==null&&(A=m(Ge,A,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge);return yt&&bo(B,ye),le}for(he=d(B,he);!Ge.done;ye++,Ge=F.next())Ge=re(he,B,ye,Ge.value,ee),Ge!==null&&(i&&Ge.alternate!==null&&he.delete(Ge.key===null?ye:Ge.key),A=m(Ge,A,ye),pe===null?le=Ge:pe.sibling=Ge,pe=Ge);return i&&he.forEach(function(xw){return o(B,xw)}),yt&&bo(B,ye),le}function Et(B,A,F,ee){if(typeof F=="object"&&F!==null&&F.type===M&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case O:e:{for(var le=F.key,pe=A;pe!==null;){if(pe.key===le){if(le=F.type,le===M){if(pe.tag===7){l(B,pe.sibling),A=p(pe,F.props.children),A.return=B,B=A;break e}}else if(pe.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===de&&ug(le)===pe.type){l(B,pe.sibling),A=p(pe,F.props),A.ref=Ia(B,pe,F),A.return=B,B=A;break e}l(B,pe);break}else o(B,pe);pe=pe.sibling}F.type===M?(A=To(F.props.children,B.mode,ee,F.key),A.return=B,B=A):(ee=Oc(F.type,F.key,F.props,null,B.mode,ee),ee.ref=Ia(B,A,F),ee.return=B,B=ee)}return b(B);case z:e:{for(pe=F.key;A!==null;){if(A.key===pe)if(A.tag===4&&A.stateNode.containerInfo===F.containerInfo&&A.stateNode.implementation===F.implementation){l(B,A.sibling),A=p(A,F.children||[]),A.return=B,B=A;break e}else{l(B,A);break}else o(B,A);A=A.sibling}A=lp(F,B.mode,ee),A.return=B,B=A}return b(B);case de:return pe=F._init,Et(B,A,pe(F._payload),ee)}if(Xt(F))return oe(B,A,F,ee);if(te(F))return se(B,A,F,ee);lc(B,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,A!==null&&A.tag===6?(l(B,A.sibling),A=p(A,F),A.return=B,B=A):(l(B,A),A=ap(F,B.mode,ee),A.return=B,B=A),b(B)):l(B,A)}return Et}var os=dg(!0),fg=dg(!1),cc=Bi(null),uc=null,ss=null,gf=null;function vf(){gf=ss=uc=null}function bf(i){var o=cc.current;ht(cc),i._currentValue=o}function Sf(i,o,l){for(;i!==null;){var d=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),i===l)break;i=i.return}}function as(i,o){uc=i,gf=ss=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(bn=!0),i.firstContext=null)}function Xn(i){var o=i._currentValue;if(gf!==i)if(i={context:i,memoizedValue:o,next:null},ss===null){if(uc===null)throw Error(n(308));ss=i,uc.dependencies={lanes:0,firstContext:i}}else ss=ss.next=i;return o}var So=null;function _f(i){So===null?So=[i]:So.push(i)}function pg(i,o,l,d){var p=o.interleaved;return p===null?(l.next=l,_f(o)):(l.next=p.next,p.next=l),o.interleaved=l,si(i,d)}function si(i,o){i.lanes|=o;var l=i.alternate;for(l!==null&&(l.lanes|=o),l=i,i=i.return;i!==null;)i.childLanes|=o,l=i.alternate,l!==null&&(l.childLanes|=o),l=i,i=i.return;return l.tag===3?l.stateNode:null}var $i=!1;function Cf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ai(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function zi(i,o,l){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(We&2)!==0){var p=d.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),d.pending=o,si(i,l)}return p=d.interleaved,p===null?(o.next=o,_f(d)):(o.next=p.next,p.next=o),d.interleaved=o,si(i,l)}function dc(i,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Nd(i,l)}}function mg(i,o){var l=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var b={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=b:m=m.next=b,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:d.shared,effects:d.effects},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=o:i.next=o,l.lastBaseUpdate=o}function fc(i,o,l,d){var p=i.updateQueue;$i=!1;var m=p.firstBaseUpdate,b=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var k=x,U=k.next;k.next=null,b===null?m=U:b.next=U,b=k;var Q=i.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==b&&(x===null?Q.firstBaseUpdate=U:x.next=U,Q.lastBaseUpdate=k))}if(m!==null){var J=p.baseState;b=0,Q=U=k=null,x=m;do{var K=x.lane,re=x.eventTime;if((d&K)===K){Q!==null&&(Q=Q.next={eventTime:re,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var oe=i,se=x;switch(K=o,re=l,se.tag){case 1:if(oe=se.payload,typeof oe=="function"){J=oe.call(re,J,K);break e}J=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=se.payload,K=typeof oe=="function"?oe.call(re,J,K):oe,K==null)break e;J=ne({},J,K);break e;case 2:$i=!0}}x.callback!==null&&x.lane!==0&&(i.flags|=64,K=p.effects,K===null?p.effects=[x]:K.push(x))}else re={eventTime:re,lane:K,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(U=Q=re,k=J):Q=Q.next=re,b|=K;if(x=x.next,x===null){if(x=p.shared.pending,x===null)break;K=x,x=K.next,K.next=null,p.lastBaseUpdate=K,p.shared.pending=null}}while(!0);if(Q===null&&(k=J),p.baseState=k,p.firstBaseUpdate=U,p.lastBaseUpdate=Q,o=p.shared.interleaved,o!==null){p=o;do b|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);wo|=b,i.lanes=b,i.memoizedState=J}}function yg(i,o,l){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var d=i[o],p=d.callback;if(p!==null){if(d.callback=null,d=l,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var ka={},Er=Bi(ka),Ta=Bi(ka),Ra=Bi(ka);function _o(i){if(i===ka)throw Error(n(174));return i}function wf(i,o){switch(dt(Ra,o),dt(Ta,i),dt(Er,ka),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ti(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=ti(o,i)}ht(Er),dt(Er,o)}function ls(){ht(Er),ht(Ta),ht(Ra)}function gg(i){_o(Ra.current);var o=_o(Er.current),l=ti(o,i.type);o!==l&&(dt(Ta,i),dt(Er,l))}function xf(i){Ta.current===i&&(ht(Er),ht(Ta))}var bt=Bi(0);function pc(i){for(var o=i;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var If=[];function kf(){for(var i=0;i<If.length;i++)If[i]._workInProgressVersionPrimary=null;If.length=0}var hc=E.ReactCurrentDispatcher,Tf=E.ReactCurrentBatchConfig,Co=0,St=null,Lt=null,Ut=null,mc=!1,Ea=!1,Aa=0,GC=0;function Zt(){throw Error(n(321))}function Rf(i,o){if(o===null)return!1;for(var l=0;l<o.length&&l<i.length;l++)if(!hr(i[l],o[l]))return!1;return!0}function Ef(i,o,l,d,p,m){if(Co=m,St=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,hc.current=i===null||i.memoizedState===null?XC:JC,i=l(d,p),Ea){m=0;do{if(Ea=!1,Aa=0,25<=m)throw Error(n(301));m+=1,Ut=Lt=null,o.updateQueue=null,hc.current=qC,i=l(d,p)}while(Ea)}if(hc.current=vc,o=Lt!==null&&Lt.next!==null,Co=0,Ut=Lt=St=null,mc=!1,o)throw Error(n(300));return i}function Af(){var i=Aa!==0;return Aa=0,i}function Ar(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?St.memoizedState=Ut=i:Ut=Ut.next=i,Ut}function Jn(){if(Lt===null){var i=St.alternate;i=i!==null?i.memoizedState:null}else i=Lt.next;var o=Ut===null?St.memoizedState:Ut.next;if(o!==null)Ut=o,Lt=i;else{if(i===null)throw Error(n(310));Lt=i,i={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Ut===null?St.memoizedState=Ut=i:Ut=Ut.next=i}return Ut}function Pa(i,o){return typeof o=="function"?o(i):o}function Pf(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=Lt,p=d.baseQueue,m=l.pending;if(m!==null){if(p!==null){var b=p.next;p.next=m.next,m.next=b}d.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,d=d.baseState;var x=b=null,k=null,U=m;do{var Q=U.lane;if((Co&Q)===Q)k!==null&&(k=k.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),d=U.hasEagerState?U.eagerState:i(d,U.action);else{var J={lane:Q,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};k===null?(x=k=J,b=d):k=k.next=J,St.lanes|=Q,wo|=Q}U=U.next}while(U!==null&&U!==m);k===null?b=d:k.next=x,hr(d,o.memoizedState)||(bn=!0),o.memoizedState=d,o.baseState=b,o.baseQueue=k,l.lastRenderedState=d}if(i=l.interleaved,i!==null){p=i;do m=p.lane,St.lanes|=m,wo|=m,p=p.next;while(p!==i)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Of(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var b=p=p.next;do m=i(m,b.action),b=b.next;while(b!==p);hr(m,o.memoizedState)||(bn=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,d]}function vg(){}function bg(i,o){var l=St,d=Jn(),p=o(),m=!hr(d.memoizedState,p);if(m&&(d.memoizedState=p,bn=!0),d=d.queue,Mf(Cg.bind(null,l,d,i),[i]),d.getSnapshot!==o||m||Ut!==null&&Ut.memoizedState.tag&1){if(l.flags|=2048,Oa(9,_g.bind(null,l,d,p,o),void 0,null),Vt===null)throw Error(n(349));(Co&30)!==0||Sg(l,o,p)}return p}function Sg(i,o,l){i.flags|=16384,i={getSnapshot:o,value:l},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.stores=[i]):(l=o.stores,l===null?o.stores=[i]:l.push(i))}function _g(i,o,l,d){o.value=l,o.getSnapshot=d,wg(o)&&xg(i)}function Cg(i,o,l){return l(function(){wg(o)&&xg(i)})}function wg(i){var o=i.getSnapshot;i=i.value;try{var l=o();return!hr(i,l)}catch{return!0}}function xg(i){var o=si(i,1);o!==null&&br(o,i,1,-1)}function Ig(i){var o=Ar();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:i},o.queue=i,i=i.dispatch=QC.bind(null,St,i),[o.memoizedState,i]}function Oa(i,o,l,d){return i={tag:i,create:o,destroy:l,deps:d,next:null},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.lastEffect=i.next=i):(l=o.lastEffect,l===null?o.lastEffect=i.next=i:(d=l.next,l.next=i,i.next=d,o.lastEffect=i)),i}function kg(){return Jn().memoizedState}function yc(i,o,l,d){var p=Ar();St.flags|=i,p.memoizedState=Oa(1|o,l,void 0,d===void 0?null:d)}function gc(i,o,l,d){var p=Jn();d=d===void 0?null:d;var m=void 0;if(Lt!==null){var b=Lt.memoizedState;if(m=b.destroy,d!==null&&Rf(d,b.deps)){p.memoizedState=Oa(o,l,m,d);return}}St.flags|=i,p.memoizedState=Oa(1|o,l,m,d)}function Tg(i,o){return yc(8390656,8,i,o)}function Mf(i,o){return gc(2048,8,i,o)}function Rg(i,o){return gc(4,2,i,o)}function Eg(i,o){return gc(4,4,i,o)}function Ag(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Pg(i,o,l){return l=l!=null?l.concat([i]):null,gc(4,4,Ag.bind(null,o,i),l)}function Df(){}function Og(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Rf(o,d[1])?d[0]:(l.memoizedState=[i,o],i)}function Mg(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Rf(o,d[1])?d[0]:(i=i(),l.memoizedState=[i,o],i)}function Dg(i,o,l){return(Co&21)===0?(i.baseState&&(i.baseState=!1,bn=!0),i.memoizedState=l):(hr(l,o)||(l=uy(),St.lanes|=l,wo|=l,i.baseState=!0),o)}function YC(i,o){var l=nt;nt=l!==0&&4>l?l:4,i(!0);var d=Tf.transition;Tf.transition={};try{i(!1),o()}finally{nt=l,Tf.transition=d}}function Ng(){return Jn().memoizedState}function KC(i,o,l){var d=Wi(i);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Bg(i))Lg(o,l);else if(l=pg(i,o,l,d),l!==null){var p=un();br(l,i,d,p),Fg(l,o,d)}}function QC(i,o,l){var d=Wi(i),p={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bg(i))Lg(o,p);else{var m=i.alternate;if(i.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var b=o.lastRenderedState,x=m(b,l);if(p.hasEagerState=!0,p.eagerState=x,hr(x,b)){var k=o.interleaved;k===null?(p.next=p,_f(o)):(p.next=k.next,k.next=p),o.interleaved=p;return}}catch{}finally{}l=pg(i,o,p,d),l!==null&&(p=un(),br(l,i,d,p),Fg(l,o,d))}}function Bg(i){var o=i.alternate;return i===St||o!==null&&o===St}function Lg(i,o){Ea=mc=!0;var l=i.pending;l===null?o.next=o:(o.next=l.next,l.next=o),i.pending=o}function Fg(i,o,l){if((l&4194240)!==0){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Nd(i,l)}}var vc={readContext:Xn,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},XC={readContext:Xn,useCallback:function(i,o){return Ar().memoizedState=[i,o===void 0?null:o],i},useContext:Xn,useEffect:Tg,useImperativeHandle:function(i,o,l){return l=l!=null?l.concat([i]):null,yc(4194308,4,Ag.bind(null,o,i),l)},useLayoutEffect:function(i,o){return yc(4194308,4,i,o)},useInsertionEffect:function(i,o){return yc(4,2,i,o)},useMemo:function(i,o){var l=Ar();return o=o===void 0?null:o,i=i(),l.memoizedState=[i,o],i},useReducer:function(i,o,l){var d=Ar();return o=l!==void 0?l(o):o,d.memoizedState=d.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},d.queue=i,i=i.dispatch=KC.bind(null,St,i),[d.memoizedState,i]},useRef:function(i){var o=Ar();return i={current:i},o.memoizedState=i},useState:Ig,useDebugValue:Df,useDeferredValue:function(i){return Ar().memoizedState=i},useTransition:function(){var i=Ig(!1),o=i[0];return i=YC.bind(null,i[1]),Ar().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,l){var d=St,p=Ar();if(yt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),Vt===null)throw Error(n(349));(Co&30)!==0||Sg(d,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,Tg(Cg.bind(null,d,m,i),[i]),d.flags|=2048,Oa(9,_g.bind(null,d,m,l,o),void 0,null),l},useId:function(){var i=Ar(),o=Vt.identifierPrefix;if(yt){var l=oi,d=ii;l=(d&~(1<<32-pr(d)-1)).toString(32)+l,o=":"+o+"R"+l,l=Aa++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=GC++,o=":"+o+"r"+l.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},JC={readContext:Xn,useCallback:Og,useContext:Xn,useEffect:Mf,useImperativeHandle:Pg,useInsertionEffect:Rg,useLayoutEffect:Eg,useMemo:Mg,useReducer:Pf,useRef:kg,useState:function(){return Pf(Pa)},useDebugValue:Df,useDeferredValue:function(i){var o=Jn();return Dg(o,Lt.memoizedState,i)},useTransition:function(){var i=Pf(Pa)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:vg,useSyncExternalStore:bg,useId:Ng,unstable_isNewReconciler:!1},qC={readContext:Xn,useCallback:Og,useContext:Xn,useEffect:Mf,useImperativeHandle:Pg,useInsertionEffect:Rg,useLayoutEffect:Eg,useMemo:Mg,useReducer:Of,useRef:kg,useState:function(){return Of(Pa)},useDebugValue:Df,useDeferredValue:function(i){var o=Jn();return Lt===null?o.memoizedState=i:Dg(o,Lt.memoizedState,i)},useTransition:function(){var i=Of(Pa)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:vg,useSyncExternalStore:bg,useId:Ng,unstable_isNewReconciler:!1};function yr(i,o){if(i&&i.defaultProps){o=ne({},o),i=i.defaultProps;for(var l in i)o[l]===void 0&&(o[l]=i[l]);return o}return o}function Nf(i,o,l,d){o=i.memoizedState,l=l(d,o),l=l==null?o:ne({},o,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var bc={isMounted:function(i){return(i=i._reactInternals)?mo(i)===i:!1},enqueueSetState:function(i,o,l){i=i._reactInternals;var d=un(),p=Wi(i),m=ai(d,p);m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(br(o,i,p,d),dc(o,i,p))},enqueueReplaceState:function(i,o,l){i=i._reactInternals;var d=un(),p=Wi(i),m=ai(d,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(br(o,i,p,d),dc(o,i,p))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var l=un(),d=Wi(i),p=ai(l,d);p.tag=2,o!=null&&(p.callback=o),o=zi(i,p,d),o!==null&&(br(o,i,d,l),dc(o,i,d))}};function $g(i,o,l,d,p,m,b){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,m,b):o.prototype&&o.prototype.isPureReactComponent?!va(l,d)||!va(p,m):!0}function zg(i,o,l){var d=!1,p=Li,m=o.contextType;return typeof m=="object"&&m!==null?m=Xn(m):(p=vn(o)?go:qt.current,d=o.contextTypes,m=(d=d!=null)?ts(i,p):Li),o=new o(l,m),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=bc,i.stateNode=o,o._reactInternals=i,d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=p,i.__reactInternalMemoizedMaskedChildContext=m),o}function jg(i,o,l,d){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==i&&bc.enqueueReplaceState(o,o.state,null)}function Bf(i,o,l,d){var p=i.stateNode;p.props=l,p.state=i.memoizedState,p.refs={},Cf(i);var m=o.contextType;typeof m=="object"&&m!==null?p.context=Xn(m):(m=vn(o)?go:qt.current,p.context=ts(i,m)),p.state=i.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(Nf(i,o,m,l),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&bc.enqueueReplaceState(p,p.state,null),fc(i,l,p,d),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308)}function cs(i,o){try{var l="",d=o;do l+=De(d),d=d.return;while(d);var p=l}catch(m){p=`
|
39
39
|
Error generating stack: `+m.message+`
|
40
|
-
`+m.stack}return{value:i,source:o,stack:p,digest:null}}function Ff(i,o,l){return{value:i,source:null,stack:l??null,digest:o??null}}function $f(i,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var JC=typeof WeakMap=="function"?WeakMap:Map;function jg(i,o,l){l=ai(-1,l),l.tag=3,l.payload={element:null};var d=o.value;return l.callback=function(){kc||(kc=!0,ep=d),$f(i,o)},l}function Ug(i,o,l){l=ai(-1,l),l.tag=3;var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;l.payload=function(){return d(p)},l.callback=function(){$f(i,o)}}var m=i.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){$f(i,o),typeof d!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})}),l}function Vg(i,o,l){var d=i.pingCache;if(d===null){d=i.pingCache=new JC;var p=new Set;d.set(o,p)}else p=d.get(o),p===void 0&&(p=new Set,d.set(o,p));p.has(l)||(p.add(l),i=dw.bind(null,i,o,l),o.then(i,i))}function Wg(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function Hg(i,o,l,d,p){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=ai(-1,1),o.tag=2,zi(l,o,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=p,i)}var qC=A.ReactCurrentOwner,bn=!1;function cn(i,o,l,d){o.child=i===null?dg(o,null,l,d):os(o,i.child,l,d)}function Gg(i,o,l,d,p){l=l.render;var m=o.ref;return as(o,p),d=Af(i,o,l,d,m,p),l=Pf(),i!==null&&!bn?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,li(i,o,p)):(yt&&l&&pf(o),o.flags|=1,cn(i,o,d,p),o.child)}function Yg(i,o,l,d,p){if(i===null){var m=l.type;return typeof m=="function"&&!ap(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,Kg(i,o,m,d,p)):(i=Oc(l.type,null,d,o,o.mode,p),i.ref=o.ref,i.return=o,o.child=i)}if(m=i.child,(i.lanes&p)===0){var b=m.memoizedProps;if(l=l.compare,l=l!==null?l:va,l(b,d)&&i.ref===o.ref)return li(i,o,p)}return o.flags|=1,i=Gi(m,d),i.ref=o.ref,i.return=o,o.child=i}function Kg(i,o,l,d,p){if(i!==null){var m=i.memoizedProps;if(va(m,d)&&i.ref===o.ref)if(bn=!1,o.pendingProps=d=m,(i.lanes&p)!==0)(i.flags&131072)!==0&&(bn=!0);else return o.lanes=i.lanes,li(i,o,p)}return zf(i,o,l,d,p)}function Qg(i,o,l){var d=o.pendingProps,p=d.children,m=i!==null?i.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},dt(ds,$n),$n|=l;else{if((l&1073741824)===0)return i=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,dt(ds,$n),$n|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:l,dt(ds,$n),$n|=d}else m!==null?(d=m.baseLanes|l,o.memoizedState=null):d=l,dt(ds,$n),$n|=d;return cn(i,o,p,l),o.child}function Xg(i,o){var l=o.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function zf(i,o,l,d,p){var m=vn(l)?go:qt.current;return m=ts(o,m),as(o,p),l=Af(i,o,l,d,m,p),d=Pf(),i!==null&&!bn?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,li(i,o,p)):(yt&&d&&pf(o),o.flags|=1,cn(i,o,l,p),o.child)}function Jg(i,o,l,d,p){if(vn(l)){var m=!0;rc(o)}else m=!1;if(as(o,p),o.stateNode===null)_c(i,o),$g(o,l,d),Lf(o,l,d,p),d=!0;else if(i===null){var b=o.stateNode,x=o.memoizedProps;b.props=x;var k=b.context,U=l.contextType;typeof U=="object"&&U!==null?U=Xn(U):(U=vn(l)?go:qt.current,U=ts(o,U));var Q=l.getDerivedStateFromProps,J=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";J||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==d||k!==U)&&zg(o,b,d,U),$i=!1;var K=o.memoizedState;b.state=K,fc(o,d,b,p),k=o.memoizedState,x!==d||K!==k||gn.current||$i?(typeof Q=="function"&&(Bf(o,l,Q,d),k=o.memoizedState),(x=$i||Fg(o,l,x,d,K,k,U))?(J||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=k),b.props=d,b.state=k,b.context=U,d=x):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{b=o.stateNode,pg(i,o),x=o.memoizedProps,U=o.type===o.elementType?x:yr(o.type,x),b.props=U,J=o.pendingProps,K=b.context,k=l.contextType,typeof k=="object"&&k!==null?k=Xn(k):(k=vn(l)?go:qt.current,k=ts(o,k));var re=l.getDerivedStateFromProps;(Q=typeof re=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==J||K!==k)&&zg(o,b,d,k),$i=!1,K=o.memoizedState,b.state=K,fc(o,d,b,p);var oe=o.memoizedState;x!==J||K!==oe||gn.current||$i?(typeof re=="function"&&(Bf(o,l,re,d),oe=o.memoizedState),(U=$i||Fg(o,l,U,d,K,oe,k)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,oe,k),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,oe,k)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=oe),b.props=d,b.state=oe,b.context=k,d=U):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),d=!1)}return jf(i,o,l,d,m,p)}function jf(i,o,l,d,p,m){Xg(i,o);var b=(o.flags&128)!==0;if(!d&&!b)return p&&ng(o,l,!1),li(i,o,m);d=o.stateNode,qC.current=o;var x=b&&typeof l.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,i!==null&&b?(o.child=os(o,i.child,null,m),o.child=os(o,null,x,m)):cn(i,o,x,m),o.memoizedState=d.state,p&&ng(o,l,!0),o.child}function qg(i){var o=i.stateNode;o.pendingContext?eg(i,o.pendingContext,o.pendingContext!==o.context):o.context&&eg(i,o.context,!1),xf(i,o.containerInfo)}function Zg(i,o,l,d,p){return is(),gf(p),o.flags|=256,cn(i,o,l,d),o.child}var Uf={dehydrated:null,treeContext:null,retryLane:0};function Vf(i){return{baseLanes:i,cachePool:null,transitions:null}}function e0(i,o,l){var d=o.pendingProps,p=bt.current,m=!1,b=(o.flags&128)!==0,x;if((x=b)||(x=i!==null&&i.memoizedState===null?!1:(p&2)!==0),x?(m=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(p|=1),dt(bt,p&1),i===null)return yf(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(b=d.children,i=d.fallback,m?(d=o.mode,m=o.child,b={mode:"hidden",children:b},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=b):m=Mc(b,d,0,null),i=To(i,d,l,null),m.return=o,i.return=o,m.sibling=i,o.child=m,o.child.memoizedState=Vf(l),o.memoizedState=Uf,i):Wf(o,b));if(p=i.memoizedState,p!==null&&(x=p.dehydrated,x!==null))return ZC(i,o,b,d,x,p,l);if(m){m=d.fallback,b=o.mode,p=i.child,x=p.sibling;var k={mode:"hidden",children:d.children};return(b&1)===0&&o.child!==p?(d=o.child,d.childLanes=0,d.pendingProps=k,o.deletions=null):(d=Gi(p,k),d.subtreeFlags=p.subtreeFlags&14680064),x!==null?m=Gi(x,m):(m=To(m,b,l,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,b=i.child.memoizedState,b=b===null?Vf(l):{baseLanes:b.baseLanes|l,cachePool:null,transitions:b.transitions},m.memoizedState=b,m.childLanes=i.childLanes&~l,o.memoizedState=Uf,d}return m=i.child,i=m.sibling,d=Gi(m,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=l),d.return=o,d.sibling=null,i!==null&&(l=o.deletions,l===null?(o.deletions=[i],o.flags|=16):l.push(i)),o.child=d,o.memoizedState=null,d}function Wf(i,o){return o=Mc({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function Sc(i,o,l,d){return d!==null&&gf(d),os(o,i.child,null,l),i=Wf(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function ZC(i,o,l,d,p,m,b){if(l)return o.flags&256?(o.flags&=-257,d=Ff(Error(n(422))),Sc(i,o,b,d)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(m=d.fallback,p=o.mode,d=Mc({mode:"visible",children:d.children},p,0,null),m=To(m,p,b,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,(o.mode&1)!==0&&os(o,i.child,null,b),o.child.memoizedState=Vf(b),o.memoizedState=Uf,m);if((o.mode&1)===0)return Sc(i,o,b,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var x=d.dgst;return d=x,m=Error(n(419)),d=Ff(m,d,void 0),Sc(i,o,b,d)}if(x=(b&i.childLanes)!==0,bn||x){if(d=Vt,d!==null){switch(b&-b){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|b))!==0?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,si(i,p),br(d,i,p,-1))}return sp(),d=Ff(Error(n(421))),Sc(i,o,b,d)}return p.data==="$?"?(o.flags|=128,o.child=i.child,o=fw.bind(null,i),p._reactRetry=o,null):(i=m.treeContext,Fn=Ni(p.nextSibling),Ln=o,yt=!0,mr=null,i!==null&&(Kn[Qn++]=ii,Kn[Qn++]=oi,Kn[Qn++]=vo,ii=i.id,oi=i.overflow,vo=o),o=Wf(o,d.children),o.flags|=4096,o)}function t0(i,o,l){i.lanes|=o;var d=i.alternate;d!==null&&(d.lanes|=o),_f(i.return,o,l)}function Hf(i,o,l,d,p){var m=i.memoizedState;m===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=l,m.tailMode=p)}function n0(i,o,l){var d=o.pendingProps,p=d.revealOrder,m=d.tail;if(cn(i,o,d.children,l),d=bt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&t0(i,l,o);else if(i.tag===19)t0(i,l,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}d&=1}if(dt(bt,d),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)i=l.alternate,i!==null&&pc(i)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),Hf(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(i=p.alternate,i!==null&&pc(i)===null){o.child=p;break}i=p.sibling,p.sibling=l,l=p,p=i}Hf(o,!0,l,null,m);break;case"together":Hf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function _c(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function li(i,o,l){if(i!==null&&(o.dependencies=i.dependencies),wo|=o.lanes,(l&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(n(153));if(o.child!==null){for(i=o.child,l=Gi(i,i.pendingProps),o.child=l,l.return=o;i.sibling!==null;)i=i.sibling,l=l.sibling=Gi(i,i.pendingProps),l.return=o;l.sibling=null}return o.child}function ew(i,o,l){switch(o.tag){case 3:qg(o),is();break;case 5:yg(o);break;case 1:vn(o.type)&&rc(o);break;case 4:xf(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,p=o.memoizedProps.value;dt(cc,d._currentValue),d._currentValue=p;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(dt(bt,bt.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?e0(i,o,l):(dt(bt,bt.current&1),i=li(i,o,l),i!==null?i.sibling:null);dt(bt,bt.current&1);break;case 19:if(d=(l&o.childLanes)!==0,(i.flags&128)!==0){if(d)return n0(i,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),dt(bt,bt.current),d)break;return null;case 22:case 23:return o.lanes=0,Qg(i,o,l)}return li(i,o,l)}var r0,Gf,i0,o0;r0=function(i,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Gf=function(){},i0=function(i,o,l,d){var p=i.memoizedProps;if(p!==d){i=o.stateNode,_o(Er.current);var m=null;switch(l){case"input":p=Je(i,p),d=Je(i,d),m=[];break;case"select":p=ne({},p,{value:void 0}),d=ne({},d,{value:void 0}),m=[];break;case"textarea":p=me(i,p),d=me(i,d),m=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(i.onclick=ec)}Id(l,d);var b;l=null;for(U in p)if(!d.hasOwnProperty(U)&&p.hasOwnProperty(U)&&p[U]!=null)if(U==="style"){var x=p[U];for(b in x)x.hasOwnProperty(b)&&(l||(l={}),l[b]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(s.hasOwnProperty(U)?m||(m=[]):(m=m||[]).push(U,null));for(U in d){var k=d[U];if(x=p!=null?p[U]:void 0,d.hasOwnProperty(U)&&k!==x&&(k!=null||x!=null))if(U==="style")if(x){for(b in x)!x.hasOwnProperty(b)||k&&k.hasOwnProperty(b)||(l||(l={}),l[b]="");for(b in k)k.hasOwnProperty(b)&&x[b]!==k[b]&&(l||(l={}),l[b]=k[b])}else l||(m||(m=[]),m.push(U,l)),l=k;else U==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,x=x?x.__html:void 0,k!=null&&x!==k&&(m=m||[]).push(U,k)):U==="children"?typeof k!="string"&&typeof k!="number"||(m=m||[]).push(U,""+k):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(s.hasOwnProperty(U)?(k!=null&&U==="onScroll"&&pt("scroll",i),m||x===k||(m=[])):(m=m||[]).push(U,k))}l&&(m=m||[]).push("style",l);var U=m;(o.updateQueue=U)&&(o.flags|=4)}},o0=function(i,o,l,d){l!==d&&(o.flags|=4)};function Ma(i,o){if(!yt)switch(i.tailMode){case"hidden":o=i.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function en(i){var o=i.alternate!==null&&i.alternate.child===i.child,l=0,d=0;if(o)for(var p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=d,i.childLanes=l,o}function tw(i,o,l){var d=o.pendingProps;switch(hf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return en(o),null;case 1:return vn(o.type)&&nc(),en(o),null;case 3:return d=o.stateNode,ls(),ht(gn),ht(qt),Tf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(i===null||i.child===null)&&(ac(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,mr!==null&&(rp(mr),mr=null))),Gf(i,o),en(o),null;case 5:If(o);var p=_o(Ra.current);if(l=o.type,i!==null&&o.stateNode!=null)i0(i,o,l,d,p),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return en(o),null}if(i=_o(Er.current),ac(o)){d=o.stateNode,l=o.type;var m=o.memoizedProps;switch(d[Rr]=o,d[wa]=m,i=(o.mode&1)!==0,l){case"dialog":pt("cancel",d),pt("close",d);break;case"iframe":case"object":case"embed":pt("load",d);break;case"video":case"audio":for(p=0;p<Sa.length;p++)pt(Sa[p],d);break;case"source":pt("error",d);break;case"img":case"image":case"link":pt("error",d),pt("load",d);break;case"details":pt("toggle",d);break;case"input":jt(d,m),pt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},pt("invalid",d);break;case"textarea":Zr(d,m),pt("invalid",d)}Id(l,m),p=null;for(var b in m)if(m.hasOwnProperty(b)){var x=m[b];b==="children"?typeof x=="string"?d.textContent!==x&&(m.suppressHydrationWarning!==!0&&Zl(d.textContent,x,i),p=["children",x]):typeof x=="number"&&d.textContent!==""+x&&(m.suppressHydrationWarning!==!0&&Zl(d.textContent,x,i),p=["children",""+x]):s.hasOwnProperty(b)&&x!=null&&b==="onScroll"&&pt("scroll",d)}switch(l){case"input":ur(d),st(d,m,!0);break;case"textarea":ur(d),ho(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=ec)}d=p,o.updateQueue=d,d!==null&&(o.flags|=4)}else{b=p.nodeType===9?p:p.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ei(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=b.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof d.is=="string"?i=b.createElement(l,{is:d.is}):(i=b.createElement(l),l==="select"&&(b=i,d.multiple?b.multiple=!0:d.size&&(b.size=d.size))):i=b.createElementNS(i,l),i[Rr]=o,i[wa]=d,r0(i,o,!1,!1),o.stateNode=i;e:{switch(b=kd(l,d),l){case"dialog":pt("cancel",i),pt("close",i),p=d;break;case"iframe":case"object":case"embed":pt("load",i),p=d;break;case"video":case"audio":for(p=0;p<Sa.length;p++)pt(Sa[p],i);p=d;break;case"source":pt("error",i),p=d;break;case"img":case"image":case"link":pt("error",i),pt("load",i),p=d;break;case"details":pt("toggle",i),p=d;break;case"input":jt(i,d),p=Je(i,d),pt("invalid",i);break;case"option":p=d;break;case"select":i._wrapperState={wasMultiple:!!d.multiple},p=ne({},d,{value:void 0}),pt("invalid",i);break;case"textarea":Zr(i,d),p=me(i,d),pt("invalid",i);break;default:p=d}Id(l,p),x=p;for(m in x)if(x.hasOwnProperty(m)){var k=x[m];m==="style"?Km(i,k):m==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Tt(i,k)):m==="children"?typeof k=="string"?(l!=="textarea"||k!=="")&&wt(i,k):typeof k=="number"&&wt(i,""+k):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?k!=null&&m==="onScroll"&&pt("scroll",i):k!=null&&B(i,m,k,b))}switch(l){case"input":ur(i),st(i,d,!1);break;case"textarea":ur(i),ho(i);break;case"option":d.value!=null&&i.setAttribute("value",""+Ne(d.value));break;case"select":i.multiple=!!d.multiple,m=d.value,m!=null?Yn(i,!!d.multiple,m,!1):d.defaultValue!=null&&Yn(i,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(i.onclick=ec)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return en(o),null;case 6:if(i&&o.stateNode!=null)o0(i,o,i.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(l=_o(Ra.current),_o(Er.current),ac(o)){if(d=o.stateNode,l=o.memoizedProps,d[Rr]=o,(m=d.nodeValue!==l)&&(i=Ln,i!==null))switch(i.tag){case 3:Zl(d.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Zl(d.nodeValue,l,(i.mode&1)!==0)}m&&(o.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Rr]=o,o.stateNode=d}return en(o),null;case 13:if(ht(bt),d=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(yt&&Fn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)lg(),is(),o.flags|=98560,m=!1;else if(m=ac(o),d!==null&&d.dehydrated!==null){if(i===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Rr]=o}else is(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;en(o),m=!1}else mr!==null&&(rp(mr),mr=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(d=d!==null,d!==(i!==null&&i.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(i===null||(bt.current&1)!==0?Ft===0&&(Ft=3):sp())),o.updateQueue!==null&&(o.flags|=4),en(o),null);case 4:return ls(),Gf(i,o),i===null&&_a(o.stateNode.containerInfo),en(o),null;case 10:return Sf(o.type._context),en(o),null;case 17:return vn(o.type)&&nc(),en(o),null;case 19:if(ht(bt),m=o.memoizedState,m===null)return en(o),null;if(d=(o.flags&128)!==0,b=m.rendering,b===null)if(d)Ma(m,!1);else{if(Ft!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=pc(i),b!==null){for(o.flags|=128,Ma(m,!1),d=b.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=l,l=o.child;l!==null;)m=l,i=d,m.flags&=14680066,b=m.alternate,b===null?(m.childLanes=0,m.lanes=i,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=b.childLanes,m.lanes=b.lanes,m.child=b.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=b.memoizedProps,m.memoizedState=b.memoizedState,m.updateQueue=b.updateQueue,m.type=b.type,i=b.dependencies,m.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return dt(bt,bt.current&1|2),o.child}i=i.sibling}m.tail!==null&&Rt()>fs&&(o.flags|=128,d=!0,Ma(m,!1),o.lanes=4194304)}else{if(!d)if(i=pc(b),i!==null){if(o.flags|=128,d=!0,l=i.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Ma(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!yt)return en(o),null}else 2*Rt()-m.renderingStartTime>fs&&l!==1073741824&&(o.flags|=128,d=!0,Ma(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(l=m.last,l!==null?l.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Rt(),o.sibling=null,l=bt.current,dt(bt,d?l&1|2:l&1),o):(en(o),null);case 22:case 23:return op(),d=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?($n&1073741824)!==0&&(en(o),o.subtreeFlags&6&&(o.flags|=8192)):en(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function nw(i,o){switch(hf(o),o.tag){case 1:return vn(o.type)&&nc(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ls(),ht(gn),ht(qt),Tf(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return If(o),null;case 13:if(ht(bt),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));is()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return ht(bt),null;case 4:return ls(),null;case 10:return Sf(o.type._context),null;case 22:case 23:return op(),null;case 24:return null;default:return null}}var Cc=!1,tn=!1,rw=typeof WeakSet=="function"?WeakSet:Set,ie=null;function us(i,o){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){xt(i,o,d)}else l.current=null}function Yf(i,o,l){try{l()}catch(d){xt(i,o,d)}}var s0=!1;function iw(i,o){if(of=Ul,i=Fy(),Xd(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var b=0,x=-1,k=-1,U=0,Q=0,J=i,K=null;t:for(;;){for(var re;J!==l||p!==0&&J.nodeType!==3||(x=b+p),J!==m||d!==0&&J.nodeType!==3||(k=b+d),J.nodeType===3&&(b+=J.nodeValue.length),(re=J.firstChild)!==null;)K=J,J=re;for(;;){if(J===i)break t;if(K===l&&++U===p&&(x=b),K===m&&++Q===d&&(k=b),(re=J.nextSibling)!==null)break;J=K,K=J.parentNode}J=re}l=x===-1||k===-1?null:{start:x,end:k}}else l=null}l=l||{start:0,end:0}}else l=null;for(sf={focusedElem:i,selectionRange:l},Ul=!1,ie=o;ie!==null;)if(o=ie,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ie=i;else for(;ie!==null;){o=ie;try{var oe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var se=oe.memoizedProps,Et=oe.memoizedState,N=o.stateNode,E=N.getSnapshotBeforeUpdate(o.elementType===o.type?se:yr(o.type,se),Et);N.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var $=o.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){xt(o,o.return,ee)}if(i=o.sibling,i!==null){i.return=o.return,ie=i;break}ie=o.return}return oe=s0,s0=!1,oe}function Da(i,o,l){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&i)===i){var m=p.destroy;p.destroy=void 0,m!==void 0&&Yf(o,l,m)}p=p.next}while(p!==d)}}function wc(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&i)===i){var d=l.create;l.destroy=d()}l=l.next}while(l!==o)}}function Kf(i){var o=i.ref;if(o!==null){var l=i.stateNode;switch(i.tag){case 5:i=l;break;default:i=l}typeof o=="function"?o(i):o.current=i}}function a0(i){var o=i.alternate;o!==null&&(i.alternate=null,a0(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[Rr],delete o[wa],delete o[uf],delete o[zC],delete o[jC])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function l0(i){return i.tag===5||i.tag===3||i.tag===4}function c0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||l0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Qf(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(i,o):l.insertBefore(i,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(i,l)):(o=l,o.appendChild(i)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=ec));else if(d!==4&&(i=i.child,i!==null))for(Qf(i,o,l),i=i.sibling;i!==null;)Qf(i,o,l),i=i.sibling}function Xf(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.insertBefore(i,o):l.appendChild(i);else if(d!==4&&(i=i.child,i!==null))for(Xf(i,o,l),i=i.sibling;i!==null;)Xf(i,o,l),i=i.sibling}var Ht=null,gr=!1;function ji(i,o,l){for(l=l.child;l!==null;)u0(i,o,l),l=l.sibling}function u0(i,o,l){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(Bl,l)}catch{}switch(l.tag){case 5:tn||us(l,o);case 6:var d=Ht,p=gr;Ht=null,ji(i,o,l),Ht=d,gr=p,Ht!==null&&(gr?(i=Ht,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):Ht.removeChild(l.stateNode));break;case 18:Ht!==null&&(gr?(i=Ht,l=l.stateNode,i.nodeType===8?cf(i.parentNode,l):i.nodeType===1&&cf(i,l),fa(i)):cf(Ht,l.stateNode));break;case 4:d=Ht,p=gr,Ht=l.stateNode.containerInfo,gr=!0,ji(i,o,l),Ht=d,gr=p;break;case 0:case 11:case 14:case 15:if(!tn&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var m=p,b=m.destroy;m=m.tag,b!==void 0&&((m&2)!==0||(m&4)!==0)&&Yf(l,o,b),p=p.next}while(p!==d)}ji(i,o,l);break;case 1:if(!tn&&(us(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(x){xt(l,o,x)}ji(i,o,l);break;case 21:ji(i,o,l);break;case 22:l.mode&1?(tn=(d=tn)||l.memoizedState!==null,ji(i,o,l),tn=d):ji(i,o,l);break;default:ji(i,o,l)}}function d0(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new rw),o.forEach(function(d){var p=pw.bind(null,i,d);l.has(d)||(l.add(d),d.then(p,p))})}}function vr(i,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{var m=i,b=o,x=b;e:for(;x!==null;){switch(x.tag){case 5:Ht=x.stateNode,gr=!1;break e;case 3:Ht=x.stateNode.containerInfo,gr=!0;break e;case 4:Ht=x.stateNode.containerInfo,gr=!0;break e}x=x.return}if(Ht===null)throw Error(n(160));u0(m,b,p),Ht=null,gr=!1;var k=p.alternate;k!==null&&(k.return=null),p.return=null}catch(U){xt(p,o,U)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)f0(o,i),o=o.sibling}function f0(i,o){var l=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(vr(o,i),Pr(i),d&4){try{Da(3,i,i.return),wc(3,i)}catch(se){xt(i,i.return,se)}try{Da(5,i,i.return)}catch(se){xt(i,i.return,se)}}break;case 1:vr(o,i),Pr(i),d&512&&l!==null&&us(l,l.return);break;case 5:if(vr(o,i),Pr(i),d&512&&l!==null&&us(l,l.return),i.flags&32){var p=i.stateNode;try{wt(p,"")}catch(se){xt(i,i.return,se)}}if(d&4&&(p=i.stateNode,p!=null)){var m=i.memoizedProps,b=l!==null?l.memoizedProps:m,x=i.type,k=i.updateQueue;if(i.updateQueue=null,k!==null)try{x==="input"&&m.type==="radio"&&m.name!=null&&fr(p,m),kd(x,b);var U=kd(x,m);for(b=0;b<k.length;b+=2){var Q=k[b],J=k[b+1];Q==="style"?Km(p,J):Q==="dangerouslySetInnerHTML"?Tt(p,J):Q==="children"?wt(p,J):B(p,Q,J,U)}switch(x){case"input":Qt(p,m);break;case"textarea":an(p,m);break;case"select":var K=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var re=m.value;re!=null?Yn(p,!!m.multiple,re,!1):K!==!!m.multiple&&(m.defaultValue!=null?Yn(p,!!m.multiple,m.defaultValue,!0):Yn(p,!!m.multiple,m.multiple?[]:"",!1))}p[wa]=m}catch(se){xt(i,i.return,se)}}break;case 6:if(vr(o,i),Pr(i),d&4){if(i.stateNode===null)throw Error(n(162));p=i.stateNode,m=i.memoizedProps;try{p.nodeValue=m}catch(se){xt(i,i.return,se)}}break;case 3:if(vr(o,i),Pr(i),d&4&&l!==null&&l.memoizedState.isDehydrated)try{fa(o.containerInfo)}catch(se){xt(i,i.return,se)}break;case 4:vr(o,i),Pr(i);break;case 13:vr(o,i),Pr(i),p=i.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(Zf=Rt())),d&4&&d0(i);break;case 22:if(Q=l!==null&&l.memoizedState!==null,i.mode&1?(tn=(U=tn)||Q,vr(o,i),tn=U):vr(o,i),Pr(i),d&8192){if(U=i.memoizedState!==null,(i.stateNode.isHidden=U)&&!Q&&(i.mode&1)!==0)for(ie=i,Q=i.child;Q!==null;){for(J=ie=Q;ie!==null;){switch(K=ie,re=K.child,K.tag){case 0:case 11:case 14:case 15:Da(4,K,K.return);break;case 1:us(K,K.return);var oe=K.stateNode;if(typeof oe.componentWillUnmount=="function"){d=K,l=K.return;try{o=d,oe.props=o.memoizedProps,oe.state=o.memoizedState,oe.componentWillUnmount()}catch(se){xt(d,l,se)}}break;case 5:us(K,K.return);break;case 22:if(K.memoizedState!==null){m0(J);continue}}re!==null?(re.return=K,ie=re):m0(J)}Q=Q.sibling}e:for(Q=null,J=i;;){if(J.tag===5){if(Q===null){Q=J;try{p=J.stateNode,U?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(x=J.stateNode,k=J.memoizedProps.style,b=k!=null&&k.hasOwnProperty("display")?k.display:null,x.style.display=ln("display",b))}catch(se){xt(i,i.return,se)}}}else if(J.tag===6){if(Q===null)try{J.stateNode.nodeValue=U?"":J.memoizedProps}catch(se){xt(i,i.return,se)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===i)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===i)break e;for(;J.sibling===null;){if(J.return===null||J.return===i)break e;Q===J&&(Q=null),J=J.return}Q===J&&(Q=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:vr(o,i),Pr(i),d&4&&d0(i);break;case 21:break;default:vr(o,i),Pr(i)}}function Pr(i){var o=i.flags;if(o&2){try{e:{for(var l=i.return;l!==null;){if(l0(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(wt(p,""),d.flags&=-33);var m=c0(i);Xf(i,m,p);break;case 3:case 4:var b=d.stateNode.containerInfo,x=c0(i);Qf(i,x,b);break;default:throw Error(n(161))}}catch(k){xt(i,i.return,k)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function ow(i,o,l){ie=i,p0(i)}function p0(i,o,l){for(var d=(i.mode&1)!==0;ie!==null;){var p=ie,m=p.child;if(p.tag===22&&d){var b=p.memoizedState!==null||Cc;if(!b){var x=p.alternate,k=x!==null&&x.memoizedState!==null||tn;x=Cc;var U=tn;if(Cc=b,(tn=k)&&!U)for(ie=p;ie!==null;)b=ie,k=b.child,b.tag===22&&b.memoizedState!==null?y0(p):k!==null?(k.return=b,ie=k):y0(p);for(;m!==null;)ie=m,p0(m),m=m.sibling;ie=p,Cc=x,tn=U}h0(i)}else(p.subtreeFlags&8772)!==0&&m!==null?(m.return=p,ie=m):h0(i)}}function h0(i){for(;ie!==null;){var o=ie;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:tn||wc(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!tn)if(l===null)d.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:yr(o.type,l.memoizedProps);d.componentDidUpdate(p,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&mg(o,m,d);break;case 3:var b=o.updateQueue;if(b!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}mg(o,b,l)}break;case 5:var x=o.stateNode;if(l===null&&o.flags&4){l=x;var k=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&l.focus();break;case"img":k.src&&(l.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var U=o.alternate;if(U!==null){var Q=U.memoizedState;if(Q!==null){var J=Q.dehydrated;J!==null&&fa(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}tn||o.flags&512&&Kf(o)}catch(K){xt(o,o.return,K)}}if(o===i){ie=null;break}if(l=o.sibling,l!==null){l.return=o.return,ie=l;break}ie=o.return}}function m0(i){for(;ie!==null;){var o=ie;if(o===i){ie=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ie=l;break}ie=o.return}}function y0(i){for(;ie!==null;){var o=ie;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{wc(4,o)}catch(k){xt(o,l,k)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var p=o.return;try{d.componentDidMount()}catch(k){xt(o,p,k)}}var m=o.return;try{Kf(o)}catch(k){xt(o,m,k)}break;case 5:var b=o.return;try{Kf(o)}catch(k){xt(o,b,k)}}}catch(k){xt(o,o.return,k)}if(o===i){ie=null;break}var x=o.sibling;if(x!==null){x.return=o.return,ie=x;break}ie=o.return}}var sw=Math.ceil,xc=A.ReactCurrentDispatcher,Jf=A.ReactCurrentOwner,qn=A.ReactCurrentBatchConfig,We=0,Vt=null,Pt=null,Gt=0,$n=0,ds=Bi(0),Ft=0,Na=null,wo=0,Ic=0,qf=0,Ba=null,Sn=null,Zf=0,fs=1/0,ci=null,kc=!1,ep=null,Ui=null,Tc=!1,Vi=null,Rc=0,La=0,tp=null,Ec=-1,Ac=0;function un(){return(We&6)!==0?Rt():Ec!==-1?Ec:Ec=Rt()}function Wi(i){return(i.mode&1)===0?1:(We&2)!==0&&Gt!==0?Gt&-Gt:VC.transition!==null?(Ac===0&&(Ac=cy()),Ac):(i=nt,i!==0||(i=window.event,i=i===void 0?16:vy(i.type)),i)}function br(i,o,l,d){if(50<La)throw La=0,tp=null,Error(n(185));aa(i,l,d),((We&2)===0||i!==Vt)&&(i===Vt&&((We&2)===0&&(Ic|=l),Ft===4&&Hi(i,Gt)),_n(i,d),l===1&&We===0&&(o.mode&1)===0&&(fs=Rt()+500,ic&&Fi()))}function _n(i,o){var l=i.callbackNode;V_(i,o);var d=$l(i,i===Vt?Gt:0);if(d===0)l!==null&&sy(l),i.callbackNode=null,i.callbackPriority=0;else if(o=d&-d,i.callbackPriority!==o){if(l!=null&&sy(l),o===1)i.tag===0?UC(v0.bind(null,i)):rg(v0.bind(null,i)),FC(function(){(We&6)===0&&Fi()}),l=null;else{switch(uy(d)){case 1:l=Md;break;case 4:l=ay;break;case 16:l=Nl;break;case 536870912:l=ly;break;default:l=Nl}l=k0(l,g0.bind(null,i))}i.callbackPriority=o,i.callbackNode=l}}function g0(i,o){if(Ec=-1,Ac=0,(We&6)!==0)throw Error(n(327));var l=i.callbackNode;if(ps()&&i.callbackNode!==l)return null;var d=$l(i,i===Vt?Gt:0);if(d===0)return null;if((d&30)!==0||(d&i.expiredLanes)!==0||o)o=Pc(i,d);else{o=d;var p=We;We|=2;var m=S0();(Vt!==i||Gt!==o)&&(ci=null,fs=Rt()+500,Io(i,o));do try{cw();break}catch(x){b0(i,x)}while(!0);bf(),xc.current=m,We=p,Pt!==null?o=0:(Vt=null,Gt=0,o=Ft)}if(o!==0){if(o===2&&(p=Dd(i),p!==0&&(d=p,o=np(i,p))),o===1)throw l=Na,Io(i,0),Hi(i,d),_n(i,Rt()),l;if(o===6)Hi(i,d);else{if(p=i.current.alternate,(d&30)===0&&!aw(p)&&(o=Pc(i,d),o===2&&(m=Dd(i),m!==0&&(d=m,o=np(i,m))),o===1))throw l=Na,Io(i,0),Hi(i,d),_n(i,Rt()),l;switch(i.finishedWork=p,i.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:ko(i,Sn,ci);break;case 3:if(Hi(i,d),(d&130023424)===d&&(o=Zf+500-Rt(),10<o)){if($l(i,0)!==0)break;if(p=i.suspendedLanes,(p&d)!==d){un(),i.pingedLanes|=i.suspendedLanes&p;break}i.timeoutHandle=lf(ko.bind(null,i,Sn,ci),o);break}ko(i,Sn,ci);break;case 4:if(Hi(i,d),(d&4194240)===d)break;for(o=i.eventTimes,p=-1;0<d;){var b=31-pr(d);m=1<<b,b=o[b],b>p&&(p=b),d&=~m}if(d=p,d=Rt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*sw(d/1960))-d,10<d){i.timeoutHandle=lf(ko.bind(null,i,Sn,ci),d);break}ko(i,Sn,ci);break;case 5:ko(i,Sn,ci);break;default:throw Error(n(329))}}}return _n(i,Rt()),i.callbackNode===l?g0.bind(null,i):null}function np(i,o){var l=Ba;return i.current.memoizedState.isDehydrated&&(Io(i,o).flags|=256),i=Pc(i,o),i!==2&&(o=Sn,Sn=l,o!==null&&rp(o)),i}function rp(i){Sn===null?Sn=i:Sn.push.apply(Sn,i)}function aw(i){for(var o=i;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var p=l[d],m=p.getSnapshot;p=p.value;try{if(!hr(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Hi(i,o){for(o&=~qf,o&=~Ic,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var l=31-pr(o),d=1<<l;i[l]=-1,o&=~d}}function v0(i){if((We&6)!==0)throw Error(n(327));ps();var o=$l(i,0);if((o&1)===0)return _n(i,Rt()),null;var l=Pc(i,o);if(i.tag!==0&&l===2){var d=Dd(i);d!==0&&(o=d,l=np(i,d))}if(l===1)throw l=Na,Io(i,0),Hi(i,o),_n(i,Rt()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,ko(i,Sn,ci),_n(i,Rt()),null}function ip(i,o){var l=We;We|=1;try{return i(o)}finally{We=l,We===0&&(fs=Rt()+500,ic&&Fi())}}function xo(i){Vi!==null&&Vi.tag===0&&(We&6)===0&&ps();var o=We;We|=1;var l=qn.transition,d=nt;try{if(qn.transition=null,nt=1,i)return i()}finally{nt=d,qn.transition=l,We=o,(We&6)===0&&Fi()}}function op(){$n=ds.current,ht(ds)}function Io(i,o){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,LC(l)),Pt!==null)for(l=Pt.return;l!==null;){var d=l;switch(hf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&nc();break;case 3:ls(),ht(gn),ht(qt),Tf();break;case 5:If(d);break;case 4:ls();break;case 13:ht(bt);break;case 19:ht(bt);break;case 10:Sf(d.type._context);break;case 22:case 23:op()}l=l.return}if(Vt=i,Pt=i=Gi(i.current,null),Gt=$n=o,Ft=0,Na=null,qf=Ic=wo=0,Sn=Ba=null,So!==null){for(o=0;o<So.length;o++)if(l=So[o],d=l.interleaved,d!==null){l.interleaved=null;var p=d.next,m=l.pending;if(m!==null){var b=m.next;m.next=p,d.next=b}l.pending=d}So=null}return i}function b0(i,o){do{var l=Pt;try{if(bf(),hc.current=vc,mc){for(var d=St.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}mc=!1}if(Co=0,Ut=Lt=St=null,Ea=!1,Aa=0,Jf.current=null,l===null||l.return===null){Ft=1,Na=o,Pt=null;break}e:{var m=i,b=l.return,x=l,k=o;if(o=Gt,x.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var U=k,Q=x,J=Q.tag;if((Q.mode&1)===0&&(J===0||J===11||J===15)){var K=Q.alternate;K?(Q.updateQueue=K.updateQueue,Q.memoizedState=K.memoizedState,Q.lanes=K.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var re=Wg(b);if(re!==null){re.flags&=-257,Hg(re,b,x,m,o),re.mode&1&&Vg(m,U,o),o=re,k=U;var oe=o.updateQueue;if(oe===null){var se=new Set;se.add(k),o.updateQueue=se}else oe.add(k);break e}else{if((o&1)===0){Vg(m,U,o),sp();break e}k=Error(n(426))}}else if(yt&&x.mode&1){var Et=Wg(b);if(Et!==null){(Et.flags&65536)===0&&(Et.flags|=256),Hg(Et,b,x,m,o),gf(cs(k,x));break e}}m=k=cs(k,x),Ft!==4&&(Ft=2),Ba===null?Ba=[m]:Ba.push(m),m=b;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var N=jg(m,k,o);hg(m,N);break e;case 1:x=k;var E=m.type,$=m.stateNode;if((m.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Ui===null||!Ui.has($)))){m.flags|=65536,o&=-o,m.lanes|=o;var ee=Ug(m,x,o);hg(m,ee);break e}}m=m.return}while(m!==null)}C0(l)}catch(le){o=le,Pt===l&&l!==null&&(Pt=l=l.return);continue}break}while(!0)}function S0(){var i=xc.current;return xc.current=vc,i===null?vc:i}function sp(){(Ft===0||Ft===3||Ft===2)&&(Ft=4),Vt===null||(wo&268435455)===0&&(Ic&268435455)===0||Hi(Vt,Gt)}function Pc(i,o){var l=We;We|=2;var d=S0();(Vt!==i||Gt!==o)&&(ci=null,Io(i,o));do try{lw();break}catch(p){b0(i,p)}while(!0);if(bf(),We=l,xc.current=d,Pt!==null)throw Error(n(261));return Vt=null,Gt=0,Ft}function lw(){for(;Pt!==null;)_0(Pt)}function cw(){for(;Pt!==null&&!D_();)_0(Pt)}function _0(i){var o=I0(i.alternate,i,$n);i.memoizedProps=i.pendingProps,o===null?C0(i):Pt=o,Jf.current=null}function C0(i){var o=i;do{var l=o.alternate;if(i=o.return,(o.flags&32768)===0){if(l=tw(l,o,$n),l!==null){Pt=l;return}}else{if(l=nw(l,o),l!==null){l.flags&=32767,Pt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Ft=6,Pt=null;return}}if(o=o.sibling,o!==null){Pt=o;return}Pt=o=i}while(o!==null);Ft===0&&(Ft=5)}function ko(i,o,l){var d=nt,p=qn.transition;try{qn.transition=null,nt=1,uw(i,o,l,d)}finally{qn.transition=p,nt=d}return null}function uw(i,o,l,d){do ps();while(Vi!==null);if((We&6)!==0)throw Error(n(327));l=i.finishedWork;var p=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var m=l.lanes|l.childLanes;if(W_(i,m),i===Vt&&(Pt=Vt=null,Gt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Tc||(Tc=!0,k0(Nl,function(){return ps(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=qn.transition,qn.transition=null;var b=nt;nt=1;var x=We;We|=4,Jf.current=null,iw(i,l),f0(l,i),AC(sf),Ul=!!of,sf=of=null,i.current=l,ow(l),N_(),We=x,nt=b,qn.transition=m}else i.current=l;if(Tc&&(Tc=!1,Vi=i,Rc=p),m=i.pendingLanes,m===0&&(Ui=null),F_(l.stateNode),_n(i,Rt()),o!==null)for(d=i.onRecoverableError,l=0;l<o.length;l++)p=o[l],d(p.value,{componentStack:p.stack,digest:p.digest});if(kc)throw kc=!1,i=ep,ep=null,i;return(Rc&1)!==0&&i.tag!==0&&ps(),m=i.pendingLanes,(m&1)!==0?i===tp?La++:(La=0,tp=i):La=0,Fi(),null}function ps(){if(Vi!==null){var i=uy(Rc),o=qn.transition,l=nt;try{if(qn.transition=null,nt=16>i?16:i,Vi===null)var d=!1;else{if(i=Vi,Vi=null,Rc=0,(We&6)!==0)throw Error(n(331));var p=We;for(We|=4,ie=i.current;ie!==null;){var m=ie,b=m.child;if((ie.flags&16)!==0){var x=m.deletions;if(x!==null){for(var k=0;k<x.length;k++){var U=x[k];for(ie=U;ie!==null;){var Q=ie;switch(Q.tag){case 0:case 11:case 15:Da(8,Q,m)}var J=Q.child;if(J!==null)J.return=Q,ie=J;else for(;ie!==null;){Q=ie;var K=Q.sibling,re=Q.return;if(a0(Q),Q===U){ie=null;break}if(K!==null){K.return=re,ie=K;break}ie=re}}}var oe=m.alternate;if(oe!==null){var se=oe.child;if(se!==null){oe.child=null;do{var Et=se.sibling;se.sibling=null,se=Et}while(se!==null)}}ie=m}}if((m.subtreeFlags&2064)!==0&&b!==null)b.return=m,ie=b;else e:for(;ie!==null;){if(m=ie,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Da(9,m,m.return)}var N=m.sibling;if(N!==null){N.return=m.return,ie=N;break e}ie=m.return}}var E=i.current;for(ie=E;ie!==null;){b=ie;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,ie=$;else e:for(b=E;ie!==null;){if(x=ie,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:wc(9,x)}}catch(le){xt(x,x.return,le)}if(x===b){ie=null;break e}var ee=x.sibling;if(ee!==null){ee.return=x.return,ie=ee;break e}ie=x.return}}if(We=p,Fi(),Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(Bl,i)}catch{}d=!0}return d}finally{nt=l,qn.transition=o}}return!1}function w0(i,o,l){o=cs(l,o),o=jg(i,o,1),i=zi(i,o,1),o=un(),i!==null&&(aa(i,1,o),_n(i,o))}function xt(i,o,l){if(i.tag===3)w0(i,i,l);else for(;o!==null;){if(o.tag===3){w0(o,i,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ui===null||!Ui.has(d))){i=cs(l,i),i=Ug(o,i,1),o=zi(o,i,1),i=un(),o!==null&&(aa(o,1,i),_n(o,i));break}}o=o.return}}function dw(i,o,l){var d=i.pingCache;d!==null&&d.delete(o),o=un(),i.pingedLanes|=i.suspendedLanes&l,Vt===i&&(Gt&l)===l&&(Ft===4||Ft===3&&(Gt&130023424)===Gt&&500>Rt()-Zf?Io(i,0):qf|=l),_n(i,o)}function x0(i,o){o===0&&((i.mode&1)===0?o=1:(o=Fl,Fl<<=1,(Fl&130023424)===0&&(Fl=4194304)));var l=un();i=si(i,o),i!==null&&(aa(i,o,l),_n(i,l))}function fw(i){var o=i.memoizedState,l=0;o!==null&&(l=o.retryLane),x0(i,l)}function pw(i,o){var l=0;switch(i.tag){case 13:var d=i.stateNode,p=i.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=i.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),x0(i,l)}var I0;I0=function(i,o,l){if(i!==null)if(i.memoizedProps!==o.pendingProps||gn.current)bn=!0;else{if((i.lanes&l)===0&&(o.flags&128)===0)return bn=!1,ew(i,o,l);bn=(i.flags&131072)!==0}else bn=!1,yt&&(o.flags&1048576)!==0&&ig(o,sc,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;_c(i,o),i=o.pendingProps;var p=ts(o,qt.current);as(o,l),p=Af(null,o,d,i,p,l);var m=Pf();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vn(d)?(m=!0,rc(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,wf(o),p.updater=bc,o.stateNode=p,p._reactInternals=o,Lf(o,d,i,l),o=jf(null,o,d,!0,m,l)):(o.tag=0,yt&&m&&pf(o),cn(null,o,p,l),o=o.child),o;case 16:d=o.elementType;e:{switch(_c(i,o),i=o.pendingProps,p=d._init,d=p(d._payload),o.type=d,p=o.tag=mw(d),i=yr(d,i),p){case 0:o=zf(null,o,d,i,l);break e;case 1:o=Jg(null,o,d,i,l);break e;case 11:o=Gg(null,o,d,i,l);break e;case 14:o=Yg(null,o,d,yr(d.type,i),l);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),zf(i,o,d,p,l);case 1:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),Jg(i,o,d,p,l);case 3:e:{if(qg(o),i===null)throw Error(n(387));d=o.pendingProps,m=o.memoizedState,p=m.element,pg(i,o),fc(o,d,null,l);var b=o.memoizedState;if(d=b.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=cs(Error(n(423)),o),o=Zg(i,o,d,l,p);break e}else if(d!==p){p=cs(Error(n(424)),o),o=Zg(i,o,d,l,p);break e}else for(Fn=Ni(o.stateNode.containerInfo.firstChild),Ln=o,yt=!0,mr=null,l=dg(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(is(),d===p){o=li(i,o,l);break e}cn(i,o,d,l)}o=o.child}return o;case 5:return yg(o),i===null&&yf(o),d=o.type,p=o.pendingProps,m=i!==null?i.memoizedProps:null,b=p.children,af(d,p)?b=null:m!==null&&af(d,m)&&(o.flags|=32),Xg(i,o),cn(i,o,b,l),o.child;case 6:return i===null&&yf(o),null;case 13:return e0(i,o,l);case 4:return xf(o,o.stateNode.containerInfo),d=o.pendingProps,i===null?o.child=os(o,null,d,l):cn(i,o,d,l),o.child;case 11:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),Gg(i,o,d,p,l);case 7:return cn(i,o,o.pendingProps,l),o.child;case 8:return cn(i,o,o.pendingProps.children,l),o.child;case 12:return cn(i,o,o.pendingProps.children,l),o.child;case 10:e:{if(d=o.type._context,p=o.pendingProps,m=o.memoizedProps,b=p.value,dt(cc,d._currentValue),d._currentValue=b,m!==null)if(hr(m.value,b)){if(m.children===p.children&&!gn.current){o=li(i,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var x=m.dependencies;if(x!==null){b=m.child;for(var k=x.firstContext;k!==null;){if(k.context===d){if(m.tag===1){k=ai(-1,l&-l),k.tag=2;var U=m.updateQueue;if(U!==null){U=U.shared;var Q=U.pending;Q===null?k.next=k:(k.next=Q.next,Q.next=k),U.pending=k}}m.lanes|=l,k=m.alternate,k!==null&&(k.lanes|=l),_f(m.return,l,o),x.lanes|=l;break}k=k.next}}else if(m.tag===10)b=m.type===o.type?null:m.child;else if(m.tag===18){if(b=m.return,b===null)throw Error(n(341));b.lanes|=l,x=b.alternate,x!==null&&(x.lanes|=l),_f(b,l,o),b=m.sibling}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===o){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}cn(i,o,p.children,l),o=o.child}return o;case 9:return p=o.type,d=o.pendingProps.children,as(o,l),p=Xn(p),d=d(p),o.flags|=1,cn(i,o,d,l),o.child;case 14:return d=o.type,p=yr(d,o.pendingProps),p=yr(d.type,p),Yg(i,o,d,p,l);case 15:return Kg(i,o,o.type,o.pendingProps,l);case 17:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),_c(i,o),o.tag=1,vn(d)?(i=!0,rc(o)):i=!1,as(o,l),$g(o,d,p),Lf(o,d,p,l),jf(null,o,d,!0,i,l);case 19:return n0(i,o,l);case 22:return Qg(i,o,l)}throw Error(n(156,o.tag))};function k0(i,o){return oy(i,o)}function hw(i,o,l,d){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(i,o,l,d){return new hw(i,o,l,d)}function ap(i){return i=i.prototype,!(!i||!i.isReactComponent)}function mw(i){if(typeof i=="function")return ap(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===ce)return 14}return 2}function Gi(i,o){var l=i.alternate;return l===null?(l=Zn(i.tag,o,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=o,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,o=i.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function Oc(i,o,l,d,p,m){var b=2;if(d=i,typeof i=="function")ap(i)&&(b=1);else if(typeof i=="string")b=5;else e:switch(i){case M:return To(l.children,p,m,o);case V:b=8,p|=8;break;case Y:return i=Zn(12,l,o,p|2),i.elementType=Y,i.lanes=m,i;case X:return i=Zn(13,l,o,p),i.elementType=X,i.lanes=m,i;case ae:return i=Zn(19,l,o,p),i.elementType=ae,i.lanes=m,i;case fe:return Mc(l,p,m,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:b=10;break e;case j:b=9;break e;case W:b=11;break e;case ce:b=14;break e;case de:b=16,d=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=Zn(b,l,o,p),o.elementType=i,o.type=d,o.lanes=m,o}function To(i,o,l,d){return i=Zn(7,i,d,o),i.lanes=l,i}function Mc(i,o,l,d){return i=Zn(22,i,d,o),i.elementType=fe,i.lanes=l,i.stateNode={isHidden:!1},i}function lp(i,o,l){return i=Zn(6,i,null,o),i.lanes=l,i}function cp(i,o,l){return o=Zn(4,i.children!==null?i.children:[],i.key,o),o.lanes=l,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function yw(i,o,l,d,p){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nd(0),this.expirationTimes=Nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nd(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function up(i,o,l,d,p,m,b,x,k){return i=new yw(i,o,l,x,k),o===1?(o=1,m===!0&&(o|=8)):o=0,m=Zn(3,null,null,o),i.current=m,m.stateNode=i,m.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},wf(m),i}function gw(i,o,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:d==null?null:""+d,children:i,containerInfo:o,implementation:l}}function T0(i){if(!i)return Li;i=i._reactInternals;e:{if(mo(i)!==i||i.tag!==1)throw Error(n(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(vn(l))return tg(i,l,o)}return o}function R0(i,o,l,d,p,m,b,x,k){return i=up(l,d,!0,i,p,m,b,x,k),i.context=T0(null),l=i.current,d=un(),p=Wi(l),m=ai(d,p),m.callback=o??null,zi(l,m,p),i.current.lanes=p,aa(i,p,d),_n(i,d),i}function Dc(i,o,l,d){var p=o.current,m=un(),b=Wi(p);return l=T0(l),o.context===null?o.context=l:o.pendingContext=l,o=ai(m,b),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=zi(p,o,b),i!==null&&(br(i,p,b,m),dc(i,p,b)),b}function Nc(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function E0(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<o?l:o}}function dp(i,o){E0(i,o),(i=i.alternate)&&E0(i,o)}function vw(){return null}var A0=typeof reportError=="function"?reportError:function(i){console.error(i)};function fp(i){this._internalRoot=i}Bc.prototype.render=fp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(n(409));Dc(i,o,null,null)},Bc.prototype.unmount=fp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;xo(function(){Dc(null,i,null,null)}),o[ni]=null}};function Bc(i){this._internalRoot=i}Bc.prototype.unstable_scheduleHydration=function(i){if(i){var o=py();i={blockedOn:null,target:i,priority:o};for(var l=0;l<Oi.length&&o!==0&&o<Oi[l].priority;l++);Oi.splice(l,0,i),l===0&&yy(i)}};function pp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Lc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function P0(){}function bw(i,o,l,d,p){if(p){if(typeof d=="function"){var m=d;d=function(){var U=Nc(b);m.call(U)}}var b=R0(o,d,i,0,null,!1,!1,"",P0);return i._reactRootContainer=b,i[ni]=b.current,_a(i.nodeType===8?i.parentNode:i),xo(),b}for(;p=i.lastChild;)i.removeChild(p);if(typeof d=="function"){var x=d;d=function(){var U=Nc(k);x.call(U)}}var k=up(i,0,!1,null,null,!1,!1,"",P0);return i._reactRootContainer=k,i[ni]=k.current,_a(i.nodeType===8?i.parentNode:i),xo(function(){Dc(o,k,l,d)}),k}function Fc(i,o,l,d,p){var m=l._reactRootContainer;if(m){var b=m;if(typeof p=="function"){var x=p;p=function(){var k=Nc(b);x.call(k)}}Dc(o,b,i,p)}else b=bw(l,o,i,p,d);return Nc(b)}dy=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var l=sa(o.pendingLanes);l!==0&&(Bd(o,l|1),_n(o,Rt()),(We&6)===0&&(fs=Rt()+500,Fi()))}break;case 13:xo(function(){var d=si(i,1);if(d!==null){var p=un();br(d,i,1,p)}}),dp(i,1)}},Ld=function(i){if(i.tag===13){var o=si(i,134217728);if(o!==null){var l=un();br(o,i,134217728,l)}dp(i,134217728)}},fy=function(i){if(i.tag===13){var o=Wi(i),l=si(i,o);if(l!==null){var d=un();br(l,i,o,d)}dp(i,o)}},py=function(){return nt},hy=function(i,o){var l=nt;try{return nt=i,o()}finally{nt=l}},Ed=function(i,o,l){switch(o){case"input":if(Qt(i,l),o=l.name,l.type==="radio"&&o!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==i&&d.form===i.form){var p=tc(d);if(!p)throw Error(n(90));dr(d),Qt(d,p)}}}break;case"textarea":an(i,l);break;case"select":o=l.value,o!=null&&Yn(i,!!l.multiple,o,!1)}},qm=ip,Zm=xo;var Sw={usingClientEntryPoint:!1,Events:[xa,Zo,tc,Xm,Jm,ip]},Fa={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_w={bundleType:Fa.bundleType,version:Fa.version,rendererPackageName:Fa.rendererPackageName,rendererConfig:Fa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=ry(i),i===null?null:i.stateNode},findFiberByHostInstance:Fa.findFiberByHostInstance||vw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$c.isDisabled&&$c.supportsFiber)try{Bl=$c.inject(_w),Tr=$c}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sw,Cn.createPortal=function(i,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pp(o))throw Error(n(200));return gw(i,o,null,l)},Cn.createRoot=function(i,o){if(!pp(i))throw Error(n(299));var l=!1,d="",p=A0;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=up(i,1,!1,null,null,l,!1,d,p),i[ni]=o.current,_a(i.nodeType===8?i.parentNode:i),new fp(o)},Cn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=ry(o),i=i===null?null:i.stateNode,i},Cn.flushSync=function(i){return xo(i)},Cn.hydrate=function(i,o,l){if(!Lc(o))throw Error(n(200));return Fc(null,i,o,!0,l)},Cn.hydrateRoot=function(i,o,l){if(!pp(i))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,p=!1,m="",b=A0;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),o=R0(o,null,i,1,l??null,p,!1,m,b),i[ni]=o.current,_a(i),d)for(i=0;i<d.length;i++)l=d[i],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new Bc(o)},Cn.render=function(i,o,l){if(!Lc(o))throw Error(n(200));return Fc(null,i,o,!1,l)},Cn.unmountComponentAtNode=function(i){if(!Lc(i))throw Error(n(40));return i._reactRootContainer?(xo(function(){Fc(null,null,i,!1,function(){i._reactRootContainer=null,i[ni]=null})}),!0):!1},Cn.unstable_batchedUpdates=ip,Cn.unstable_renderSubtreeIntoContainer=function(i,o,l,d){if(!Lc(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Fc(i,o,l,!1,d)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var $0;function Pw(){if($0)return yp.exports;$0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),yp.exports=Aw(),yp.exports}var z0;function Ow(){if(z0)return zc;z0=1;var t=Pw();return zc.createRoot=t.createRoot,zc.hydrateRoot=t.hydrateRoot,zc}var Mw=Ow(),bp={exports:{}},qe={};/** @license React v16.13.1
|
40
|
+
`+m.stack}return{value:i,source:o,stack:p,digest:null}}function Lf(i,o,l){return{value:i,source:null,stack:l??null,digest:o??null}}function Ff(i,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var ZC=typeof WeakMap=="function"?WeakMap:Map;function Ug(i,o,l){l=ai(-1,l),l.tag=3,l.payload={element:null};var d=o.value;return l.callback=function(){kc||(kc=!0,Zf=d),Ff(i,o)},l}function Vg(i,o,l){l=ai(-1,l),l.tag=3;var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;l.payload=function(){return d(p)},l.callback=function(){Ff(i,o)}}var m=i.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){Ff(i,o),typeof d!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})}),l}function Wg(i,o,l){var d=i.pingCache;if(d===null){d=i.pingCache=new ZC;var p=new Set;d.set(o,p)}else p=d.get(o),p===void 0&&(p=new Set,d.set(o,p));p.has(l)||(p.add(l),i=pw.bind(null,i,o,l),o.then(i,i))}function Hg(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function Gg(i,o,l,d,p){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=ai(-1,1),o.tag=2,zi(l,o,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=p,i)}var ew=E.ReactCurrentOwner,bn=!1;function cn(i,o,l,d){o.child=i===null?fg(o,null,l,d):os(o,i.child,l,d)}function Yg(i,o,l,d,p){l=l.render;var m=o.ref;return as(o,p),d=Ef(i,o,l,d,m,p),l=Af(),i!==null&&!bn?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,li(i,o,p)):(yt&&l&&ff(o),o.flags|=1,cn(i,o,d,p),o.child)}function Kg(i,o,l,d,p){if(i===null){var m=l.type;return typeof m=="function"&&!sp(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,Qg(i,o,m,d,p)):(i=Oc(l.type,null,d,o,o.mode,p),i.ref=o.ref,i.return=o,o.child=i)}if(m=i.child,(i.lanes&p)===0){var b=m.memoizedProps;if(l=l.compare,l=l!==null?l:va,l(b,d)&&i.ref===o.ref)return li(i,o,p)}return o.flags|=1,i=Gi(m,d),i.ref=o.ref,i.return=o,o.child=i}function Qg(i,o,l,d,p){if(i!==null){var m=i.memoizedProps;if(va(m,d)&&i.ref===o.ref)if(bn=!1,o.pendingProps=d=m,(i.lanes&p)!==0)(i.flags&131072)!==0&&(bn=!0);else return o.lanes=i.lanes,li(i,o,p)}return $f(i,o,l,d,p)}function Xg(i,o,l){var d=o.pendingProps,p=d.children,m=i!==null?i.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},dt(ds,$n),$n|=l;else{if((l&1073741824)===0)return i=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,dt(ds,$n),$n|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:l,dt(ds,$n),$n|=d}else m!==null?(d=m.baseLanes|l,o.memoizedState=null):d=l,dt(ds,$n),$n|=d;return cn(i,o,p,l),o.child}function Jg(i,o){var l=o.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function $f(i,o,l,d,p){var m=vn(l)?go:qt.current;return m=ts(o,m),as(o,p),l=Ef(i,o,l,d,m,p),d=Af(),i!==null&&!bn?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,li(i,o,p)):(yt&&d&&ff(o),o.flags|=1,cn(i,o,l,p),o.child)}function qg(i,o,l,d,p){if(vn(l)){var m=!0;rc(o)}else m=!1;if(as(o,p),o.stateNode===null)_c(i,o),zg(o,l,d),Bf(o,l,d,p),d=!0;else if(i===null){var b=o.stateNode,x=o.memoizedProps;b.props=x;var k=b.context,U=l.contextType;typeof U=="object"&&U!==null?U=Xn(U):(U=vn(l)?go:qt.current,U=ts(o,U));var Q=l.getDerivedStateFromProps,J=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";J||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==d||k!==U)&&jg(o,b,d,U),$i=!1;var K=o.memoizedState;b.state=K,fc(o,d,b,p),k=o.memoizedState,x!==d||K!==k||gn.current||$i?(typeof Q=="function"&&(Nf(o,l,Q,d),k=o.memoizedState),(x=$i||$g(o,l,x,d,K,k,U))?(J||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=k),b.props=d,b.state=k,b.context=U,d=x):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{b=o.stateNode,hg(i,o),x=o.memoizedProps,U=o.type===o.elementType?x:yr(o.type,x),b.props=U,J=o.pendingProps,K=b.context,k=l.contextType,typeof k=="object"&&k!==null?k=Xn(k):(k=vn(l)?go:qt.current,k=ts(o,k));var re=l.getDerivedStateFromProps;(Q=typeof re=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==J||K!==k)&&jg(o,b,d,k),$i=!1,K=o.memoizedState,b.state=K,fc(o,d,b,p);var oe=o.memoizedState;x!==J||K!==oe||gn.current||$i?(typeof re=="function"&&(Nf(o,l,re,d),oe=o.memoizedState),(U=$i||$g(o,l,U,d,K,oe,k)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,oe,k),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,oe,k)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=oe),b.props=d,b.state=oe,b.context=k,d=U):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),d=!1)}return zf(i,o,l,d,m,p)}function zf(i,o,l,d,p,m){Jg(i,o);var b=(o.flags&128)!==0;if(!d&&!b)return p&&rg(o,l,!1),li(i,o,m);d=o.stateNode,ew.current=o;var x=b&&typeof l.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,i!==null&&b?(o.child=os(o,i.child,null,m),o.child=os(o,null,x,m)):cn(i,o,x,m),o.memoizedState=d.state,p&&rg(o,l,!0),o.child}function Zg(i){var o=i.stateNode;o.pendingContext?tg(i,o.pendingContext,o.pendingContext!==o.context):o.context&&tg(i,o.context,!1),wf(i,o.containerInfo)}function e0(i,o,l,d,p){return is(),yf(p),o.flags|=256,cn(i,o,l,d),o.child}var jf={dehydrated:null,treeContext:null,retryLane:0};function Uf(i){return{baseLanes:i,cachePool:null,transitions:null}}function t0(i,o,l){var d=o.pendingProps,p=bt.current,m=!1,b=(o.flags&128)!==0,x;if((x=b)||(x=i!==null&&i.memoizedState===null?!1:(p&2)!==0),x?(m=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(p|=1),dt(bt,p&1),i===null)return mf(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(b=d.children,i=d.fallback,m?(d=o.mode,m=o.child,b={mode:"hidden",children:b},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=b):m=Mc(b,d,0,null),i=To(i,d,l,null),m.return=o,i.return=o,m.sibling=i,o.child=m,o.child.memoizedState=Uf(l),o.memoizedState=jf,i):Vf(o,b));if(p=i.memoizedState,p!==null&&(x=p.dehydrated,x!==null))return tw(i,o,b,d,x,p,l);if(m){m=d.fallback,b=o.mode,p=i.child,x=p.sibling;var k={mode:"hidden",children:d.children};return(b&1)===0&&o.child!==p?(d=o.child,d.childLanes=0,d.pendingProps=k,o.deletions=null):(d=Gi(p,k),d.subtreeFlags=p.subtreeFlags&14680064),x!==null?m=Gi(x,m):(m=To(m,b,l,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,b=i.child.memoizedState,b=b===null?Uf(l):{baseLanes:b.baseLanes|l,cachePool:null,transitions:b.transitions},m.memoizedState=b,m.childLanes=i.childLanes&~l,o.memoizedState=jf,d}return m=i.child,i=m.sibling,d=Gi(m,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=l),d.return=o,d.sibling=null,i!==null&&(l=o.deletions,l===null?(o.deletions=[i],o.flags|=16):l.push(i)),o.child=d,o.memoizedState=null,d}function Vf(i,o){return o=Mc({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function Sc(i,o,l,d){return d!==null&&yf(d),os(o,i.child,null,l),i=Vf(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function tw(i,o,l,d,p,m,b){if(l)return o.flags&256?(o.flags&=-257,d=Lf(Error(n(422))),Sc(i,o,b,d)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(m=d.fallback,p=o.mode,d=Mc({mode:"visible",children:d.children},p,0,null),m=To(m,p,b,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,(o.mode&1)!==0&&os(o,i.child,null,b),o.child.memoizedState=Uf(b),o.memoizedState=jf,m);if((o.mode&1)===0)return Sc(i,o,b,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var x=d.dgst;return d=x,m=Error(n(419)),d=Lf(m,d,void 0),Sc(i,o,b,d)}if(x=(b&i.childLanes)!==0,bn||x){if(d=Vt,d!==null){switch(b&-b){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|b))!==0?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,si(i,p),br(d,i,p,-1))}return op(),d=Lf(Error(n(421))),Sc(i,o,b,d)}return p.data==="$?"?(o.flags|=128,o.child=i.child,o=hw.bind(null,i),p._reactRetry=o,null):(i=m.treeContext,Fn=Ni(p.nextSibling),Ln=o,yt=!0,mr=null,i!==null&&(Kn[Qn++]=ii,Kn[Qn++]=oi,Kn[Qn++]=vo,ii=i.id,oi=i.overflow,vo=o),o=Vf(o,d.children),o.flags|=4096,o)}function n0(i,o,l){i.lanes|=o;var d=i.alternate;d!==null&&(d.lanes|=o),Sf(i.return,o,l)}function Wf(i,o,l,d,p){var m=i.memoizedState;m===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=l,m.tailMode=p)}function r0(i,o,l){var d=o.pendingProps,p=d.revealOrder,m=d.tail;if(cn(i,o,d.children,l),d=bt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&n0(i,l,o);else if(i.tag===19)n0(i,l,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}d&=1}if(dt(bt,d),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)i=l.alternate,i!==null&&pc(i)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),Wf(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(i=p.alternate,i!==null&&pc(i)===null){o.child=p;break}i=p.sibling,p.sibling=l,l=p,p=i}Wf(o,!0,l,null,m);break;case"together":Wf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function _c(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function li(i,o,l){if(i!==null&&(o.dependencies=i.dependencies),wo|=o.lanes,(l&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(n(153));if(o.child!==null){for(i=o.child,l=Gi(i,i.pendingProps),o.child=l,l.return=o;i.sibling!==null;)i=i.sibling,l=l.sibling=Gi(i,i.pendingProps),l.return=o;l.sibling=null}return o.child}function nw(i,o,l){switch(o.tag){case 3:Zg(o),is();break;case 5:gg(o);break;case 1:vn(o.type)&&rc(o);break;case 4:wf(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,p=o.memoizedProps.value;dt(cc,d._currentValue),d._currentValue=p;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(dt(bt,bt.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?t0(i,o,l):(dt(bt,bt.current&1),i=li(i,o,l),i!==null?i.sibling:null);dt(bt,bt.current&1);break;case 19:if(d=(l&o.childLanes)!==0,(i.flags&128)!==0){if(d)return r0(i,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),dt(bt,bt.current),d)break;return null;case 22:case 23:return o.lanes=0,Xg(i,o,l)}return li(i,o,l)}var i0,Hf,o0,s0;i0=function(i,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Hf=function(){},o0=function(i,o,l,d){var p=i.memoizedProps;if(p!==d){i=o.stateNode,_o(Er.current);var m=null;switch(l){case"input":p=Je(i,p),d=Je(i,d),m=[];break;case"select":p=ne({},p,{value:void 0}),d=ne({},d,{value:void 0}),m=[];break;case"textarea":p=me(i,p),d=me(i,d),m=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(i.onclick=ec)}xd(l,d);var b;l=null;for(U in p)if(!d.hasOwnProperty(U)&&p.hasOwnProperty(U)&&p[U]!=null)if(U==="style"){var x=p[U];for(b in x)x.hasOwnProperty(b)&&(l||(l={}),l[b]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(s.hasOwnProperty(U)?m||(m=[]):(m=m||[]).push(U,null));for(U in d){var k=d[U];if(x=p!=null?p[U]:void 0,d.hasOwnProperty(U)&&k!==x&&(k!=null||x!=null))if(U==="style")if(x){for(b in x)!x.hasOwnProperty(b)||k&&k.hasOwnProperty(b)||(l||(l={}),l[b]="");for(b in k)k.hasOwnProperty(b)&&x[b]!==k[b]&&(l||(l={}),l[b]=k[b])}else l||(m||(m=[]),m.push(U,l)),l=k;else U==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,x=x?x.__html:void 0,k!=null&&x!==k&&(m=m||[]).push(U,k)):U==="children"?typeof k!="string"&&typeof k!="number"||(m=m||[]).push(U,""+k):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(s.hasOwnProperty(U)?(k!=null&&U==="onScroll"&&pt("scroll",i),m||x===k||(m=[])):(m=m||[]).push(U,k))}l&&(m=m||[]).push("style",l);var U=m;(o.updateQueue=U)&&(o.flags|=4)}},s0=function(i,o,l,d){l!==d&&(o.flags|=4)};function Ma(i,o){if(!yt)switch(i.tailMode){case"hidden":o=i.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function en(i){var o=i.alternate!==null&&i.alternate.child===i.child,l=0,d=0;if(o)for(var p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=d,i.childLanes=l,o}function rw(i,o,l){var d=o.pendingProps;switch(pf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return en(o),null;case 1:return vn(o.type)&&nc(),en(o),null;case 3:return d=o.stateNode,ls(),ht(gn),ht(qt),kf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(i===null||i.child===null)&&(ac(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,mr!==null&&(np(mr),mr=null))),Hf(i,o),en(o),null;case 5:xf(o);var p=_o(Ra.current);if(l=o.type,i!==null&&o.stateNode!=null)o0(i,o,l,d,p),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return en(o),null}if(i=_o(Er.current),ac(o)){d=o.stateNode,l=o.type;var m=o.memoizedProps;switch(d[Rr]=o,d[wa]=m,i=(o.mode&1)!==0,l){case"dialog":pt("cancel",d),pt("close",d);break;case"iframe":case"object":case"embed":pt("load",d);break;case"video":case"audio":for(p=0;p<Sa.length;p++)pt(Sa[p],d);break;case"source":pt("error",d);break;case"img":case"image":case"link":pt("error",d),pt("load",d);break;case"details":pt("toggle",d);break;case"input":jt(d,m),pt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},pt("invalid",d);break;case"textarea":Zr(d,m),pt("invalid",d)}xd(l,m),p=null;for(var b in m)if(m.hasOwnProperty(b)){var x=m[b];b==="children"?typeof x=="string"?d.textContent!==x&&(m.suppressHydrationWarning!==!0&&Zl(d.textContent,x,i),p=["children",x]):typeof x=="number"&&d.textContent!==""+x&&(m.suppressHydrationWarning!==!0&&Zl(d.textContent,x,i),p=["children",""+x]):s.hasOwnProperty(b)&&x!=null&&b==="onScroll"&&pt("scroll",d)}switch(l){case"input":ur(d),st(d,m,!0);break;case"textarea":ur(d),ho(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=ec)}d=p,o.updateQueue=d,d!==null&&(o.flags|=4)}else{b=p.nodeType===9?p:p.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ei(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=b.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof d.is=="string"?i=b.createElement(l,{is:d.is}):(i=b.createElement(l),l==="select"&&(b=i,d.multiple?b.multiple=!0:d.size&&(b.size=d.size))):i=b.createElementNS(i,l),i[Rr]=o,i[wa]=d,i0(i,o,!1,!1),o.stateNode=i;e:{switch(b=Id(l,d),l){case"dialog":pt("cancel",i),pt("close",i),p=d;break;case"iframe":case"object":case"embed":pt("load",i),p=d;break;case"video":case"audio":for(p=0;p<Sa.length;p++)pt(Sa[p],i);p=d;break;case"source":pt("error",i),p=d;break;case"img":case"image":case"link":pt("error",i),pt("load",i),p=d;break;case"details":pt("toggle",i),p=d;break;case"input":jt(i,d),p=Je(i,d),pt("invalid",i);break;case"option":p=d;break;case"select":i._wrapperState={wasMultiple:!!d.multiple},p=ne({},d,{value:void 0}),pt("invalid",i);break;case"textarea":Zr(i,d),p=me(i,d),pt("invalid",i);break;default:p=d}xd(l,p),x=p;for(m in x)if(x.hasOwnProperty(m)){var k=x[m];m==="style"?Qm(i,k):m==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Tt(i,k)):m==="children"?typeof k=="string"?(l!=="textarea"||k!=="")&&wt(i,k):typeof k=="number"&&wt(i,""+k):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?k!=null&&m==="onScroll"&&pt("scroll",i):k!=null&&N(i,m,k,b))}switch(l){case"input":ur(i),st(i,d,!1);break;case"textarea":ur(i),ho(i);break;case"option":d.value!=null&&i.setAttribute("value",""+Ne(d.value));break;case"select":i.multiple=!!d.multiple,m=d.value,m!=null?Yn(i,!!d.multiple,m,!1):d.defaultValue!=null&&Yn(i,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(i.onclick=ec)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return en(o),null;case 6:if(i&&o.stateNode!=null)s0(i,o,i.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(l=_o(Ra.current),_o(Er.current),ac(o)){if(d=o.stateNode,l=o.memoizedProps,d[Rr]=o,(m=d.nodeValue!==l)&&(i=Ln,i!==null))switch(i.tag){case 3:Zl(d.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Zl(d.nodeValue,l,(i.mode&1)!==0)}m&&(o.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Rr]=o,o.stateNode=d}return en(o),null;case 13:if(ht(bt),d=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(yt&&Fn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)cg(),is(),o.flags|=98560,m=!1;else if(m=ac(o),d!==null&&d.dehydrated!==null){if(i===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Rr]=o}else is(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;en(o),m=!1}else mr!==null&&(np(mr),mr=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(d=d!==null,d!==(i!==null&&i.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(i===null||(bt.current&1)!==0?Ft===0&&(Ft=3):op())),o.updateQueue!==null&&(o.flags|=4),en(o),null);case 4:return ls(),Hf(i,o),i===null&&_a(o.stateNode.containerInfo),en(o),null;case 10:return bf(o.type._context),en(o),null;case 17:return vn(o.type)&&nc(),en(o),null;case 19:if(ht(bt),m=o.memoizedState,m===null)return en(o),null;if(d=(o.flags&128)!==0,b=m.rendering,b===null)if(d)Ma(m,!1);else{if(Ft!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=pc(i),b!==null){for(o.flags|=128,Ma(m,!1),d=b.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=l,l=o.child;l!==null;)m=l,i=d,m.flags&=14680066,b=m.alternate,b===null?(m.childLanes=0,m.lanes=i,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=b.childLanes,m.lanes=b.lanes,m.child=b.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=b.memoizedProps,m.memoizedState=b.memoizedState,m.updateQueue=b.updateQueue,m.type=b.type,i=b.dependencies,m.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return dt(bt,bt.current&1|2),o.child}i=i.sibling}m.tail!==null&&Rt()>fs&&(o.flags|=128,d=!0,Ma(m,!1),o.lanes=4194304)}else{if(!d)if(i=pc(b),i!==null){if(o.flags|=128,d=!0,l=i.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Ma(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!yt)return en(o),null}else 2*Rt()-m.renderingStartTime>fs&&l!==1073741824&&(o.flags|=128,d=!0,Ma(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(l=m.last,l!==null?l.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Rt(),o.sibling=null,l=bt.current,dt(bt,d?l&1|2:l&1),o):(en(o),null);case 22:case 23:return ip(),d=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?($n&1073741824)!==0&&(en(o),o.subtreeFlags&6&&(o.flags|=8192)):en(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function iw(i,o){switch(pf(o),o.tag){case 1:return vn(o.type)&&nc(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ls(),ht(gn),ht(qt),kf(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return xf(o),null;case 13:if(ht(bt),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));is()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return ht(bt),null;case 4:return ls(),null;case 10:return bf(o.type._context),null;case 22:case 23:return ip(),null;case 24:return null;default:return null}}var Cc=!1,tn=!1,ow=typeof WeakSet=="function"?WeakSet:Set,ie=null;function us(i,o){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){xt(i,o,d)}else l.current=null}function Gf(i,o,l){try{l()}catch(d){xt(i,o,d)}}var a0=!1;function sw(i,o){if(rf=Ul,i=$y(),Qd(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var b=0,x=-1,k=-1,U=0,Q=0,J=i,K=null;t:for(;;){for(var re;J!==l||p!==0&&J.nodeType!==3||(x=b+p),J!==m||d!==0&&J.nodeType!==3||(k=b+d),J.nodeType===3&&(b+=J.nodeValue.length),(re=J.firstChild)!==null;)K=J,J=re;for(;;){if(J===i)break t;if(K===l&&++U===p&&(x=b),K===m&&++Q===d&&(k=b),(re=J.nextSibling)!==null)break;J=K,K=J.parentNode}J=re}l=x===-1||k===-1?null:{start:x,end:k}}else l=null}l=l||{start:0,end:0}}else l=null;for(of={focusedElem:i,selectionRange:l},Ul=!1,ie=o;ie!==null;)if(o=ie,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ie=i;else for(;ie!==null;){o=ie;try{var oe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var se=oe.memoizedProps,Et=oe.memoizedState,B=o.stateNode,A=B.getSnapshotBeforeUpdate(o.elementType===o.type?se:yr(o.type,se),Et);B.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var F=o.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){xt(o,o.return,ee)}if(i=o.sibling,i!==null){i.return=o.return,ie=i;break}ie=o.return}return oe=a0,a0=!1,oe}function Da(i,o,l){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&i)===i){var m=p.destroy;p.destroy=void 0,m!==void 0&&Gf(o,l,m)}p=p.next}while(p!==d)}}function wc(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&i)===i){var d=l.create;l.destroy=d()}l=l.next}while(l!==o)}}function Yf(i){var o=i.ref;if(o!==null){var l=i.stateNode;switch(i.tag){case 5:i=l;break;default:i=l}typeof o=="function"?o(i):o.current=i}}function l0(i){var o=i.alternate;o!==null&&(i.alternate=null,l0(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[Rr],delete o[wa],delete o[cf],delete o[UC],delete o[VC])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function c0(i){return i.tag===5||i.tag===3||i.tag===4}function u0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||c0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Kf(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(i,o):l.insertBefore(i,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(i,l)):(o=l,o.appendChild(i)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=ec));else if(d!==4&&(i=i.child,i!==null))for(Kf(i,o,l),i=i.sibling;i!==null;)Kf(i,o,l),i=i.sibling}function Qf(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.insertBefore(i,o):l.appendChild(i);else if(d!==4&&(i=i.child,i!==null))for(Qf(i,o,l),i=i.sibling;i!==null;)Qf(i,o,l),i=i.sibling}var Ht=null,gr=!1;function ji(i,o,l){for(l=l.child;l!==null;)d0(i,o,l),l=l.sibling}function d0(i,o,l){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(Bl,l)}catch{}switch(l.tag){case 5:tn||us(l,o);case 6:var d=Ht,p=gr;Ht=null,ji(i,o,l),Ht=d,gr=p,Ht!==null&&(gr?(i=Ht,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):Ht.removeChild(l.stateNode));break;case 18:Ht!==null&&(gr?(i=Ht,l=l.stateNode,i.nodeType===8?lf(i.parentNode,l):i.nodeType===1&&lf(i,l),fa(i)):lf(Ht,l.stateNode));break;case 4:d=Ht,p=gr,Ht=l.stateNode.containerInfo,gr=!0,ji(i,o,l),Ht=d,gr=p;break;case 0:case 11:case 14:case 15:if(!tn&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var m=p,b=m.destroy;m=m.tag,b!==void 0&&((m&2)!==0||(m&4)!==0)&&Gf(l,o,b),p=p.next}while(p!==d)}ji(i,o,l);break;case 1:if(!tn&&(us(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(x){xt(l,o,x)}ji(i,o,l);break;case 21:ji(i,o,l);break;case 22:l.mode&1?(tn=(d=tn)||l.memoizedState!==null,ji(i,o,l),tn=d):ji(i,o,l);break;default:ji(i,o,l)}}function f0(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new ow),o.forEach(function(d){var p=mw.bind(null,i,d);l.has(d)||(l.add(d),d.then(p,p))})}}function vr(i,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{var m=i,b=o,x=b;e:for(;x!==null;){switch(x.tag){case 5:Ht=x.stateNode,gr=!1;break e;case 3:Ht=x.stateNode.containerInfo,gr=!0;break e;case 4:Ht=x.stateNode.containerInfo,gr=!0;break e}x=x.return}if(Ht===null)throw Error(n(160));d0(m,b,p),Ht=null,gr=!1;var k=p.alternate;k!==null&&(k.return=null),p.return=null}catch(U){xt(p,o,U)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)p0(o,i),o=o.sibling}function p0(i,o){var l=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(vr(o,i),Pr(i),d&4){try{Da(3,i,i.return),wc(3,i)}catch(se){xt(i,i.return,se)}try{Da(5,i,i.return)}catch(se){xt(i,i.return,se)}}break;case 1:vr(o,i),Pr(i),d&512&&l!==null&&us(l,l.return);break;case 5:if(vr(o,i),Pr(i),d&512&&l!==null&&us(l,l.return),i.flags&32){var p=i.stateNode;try{wt(p,"")}catch(se){xt(i,i.return,se)}}if(d&4&&(p=i.stateNode,p!=null)){var m=i.memoizedProps,b=l!==null?l.memoizedProps:m,x=i.type,k=i.updateQueue;if(i.updateQueue=null,k!==null)try{x==="input"&&m.type==="radio"&&m.name!=null&&fr(p,m),Id(x,b);var U=Id(x,m);for(b=0;b<k.length;b+=2){var Q=k[b],J=k[b+1];Q==="style"?Qm(p,J):Q==="dangerouslySetInnerHTML"?Tt(p,J):Q==="children"?wt(p,J):N(p,Q,J,U)}switch(x){case"input":Qt(p,m);break;case"textarea":an(p,m);break;case"select":var K=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var re=m.value;re!=null?Yn(p,!!m.multiple,re,!1):K!==!!m.multiple&&(m.defaultValue!=null?Yn(p,!!m.multiple,m.defaultValue,!0):Yn(p,!!m.multiple,m.multiple?[]:"",!1))}p[wa]=m}catch(se){xt(i,i.return,se)}}break;case 6:if(vr(o,i),Pr(i),d&4){if(i.stateNode===null)throw Error(n(162));p=i.stateNode,m=i.memoizedProps;try{p.nodeValue=m}catch(se){xt(i,i.return,se)}}break;case 3:if(vr(o,i),Pr(i),d&4&&l!==null&&l.memoizedState.isDehydrated)try{fa(o.containerInfo)}catch(se){xt(i,i.return,se)}break;case 4:vr(o,i),Pr(i);break;case 13:vr(o,i),Pr(i),p=i.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(qf=Rt())),d&4&&f0(i);break;case 22:if(Q=l!==null&&l.memoizedState!==null,i.mode&1?(tn=(U=tn)||Q,vr(o,i),tn=U):vr(o,i),Pr(i),d&8192){if(U=i.memoizedState!==null,(i.stateNode.isHidden=U)&&!Q&&(i.mode&1)!==0)for(ie=i,Q=i.child;Q!==null;){for(J=ie=Q;ie!==null;){switch(K=ie,re=K.child,K.tag){case 0:case 11:case 14:case 15:Da(4,K,K.return);break;case 1:us(K,K.return);var oe=K.stateNode;if(typeof oe.componentWillUnmount=="function"){d=K,l=K.return;try{o=d,oe.props=o.memoizedProps,oe.state=o.memoizedState,oe.componentWillUnmount()}catch(se){xt(d,l,se)}}break;case 5:us(K,K.return);break;case 22:if(K.memoizedState!==null){y0(J);continue}}re!==null?(re.return=K,ie=re):y0(J)}Q=Q.sibling}e:for(Q=null,J=i;;){if(J.tag===5){if(Q===null){Q=J;try{p=J.stateNode,U?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(x=J.stateNode,k=J.memoizedProps.style,b=k!=null&&k.hasOwnProperty("display")?k.display:null,x.style.display=ln("display",b))}catch(se){xt(i,i.return,se)}}}else if(J.tag===6){if(Q===null)try{J.stateNode.nodeValue=U?"":J.memoizedProps}catch(se){xt(i,i.return,se)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===i)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===i)break e;for(;J.sibling===null;){if(J.return===null||J.return===i)break e;Q===J&&(Q=null),J=J.return}Q===J&&(Q=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:vr(o,i),Pr(i),d&4&&f0(i);break;case 21:break;default:vr(o,i),Pr(i)}}function Pr(i){var o=i.flags;if(o&2){try{e:{for(var l=i.return;l!==null;){if(c0(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(wt(p,""),d.flags&=-33);var m=u0(i);Qf(i,m,p);break;case 3:case 4:var b=d.stateNode.containerInfo,x=u0(i);Kf(i,x,b);break;default:throw Error(n(161))}}catch(k){xt(i,i.return,k)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function aw(i,o,l){ie=i,h0(i)}function h0(i,o,l){for(var d=(i.mode&1)!==0;ie!==null;){var p=ie,m=p.child;if(p.tag===22&&d){var b=p.memoizedState!==null||Cc;if(!b){var x=p.alternate,k=x!==null&&x.memoizedState!==null||tn;x=Cc;var U=tn;if(Cc=b,(tn=k)&&!U)for(ie=p;ie!==null;)b=ie,k=b.child,b.tag===22&&b.memoizedState!==null?g0(p):k!==null?(k.return=b,ie=k):g0(p);for(;m!==null;)ie=m,h0(m),m=m.sibling;ie=p,Cc=x,tn=U}m0(i)}else(p.subtreeFlags&8772)!==0&&m!==null?(m.return=p,ie=m):m0(i)}}function m0(i){for(;ie!==null;){var o=ie;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:tn||wc(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!tn)if(l===null)d.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:yr(o.type,l.memoizedProps);d.componentDidUpdate(p,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&yg(o,m,d);break;case 3:var b=o.updateQueue;if(b!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}yg(o,b,l)}break;case 5:var x=o.stateNode;if(l===null&&o.flags&4){l=x;var k=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&l.focus();break;case"img":k.src&&(l.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var U=o.alternate;if(U!==null){var Q=U.memoizedState;if(Q!==null){var J=Q.dehydrated;J!==null&&fa(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}tn||o.flags&512&&Yf(o)}catch(K){xt(o,o.return,K)}}if(o===i){ie=null;break}if(l=o.sibling,l!==null){l.return=o.return,ie=l;break}ie=o.return}}function y0(i){for(;ie!==null;){var o=ie;if(o===i){ie=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ie=l;break}ie=o.return}}function g0(i){for(;ie!==null;){var o=ie;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{wc(4,o)}catch(k){xt(o,l,k)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var p=o.return;try{d.componentDidMount()}catch(k){xt(o,p,k)}}var m=o.return;try{Yf(o)}catch(k){xt(o,m,k)}break;case 5:var b=o.return;try{Yf(o)}catch(k){xt(o,b,k)}}}catch(k){xt(o,o.return,k)}if(o===i){ie=null;break}var x=o.sibling;if(x!==null){x.return=o.return,ie=x;break}ie=o.return}}var lw=Math.ceil,xc=E.ReactCurrentDispatcher,Xf=E.ReactCurrentOwner,qn=E.ReactCurrentBatchConfig,We=0,Vt=null,Pt=null,Gt=0,$n=0,ds=Bi(0),Ft=0,Na=null,wo=0,Ic=0,Jf=0,Ba=null,Sn=null,qf=0,fs=1/0,ci=null,kc=!1,Zf=null,Ui=null,Tc=!1,Vi=null,Rc=0,La=0,ep=null,Ec=-1,Ac=0;function un(){return(We&6)!==0?Rt():Ec!==-1?Ec:Ec=Rt()}function Wi(i){return(i.mode&1)===0?1:(We&2)!==0&&Gt!==0?Gt&-Gt:HC.transition!==null?(Ac===0&&(Ac=uy()),Ac):(i=nt,i!==0||(i=window.event,i=i===void 0?16:by(i.type)),i)}function br(i,o,l,d){if(50<La)throw La=0,ep=null,Error(n(185));aa(i,l,d),((We&2)===0||i!==Vt)&&(i===Vt&&((We&2)===0&&(Ic|=l),Ft===4&&Hi(i,Gt)),_n(i,d),l===1&&We===0&&(o.mode&1)===0&&(fs=Rt()+500,ic&&Fi()))}function _n(i,o){var l=i.callbackNode;H_(i,o);var d=$l(i,i===Vt?Gt:0);if(d===0)l!==null&&ay(l),i.callbackNode=null,i.callbackPriority=0;else if(o=d&-d,i.callbackPriority!==o){if(l!=null&&ay(l),o===1)i.tag===0?WC(b0.bind(null,i)):ig(b0.bind(null,i)),zC(function(){(We&6)===0&&Fi()}),l=null;else{switch(dy(d)){case 1:l=Od;break;case 4:l=ly;break;case 16:l=Nl;break;case 536870912:l=cy;break;default:l=Nl}l=T0(l,v0.bind(null,i))}i.callbackPriority=o,i.callbackNode=l}}function v0(i,o){if(Ec=-1,Ac=0,(We&6)!==0)throw Error(n(327));var l=i.callbackNode;if(ps()&&i.callbackNode!==l)return null;var d=$l(i,i===Vt?Gt:0);if(d===0)return null;if((d&30)!==0||(d&i.expiredLanes)!==0||o)o=Pc(i,d);else{o=d;var p=We;We|=2;var m=_0();(Vt!==i||Gt!==o)&&(ci=null,fs=Rt()+500,Io(i,o));do try{dw();break}catch(x){S0(i,x)}while(!0);vf(),xc.current=m,We=p,Pt!==null?o=0:(Vt=null,Gt=0,o=Ft)}if(o!==0){if(o===2&&(p=Md(i),p!==0&&(d=p,o=tp(i,p))),o===1)throw l=Na,Io(i,0),Hi(i,d),_n(i,Rt()),l;if(o===6)Hi(i,d);else{if(p=i.current.alternate,(d&30)===0&&!cw(p)&&(o=Pc(i,d),o===2&&(m=Md(i),m!==0&&(d=m,o=tp(i,m))),o===1))throw l=Na,Io(i,0),Hi(i,d),_n(i,Rt()),l;switch(i.finishedWork=p,i.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:ko(i,Sn,ci);break;case 3:if(Hi(i,d),(d&130023424)===d&&(o=qf+500-Rt(),10<o)){if($l(i,0)!==0)break;if(p=i.suspendedLanes,(p&d)!==d){un(),i.pingedLanes|=i.suspendedLanes&p;break}i.timeoutHandle=af(ko.bind(null,i,Sn,ci),o);break}ko(i,Sn,ci);break;case 4:if(Hi(i,d),(d&4194240)===d)break;for(o=i.eventTimes,p=-1;0<d;){var b=31-pr(d);m=1<<b,b=o[b],b>p&&(p=b),d&=~m}if(d=p,d=Rt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*lw(d/1960))-d,10<d){i.timeoutHandle=af(ko.bind(null,i,Sn,ci),d);break}ko(i,Sn,ci);break;case 5:ko(i,Sn,ci);break;default:throw Error(n(329))}}}return _n(i,Rt()),i.callbackNode===l?v0.bind(null,i):null}function tp(i,o){var l=Ba;return i.current.memoizedState.isDehydrated&&(Io(i,o).flags|=256),i=Pc(i,o),i!==2&&(o=Sn,Sn=l,o!==null&&np(o)),i}function np(i){Sn===null?Sn=i:Sn.push.apply(Sn,i)}function cw(i){for(var o=i;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var p=l[d],m=p.getSnapshot;p=p.value;try{if(!hr(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Hi(i,o){for(o&=~Jf,o&=~Ic,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var l=31-pr(o),d=1<<l;i[l]=-1,o&=~d}}function b0(i){if((We&6)!==0)throw Error(n(327));ps();var o=$l(i,0);if((o&1)===0)return _n(i,Rt()),null;var l=Pc(i,o);if(i.tag!==0&&l===2){var d=Md(i);d!==0&&(o=d,l=tp(i,d))}if(l===1)throw l=Na,Io(i,0),Hi(i,o),_n(i,Rt()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,ko(i,Sn,ci),_n(i,Rt()),null}function rp(i,o){var l=We;We|=1;try{return i(o)}finally{We=l,We===0&&(fs=Rt()+500,ic&&Fi())}}function xo(i){Vi!==null&&Vi.tag===0&&(We&6)===0&&ps();var o=We;We|=1;var l=qn.transition,d=nt;try{if(qn.transition=null,nt=1,i)return i()}finally{nt=d,qn.transition=l,We=o,(We&6)===0&&Fi()}}function ip(){$n=ds.current,ht(ds)}function Io(i,o){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,$C(l)),Pt!==null)for(l=Pt.return;l!==null;){var d=l;switch(pf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&nc();break;case 3:ls(),ht(gn),ht(qt),kf();break;case 5:xf(d);break;case 4:ls();break;case 13:ht(bt);break;case 19:ht(bt);break;case 10:bf(d.type._context);break;case 22:case 23:ip()}l=l.return}if(Vt=i,Pt=i=Gi(i.current,null),Gt=$n=o,Ft=0,Na=null,Jf=Ic=wo=0,Sn=Ba=null,So!==null){for(o=0;o<So.length;o++)if(l=So[o],d=l.interleaved,d!==null){l.interleaved=null;var p=d.next,m=l.pending;if(m!==null){var b=m.next;m.next=p,d.next=b}l.pending=d}So=null}return i}function S0(i,o){do{var l=Pt;try{if(vf(),hc.current=vc,mc){for(var d=St.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}mc=!1}if(Co=0,Ut=Lt=St=null,Ea=!1,Aa=0,Xf.current=null,l===null||l.return===null){Ft=1,Na=o,Pt=null;break}e:{var m=i,b=l.return,x=l,k=o;if(o=Gt,x.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var U=k,Q=x,J=Q.tag;if((Q.mode&1)===0&&(J===0||J===11||J===15)){var K=Q.alternate;K?(Q.updateQueue=K.updateQueue,Q.memoizedState=K.memoizedState,Q.lanes=K.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var re=Hg(b);if(re!==null){re.flags&=-257,Gg(re,b,x,m,o),re.mode&1&&Wg(m,U,o),o=re,k=U;var oe=o.updateQueue;if(oe===null){var se=new Set;se.add(k),o.updateQueue=se}else oe.add(k);break e}else{if((o&1)===0){Wg(m,U,o),op();break e}k=Error(n(426))}}else if(yt&&x.mode&1){var Et=Hg(b);if(Et!==null){(Et.flags&65536)===0&&(Et.flags|=256),Gg(Et,b,x,m,o),yf(cs(k,x));break e}}m=k=cs(k,x),Ft!==4&&(Ft=2),Ba===null?Ba=[m]:Ba.push(m),m=b;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var B=Ug(m,k,o);mg(m,B);break e;case 1:x=k;var A=m.type,F=m.stateNode;if((m.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Ui===null||!Ui.has(F)))){m.flags|=65536,o&=-o,m.lanes|=o;var ee=Vg(m,x,o);mg(m,ee);break e}}m=m.return}while(m!==null)}w0(l)}catch(le){o=le,Pt===l&&l!==null&&(Pt=l=l.return);continue}break}while(!0)}function _0(){var i=xc.current;return xc.current=vc,i===null?vc:i}function op(){(Ft===0||Ft===3||Ft===2)&&(Ft=4),Vt===null||(wo&268435455)===0&&(Ic&268435455)===0||Hi(Vt,Gt)}function Pc(i,o){var l=We;We|=2;var d=_0();(Vt!==i||Gt!==o)&&(ci=null,Io(i,o));do try{uw();break}catch(p){S0(i,p)}while(!0);if(vf(),We=l,xc.current=d,Pt!==null)throw Error(n(261));return Vt=null,Gt=0,Ft}function uw(){for(;Pt!==null;)C0(Pt)}function dw(){for(;Pt!==null&&!B_();)C0(Pt)}function C0(i){var o=k0(i.alternate,i,$n);i.memoizedProps=i.pendingProps,o===null?w0(i):Pt=o,Xf.current=null}function w0(i){var o=i;do{var l=o.alternate;if(i=o.return,(o.flags&32768)===0){if(l=rw(l,o,$n),l!==null){Pt=l;return}}else{if(l=iw(l,o),l!==null){l.flags&=32767,Pt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Ft=6,Pt=null;return}}if(o=o.sibling,o!==null){Pt=o;return}Pt=o=i}while(o!==null);Ft===0&&(Ft=5)}function ko(i,o,l){var d=nt,p=qn.transition;try{qn.transition=null,nt=1,fw(i,o,l,d)}finally{qn.transition=p,nt=d}return null}function fw(i,o,l,d){do ps();while(Vi!==null);if((We&6)!==0)throw Error(n(327));l=i.finishedWork;var p=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var m=l.lanes|l.childLanes;if(G_(i,m),i===Vt&&(Pt=Vt=null,Gt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Tc||(Tc=!0,T0(Nl,function(){return ps(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=qn.transition,qn.transition=null;var b=nt;nt=1;var x=We;We|=4,Xf.current=null,sw(i,l),p0(l,i),OC(of),Ul=!!rf,of=rf=null,i.current=l,aw(l),L_(),We=x,nt=b,qn.transition=m}else i.current=l;if(Tc&&(Tc=!1,Vi=i,Rc=p),m=i.pendingLanes,m===0&&(Ui=null),z_(l.stateNode),_n(i,Rt()),o!==null)for(d=i.onRecoverableError,l=0;l<o.length;l++)p=o[l],d(p.value,{componentStack:p.stack,digest:p.digest});if(kc)throw kc=!1,i=Zf,Zf=null,i;return(Rc&1)!==0&&i.tag!==0&&ps(),m=i.pendingLanes,(m&1)!==0?i===ep?La++:(La=0,ep=i):La=0,Fi(),null}function ps(){if(Vi!==null){var i=dy(Rc),o=qn.transition,l=nt;try{if(qn.transition=null,nt=16>i?16:i,Vi===null)var d=!1;else{if(i=Vi,Vi=null,Rc=0,(We&6)!==0)throw Error(n(331));var p=We;for(We|=4,ie=i.current;ie!==null;){var m=ie,b=m.child;if((ie.flags&16)!==0){var x=m.deletions;if(x!==null){for(var k=0;k<x.length;k++){var U=x[k];for(ie=U;ie!==null;){var Q=ie;switch(Q.tag){case 0:case 11:case 15:Da(8,Q,m)}var J=Q.child;if(J!==null)J.return=Q,ie=J;else for(;ie!==null;){Q=ie;var K=Q.sibling,re=Q.return;if(l0(Q),Q===U){ie=null;break}if(K!==null){K.return=re,ie=K;break}ie=re}}}var oe=m.alternate;if(oe!==null){var se=oe.child;if(se!==null){oe.child=null;do{var Et=se.sibling;se.sibling=null,se=Et}while(se!==null)}}ie=m}}if((m.subtreeFlags&2064)!==0&&b!==null)b.return=m,ie=b;else e:for(;ie!==null;){if(m=ie,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Da(9,m,m.return)}var B=m.sibling;if(B!==null){B.return=m.return,ie=B;break e}ie=m.return}}var A=i.current;for(ie=A;ie!==null;){b=ie;var F=b.child;if((b.subtreeFlags&2064)!==0&&F!==null)F.return=b,ie=F;else e:for(b=A;ie!==null;){if(x=ie,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:wc(9,x)}}catch(le){xt(x,x.return,le)}if(x===b){ie=null;break e}var ee=x.sibling;if(ee!==null){ee.return=x.return,ie=ee;break e}ie=x.return}}if(We=p,Fi(),Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(Bl,i)}catch{}d=!0}return d}finally{nt=l,qn.transition=o}}return!1}function x0(i,o,l){o=cs(l,o),o=Ug(i,o,1),i=zi(i,o,1),o=un(),i!==null&&(aa(i,1,o),_n(i,o))}function xt(i,o,l){if(i.tag===3)x0(i,i,l);else for(;o!==null;){if(o.tag===3){x0(o,i,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ui===null||!Ui.has(d))){i=cs(l,i),i=Vg(o,i,1),o=zi(o,i,1),i=un(),o!==null&&(aa(o,1,i),_n(o,i));break}}o=o.return}}function pw(i,o,l){var d=i.pingCache;d!==null&&d.delete(o),o=un(),i.pingedLanes|=i.suspendedLanes&l,Vt===i&&(Gt&l)===l&&(Ft===4||Ft===3&&(Gt&130023424)===Gt&&500>Rt()-qf?Io(i,0):Jf|=l),_n(i,o)}function I0(i,o){o===0&&((i.mode&1)===0?o=1:(o=Fl,Fl<<=1,(Fl&130023424)===0&&(Fl=4194304)));var l=un();i=si(i,o),i!==null&&(aa(i,o,l),_n(i,l))}function hw(i){var o=i.memoizedState,l=0;o!==null&&(l=o.retryLane),I0(i,l)}function mw(i,o){var l=0;switch(i.tag){case 13:var d=i.stateNode,p=i.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=i.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),I0(i,l)}var k0;k0=function(i,o,l){if(i!==null)if(i.memoizedProps!==o.pendingProps||gn.current)bn=!0;else{if((i.lanes&l)===0&&(o.flags&128)===0)return bn=!1,nw(i,o,l);bn=(i.flags&131072)!==0}else bn=!1,yt&&(o.flags&1048576)!==0&&og(o,sc,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;_c(i,o),i=o.pendingProps;var p=ts(o,qt.current);as(o,l),p=Ef(null,o,d,i,p,l);var m=Af();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vn(d)?(m=!0,rc(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Cf(o),p.updater=bc,o.stateNode=p,p._reactInternals=o,Bf(o,d,i,l),o=zf(null,o,d,!0,m,l)):(o.tag=0,yt&&m&&ff(o),cn(null,o,p,l),o=o.child),o;case 16:d=o.elementType;e:{switch(_c(i,o),i=o.pendingProps,p=d._init,d=p(d._payload),o.type=d,p=o.tag=gw(d),i=yr(d,i),p){case 0:o=$f(null,o,d,i,l);break e;case 1:o=qg(null,o,d,i,l);break e;case 11:o=Yg(null,o,d,i,l);break e;case 14:o=Kg(null,o,d,yr(d.type,i),l);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),$f(i,o,d,p,l);case 1:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),qg(i,o,d,p,l);case 3:e:{if(Zg(o),i===null)throw Error(n(387));d=o.pendingProps,m=o.memoizedState,p=m.element,hg(i,o),fc(o,d,null,l);var b=o.memoizedState;if(d=b.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=cs(Error(n(423)),o),o=e0(i,o,d,l,p);break e}else if(d!==p){p=cs(Error(n(424)),o),o=e0(i,o,d,l,p);break e}else for(Fn=Ni(o.stateNode.containerInfo.firstChild),Ln=o,yt=!0,mr=null,l=fg(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(is(),d===p){o=li(i,o,l);break e}cn(i,o,d,l)}o=o.child}return o;case 5:return gg(o),i===null&&mf(o),d=o.type,p=o.pendingProps,m=i!==null?i.memoizedProps:null,b=p.children,sf(d,p)?b=null:m!==null&&sf(d,m)&&(o.flags|=32),Jg(i,o),cn(i,o,b,l),o.child;case 6:return i===null&&mf(o),null;case 13:return t0(i,o,l);case 4:return wf(o,o.stateNode.containerInfo),d=o.pendingProps,i===null?o.child=os(o,null,d,l):cn(i,o,d,l),o.child;case 11:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),Yg(i,o,d,p,l);case 7:return cn(i,o,o.pendingProps,l),o.child;case 8:return cn(i,o,o.pendingProps.children,l),o.child;case 12:return cn(i,o,o.pendingProps.children,l),o.child;case 10:e:{if(d=o.type._context,p=o.pendingProps,m=o.memoizedProps,b=p.value,dt(cc,d._currentValue),d._currentValue=b,m!==null)if(hr(m.value,b)){if(m.children===p.children&&!gn.current){o=li(i,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var x=m.dependencies;if(x!==null){b=m.child;for(var k=x.firstContext;k!==null;){if(k.context===d){if(m.tag===1){k=ai(-1,l&-l),k.tag=2;var U=m.updateQueue;if(U!==null){U=U.shared;var Q=U.pending;Q===null?k.next=k:(k.next=Q.next,Q.next=k),U.pending=k}}m.lanes|=l,k=m.alternate,k!==null&&(k.lanes|=l),Sf(m.return,l,o),x.lanes|=l;break}k=k.next}}else if(m.tag===10)b=m.type===o.type?null:m.child;else if(m.tag===18){if(b=m.return,b===null)throw Error(n(341));b.lanes|=l,x=b.alternate,x!==null&&(x.lanes|=l),Sf(b,l,o),b=m.sibling}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===o){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}cn(i,o,p.children,l),o=o.child}return o;case 9:return p=o.type,d=o.pendingProps.children,as(o,l),p=Xn(p),d=d(p),o.flags|=1,cn(i,o,d,l),o.child;case 14:return d=o.type,p=yr(d,o.pendingProps),p=yr(d.type,p),Kg(i,o,d,p,l);case 15:return Qg(i,o,o.type,o.pendingProps,l);case 17:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:yr(d,p),_c(i,o),o.tag=1,vn(d)?(i=!0,rc(o)):i=!1,as(o,l),zg(o,d,p),Bf(o,d,p,l),zf(null,o,d,!0,i,l);case 19:return r0(i,o,l);case 22:return Xg(i,o,l)}throw Error(n(156,o.tag))};function T0(i,o){return sy(i,o)}function yw(i,o,l,d){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(i,o,l,d){return new yw(i,o,l,d)}function sp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function gw(i){if(typeof i=="function")return sp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===ce)return 14}return 2}function Gi(i,o){var l=i.alternate;return l===null?(l=Zn(i.tag,o,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=o,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,o=i.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function Oc(i,o,l,d,p,m){var b=2;if(d=i,typeof i=="function")sp(i)&&(b=1);else if(typeof i=="string")b=5;else e:switch(i){case M:return To(l.children,p,m,o);case V:b=8,p|=8;break;case Y:return i=Zn(12,l,o,p|2),i.elementType=Y,i.lanes=m,i;case X:return i=Zn(13,l,o,p),i.elementType=X,i.lanes=m,i;case ae:return i=Zn(19,l,o,p),i.elementType=ae,i.lanes=m,i;case fe:return Mc(l,p,m,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:b=10;break e;case j:b=9;break e;case W:b=11;break e;case ce:b=14;break e;case de:b=16,d=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=Zn(b,l,o,p),o.elementType=i,o.type=d,o.lanes=m,o}function To(i,o,l,d){return i=Zn(7,i,d,o),i.lanes=l,i}function Mc(i,o,l,d){return i=Zn(22,i,d,o),i.elementType=fe,i.lanes=l,i.stateNode={isHidden:!1},i}function ap(i,o,l){return i=Zn(6,i,null,o),i.lanes=l,i}function lp(i,o,l){return o=Zn(4,i.children!==null?i.children:[],i.key,o),o.lanes=l,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function vw(i,o,l,d,p){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dd(0),this.expirationTimes=Dd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dd(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function cp(i,o,l,d,p,m,b,x,k){return i=new vw(i,o,l,x,k),o===1?(o=1,m===!0&&(o|=8)):o=0,m=Zn(3,null,null,o),i.current=m,m.stateNode=i,m.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cf(m),i}function bw(i,o,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:d==null?null:""+d,children:i,containerInfo:o,implementation:l}}function R0(i){if(!i)return Li;i=i._reactInternals;e:{if(mo(i)!==i||i.tag!==1)throw Error(n(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(vn(l))return ng(i,l,o)}return o}function E0(i,o,l,d,p,m,b,x,k){return i=cp(l,d,!0,i,p,m,b,x,k),i.context=R0(null),l=i.current,d=un(),p=Wi(l),m=ai(d,p),m.callback=o??null,zi(l,m,p),i.current.lanes=p,aa(i,p,d),_n(i,d),i}function Dc(i,o,l,d){var p=o.current,m=un(),b=Wi(p);return l=R0(l),o.context===null?o.context=l:o.pendingContext=l,o=ai(m,b),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=zi(p,o,b),i!==null&&(br(i,p,b,m),dc(i,p,b)),b}function Nc(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function A0(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<o?l:o}}function up(i,o){A0(i,o),(i=i.alternate)&&A0(i,o)}function Sw(){return null}var P0=typeof reportError=="function"?reportError:function(i){console.error(i)};function dp(i){this._internalRoot=i}Bc.prototype.render=dp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(n(409));Dc(i,o,null,null)},Bc.prototype.unmount=dp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;xo(function(){Dc(null,i,null,null)}),o[ni]=null}};function Bc(i){this._internalRoot=i}Bc.prototype.unstable_scheduleHydration=function(i){if(i){var o=hy();i={blockedOn:null,target:i,priority:o};for(var l=0;l<Oi.length&&o!==0&&o<Oi[l].priority;l++);Oi.splice(l,0,i),l===0&&gy(i)}};function fp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Lc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function O0(){}function _w(i,o,l,d,p){if(p){if(typeof d=="function"){var m=d;d=function(){var U=Nc(b);m.call(U)}}var b=E0(o,d,i,0,null,!1,!1,"",O0);return i._reactRootContainer=b,i[ni]=b.current,_a(i.nodeType===8?i.parentNode:i),xo(),b}for(;p=i.lastChild;)i.removeChild(p);if(typeof d=="function"){var x=d;d=function(){var U=Nc(k);x.call(U)}}var k=cp(i,0,!1,null,null,!1,!1,"",O0);return i._reactRootContainer=k,i[ni]=k.current,_a(i.nodeType===8?i.parentNode:i),xo(function(){Dc(o,k,l,d)}),k}function Fc(i,o,l,d,p){var m=l._reactRootContainer;if(m){var b=m;if(typeof p=="function"){var x=p;p=function(){var k=Nc(b);x.call(k)}}Dc(o,b,i,p)}else b=_w(l,o,i,p,d);return Nc(b)}fy=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var l=sa(o.pendingLanes);l!==0&&(Nd(o,l|1),_n(o,Rt()),(We&6)===0&&(fs=Rt()+500,Fi()))}break;case 13:xo(function(){var d=si(i,1);if(d!==null){var p=un();br(d,i,1,p)}}),up(i,1)}},Bd=function(i){if(i.tag===13){var o=si(i,134217728);if(o!==null){var l=un();br(o,i,134217728,l)}up(i,134217728)}},py=function(i){if(i.tag===13){var o=Wi(i),l=si(i,o);if(l!==null){var d=un();br(l,i,o,d)}up(i,o)}},hy=function(){return nt},my=function(i,o){var l=nt;try{return nt=i,o()}finally{nt=l}},Rd=function(i,o,l){switch(o){case"input":if(Qt(i,l),o=l.name,l.type==="radio"&&o!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==i&&d.form===i.form){var p=tc(d);if(!p)throw Error(n(90));dr(d),Qt(d,p)}}}break;case"textarea":an(i,l);break;case"select":o=l.value,o!=null&&Yn(i,!!l.multiple,o,!1)}},Zm=rp,ey=xo;var Cw={usingClientEntryPoint:!1,Events:[xa,Zo,tc,Jm,qm,rp]},Fa={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ww={bundleType:Fa.bundleType,version:Fa.version,rendererPackageName:Fa.rendererPackageName,rendererConfig:Fa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=iy(i),i===null?null:i.stateNode},findFiberByHostInstance:Fa.findFiberByHostInstance||Sw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$c.isDisabled&&$c.supportsFiber)try{Bl=$c.inject(ww),Tr=$c}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cw,Cn.createPortal=function(i,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fp(o))throw Error(n(200));return bw(i,o,null,l)},Cn.createRoot=function(i,o){if(!fp(i))throw Error(n(299));var l=!1,d="",p=P0;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=cp(i,1,!1,null,null,l,!1,d,p),i[ni]=o.current,_a(i.nodeType===8?i.parentNode:i),new dp(o)},Cn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=iy(o),i=i===null?null:i.stateNode,i},Cn.flushSync=function(i){return xo(i)},Cn.hydrate=function(i,o,l){if(!Lc(o))throw Error(n(200));return Fc(null,i,o,!0,l)},Cn.hydrateRoot=function(i,o,l){if(!fp(i))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,p=!1,m="",b=P0;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),o=E0(o,null,i,1,l??null,p,!1,m,b),i[ni]=o.current,_a(i),d)for(i=0;i<d.length;i++)l=d[i],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new Bc(o)},Cn.render=function(i,o,l){if(!Lc(o))throw Error(n(200));return Fc(null,i,o,!1,l)},Cn.unmountComponentAtNode=function(i){if(!Lc(i))throw Error(n(40));return i._reactRootContainer?(xo(function(){Fc(null,null,i,!1,function(){i._reactRootContainer=null,i[ni]=null})}),!0):!1},Cn.unstable_batchedUpdates=rp,Cn.unstable_renderSubtreeIntoContainer=function(i,o,l,d){if(!Lc(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Fc(i,o,l,!1,d)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var z0;function Mw(){if(z0)return mp.exports;z0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mp.exports=Ow(),mp.exports}var j0;function Dw(){if(j0)return zc;j0=1;var t=Mw();return zc.createRoot=t.createRoot,zc.hydrateRoot=t.hydrateRoot,zc}var Nw=Dw(),vp={exports:{}},qe={};/** @license React v16.13.1
|
41
41
|
* react-is.production.min.js
|
42
42
|
*
|
43
43
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
44
44
|
*
|
45
45
|
* This source code is licensed under the MIT license found in the
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
47
|
-
*/var j0;function Dw(){if(j0)return qe;j0=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,I=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,L=t?Symbol.for("react.scope"):60119;function B(O){if(typeof O=="object"&&O!==null){var F=O.$$typeof;switch(F){case e:switch(O=O.type,O){case f:case h:case r:case a:case s:case g:return O;default:switch(O=O&&O.$$typeof,O){case u:case y:case w:case C:case c:return O;default:return F}}case n:return F}}}function A(O){return B(O)===h}return qe.AsyncMode=f,qe.ConcurrentMode=h,qe.ContextConsumer=u,qe.ContextProvider=c,qe.Element=e,qe.ForwardRef=y,qe.Fragment=r,qe.Lazy=w,qe.Memo=C,qe.Portal=n,qe.Profiler=a,qe.StrictMode=s,qe.Suspense=g,qe.isAsyncMode=function(O){return A(O)||B(O)===f},qe.isConcurrentMode=A,qe.isContextConsumer=function(O){return B(O)===u},qe.isContextProvider=function(O){return B(O)===c},qe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},qe.isForwardRef=function(O){return B(O)===y},qe.isFragment=function(O){return B(O)===r},qe.isLazy=function(O){return B(O)===w},qe.isMemo=function(O){return B(O)===C},qe.isPortal=function(O){return B(O)===n},qe.isProfiler=function(O){return B(O)===a},qe.isStrictMode=function(O){return B(O)===s},qe.isSuspense=function(O){return B(O)===g},qe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===h||O===a||O===s||O===g||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===C||O.$$typeof===c||O.$$typeof===u||O.$$typeof===y||O.$$typeof===I||O.$$typeof===P||O.$$typeof===L||O.$$typeof===_)},qe.typeOf=B,qe}var U0;function Nw(){return U0||(U0=1,bp.exports=Dw()),bp.exports}var Sp,V0;function Bw(){if(V0)return Sp;V0=1;var t=Nw(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=s;function c(w){return t.isMemo(w)?s:a[w.$$typeof]||e}var u=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function C(w,_,I){if(typeof _!="string"){if(v){var P=g(_);P&&P!==v&&C(w,P,I)}var L=f(_);h&&(L=L.concat(h(_)));for(var B=c(w),A=c(_),O=0;O<L.length;++O){var F=L[O];if(!n[F]&&!(I&&I[F])&&!(A&&A[F])&&!(B&&B[F])){var M=y(_,F);try{u(w,F,M)}catch{}}}}return w}return Sp=C,Sp}Bw();function ve(t,e,n,r){function s(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function u(y){try{h(r.next(y))}catch(g){c(g)}}function f(y){try{h(r.throw(y))}catch(g){c(g)}}function h(y){y.done?a(y.value):s(y.value).then(u,f)}h((r=r.apply(t,e||[])).next())})}function W0(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pe(t){return this instanceof Pe?(this.v=t,this):new Pe(t)}function Gr(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),s,a=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(v){r[v]&&(s[v]=function(C){return new Promise(function(w,_){a.push([v,C,w,_])>1||u(v,C)})})}function u(v,C){try{f(r[v](C))}catch(w){g(a[0][3],w)}}function f(v){v.value instanceof Pe?Promise.resolve(v.value.v).then(h,y):g(a[0][2],v)}function h(v){u("next",v)}function y(v){u("throw",v)}function g(v,C){v(C),a.shift(),a.length&&u(a[0][0],a[0][1])}}function Zc(t){var e,n;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,a){e[s]=t[s]?function(c){return(n=!n)?{value:Pe(t[s](c)),done:!1}:a?a(c):c}:a}}function Lo(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof W0=="function"?W0(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(c){return new Promise(function(u,f){c=t[a](c),s(u,f,c.done,c.value)})}}function s(a,c,u,f){Promise.resolve(f).then(function(h){a({value:h,done:u})},c)}}const Lw=new TextDecoder("utf-8"),Qp=t=>Lw.decode(t),Fw=new TextEncoder,Bh=t=>Fw.encode(t),[cO,$w]=(()=>{const t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[gl,uO]=(()=>{const t=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[e,!1]})(),[vl,dO]=(()=>{const t=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[e,!1]})(),zw=t=>typeof t=="number",T1=t=>typeof t=="boolean",$t=t=>typeof t=="function",En=t=>t!=null&&Object(t)===t,qi=t=>En(t)&&$t(t.then),bl=t=>En(t)&&$t(t[Symbol.iterator]),Xs=t=>En(t)&&$t(t[Symbol.asyncIterator]),Xp=t=>En(t)&&En(t.schema),R1=t=>En(t)&&"done"in t&&"value"in t,E1=t=>En(t)&&$t(t.stat)&&zw(t.fd),A1=t=>En(t)&&Lh(t.body),td=t=>"_getDOMStream"in t&&"_getNodeStream"in t,jw=t=>En(t)&&$t(t.abort)&&$t(t.getWriter)&&!td(t),Lh=t=>En(t)&&$t(t.cancel)&&$t(t.getReader)&&!td(t),Uw=t=>En(t)&&$t(t.end)&&$t(t.write)&&T1(t.writable)&&!td(t),P1=t=>En(t)&&$t(t.read)&&$t(t.pipe)&&T1(t.readable)&&!td(t),Vw=t=>En(t)&&$t(t.clear)&&$t(t.bytes)&&$t(t.position)&&$t(t.setPosition)&&$t(t.capacity)&&$t(t.getBufferIdentifier)&&$t(t.createLong),Fh=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Ww(t){const e=t[0]?[t[0]]:[];let n,r,s,a;for(let c,u,f=0,h=0,y=t.length;++f<y;){if(c=e[h],u=t[f],!c||!u||c.buffer!==u.buffer||u.byteOffset<c.byteOffset){u&&(e[++h]=u);continue}if({byteOffset:n,byteLength:s}=c,{byteOffset:r,byteLength:a}=u,n+s<r||r+a<n){u&&(e[++h]=u);continue}e[h]=new Uint8Array(c.buffer,n,r-n+a)}return e}function H0(t,e,n=0,r=e.byteLength){const s=t.byteLength,a=new Uint8Array(t.buffer,t.byteOffset,s),c=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,s));return a.set(c,n),t}function Xr(t,e){const n=Ww(t),r=n.reduce((y,g)=>y+g.byteLength,0);let s,a,c,u=0,f=-1;const h=Math.min(e||Number.POSITIVE_INFINITY,r);for(const y=n.length;++f<y;){if(s=n[f],a=s.subarray(0,Math.min(s.length,h-u)),h<=u+a.length){a.length<s.length?n[f]=s.subarray(a.length):a.length===s.length&&f++,c?H0(c,a,u):c=a;break}H0(c||(c=new Uint8Array(h)),a,u),u+=a.length}return[c||new Uint8Array(0),n.slice(f),r-(c?c.byteLength:0)]}function ct(t,e){let n=R1(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Bh(n)),n instanceof ArrayBuffer?new t(n):n instanceof Fh?new t(n):Vw(n)?ct(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const ja=t=>ct(Int32Array,t),Qe=t=>ct(Uint8Array,t),Jp=t=>(t.next(),t);function*Hw(t,e){const n=function*(s){yield s},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Fh?n(e):bl(e)?e:n(e);return yield*Jp(function*(s){let a=null;do a=s.next(yield ct(t,a));while(!a.done)}(r[Symbol.iterator]())),new t}const Gw=t=>Hw(Uint8Array,t);function O1(t,e){return Gr(this,arguments,function*(){if(qi(e))return yield Pe(yield Pe(yield*Zc(Lo(O1(t,yield Pe(e))))));const r=function(c){return Gr(this,arguments,function*(){yield yield Pe(yield Pe(c))})},s=function(c){return Gr(this,arguments,function*(){yield Pe(yield*Zc(Lo(Jp(function*(u){let f=null;do f=u.next(yield f==null?void 0:f.value);while(!f.done)}(c[Symbol.iterator]())))))})},a=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Fh?r(e):bl(e)?s(e):Xs(e)?e:r(e);return yield Pe(yield*Zc(Lo(Jp(function(c){return Gr(this,arguments,function*(){let u=null;do u=yield Pe(c.next(yield yield Pe(ct(t,u))));while(!u.done)})}(a[Symbol.asyncIterator]()))))),yield Pe(new t)})}const Yw=t=>O1(Uint8Array,t);function $h(t,e,n){if(t!==0){n=n.slice(0,e+1);for(let r=-1;++r<=e;)n[r]+=t}return n}function Kw(t,e){let n=0;const r=t.length;if(r!==e.length)return!1;if(r>0)do if(t[n]!==e[n])return!1;while(++n<r);return!0}const tr={fromIterable(t){return jc(Qw(t))},fromAsyncIterable(t){return jc(Xw(t))},fromDOMStream(t){return jc(Jw(t))},fromNodeStream(t){return jc(Zw(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},jc=t=>(t.next(),t);function*Qw(t){let e,n=!1,r=[],s,a,c,u=0;function f(){return a==="peek"?Xr(r,c)[0]:([s,r,u]=Xr(r,c),s)}({cmd:a,size:c}=yield null);const h=Gw(t)[Symbol.iterator]();try{do if({done:e,value:s}=Number.isNaN(c-u)?h.next():h.next(c-u),!e&&s.byteLength>0&&(r.push(s),u+=s.byteLength),e||c<=u)do({cmd:a,size:c}=yield f());while(c<u);while(!e)}catch(y){(n=!0)&&typeof h.throw=="function"&&h.throw(y)}finally{n===!1&&typeof h.return=="function"&&h.return(null)}return null}function Xw(t){return Gr(this,arguments,function*(){let n,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?Xr(s,u)[0]:([a,s,f]=Xr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=Yw(t)[Symbol.asyncIterator]();try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.next()):yield Pe(y.next(u-f)),!n&&a.byteLength>0&&(s.push(a),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&typeof y.throw=="function"&&(yield Pe(y.throw(g)))}finally{r===!1&&typeof y.return=="function"&&(yield Pe(y.return(new Uint8Array(0))))}return yield Pe(null)})}function Jw(t){return Gr(this,arguments,function*(){let n=!1,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?Xr(s,u)[0]:([a,s,f]=Xr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=new qw(t);try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.read()):yield Pe(y.read(u-f)),!n&&a.byteLength>0&&(s.push(Qe(a)),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&(yield Pe(y.cancel(g)))}finally{r===!1?yield Pe(y.cancel()):t.locked&&y.releaseLock()}return yield Pe(null)})}class qw{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ve(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return ve(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=Qe(n)),n})}}const _p=(t,e)=>{const n=s=>r([e,s]);let r;return[e,n,new Promise(s=>(r=s)&&t.once(e,n))]};function Zw(t){return Gr(this,arguments,function*(){const n=[];let r="error",s=!1,a=null,c,u,f=0,h=[],y;function g(){return c==="peek"?Xr(h,u)[0]:([y,h,f]=Xr(h,u),y)}if({cmd:c,size:u}=yield yield Pe(null),t.isTTY)return yield yield Pe(new Uint8Array(0)),yield Pe(null);try{n[0]=_p(t,"end"),n[1]=_p(t,"error");do{if(n[2]=_p(t,"readable"),[r,a]=yield Pe(Promise.race(n.map(C=>C[2]))),r==="error")break;if((s=r==="end")||(Number.isFinite(u-f)?(y=Qe(t.read(u-f)),y.byteLength<u-f&&(y=Qe(t.read()))):y=Qe(t.read()),y.byteLength>0&&(h.push(y),f+=y.byteLength)),s||u<=f)do({cmd:c,size:u}=yield yield Pe(g()));while(u<f)}while(!s)}finally{yield Pe(v(n,r==="error"?a:null))}return yield Pe(null);function v(C,w){return y=h=null,new Promise((_,I)=>{for(const[P,L]of C)t.off(P,L);try{const P=t.destroy;P&&P.call(t,w),w=void 0}catch(P){w=P||w}finally{w!=null?I(w):_()}})}})}var Un;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(Un||(Un={}));var Hn;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Hn||(Hn={}));var Rn;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(Rn||(Rn={}));var ki;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(ki||(ki={}));var Xe;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Xe||(Xe={}));var Zi;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Zi||(Zi={}));var Ze;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Ze||(Ze={}));var D;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"})(D||(D={}));var hi;(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(hi||(hi={}));const ex=void 0;function tl(t){if(t===null)return"null";if(t===ex)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof gl||t instanceof vl?`[${[...t].map(e=>tl(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,n)=>typeof n=="bigint"?`${n}`:n)}const tx=Symbol.for("isArrowBigNum");function kr(t,...e){return e.length===0?Object.setPrototypeOf(ct(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}kr.prototype[tx]=!0;kr.prototype.toJSON=function(){return`"${Fo(this)}"`};kr.prototype.valueOf=function(){return M1(this)};kr.prototype.toString=function(){return Fo(this)};kr.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return M1(this);case"string":return Fo(this);case"default":return qp(this)}return Fo(this)};function As(...t){return kr.apply(this,t)}function Ps(...t){return kr.apply(this,t)}function nl(...t){return kr.apply(this,t)}Object.setPrototypeOf(As.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Ps.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(nl.prototype,Object.create(Uint32Array.prototype));Object.assign(As.prototype,kr.prototype,{constructor:As,signed:!0,TypedArray:Int32Array,BigIntArray:gl});Object.assign(Ps.prototype,kr.prototype,{constructor:Ps,signed:!1,TypedArray:Uint32Array,BigIntArray:vl});Object.assign(nl.prototype,kr.prototype,{constructor:nl,signed:!0,TypedArray:Uint32Array,BigIntArray:vl});function M1(t){const{buffer:e,byteOffset:n,length:r,signed:s}=t,a=new vl(e,n,r),c=s&&a[a.length-1]&BigInt(1)<<BigInt(63);let u=BigInt(c?1:0),f=BigInt(0);if(c){for(const h of a)u+=~h*(BigInt(1)<<BigInt(32)*f++);u*=BigInt(-1)}else for(const h of a)u+=h*(BigInt(1)<<BigInt(32)*f++);return u}let Fo,qp;$w?(qp=t=>t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Cp(t),Fo=t=>t.byteLength===8?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:Cp(t)):(Fo=Cp,qp=Fo);function Cp(t){let e="";const n=new Uint32Array(2);let r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);const s=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let a=-1;const c=r.length-1;do{for(n[0]=r[a=0];a<c;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,e=`${n[0]}${e}`}while(s[0]||s[1]||s[2]||s[3]);return e??"0"}class zh{static new(e,n){switch(n){case!0:return new As(e);case!1:return new Ps(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case gl:return new As(e)}return e.byteLength===16?new nl(e):new Ps(e)}static signed(e){return new As(e)}static unsigned(e){return new Ps(e)}static decimal(e){return new nl(e)}constructor(e,n){return zh.new(e,n)}}var D1,N1,B1,L1,F1,$1,z1,j1,U1,V1,W1,H1,G1,Y1,K1,Q1,X1,J1,q1;class be{static isNull(e){return(e==null?void 0:e.typeId)===D.Null}static isInt(e){return(e==null?void 0:e.typeId)===D.Int}static isFloat(e){return(e==null?void 0:e.typeId)===D.Float}static isBinary(e){return(e==null?void 0:e.typeId)===D.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===D.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===D.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===D.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===D.Date}static isTime(e){return(e==null?void 0:e.typeId)===D.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===D.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===D.Interval}static isList(e){return(e==null?void 0:e.typeId)===D.List}static isStruct(e){return(e==null?void 0:e.typeId)===D.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===D.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===D.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===D.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===D.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===D.Dictionary}static isDenseUnion(e){return be.isUnion(e)&&e.mode===Hn.Dense}static isSparseUnion(e){return be.isUnion(e)&&e.mode===Hn.Sparse}get typeId(){return D.NONE}}D1=Symbol.toStringTag;be[D1]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(be.prototype);let eo=class extends be{toString(){return"Null"}get typeId(){return D.Null}};N1=Symbol.toStringTag;eo[N1]=(t=>t[Symbol.toStringTag]="Null")(eo.prototype);class to extends be{constructor(e,n){super(),this.isSigned=e,this.bitWidth=n}get typeId(){return D.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?gl:vl}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}B1=Symbol.toStringTag;to[B1]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(to.prototype);class rl extends to{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(rl.prototype,"ArrayType",{value:Int32Array});class il extends be{constructor(e){super(),this.precision=e}get typeId(){return D.Float}get ArrayType(){switch(this.precision){case Rn.HALF:return Uint16Array;case Rn.SINGLE:return Float32Array;case Rn.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}L1=Symbol.toStringTag;il[L1]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(il.prototype);let vu=class extends be{constructor(){super()}get typeId(){return D.Binary}toString(){return"Binary"}};F1=Symbol.toStringTag;vu[F1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(vu.prototype);let bu=class extends be{constructor(){super()}get typeId(){return D.Utf8}toString(){return"Utf8"}};$1=Symbol.toStringTag;bu[$1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(bu.prototype);let Su=class extends be{constructor(){super()}get typeId(){return D.Bool}toString(){return"Bool"}};z1=Symbol.toStringTag;Su[z1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Su.prototype);let _u=class extends be{constructor(e,n,r=128){super(),this.scale=e,this.precision=n,this.bitWidth=r}get typeId(){return D.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};j1=Symbol.toStringTag;_u[j1]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(_u.prototype);class Cu extends be{constructor(e){super(),this.unit=e}get typeId(){return D.Date}toString(){return`Date${(this.unit+1)*32}<${ki[this.unit]}>`}}U1=Symbol.toStringTag;Cu[U1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(Cu.prototype);class ol extends be{constructor(e,n){super(),this.unit=e,this.bitWidth=n}get typeId(){return D.Time}toString(){return`Time${this.bitWidth}<${Xe[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return gl}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}V1=Symbol.toStringTag;ol[V1]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(ol.prototype);class wu extends be{constructor(e,n){super(),this.unit=e,this.timezone=n}get typeId(){return D.Timestamp}toString(){return`Timestamp<${Xe[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}W1=Symbol.toStringTag;wu[W1]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(wu.prototype);class xu extends be{constructor(e){super(),this.unit=e}get typeId(){return D.Interval}toString(){return`Interval<${Zi[this.unit]}>`}}H1=Symbol.toStringTag;xu[H1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(xu.prototype);let Iu=class extends be{constructor(e){super(),this.children=[e]}get typeId(){return D.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};G1=Symbol.toStringTag;Iu[G1]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Iu.prototype);class pn extends be{constructor(e){super(),this.children=e}get typeId(){return D.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}Y1=Symbol.toStringTag;pn[Y1]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(pn.prototype);class ku extends be{constructor(e,n,r){super(),this.mode=e,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((s,a,c)=>(s[a]=c)&&s||s,Object.create(null))}get typeId(){return D.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}K1=Symbol.toStringTag;ku[K1]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(ku.prototype);let Tu=class extends be{constructor(e){super(),this.byteWidth=e}get typeId(){return D.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Q1=Symbol.toStringTag;Tu[Q1]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Tu.prototype);let Ru=class extends be{constructor(e,n){super(),this.listSize=e,this.children=[n]}get typeId(){return D.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};X1=Symbol.toStringTag;Ru[X1]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Ru.prototype);class Eu extends be{constructor(e,n=!1){super(),this.children=[e],this.keysSorted=n}get typeId(){return D.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}J1=Symbol.toStringTag;Eu[J1]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Eu.prototype);const nx=(t=>()=>++t)(-1);class $s extends be{constructor(e,n,r,s){super(),this.indices=n,this.dictionary=e,this.isOrdered=s||!1,this.id=r==null?nx():typeof r=="number"?r:r.low}get typeId(){return D.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}q1=Symbol.toStringTag;$s[q1]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))($s.prototype);function mi(t){const e=t;switch(t.typeId){case D.Decimal:return t.bitWidth/32;case D.Timestamp:return 2;case D.Date:return 1+e.unit;case D.Interval:return 1+e.unit;case D.FixedSizeList:return e.listSize;case D.FixedSizeBinary:return e.byteWidth;default:return 1}}class Ve{visitMany(e,...n){return e.map((r,s)=>this.visit(r,...n.map(a=>a[s])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,n=!0){return rx(this,e,n)}getVisitFnByTypeId(e,n=!0){return xs(this,e,n)}visitNull(e,...n){return null}visitBool(e,...n){return null}visitInt(e,...n){return null}visitFloat(e,...n){return null}visitUtf8(e,...n){return null}visitBinary(e,...n){return null}visitFixedSizeBinary(e,...n){return null}visitDate(e,...n){return null}visitTimestamp(e,...n){return null}visitTime(e,...n){return null}visitDecimal(e,...n){return null}visitList(e,...n){return null}visitStruct(e,...n){return null}visitUnion(e,...n){return null}visitDictionary(e,...n){return null}visitInterval(e,...n){return null}visitFixedSizeList(e,...n){return null}visitMap(e,...n){return null}}function rx(t,e,n=!0){return typeof e=="number"?xs(t,e,n):typeof e=="string"&&e in D?xs(t,D[e],n):e&&e instanceof be?xs(t,G0(e),n):e!=null&&e.type&&e.type instanceof be?xs(t,G0(e.type),n):xs(t,D.NONE,n)}function xs(t,e,n=!0){let r=null;switch(e){case D.Null:r=t.visitNull;break;case D.Bool:r=t.visitBool;break;case D.Int:r=t.visitInt;break;case D.Int8:r=t.visitInt8||t.visitInt;break;case D.Int16:r=t.visitInt16||t.visitInt;break;case D.Int32:r=t.visitInt32||t.visitInt;break;case D.Int64:r=t.visitInt64||t.visitInt;break;case D.Uint8:r=t.visitUint8||t.visitInt;break;case D.Uint16:r=t.visitUint16||t.visitInt;break;case D.Uint32:r=t.visitUint32||t.visitInt;break;case D.Uint64:r=t.visitUint64||t.visitInt;break;case D.Float:r=t.visitFloat;break;case D.Float16:r=t.visitFloat16||t.visitFloat;break;case D.Float32:r=t.visitFloat32||t.visitFloat;break;case D.Float64:r=t.visitFloat64||t.visitFloat;break;case D.Utf8:r=t.visitUtf8;break;case D.Binary:r=t.visitBinary;break;case D.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case D.Date:r=t.visitDate;break;case D.DateDay:r=t.visitDateDay||t.visitDate;break;case D.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case D.Timestamp:r=t.visitTimestamp;break;case D.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case D.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case D.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case D.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case D.Time:r=t.visitTime;break;case D.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case D.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case D.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case D.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case D.Decimal:r=t.visitDecimal;break;case D.List:r=t.visitList;break;case D.Struct:r=t.visitStruct;break;case D.Union:r=t.visitUnion;break;case D.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case D.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case D.Dictionary:r=t.visitDictionary;break;case D.Interval:r=t.visitInterval;break;case D.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case D.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case D.FixedSizeList:r=t.visitFixedSizeList;break;case D.Map:r=t.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${D[e]}'`)}function G0(t){switch(t.typeId){case D.Null:return D.Null;case D.Int:{const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?D.Int8:D.Uint8;case 16:return n?D.Int16:D.Uint16;case 32:return n?D.Int32:D.Uint32;case 64:return n?D.Int64:D.Uint64}return D.Int}case D.Float:switch(t.precision){case Rn.HALF:return D.Float16;case Rn.SINGLE:return D.Float32;case Rn.DOUBLE:return D.Float64}return D.Float;case D.Binary:return D.Binary;case D.Utf8:return D.Utf8;case D.Bool:return D.Bool;case D.Decimal:return D.Decimal;case D.Time:switch(t.unit){case Xe.SECOND:return D.TimeSecond;case Xe.MILLISECOND:return D.TimeMillisecond;case Xe.MICROSECOND:return D.TimeMicrosecond;case Xe.NANOSECOND:return D.TimeNanosecond}return D.Time;case D.Timestamp:switch(t.unit){case Xe.SECOND:return D.TimestampSecond;case Xe.MILLISECOND:return D.TimestampMillisecond;case Xe.MICROSECOND:return D.TimestampMicrosecond;case Xe.NANOSECOND:return D.TimestampNanosecond}return D.Timestamp;case D.Date:switch(t.unit){case ki.DAY:return D.DateDay;case ki.MILLISECOND:return D.DateMillisecond}return D.Date;case D.Interval:switch(t.unit){case Zi.DAY_TIME:return D.IntervalDayTime;case Zi.YEAR_MONTH:return D.IntervalYearMonth}return D.Interval;case D.Map:return D.Map;case D.List:return D.List;case D.Struct:return D.Struct;case D.Union:switch(t.mode){case Hn.Dense:return D.DenseUnion;case Hn.Sparse:return D.SparseUnion}return D.Union;case D.FixedSizeBinary:return D.FixedSizeBinary;case D.FixedSizeList:return D.FixedSizeList;case D.Dictionary:return D.Dictionary}throw new Error(`Unrecognized type '${D[t.typeId]}'`)}Ve.prototype.visitInt8=null;Ve.prototype.visitInt16=null;Ve.prototype.visitInt32=null;Ve.prototype.visitInt64=null;Ve.prototype.visitUint8=null;Ve.prototype.visitUint16=null;Ve.prototype.visitUint32=null;Ve.prototype.visitUint64=null;Ve.prototype.visitFloat16=null;Ve.prototype.visitFloat32=null;Ve.prototype.visitFloat64=null;Ve.prototype.visitDateDay=null;Ve.prototype.visitDateMillisecond=null;Ve.prototype.visitTimestampSecond=null;Ve.prototype.visitTimestampMillisecond=null;Ve.prototype.visitTimestampMicrosecond=null;Ve.prototype.visitTimestampNanosecond=null;Ve.prototype.visitTimeSecond=null;Ve.prototype.visitTimeMillisecond=null;Ve.prototype.visitTimeMicrosecond=null;Ve.prototype.visitTimeNanosecond=null;Ve.prototype.visitDenseUnion=null;Ve.prototype.visitSparseUnion=null;Ve.prototype.visitIntervalDayTime=null;Ve.prototype.visitIntervalYearMonth=null;const Z1=new Float64Array(1),hs=new Uint32Array(Z1.buffer);function eb(t){const e=(t&31744)>>10,n=(t&1023)/1024,r=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function ix(t){if(t!==t)return 32256;Z1[0]=t;const e=(hs[1]&2147483648)>>16&65535;let n=hs[1]&2146435072,r=0;return n>=1089470464?hs[0]>0?n=31744:(n=(n&2080374784)>>16,r=(hs[1]&1048575)>>10):n<=1056964608?(r=1048576+(hs[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(hs[1]&1048575)+512>>10),e|n|r&65535}class ke extends Ve{}function Ee(t){return(e,n,r)=>{if(e.setValid(n,r!=null))return t(e,n,r)}}const ox=(t,e,n)=>{t[e]=Math.trunc(n/864e5)},jh=(t,e,n)=>{t[e]=Math.trunc(n%4294967296),t[e+1]=Math.trunc(n/4294967296)},sx=(t,e,n)=>{t[e]=Math.trunc(n*1e3%4294967296),t[e+1]=Math.trunc(n*1e3/4294967296)},ax=(t,e,n)=>{t[e]=Math.trunc(n*1e6%4294967296),t[e+1]=Math.trunc(n*1e6/4294967296)},tb=(t,e,n,r)=>{if(n+1<e.length){const{[n]:s,[n+1]:a}=e;t.set(r.subarray(0,a-s),s)}},lx=({offset:t,values:e},n,r)=>{const s=t+n;r?e[s>>3]|=1<<s%8:e[s>>3]&=~(1<<s%8)},Ti=({values:t},e,n)=>{t[e]=n},Uh=({values:t},e,n)=>{t[e]=n},nb=({values:t},e,n)=>{t[e]=ix(n)},cx=(t,e,n)=>{switch(t.type.precision){case Rn.HALF:return nb(t,e,n);case Rn.SINGLE:case Rn.DOUBLE:return Uh(t,e,n)}},rb=({values:t},e,n)=>{ox(t,e,n.valueOf())},ib=({values:t},e,n)=>{jh(t,e*2,n.valueOf())},ux=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},dx=({values:t,valueOffsets:e},n,r)=>tb(t,e,n,r),fx=({values:t,valueOffsets:e},n,r)=>{tb(t,e,n,Bh(r))},px=(t,e,n)=>{t.type.unit===ki.DAY?rb(t,e,n):ib(t,e,n)},ob=({values:t},e,n)=>jh(t,e*2,n/1e3),sb=({values:t},e,n)=>jh(t,e*2,n),ab=({values:t},e,n)=>sx(t,e*2,n),lb=({values:t},e,n)=>ax(t,e*2,n),hx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return ob(t,e,n);case Xe.MILLISECOND:return sb(t,e,n);case Xe.MICROSECOND:return ab(t,e,n);case Xe.NANOSECOND:return lb(t,e,n)}},cb=({values:t},e,n)=>{t[e]=n},ub=({values:t},e,n)=>{t[e]=n},db=({values:t},e,n)=>{t[e]=n},fb=({values:t},e,n)=>{t[e]=n},mx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return cb(t,e,n);case Xe.MILLISECOND:return ub(t,e,n);case Xe.MICROSECOND:return db(t,e,n);case Xe.NANOSECOND:return fb(t,e,n)}},yx=({values:t,stride:e},n,r)=>{t.set(r.subarray(0,e),e*n)},gx=(t,e,n)=>{const r=t.children[0],s=t.valueOffsets,a=ar.getVisitFn(r);if(Array.isArray(n))for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n[++c]);else for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n.get(++c))},vx=(t,e,n)=>{const r=t.children[0],{valueOffsets:s}=t,a=ar.getVisitFn(r);let{[e]:c,[e+1]:u}=s;const f=n instanceof Map?n.entries():Object.entries(n);for(const h of f)if(a(r,c,h),++c>=u)break},bx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[a]),Sx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(a)),_x=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(s.name)),Cx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[s.name]),wx=(t,e,n)=>{const r=t.type.children.map(a=>ar.getVisitFn(a.type)),s=n instanceof Map?_x(e,n):n instanceof et?Sx(e,n):Array.isArray(n)?bx(e,n):Cx(e,n);t.type.children.forEach((a,c)=>s(r[c],t.children[c],a,c))},xx=(t,e,n)=>{t.type.mode===Hn.Dense?pb(t,e,n):hb(t,e,n)},pb=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];ar.visit(s,t.valueOffsets[e],n)},hb=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];ar.visit(s,e,n)},Ix=(t,e,n)=>{var r;(r=t.dictionary)===null||r===void 0||r.set(t.values[e],n)},kx=(t,e,n)=>{t.type.unit===Zi.DAY_TIME?mb(t,e,n):yb(t,e,n)},mb=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},yb=({values:t},e,n)=>{t[e]=n[0]*12+n[1]%12},Tx=(t,e,n)=>{const{stride:r}=t,s=t.children[0],a=ar.getVisitFn(s);if(Array.isArray(n))for(let c=-1,u=e*r;++c<r;)a(s,u+c,n[c]);else for(let c=-1,u=e*r;++c<r;)a(s,u+c,n.get(c))};ke.prototype.visitBool=Ee(lx);ke.prototype.visitInt=Ee(Ti);ke.prototype.visitInt8=Ee(Ti);ke.prototype.visitInt16=Ee(Ti);ke.prototype.visitInt32=Ee(Ti);ke.prototype.visitInt64=Ee(Ti);ke.prototype.visitUint8=Ee(Ti);ke.prototype.visitUint16=Ee(Ti);ke.prototype.visitUint32=Ee(Ti);ke.prototype.visitUint64=Ee(Ti);ke.prototype.visitFloat=Ee(cx);ke.prototype.visitFloat16=Ee(nb);ke.prototype.visitFloat32=Ee(Uh);ke.prototype.visitFloat64=Ee(Uh);ke.prototype.visitUtf8=Ee(fx);ke.prototype.visitBinary=Ee(dx);ke.prototype.visitFixedSizeBinary=Ee(ux);ke.prototype.visitDate=Ee(px);ke.prototype.visitDateDay=Ee(rb);ke.prototype.visitDateMillisecond=Ee(ib);ke.prototype.visitTimestamp=Ee(hx);ke.prototype.visitTimestampSecond=Ee(ob);ke.prototype.visitTimestampMillisecond=Ee(sb);ke.prototype.visitTimestampMicrosecond=Ee(ab);ke.prototype.visitTimestampNanosecond=Ee(lb);ke.prototype.visitTime=Ee(mx);ke.prototype.visitTimeSecond=Ee(cb);ke.prototype.visitTimeMillisecond=Ee(ub);ke.prototype.visitTimeMicrosecond=Ee(db);ke.prototype.visitTimeNanosecond=Ee(fb);ke.prototype.visitDecimal=Ee(yx);ke.prototype.visitList=Ee(gx);ke.prototype.visitStruct=Ee(wx);ke.prototype.visitUnion=Ee(xx);ke.prototype.visitDenseUnion=Ee(pb);ke.prototype.visitSparseUnion=Ee(hb);ke.prototype.visitDictionary=Ee(Ix);ke.prototype.visitInterval=Ee(kx);ke.prototype.visitIntervalDayTime=Ee(mb);ke.prototype.visitIntervalYearMonth=Ee(yb);ke.prototype.visitFixedSizeList=Ee(Tx);ke.prototype.visitMap=Ee(vx);const ar=new ke,Sr=Symbol.for("parent"),Os=Symbol.for("rowIndex");class Vh{constructor(e,n){return this[Sr]=e,this[Os]=n,new Proxy(this,new Ex)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Os],n=this[Sr],r=n.type.children,s={};for(let a=-1,c=r.length;++a<c;)s[r[a].name]=An.visit(n.children[a],e);return s}toString(){return`{${[...this].map(([e,n])=>`${tl(e)}: ${tl(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Rx(this[Sr],this[Os])}}class Rx{constructor(e,n){this.childIndex=0,this.children=e.children,this.rowIndex=n,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,An.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Vh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Sr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Os]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Ex{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Sr].type.children.map(n=>n.name)}has(e,n){return e[Sr].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(e,n){if(e[Sr].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[Sr].type.children.findIndex(s=>s.name===n);if(r!==-1){const s=An.visit(e[Sr].children[r],e[Os]);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[Sr].type.children.findIndex(a=>a.name===n);return s!==-1?(ar.visit(e[Sr].children[s],e[Os],r),Reflect.set(e,n,r)):Reflect.has(e,n)||typeof n=="symbol"?Reflect.set(e,n,r):!1}}class Se extends Ve{}function Te(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Ax=(t,e)=>864e5*t[e],Wh=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Px=(t,e)=>4294967296*(t[e+1]/1e3)+(t[e]>>>0)/1e3,Ox=(t,e)=>4294967296*(t[e+1]/1e6)+(t[e]>>>0)/1e6,gb=t=>new Date(t),Mx=(t,e)=>gb(Ax(t,e)),Dx=(t,e)=>gb(Wh(t,e)),Nx=(t,e)=>null,vb=(t,e,n)=>{if(n+1>=e.length)return null;const r=e[n],s=e[n+1];return t.subarray(r,s)},Bx=({offset:t,values:e},n)=>{const r=t+n;return(e[r>>3]&1<<r%8)!==0},bb=({values:t},e)=>Mx(t,e),Sb=({values:t},e)=>Dx(t,e*2),ao=({stride:t,values:e},n)=>e[t*n],Lx=({stride:t,values:e},n)=>eb(e[t*n]),_b=({values:t},e)=>t[e],Fx=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),$x=({values:t,valueOffsets:e},n)=>vb(t,e,n),zx=({values:t,valueOffsets:e},n)=>{const r=vb(t,e,n);return r!==null?Qp(r):null},jx=({values:t},e)=>t[e],Ux=({type:t,values:e},n)=>t.precision!==Rn.HALF?e[n]:eb(e[n]),Vx=(t,e)=>t.type.unit===ki.DAY?bb(t,e):Sb(t,e),Cb=({values:t},e)=>1e3*Wh(t,e*2),wb=({values:t},e)=>Wh(t,e*2),xb=({values:t},e)=>Px(t,e*2),Ib=({values:t},e)=>Ox(t,e*2),Wx=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return Cb(t,e);case Xe.MILLISECOND:return wb(t,e);case Xe.MICROSECOND:return xb(t,e);case Xe.NANOSECOND:return Ib(t,e)}},kb=({values:t},e)=>t[e],Tb=({values:t},e)=>t[e],Rb=({values:t},e)=>t[e],Eb=({values:t},e)=>t[e],Hx=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return kb(t,e);case Xe.MILLISECOND:return Tb(t,e);case Xe.MICROSECOND:return Rb(t,e);case Xe.NANOSECOND:return Eb(t,e)}},Gx=({values:t,stride:e},n)=>zh.decimal(t.subarray(e*n,e*(n+1))),Yx=(t,e)=>{const{valueOffsets:n,stride:r,children:s}=t,{[e*r]:a,[e*r+1]:c}=n,f=s[0].slice(a,c-a);return new et([f])},Kx=(t,e)=>{const{valueOffsets:n,children:r}=t,{[e]:s,[e+1]:a}=n,c=r[0];return new Hh(c.slice(s,a-s))},Qx=(t,e)=>new Vh(t,e),Xx=(t,e)=>t.type.mode===Hn.Dense?Ab(t,e):Pb(t,e),Ab=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return An.visit(r,t.valueOffsets[e])},Pb=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return An.visit(r,e)},Jx=(t,e)=>{var n;return(n=t.dictionary)===null||n===void 0?void 0:n.get(t.values[e])},qx=(t,e)=>t.type.unit===Zi.DAY_TIME?Ob(t,e):Mb(t,e),Ob=({values:t},e)=>t.subarray(2*e,2*(e+1)),Mb=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},Zx=(t,e)=>{const{stride:n,children:r}=t,a=r[0].slice(e*n,n);return new et([a])};Se.prototype.visitNull=Te(Nx);Se.prototype.visitBool=Te(Bx);Se.prototype.visitInt=Te(jx);Se.prototype.visitInt8=Te(ao);Se.prototype.visitInt16=Te(ao);Se.prototype.visitInt32=Te(ao);Se.prototype.visitInt64=Te(_b);Se.prototype.visitUint8=Te(ao);Se.prototype.visitUint16=Te(ao);Se.prototype.visitUint32=Te(ao);Se.prototype.visitUint64=Te(_b);Se.prototype.visitFloat=Te(Ux);Se.prototype.visitFloat16=Te(Lx);Se.prototype.visitFloat32=Te(ao);Se.prototype.visitFloat64=Te(ao);Se.prototype.visitUtf8=Te(zx);Se.prototype.visitBinary=Te($x);Se.prototype.visitFixedSizeBinary=Te(Fx);Se.prototype.visitDate=Te(Vx);Se.prototype.visitDateDay=Te(bb);Se.prototype.visitDateMillisecond=Te(Sb);Se.prototype.visitTimestamp=Te(Wx);Se.prototype.visitTimestampSecond=Te(Cb);Se.prototype.visitTimestampMillisecond=Te(wb);Se.prototype.visitTimestampMicrosecond=Te(xb);Se.prototype.visitTimestampNanosecond=Te(Ib);Se.prototype.visitTime=Te(Hx);Se.prototype.visitTimeSecond=Te(kb);Se.prototype.visitTimeMillisecond=Te(Tb);Se.prototype.visitTimeMicrosecond=Te(Rb);Se.prototype.visitTimeNanosecond=Te(Eb);Se.prototype.visitDecimal=Te(Gx);Se.prototype.visitList=Te(Yx);Se.prototype.visitStruct=Te(Qx);Se.prototype.visitUnion=Te(Xx);Se.prototype.visitDenseUnion=Te(Ab);Se.prototype.visitSparseUnion=Te(Pb);Se.prototype.visitDictionary=Te(Jx);Se.prototype.visitInterval=Te(qx);Se.prototype.visitIntervalDayTime=Te(Ob);Se.prototype.visitIntervalYearMonth=Te(Mb);Se.prototype.visitFixedSizeList=Te(Zx);Se.prototype.visitMap=Te(Kx);const An=new Se,Fr=Symbol.for("keys"),Ms=Symbol.for("vals");class Hh{constructor(e){return this[Fr]=new et([e.children[0]]).memoize(),this[Ms]=e.children[1],new Proxy(this,new tI)}[Symbol.iterator](){return new eI(this[Fr],this[Ms])}get size(){return this[Fr].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Fr],n=this[Ms],r={};for(let s=-1,a=e.length;++s<a;)r[e.get(s)]=An.visit(n,s);return r}toString(){return`{${[...this].map(([e,n])=>`${tl(e)}: ${tl(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class eI{constructor(e,n){this.keys=e,this.vals=n,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),An.visit(this.vals,e)]})}}class tI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Fr].toArray().map(String)}has(e,n){return e[Fr].includes(n)}getOwnPropertyDescriptor(e,n){if(e[Fr].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[Fr].indexOf(n);if(r!==-1){const s=An.visit(Reflect.get(e,Ms),r);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[Fr].indexOf(n);return s!==-1?(ar.visit(Reflect.get(e,Ms),s,r),Reflect.set(e,n,r)):Reflect.has(e,n)?Reflect.set(e,n,r):!1}}Object.defineProperties(Hh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Fr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ms]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Y0;function Db(t,e,n,r){const{length:s=0}=t;let a=typeof e!="number"?0:e,c=typeof n!="number"?s:n;return a<0&&(a=(a%s+s)%s),c<0&&(c=(c%s+s)%s),c<a&&(Y0=a,a=c,c=Y0),c>s&&(c=s),r?r(t,a,c):[a,c]}const K0=t=>t!==t;function Js(t){if(typeof t!=="object"||t===null)return K0(t)?K0:n=>n===t;if(t instanceof Date){const n=t.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(t)?n=>n?Kw(t,n):!1:t instanceof Map?rI(t):Array.isArray(t)?nI(t):t instanceof et?iI(t):oI(t,!0)}function nI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Js(t[n]);return nd(e)}function rI(t){let e=-1;const n=[];for(const r of t.values())n[++e]=Js(r);return nd(n)}function iI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Js(t.get(n));return nd(e)}function oI(t,e=!1){const n=Object.keys(t);if(!e&&n.length===0)return()=>!1;const r=[];for(let s=-1,a=n.length;++s<a;)r[s]=Js(t[n[s]]);return nd(r,n)}function nd(t,e){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return sI(t,n);case Map:return Q0(t,n,n.keys());case Hh:case Vh:case Object:case void 0:return Q0(t,n,e||Object.keys(n))}return n instanceof et?aI(t,n):!1}}function sI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}function aI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}function Q0(t,e,n){const r=n[Symbol.iterator](),s=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),a=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let c=0;const u=t.length;let f=a.next(),h=r.next(),y=s.next();for(;c<u&&!h.done&&!y.done&&!f.done&&!(h.value!==y.value||!t[c](f.value));++c,h=r.next(),y=s.next(),f=a.next());return c===u&&h.done&&y.done&&f.done?!0:(r.return&&r.return(),s.return&&s.return(),a.return&&a.return(),!1)}function Nb(t,e,n,r){return(n&1<<r)!==0}function lI(t,e,n,r){return(n&1<<r)>>r}function Gh(t,e,n){const r=n.byteLength+7&-8;if(t>0||n.byteLength<r){const s=new Uint8Array(r);return s.set(t%8===0?n.subarray(t>>3):Au(new Yh(n,t,e,null,Nb)).subarray(0,r)),s}return n}function Au(t){const e=[];let n=0,r=0,s=0;for(const c of t)c&&(s|=1<<r),++r===8&&(e[n++]=s,s=r=0);(n===0||r>0)&&(e[n++]=s);const a=new Uint8Array(e.length+7&-8);return a.set(e),a}class Yh{constructor(e,n,r,s,a){this.bytes=e,this.length=r,this.context=s,this.get=a,this.bit=n%8,this.byteIndex=n>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function Zp(t,e,n){if(n-e<=0)return 0;if(n-e<8){let a=0;for(const c of new Yh(t,e,n-e,t,lI))a+=c;return a}const r=n>>3<<3,s=e+(e%8===0?0:8-e%8);return Zp(t,e,s)+Zp(t,r,n)+cI(t,s>>3,r-s>>3)}function cI(t,e,n){let r=0,s=Math.trunc(e);const a=new DataView(t.buffer,t.byteOffset,t.byteLength),c=n===void 0?t.byteLength:s+n;for(;c-s>=4;)r+=wp(a.getUint32(s)),s+=4;for(;c-s>=2;)r+=wp(a.getUint16(s)),s+=2;for(;c-s>=1;)r+=wp(a.getUint8(s)),s+=1;return r}function wp(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const uI=-1;class ft{constructor(e,n,r,s,a,c=[],u){this.type=e,this.children=c,this.dictionary=u,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(s||0,-1));let f;a instanceof ft?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=mi(e),a&&((f=a[0])&&(this.valueOffsets=f),(f=a[1])&&(this.values=f),(f=a[2])&&(this.nullBitmap=f),(f=a[3])&&(this.typeIds=f))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:n,values:r,nullBitmap:s,typeIds:a}=this;return n&&(e+=n.byteLength),r&&(e+=r.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),this.children.reduce((c,u)=>c+u.byteLength,e)}get nullCount(){let e=this._nullCount,n;return e<=uI&&(n=this.nullBitmap)&&(this._nullCount=e=this.length-Zp(n,this.offset,this.offset+this.length)),e}getValid(e){if(this.nullable&&this.nullCount>0){const n=this.offset+e;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(e,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:f}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:f,_nullCount:0})}const{nullBitmap:r,offset:s}=this,a=s+e>>3,c=(s+e)%8,u=r[a]>>c&1;return n?u===0&&(r[a]|=1<<c,this._nullCount=this.nullCount+1):u===1&&(r[a]&=~(1<<c),this._nullCount=this.nullCount-1),n}clone(e=this.type,n=this.offset,r=this.length,s=this._nullCount,a=this,c=this.children){return new ft(e,n,r,s,a,c,this.dictionary)}slice(e,n){const{stride:r,typeId:s,children:a}=this,c=+(this._nullCount===0)-1,u=s===16?r:1,f=this._sliceBuffers(e,n,r,s);return this.clone(this.type,this.offset+e,n,c,f,a.length===0||this.valueOffsets?a:this._sliceChildren(a,u*e,u*n))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===D.Null)return this.clone(this.type,0,e,0);const{length:n,nullCount:r}=this,s=new Uint8Array((e+63&-64)>>3).fill(255,0,n>>3);s[n>>3]=(1<<n-(n&-8))-1,r>0&&s.set(Gh(this.offset,n,this.nullBitmap),0);const a=this.buffers;return a[hi.VALIDITY]=s,this.clone(this.type,0,e,r+(e-n),a)}_sliceBuffers(e,n,r,s){let a;const{buffers:c}=this;return(a=c[hi.TYPE])&&(c[hi.TYPE]=a.subarray(e,e+n)),(a=c[hi.OFFSET])&&(c[hi.OFFSET]=a.subarray(e,e+n+1))||(a=c[hi.DATA])&&(c[hi.DATA]=s===6?a:a.subarray(r*e,r*(e+n))),c}_sliceChildren(e,n,r){return e.map(s=>s.slice(n,r))}}ft.prototype.children=Object.freeze([]);class Qa extends Ve{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:n,["offset"]:r=0,["length"]:s=0}=e;return new ft(n,r,s,0)}visitBool(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length>>3,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitInt(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFloat(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitUtf8(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitFixedSizeBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDate(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTimestamp(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTime(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDecimal(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitList(e){const{["type"]:n,["offset"]:r=0,["child"]:s}=e,a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}visitStruct(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),{length:c=s.reduce((f,{length:h})=>Math.max(f,h),0),nullCount:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],s)}visitUnion(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),c=ct(n.ArrayType,e.typeIds),{["length"]:u=c.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;if(be.isSparseUnion(n))return new ft(n,r,u,f,[void 0,void 0,a,c],s);const h=ja(e.valueOffsets);return new ft(n,r,u,f,[h,void 0,a,c],s)}visitDictionary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.indices.ArrayType,e.data),{["dictionary"]:c=new et([new Qa().visit({type:n.dictionary})])}=e,{["length"]:u=a.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[void 0,a,s],[],c)}visitInterval(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFixedSizeList(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new Qa().visit({type:n.valueType})}=e,a=Qe(e.nullBitmap),{["length"]:c=s.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],[s])}visitMap(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new Qa().visit({type:n.childType})}=e,a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}}function Ue(t){return new Qa().visit(t)}class X0{constructor(e=0,n){this.numChunks=e,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Bb(t){return t.reduce((e,n)=>e+n.nullCount,0)}function Lb(t){return t.reduce((e,n,r)=>(e[r+1]=e[r]+n.length,e),new Uint32Array(t.length+1))}function Fb(t,e,n,r){const s=[];for(let a=-1,c=t.length;++a<c;){const u=t[a],f=e[a],{length:h}=u;if(f>=r)break;if(n>=f+h)continue;if(f>=n&&f+h<=r){s.push(u);continue}const y=Math.max(0,n-f),g=Math.min(r-f,h);s.push(u.slice(y,g-y))}return s.length===0&&s.push(t[0].slice(0,0)),s}function Kh(t,e,n,r){let s=0,a=0,c=e.length-1;do{if(s>=c-1)return n<e[c]?r(t,s,n-e[s]):null;a=s+Math.trunc((c-s)*.5),n<e[a]?c=a:s=a}while(s<c)}function Qh(t,e){return t.getValid(e)}function Ds(t){function e(n,r,s){return t(n[r],s)}return function(n){const r=this.data;return Kh(r,this._offsets,n,e)}}function $b(t){let e;function n(r,s,a){return t(r[s],a,e)}return function(r,s){const a=this.data;e=s;const c=Kh(a,this._offsets,r,n);return e=void 0,c}}function zb(t){let e;function n(r,s,a){let c=a,u=0,f=0;for(let h=s-1,y=r.length;++h<y;){const g=r[h];if(~(u=t(g,e,c)))return f+u;c=0,f+=g.length}return-1}return function(r,s){e=r;const a=this.data,c=typeof s!="number"?n(a,0,0):Kh(a,this._offsets,s,n);return e=void 0,c}}class _e extends Ve{}function dI(t,e){return e===null&&t.length>0?0:-1}function fI(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const s of new Yh(n,t.offset+(e||0),t.length,n,Nb)){if(!s)return r;++r}return-1}function Me(t,e,n){if(e===void 0)return-1;if(e===null)return fI(t,n);const r=An.getVisitFn(t),s=Js(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}function jb(t,e,n){const r=An.getVisitFn(t),s=Js(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}_e.prototype.visitNull=dI;_e.prototype.visitBool=Me;_e.prototype.visitInt=Me;_e.prototype.visitInt8=Me;_e.prototype.visitInt16=Me;_e.prototype.visitInt32=Me;_e.prototype.visitInt64=Me;_e.prototype.visitUint8=Me;_e.prototype.visitUint16=Me;_e.prototype.visitUint32=Me;_e.prototype.visitUint64=Me;_e.prototype.visitFloat=Me;_e.prototype.visitFloat16=Me;_e.prototype.visitFloat32=Me;_e.prototype.visitFloat64=Me;_e.prototype.visitUtf8=Me;_e.prototype.visitBinary=Me;_e.prototype.visitFixedSizeBinary=Me;_e.prototype.visitDate=Me;_e.prototype.visitDateDay=Me;_e.prototype.visitDateMillisecond=Me;_e.prototype.visitTimestamp=Me;_e.prototype.visitTimestampSecond=Me;_e.prototype.visitTimestampMillisecond=Me;_e.prototype.visitTimestampMicrosecond=Me;_e.prototype.visitTimestampNanosecond=Me;_e.prototype.visitTime=Me;_e.prototype.visitTimeSecond=Me;_e.prototype.visitTimeMillisecond=Me;_e.prototype.visitTimeMicrosecond=Me;_e.prototype.visitTimeNanosecond=Me;_e.prototype.visitDecimal=Me;_e.prototype.visitList=Me;_e.prototype.visitStruct=Me;_e.prototype.visitUnion=Me;_e.prototype.visitDenseUnion=jb;_e.prototype.visitSparseUnion=jb;_e.prototype.visitDictionary=Me;_e.prototype.visitInterval=Me;_e.prototype.visitIntervalDayTime=Me;_e.prototype.visitIntervalYearMonth=Me;_e.prototype.visitFixedSizeList=Me;_e.prototype.visitMap=Me;const Pu=new _e;class Ce extends Ve{}function Re(t){const{type:e}=t;if(t.nullCount===0&&t.stride===1&&(e.typeId===D.Timestamp||e instanceof to&&e.bitWidth!==64||e instanceof ol&&e.bitWidth!==64||e instanceof il&&e.precision!==Rn.HALF))return new X0(t.data.length,r=>{const s=t.data[r];return s.values.subarray(0,s.length)[Symbol.iterator]()});let n=0;return new X0(t.data.length,r=>{const a=t.data[r].length,c=t.slice(n,n+a);return n+=a,new pI(c)})}class pI{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}Ce.prototype.visitNull=Re;Ce.prototype.visitBool=Re;Ce.prototype.visitInt=Re;Ce.prototype.visitInt8=Re;Ce.prototype.visitInt16=Re;Ce.prototype.visitInt32=Re;Ce.prototype.visitInt64=Re;Ce.prototype.visitUint8=Re;Ce.prototype.visitUint16=Re;Ce.prototype.visitUint32=Re;Ce.prototype.visitUint64=Re;Ce.prototype.visitFloat=Re;Ce.prototype.visitFloat16=Re;Ce.prototype.visitFloat32=Re;Ce.prototype.visitFloat64=Re;Ce.prototype.visitUtf8=Re;Ce.prototype.visitBinary=Re;Ce.prototype.visitFixedSizeBinary=Re;Ce.prototype.visitDate=Re;Ce.prototype.visitDateDay=Re;Ce.prototype.visitDateMillisecond=Re;Ce.prototype.visitTimestamp=Re;Ce.prototype.visitTimestampSecond=Re;Ce.prototype.visitTimestampMillisecond=Re;Ce.prototype.visitTimestampMicrosecond=Re;Ce.prototype.visitTimestampNanosecond=Re;Ce.prototype.visitTime=Re;Ce.prototype.visitTimeSecond=Re;Ce.prototype.visitTimeMillisecond=Re;Ce.prototype.visitTimeMicrosecond=Re;Ce.prototype.visitTimeNanosecond=Re;Ce.prototype.visitDecimal=Re;Ce.prototype.visitList=Re;Ce.prototype.visitStruct=Re;Ce.prototype.visitUnion=Re;Ce.prototype.visitDenseUnion=Re;Ce.prototype.visitSparseUnion=Re;Ce.prototype.visitDictionary=Re;Ce.prototype.visitInterval=Re;Ce.prototype.visitIntervalDayTime=Re;Ce.prototype.visitIntervalYearMonth=Re;Ce.prototype.visitFixedSizeList=Re;Ce.prototype.visitMap=Re;const Xh=new Ce,hI=(t,e)=>t+e;class lo extends Ve{visitNull(e,n){return 0}visitInt(e,n){return e.type.bitWidth/8}visitFloat(e,n){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,n){return 1/8}visitDecimal(e,n){return e.type.bitWidth/8}visitDate(e,n){return(e.type.unit+1)*4}visitTime(e,n){return e.type.bitWidth/8}visitTimestamp(e,n){return e.type.unit===Xe.SECOND?4:8}visitInterval(e,n){return(e.type.unit+1)*4}visitStruct(e,n){return e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitFixedSizeBinary(e,n){return e.type.byteWidth}visitMap(e,n){return 8+e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitDictionary(e,n){var r;return e.type.indices.bitWidth/8+(((r=e.dictionary)===null||r===void 0?void 0:r.getByteLength(e.values[n]))||0)}}const mI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),yI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),gI=({valueOffsets:t,stride:e,children:n},r)=>{const s=n[0],{[r*e]:a}=t,{[r*e+1]:c}=t,u=Jr.getVisitFn(s.type),f=s.slice(a,c-a);let h=8;for(let y=-1,g=c-a;++y<g;)h+=u(f,y);return h},vI=({stride:t,children:e},n)=>{const r=e[0],s=r.slice(n*t,t),a=Jr.getVisitFn(r.type);let c=0;for(let u=-1,f=s.length;++u<f;)c+=a(s,u);return c},bI=(t,e)=>t.type.mode===Hn.Dense?Ub(t,e):Vb(t,e),Ub=({type:t,children:e,typeIds:n,valueOffsets:r},s)=>{const a=t.typeIdToChildIndex[n[s]];return 8+Jr.visit(e[a],r[s])},Vb=({children:t},e)=>4+Jr.visitMany(t,t.map(()=>e)).reduce(hI,0);lo.prototype.visitUtf8=mI;lo.prototype.visitBinary=yI;lo.prototype.visitList=gI;lo.prototype.visitFixedSizeList=vI;lo.prototype.visitUnion=bI;lo.prototype.visitDenseUnion=Ub;lo.prototype.visitSparseUnion=Vb;const Jr=new lo;var Wb;const Hb={},Gb={};class et{constructor(e){var n,r,s;const a=e[0]instanceof et?e.flatMap(u=>u.data):e;if(a.length===0||a.some(u=>!(u instanceof ft)))throw new TypeError("Vector constructor expects an Array of Data instances.");const c=(n=a[0])===null||n===void 0?void 0:n.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{const{get:u,set:f,indexOf:h,byteLength:y}=Hb[c.typeId],g=a[0];this.isValid=v=>Qh(g,v),this.get=v=>u(g,v),this.set=(v,C)=>f(g,v,C),this.indexOf=v=>h(g,v),this.getByteLength=v=>y(g,v),this._offsets=[0,g.length];break}default:Object.setPrototypeOf(this,Gb[c.typeId]),this._offsets=Lb(a);break}this.data=a,this.type=c,this.stride=mi(c),this.numChildren=(s=(r=c.children)===null||r===void 0?void 0:r.length)!==null&&s!==void 0?s:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,n)=>e+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Bb(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${D[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}includes(e,n){return this.indexOf(e,n)>0}getByteLength(e){return 0}[Symbol.iterator](){return Xh.visit(this)}concat(...e){return new et(this.data.concat(e.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(e,n){return new et(Db(this,e,n,({data:r,_offsets:s},a,c)=>Fb(r,s,a,c)))}toJSON(){return[...this]}toArray(){const{type:e,data:n,length:r,stride:s,ArrayType:a}=this;switch(e.typeId){case D.Int:case D.Float:case D.Decimal:case D.Time:case D.Timestamp:switch(n.length){case 0:return new a;case 1:return n[0].values.subarray(0,r*s);default:return n.reduce((c,{values:u,length:f})=>(c.array.set(u.subarray(0,f*s),c.offset),c.offset+=f*s,c),{array:new a(r*s),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new et(this.data.map(({children:n})=>n[e])):null}get isMemoized(){return be.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(be.isDictionary(this.type)){const e=new Ou(this.data[0].dictionary),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return new Ou(this)}unmemoize(){if(be.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return this}}Wb=Symbol.toStringTag;et[Wb]=(t=>{t.type=be.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(D).map(n=>D[n]).filter(n=>typeof n=="number"&&n!==D.NONE);for(const n of e){const r=An.getVisitFnByTypeId(n),s=ar.getVisitFnByTypeId(n),a=Pu.getVisitFnByTypeId(n),c=Jr.getVisitFnByTypeId(n);Hb[n]={get:r,set:s,indexOf:a,byteLength:c},Gb[n]=Object.create(t,{isValid:{value:Ds(Qh)},get:{value:Ds(An.getVisitFnByTypeId(n))},set:{value:$b(ar.getVisitFnByTypeId(n))},indexOf:{value:zb(Pu.getVisitFnByTypeId(n))},getByteLength:{value:Ds(Jr.getVisitFnByTypeId(n))}})}return"Vector"})(et.prototype);class Ou extends et{constructor(e){super(e.data);const n=this.get,r=this.set,s=this.slice,a=new Array(this.length);Object.defineProperty(this,"get",{value(c){const u=a[c];if(u!==void 0)return u;const f=n.call(this,c);return a[c]=f,f}}),Object.defineProperty(this,"set",{value(c,u){r.call(this,c,u),a[c]=u}}),Object.defineProperty(this,"slice",{value:(c,u)=>new Ou(s.call(this,c,u))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new et(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class eh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,n,r,s){return e.prep(8,24),e.writeInt64(s),e.pad(4),e.writeInt32(r),e.writeInt64(n),e.offset()}}const xp=2,$r=4,vi=4,ut=4,Xi=new Int32Array(2),J0=new Float32Array(Xi.buffer),q0=new Float64Array(Xi.buffer),Uc=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let Ci=class th{constructor(e,n){this.low=e|0,this.high=n|0}static create(e,n){return e==0&&n==0?th.ZERO:new th(e,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(e){return this.low==e.low&&this.high==e.high}};Ci.ZERO=new Ci(0,0);var nh;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(nh||(nh={}));let zs=class Yb{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new Yb(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new Ci(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new Ci(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return Xi[0]=this.readInt32(e),J0[0]}readFloat64(e){return Xi[Uc?0:1]=this.readInt32(e),Xi[Uc?1:0]=this.readInt32(e+4),q0[0]}writeInt8(e,n){this.bytes_[e]=n}writeUint8(e,n){this.bytes_[e]=n}writeInt16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeUint16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeInt32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeUint32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeInt64(e,n){this.writeInt32(e,n.low),this.writeInt32(e+4,n.high)}writeUint64(e,n){this.writeUint32(e,n.low),this.writeUint32(e+4,n.high)}writeFloat32(e,n){J0[0]=n,this.writeInt32(e,Xi[0])}writeFloat64(e,n){q0[0]=n,this.writeInt32(e,Xi[Uc?0:1]),this.writeInt32(e+4,Xi[Uc?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+$r+vi)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let n=0;n<vi;n++)e+=String.fromCharCode(this.readInt8(this.position_+$r+n));return e}__offset(e,n){const r=e-this.readInt32(e);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(e,n){return e.bb_pos=n+this.readInt32(n),e.bb=this,e}__string(e,n){e+=this.readInt32(e);const r=this.readInt32(e);let s="",a=0;if(e+=$r,n===nh.UTF8_BYTES)return this.bytes_.subarray(e,e+r);for(;a<r;){let c;const u=this.readUint8(e+a++);if(u<192)c=u;else{const f=this.readUint8(e+a++);if(u<224)c=(u&31)<<6|f&63;else{const h=this.readUint8(e+a++);if(u<240)c=(u&15)<<12|(f&63)<<6|h&63;else{const y=this.readUint8(e+a++);c=(u&7)<<18|(f&63)<<12|(h&63)<<6|y&63}}}c<65536?s+=String.fromCharCode(c):(c-=65536,s+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return s}__union_with_string(e,n){return typeof e=="string"?this.__string(n):this.__union(e,n)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+$r}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=vi)throw new Error("FlatBuffers: file identifier must be length "+vi);for(let n=0;n<vi;n++)if(e.charCodeAt(n)!=this.readInt8(this.position()+$r+n))return!1;return!0}createLong(e,n){return Ci.create(e,n)}createScalarList(e,n){const r=[];for(let s=0;s<n;++s)e(s)!==null&&r.push(e(s));return r}createObjList(e,n){const r=[];for(let s=0;s<n;++s){const a=e(s);a!==null&&r.push(a.unpack())}return r}},Kb=class Qb{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null;let n;e?n=e:n=1024,this.bb=zs.allocate(n),this.space=n}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e);const r=~(this.bb.capacity()-this.space+n)+1&e-1;for(;this.space<r+e+n;){const s=this.bb.capacity();this.bb=Qb.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(r)}pad(e){for(let n=0;n<e;n++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(e))}addFieldInt16(e,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(e))}addFieldInt32(e,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(e))}addFieldInt64(e,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(e))}addFieldFloat32(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(e))}addFieldFloat64(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(e))}addFieldOffset(e,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(e))}addFieldStruct(e,n,r){n!=r&&(this.nested(n),this.slot(e))}nested(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const n=e.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,s=zs.allocate(r);return s.setPosition(r-n),s.bytes().set(e.bytes(),r-n),s}addOffset(e){this.prep($r,0),this.writeInt32(this.offset()-e+$r)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let n=0;n<e;n++)this.vtable[n]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let n=this.vtable_in_use-1;for(;n>=0&&this.vtable[n]==0;n--);const r=n+1;for(;n>=0;n--)this.addInt16(this.vtable[n]!=0?e-this.vtable[n]:0);const s=2;this.addInt16(e-this.object_start);const a=(r+s)*xp;this.addInt16(a);let c=0;const u=this.space;e:for(n=0;n<this.vtables.length;n++){const f=this.bb.capacity()-this.vtables[n];if(a==this.bb.readInt16(f)){for(let h=xp;h<a;h+=xp)if(this.bb.readInt16(u+h)!=this.bb.readInt16(f+h))continue e;c=this.vtables[n];break}}return c?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,c-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,n,r){const s=r?ut:0;if(n){const a=n;if(this.prep(this.minalign,$r+vi+s),a.length!=vi)throw new Error("FlatBuffers: file identifier must be length "+vi);for(let c=vi-1;c>=0;c--)this.writeInt8(a.charCodeAt(c))}this.prep(this.minalign,$r+s),this.addOffset(e),s&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,n){this.finish(e,n,!0)}requiredField(e,n){const r=this.bb.capacity()-e,s=r-this.bb.readInt32(r);if(!(this.bb.readInt16(s+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(e,n,r){this.notNested(),this.vector_num_elems=n,this.prep($r,e*n),this.prep(r,e*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const n=this.createString(e);return this.string_maps.set(e,n),n}createString(e){if(!e)return 0;let n;if(e instanceof Uint8Array)n=e;else{n=[];let r=0;for(;r<e.length;){let s;const a=e.charCodeAt(r++);if(a<55296||a>=56320)s=a;else{const c=e.charCodeAt(r++);s=(a<<10)+c+-56613888}s<128?n.push(s):(s<2048?n.push(s>>6&31|192):(s<65536?n.push(s>>12&15|224):n.push(s>>18&7|240,s>>12&63|128),n.push(s>>6&63|128)),n.push(s&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,s=this.space,a=this.bb.bytes();r<n.length;r++)a[s++]=n[r];return this.endVector()}createLong(e,n){return Ci.create(e,n)}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const n=[];for(let r=0;r<e.length;++r){const s=e[r];if(s!==null)n.push(this.createObjectOffset(s));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(e,n){return n(this,e.length),this.createObjectOffsetList(e),this.endVector()}};class zt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsKeyValue(e,n){return(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,n){return e.setPosition(e.position()+ut),(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}value(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,n){e.addFieldOffset(0,n,0)}static addValue(e,n){e.addFieldOffset(1,n,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,n,r){return zt.startKeyValue(e),zt.addKey(e,n),zt.addValue(e,r),zt.endKeyValue(e)}}var js;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(js||(js={}));var Us;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Us||(Us={}));var Mu;(function(t){t[t.DenseArray=0]="DenseArray"})(Mu||(Mu={}));class jn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInt(e,n){return(n||new jn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,n){return e.setPosition(e.position()+ut),(n||new jn).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,n){e.addFieldInt32(0,n,0)}static addIsSigned(e,n){e.addFieldInt8(1,+n,0)}static endInt(e){return e.endObject()}static createInt(e,n,r){return jn.startInt(e),jn.addBitWidth(e,n),jn.addIsSigned(e,r),jn.endInt(e)}}class bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryEncoding(e,n){return(n||new bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,n){return e.setPosition(e.position()+ut),(n||new bi).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new jn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Mu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addIndexType(e,n){e.addFieldOffset(1,n,0)}static addIsOrdered(e,n){e.addFieldInt8(2,+n,0)}static addDictionaryKind(e,n){e.addFieldInt16(3,n,Mu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class Ao{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBinary(e,n){return(n||new Ao).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+ut),(n||new Ao).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Ao.startBinary(e),Ao.endBinary(e)}}class Po{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBool(e,n){return(n||new Po).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+ut),(n||new Po).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Po.startBool(e),Po.endBool(e)}}var Du;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Du||(Du={}));let eu=class Is{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDate(e,n){return(n||new Is).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+ut),(n||new Is).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Du.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,Du.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,n){return Is.startDate(e),Is.addUnit(e,n),Is.endDate(e)}};class xn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDecimal(e,n){return(n||new xn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+ut),(n||new xn).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,n){e.addFieldInt32(0,n,0)}static addScale(e,n){e.addFieldInt32(1,n,0)}static addBitWidth(e,n){e.addFieldInt32(2,n,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,n,r,s){return xn.startDecimal(e),xn.addPrecision(e,n),xn.addScale(e,r),xn.addBitWidth(e,s),xn.endDecimal(e)}}var Vs;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Vs||(Vs={}));class zr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeBinary(e,n){return(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+ut),(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,n){return zr.startFixedSizeBinary(e),zr.addByteWidth(e,n),zr.endFixedSizeBinary(e)}}class jr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeList(e,n){return(n||new jr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+ut),(n||new jr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,n){return jr.startFixedSizeList(e),jr.addListSize(e,n),jr.endFixedSizeList(e)}}var Nu;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(Nu||(Nu={}));class Ur{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFloatingPoint(e,n){return(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,n){return e.setPosition(e.position()+ut),(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nu.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,Nu.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,n){return Ur.startFloatingPoint(e),Ur.addPrecision(e,n),Ur.endFloatingPoint(e)}}var Bu;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Bu||(Bu={}));class Vr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInterval(e,n){return(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,n){return e.setPosition(e.position()+ut),(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bu.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,Bu.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,n){return Vr.startInterval(e),Vr.addUnit(e,n),Vr.endInterval(e)}}class Oo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsList(e,n){return(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+ut),(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Oo.startList(e),Oo.endList(e)}}let tu=class ks{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMap(e,n){return(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+ut),(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,n){e.addFieldInt8(0,+n,0)}static endMap(e){return e.endObject()}static createMap(e,n){return ks.startMap(e),ks.addKeysSorted(e,n),ks.endMap(e)}};class Mo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsNull(e,n){return(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+ut),(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Mo.startNull(e),Mo.endNull(e)}}class Do{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsStruct_(e,n){return(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,n){return e.setPosition(e.position()+ut),(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Do.startStruct_(e),Do.endStruct_(e)}}class rr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTime(e,n){return(n||new rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,n){return e.setPosition(e.position()+ut),(n||new rr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Vs.MILLISECOND)}static addBitWidth(e,n){e.addFieldInt32(1,n,32)}static endTime(e){return e.endObject()}static createTime(e,n,r){return rr.startTime(e),rr.addUnit(e,n),rr.addBitWidth(e,r),rr.endTime(e)}}class ir{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTimestamp(e,n){return(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,n){return e.setPosition(e.position()+ut),(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.SECOND}timezone(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Vs.SECOND)}static addTimezone(e,n){e.addFieldOffset(1,n,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,n,r){return ir.startTimestamp(e),ir.addUnit(e,n),ir.addTimezone(e,r),ir.endTimestamp(e)}}var Lu;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Lu||(Lu={}));class In{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUnion(e,n){return(n||new In).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,n){return e.setPosition(e.position()+ut),(n||new In).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Lu.Sparse}typeIds(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,Lu.Sparse)}static addTypeIds(e,n){e.addFieldOffset(1,n,0)}static createTypeIdsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addInt32(n[r]);return e.endVector()}static startTypeIdsVector(e,n){e.startVector(4,n,4)}static endUnion(e){return e.endObject()}static createUnion(e,n,r){return In.startUnion(e),In.addMode(e,n),In.addTypeIds(e,r),In.endUnion(e)}}class No{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUtf8(e,n){return(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+ut),(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return No.startUtf8(e),No.endUtf8(e)}}var _t;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"})(_t||(_t={}));let er=class nu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsField(e,n){return(n||new nu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+ut),(n||new nu).__init(e.readInt32(e.position())+e.position(),e)}name(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):_t.NONE}type(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(e,this.bb_pos+n):null}dictionary(e){const n=this.bb.__offset(this.bb_pos,12);return n?(e||new bi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,n){e.addFieldOffset(0,n,0)}static addNullable(e,n){e.addFieldInt8(1,+n,0)}static addTypeType(e,n){e.addFieldInt8(2,n,_t.NONE)}static addType(e,n){e.addFieldOffset(3,n,0)}static addDictionary(e,n){e.addFieldOffset(4,n,0)}static addChildren(e,n){e.addFieldOffset(5,n,0)}static createChildrenVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startChildrenVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(6,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endField(e){return e.endObject()}},Dr=class pi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsSchema(e,n){return(n||new pi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+ut),(n||new pi).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Us.Little}fields(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new er).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+e*8):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,n){e.addFieldInt16(0,n,Us.Little)}static addFields(e,n){e.addFieldOffset(1,n,0)}static createFieldsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startFieldsVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(2,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static addFeatures(e,n){e.addFieldOffset(3,n,0)}static createFeaturesVector(e,n){e.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)e.addInt64(n[r]);return e.endVector()}static startFeaturesVector(e,n){e.startVector(8,n,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,n){e.finish(n)}static finishSizePrefixedSchemaBuffer(e,n){e.finish(n,void 0,!0)}static createSchema(e,n,r,s,a){return pi.startSchema(e),pi.addEndianness(e,n),pi.addFields(e,r),pi.addCustomMetadata(e,s),pi.addFeatures(e,a),pi.endSchema(e)}};class zn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFooter(e,n){return(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,n){return e.setPosition(e.position()+ut),(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):js.V1}schema(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new Dr).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new eh).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new eh).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,js.V1)}static addSchema(e,n){e.addFieldOffset(1,n,0)}static addDictionaries(e,n){e.addFieldOffset(2,n,0)}static startDictionariesVector(e,n){e.startVector(24,n,8)}static addRecordBatches(e,n){e.addFieldOffset(3,n,0)}static startRecordBatchesVector(e,n){e.startVector(24,n,8)}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,n){e.finish(n)}static finishSizePrefixedFooterBuffer(e,n){e.finish(n,void 0,!0)}}class tt{constructor(e=[],n,r){this.fields=e||[],this.metadata=n||new Map,r||(r=rh(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,n)=>`${n}: ${e}`).join(", ")} }>`}select(e){const n=new Set(e),r=this.fields.filter(s=>n.has(s.name));return new tt(r,this.metadata)}selectAt(e){const n=e.map(r=>this.fields[r]).filter(Boolean);return new tt(n,this.metadata)}assign(...e){const n=e[0]instanceof tt?e[0]:Array.isArray(e[0])?new tt(e[0]):new tt(e),r=[...this.fields],s=Vc(Vc(new Map,this.metadata),n.metadata),a=n.fields.filter(u=>{const f=r.findIndex(h=>h.name===u.name);return~f?(r[f]=u.clone({metadata:Vc(Vc(new Map,r[f].metadata),u.metadata)}))&&!1:!0}),c=rh(a,new Map);return new tt([...r,...a],s,new Map([...this.dictionaries,...c]))}}tt.prototype.fields=null;tt.prototype.metadata=null;tt.prototype.dictionaries=null;class mt{constructor(e,n,r=!1,s){this.name=e,this.type=n,this.nullable=r,this.metadata=s||new Map}static new(...e){let[n,r,s,a]=e;return e[0]&&typeof e[0]=="object"&&({name:n}=e[0],r===void 0&&(r=e[0].type),s===void 0&&(s=e[0].nullable),a===void 0&&(a=e[0].metadata)),new mt(`${n}`,r,s,a)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[n,r,s,a]=e;return!e[0]||typeof e[0]!="object"?[n=this.name,r=this.type,s=this.nullable,a=this.metadata]=e:{name:n=this.name,type:r=this.type,nullable:s=this.nullable,metadata:a=this.metadata}=e[0],mt.new(n,r,s,a)}}mt.prototype.type=null;mt.prototype.name=null;mt.prototype.nullable=null;mt.prototype.metadata=null;function Vc(t,e){return new Map([...t||new Map,...e||new Map])}function rh(t,e=new Map){for(let n=-1,r=t.length;++n<r;){const a=t[n].type;if(be.isDictionary(a)){if(!e.has(a.id))e.set(a.id,a.dictionary);else if(e.get(a.id)!==a.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}a.children&&a.children.length>0&&rh(a.children,e)}return e}var Z0=Ci,SI=Kb,_I=zs;class sl{constructor(e,n=Un.V4,r,s){this.schema=e,this.version=n,r&&(this._recordBatches=r),s&&(this._dictionaryBatches=s)}static decode(e){e=new _I(Qe(e));const n=zn.getRootAsFooter(e),r=tt.decode(n.schema());return new CI(r,n)}static encode(e){const n=new SI,r=tt.encode(n,e.schema);zn.startRecordBatchesVector(n,e.numRecordBatches);for(const c of[...e.recordBatches()].slice().reverse())no.encode(n,c);const s=n.endVector();zn.startDictionariesVector(n,e.numDictionaries);for(const c of[...e.dictionaryBatches()].slice().reverse())no.encode(n,c);const a=n.endVector();return zn.startFooter(n),zn.addSchema(n,r),zn.addVersion(n,Un.V4),zn.addRecordBatches(n,s),zn.addDictionaries(n,a),zn.finishFooterBuffer(n,zn.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,n=-1,r=this.numRecordBatches;++n<r;)(e=this.getRecordBatch(n))&&(yield e)}*dictionaryBatches(){for(let e,n=-1,r=this.numDictionaries;++n<r;)(e=this.getDictionaryBatch(n))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class CI extends sl{constructor(e,n){super(e,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const n=this._footer.recordBatches(e);if(n)return no.decode(n)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const n=this._footer.dictionaries(e);if(n)return no.decode(n)}return null}}class no{constructor(e,n,r){this.metaDataLength=e,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(e){return new no(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,n){const{metaDataLength:r}=n,s=new Z0(n.offset,0),a=new Z0(n.bodyLength,0);return eh.createBlock(e,s,r,a)}}const Ct=Object.freeze({done:!0,value:void 0});class ev{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class Jh{tee(){return this._getDOMStream().tee()}pipe(e,n){return this._getNodeStream().pipe(e,n)}pipeTo(e,n){return this._getDOMStream().pipeTo(e,n)}pipeThrough(e,n){return this._getDOMStream().pipeThrough(e,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class wI extends Jh{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Ct);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return tr.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return tr.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ve(this,void 0,void 0,function*(){return yield this.abort(e),Ct})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),Ct})}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(Ct)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class ru extends wI{write(e){if((e=Qe(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Qp(this.toUint8Array(!0)):this.toUint8Array(!1).then(Qp)}toUint8Array(e=!1){return e?Xr(this._values)[0]:ve(this,void 0,void 0,function*(){var n,r;const s=[];let a=0;try{for(var c=Lo(this),u;u=yield c.next(),!u.done;){const f=u.value;s.push(f),a+=f.byteLength}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=c.return)&&(yield r.call(c))}finally{if(n)throw n.error}}return Xr(s,a)[0]})}}class Fu{constructor(e){e&&(this.source=new xI(tr.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Ws{constructor(e){e instanceof Ws?this.source=e.source:e instanceof ru?this.source=new Ro(tr.fromAsyncIterable(e)):P1(e)?this.source=new Ro(tr.fromNodeStream(e)):Lh(e)?this.source=new Ro(tr.fromDOMStream(e)):A1(e)?this.source=new Ro(tr.fromDOMStream(e.body)):bl(e)?this.source=new Ro(tr.fromIterable(e)):qi(e)?this.source=new Ro(tr.fromAsyncIterable(e)):Xs(e)&&(this.source=new Ro(tr.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class xI{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,n="read"){return this.source.next({cmd:n,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Ct)}return(e){return Object.create(this.source.return&&this.source.return(e)||Ct)}}class Ro{constructor(e){this.source=e,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,n="read"){return ve(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:e})})}throw(e){return ve(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(e))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(e){return ve(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(e))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class tv extends Fu{constructor(e,n){super(),this.position=0,this.buffer=Qe(e),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(e){const{buffer:n,byteOffset:r}=this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:n,size:r,position:s}=this;return n&&s<r?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(r,s+Math.min(r-s,e)),n.subarray(s,this.position)):null}readAt(e,n){const r=this.buffer,s=Math.min(this.size,e+n);return r?r.subarray(e,s):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class $u extends Ws{constructor(e,n){super(),this.position=0,this._handle=e,typeof n=="number"?this.size=n:this._pending=ve(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ve(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)})}seek(e){return ve(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:s}=this;if(n&&s<r){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let a=s,c=0,u=0;const f=Math.min(r,a+Math.min(r-a,e)),h=new Uint8Array(Math.max(0,(this.position=f)-a));for(;(a+=u)<f&&(c+=u)<h.byteLength;)({bytesRead:u}=yield n.read(h,c,h.byteLength-c,a));return h}return null})}readAt(e,n){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:s}=this;if(r&&e+n<s){const a=Math.min(s,e+n),c=new Uint8Array(a-e);return(yield r.read(c,0,n,e)).buffer}return new Uint8Array(n)})}close(){return ve(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const II=65536;function Es(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const Hs=8,qh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class Xb{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let s=n[3]*r[3];this.buffer[0]=s&65535;let a=s>>>16;return s=n[2]*r[3],a+=s,s=n[3]*r[2]>>>0,a+=s,this.buffer[0]+=a<<16,this.buffer[1]=a>>>0<s?II:0,this.buffer[1]+=a>>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(e){const n=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Es(this.buffer[1])} ${Es(this.buffer[0])}`}}class rt extends Xb{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,n=new Uint32Array(2)){return rt.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return rt.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.length,s=new rt(n);for(let a=0;a<r;){const c=Hs<r-a?Hs:r-a,u=new rt(new Uint32Array([Number.parseInt(e.slice(a,a+c),10),0])),f=new rt(new Uint32Array([qh[c],0]));s.times(f),s.plus(u),a+=c}return s}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)rt.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new rt(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new rt(new Uint32Array(e.buffer)).plus(n)}}class wn extends Xb{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const n=this.buffer[1]<<0,r=e.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<e.buffer[0]}static from(e,n=new Uint32Array(2)){return wn.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return wn.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.startsWith("-"),s=e.length,a=new wn(n);for(let c=r?1:0;c<s;){const u=Hs<s-c?Hs:s-c,f=new wn(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0])),h=new wn(new Uint32Array([qh[u],0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)wn.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new wn(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new wn(new Uint32Array(e.buffer)).plus(n)}}class Nr{constructor(e){this.buffer=e}high(){return new wn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new wn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const n=new rt(new Uint32Array([this.buffer[3],0])),r=new rt(new Uint32Array([this.buffer[2],0])),s=new rt(new Uint32Array([this.buffer[1],0])),a=new rt(new Uint32Array([this.buffer[0],0])),c=new rt(new Uint32Array([e.buffer[3],0])),u=new rt(new Uint32Array([e.buffer[2],0])),f=new rt(new Uint32Array([e.buffer[1],0])),h=new rt(new Uint32Array([e.buffer[0],0]));let y=rt.multiply(a,h);this.buffer[0]=y.low();const g=new rt(new Uint32Array([y.high(),0]));return y=rt.multiply(s,h),g.plus(y),y=rt.multiply(a,f),g.plus(y),this.buffer[1]=g.low(),this.buffer[3]=g.lessThan(y)?1:0,this.buffer[2]=g.high(),new rt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(rt.multiply(r,h)).plus(rt.multiply(s,f)).plus(rt.multiply(a,u)),this.buffer[3]+=rt.multiply(n,h).plus(rt.multiply(r,f)).plus(rt.multiply(s,u)).plus(rt.multiply(a,c)).low(),this}plus(e){const n=new Uint32Array(4);return n[3]=this.buffer[3]+e.buffer[3]>>>0,n[2]=this.buffer[2]+e.buffer[2]>>>0,n[1]=this.buffer[1]+e.buffer[1]>>>0,n[0]=this.buffer[0]+e.buffer[0]>>>0,n[0]<this.buffer[0]>>>0&&++n[1],n[1]<this.buffer[1]>>>0&&++n[2],n[2]<this.buffer[2]>>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${Es(this.buffer[3])} ${Es(this.buffer[2])} ${Es(this.buffer[1])} ${Es(this.buffer[0])}`}static multiply(e,n){return new Nr(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Nr(new Uint32Array(e.buffer)).plus(n)}static from(e,n=new Uint32Array(4)){return Nr.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(4)){return Nr.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(4)){const r=e.startsWith("-"),s=e.length,a=new Nr(n);for(let c=r?1:0;c<s;){const u=Hs<s-c?Hs:s-c,f=new Nr(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0,0,0])),h=new Nr(new Uint32Array([qh[u],0,0,0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*4);for(let r=-1,s=e.length;++r<s;)Nr.from(e[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class Jb extends Ve{constructor(e,n,r,s){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=n,this.buffers=r,this.dictionaries=s}visit(e){return super.visit(e instanceof mt?e.type:e)}visitNull(e,{length:n}=this.nextFieldNode()){return Ue({type:e,length:n})}visitBool(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitInt(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFloat(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDate(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTimestamp(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTime(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDecimal(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===Hn.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFixedSizeList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),child:this.visit(e.children[0])})}visitMap(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,n,r=this.nextBufferRange()){return n>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,n){return this.readData(e,n)}readTypeIds(e,n){return this.readData(e,n)}readData(e,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(e){return this.dictionaries.get(e.id)}}class kI extends Jb{constructor(e,n,r,s){super(new Uint8Array(0),n,r,s),this.sources=e}readNullBitmap(e,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):Au(this.sources[r])}readOffsets(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(Int32Array,this.sources[n]))}readTypeIds(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(e.ArrayType,this.sources[n]))}readData(e,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return be.isTimestamp(e)||(be.isInt(e)||be.isTime(e))&&e.bitWidth===64||be.isDate(e)&&e.unit===ki.MILLISECOND?ct(Uint8Array,wn.convertArray(r[n])):be.isDecimal(e)?ct(Uint8Array,Nr.convertArray(r[n])):be.isBinary(e)||be.isFixedSizeBinary(e)?TI(r[n]):be.isBool(e)?Au(r[n]):be.isUtf8(e)?Bh(r[n].join("")):ct(Uint8Array,ct(e.ArrayType,r[n].map(s=>+s)))}}function TI(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r>>1]=Number.parseInt(e.slice(r,r+2),16);return n}class we extends Ve{compareSchemas(e,n){return e===n||n instanceof e.constructor&&this.compareManyFields(e.fields,n.fields)}compareManyFields(e,n){return e===n||Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((r,s)=>this.compareFields(r,n[s]))}compareFields(e,n){return e===n||n instanceof e.constructor&&e.name===n.name&&e.nullable===n.nullable&&this.visit(e.type,n.type)}}function Mn(t,e){return e instanceof t.constructor}function Sl(t,e){return t===e||Mn(t,e)}function Ri(t,e){return t===e||Mn(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function rd(t,e){return t===e||Mn(t,e)&&t.precision===e.precision}function RI(t,e){return t===e||Mn(t,e)&&t.byteWidth===e.byteWidth}function Zh(t,e){return t===e||Mn(t,e)&&t.unit===e.unit}function _l(t,e){return t===e||Mn(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Cl(t,e){return t===e||Mn(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function EI(t,e){return t===e||Mn(t,e)&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function AI(t,e){return t===e||Mn(t,e)&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function em(t,e){return t===e||Mn(t,e)&&t.mode===e.mode&&t.typeIds.every((n,r)=>n===e.typeIds[r])&&ro.compareManyFields(t.children,e.children)}function PI(t,e){return t===e||Mn(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&ro.visit(t.indices,e.indices)&&ro.visit(t.dictionary,e.dictionary)}function tm(t,e){return t===e||Mn(t,e)&&t.unit===e.unit}function OI(t,e){return t===e||Mn(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function MI(t,e){return t===e||Mn(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}we.prototype.visitNull=Sl;we.prototype.visitBool=Sl;we.prototype.visitInt=Ri;we.prototype.visitInt8=Ri;we.prototype.visitInt16=Ri;we.prototype.visitInt32=Ri;we.prototype.visitInt64=Ri;we.prototype.visitUint8=Ri;we.prototype.visitUint16=Ri;we.prototype.visitUint32=Ri;we.prototype.visitUint64=Ri;we.prototype.visitFloat=rd;we.prototype.visitFloat16=rd;we.prototype.visitFloat32=rd;we.prototype.visitFloat64=rd;we.prototype.visitUtf8=Sl;we.prototype.visitBinary=Sl;we.prototype.visitFixedSizeBinary=RI;we.prototype.visitDate=Zh;we.prototype.visitDateDay=Zh;we.prototype.visitDateMillisecond=Zh;we.prototype.visitTimestamp=_l;we.prototype.visitTimestampSecond=_l;we.prototype.visitTimestampMillisecond=_l;we.prototype.visitTimestampMicrosecond=_l;we.prototype.visitTimestampNanosecond=_l;we.prototype.visitTime=Cl;we.prototype.visitTimeSecond=Cl;we.prototype.visitTimeMillisecond=Cl;we.prototype.visitTimeMicrosecond=Cl;we.prototype.visitTimeNanosecond=Cl;we.prototype.visitDecimal=Sl;we.prototype.visitList=EI;we.prototype.visitStruct=AI;we.prototype.visitUnion=em;we.prototype.visitDenseUnion=em;we.prototype.visitSparseUnion=em;we.prototype.visitDictionary=PI;we.prototype.visitInterval=tm;we.prototype.visitIntervalDayTime=tm;we.prototype.visitIntervalYearMonth=tm;we.prototype.visitFixedSizeList=OI;we.prototype.visitMap=MI;const ro=new we;function ih(t,e){return ro.compareSchemas(t,e)}function Ip(t,e){return DI(t,e.map(n=>n.data.concat()))}function DI(t,e){const n=[...t.fields],r=[],s={numBatches:e.reduce((g,v)=>Math.max(g,v.length),0)};let a=0,c=0,u=-1;const f=e.length;let h,y=[];for(;s.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,u=-1;++u<f;)y[u]=h=e[u].shift(),c=Math.min(c,h?h.length:c);Number.isFinite(c)&&(y=NI(n,c,y,e,s),c>0&&(r[a++]=Ue({type:new pn(n),length:c,nullCount:0,children:y.slice()})))}return[t=t.assign(n),r.map(g=>new kn(t,g))]}function NI(t,e,n,r,s){var a;const c=(e+63&-64)>>3;for(let u=-1,f=r.length;++u<f;){const h=n[u],y=h==null?void 0:h.length;if(y>=e)y===e?n[u]=h:(n[u]=h.slice(0,e),s.numBatches=Math.max(s.numBatches,r[u].unshift(h.slice(e,y-e))));else{const g=t[u];t[u]=g.clone({nullable:!0}),n[u]=(a=h==null?void 0:h._changeLengthAndBackfillNullBitmap(e))!==null&&a!==void 0?a:Ue({type:g.type,length:e,nullCount:e,nullBitmap:new Uint8Array(c)})}}return n}var qb;class fn{constructor(...e){var n,r;if(e.length===0)return this.batches=[],this.schema=new tt([]),this._offsets=[0],this;let s,a;e[0]instanceof tt&&(s=e.shift()),e[e.length-1]instanceof Uint32Array&&(a=e.pop());const c=f=>{if(f){if(f instanceof kn)return[f];if(f instanceof fn)return f.batches;if(f instanceof ft){if(f.type instanceof pn)return[new kn(new tt(f.type.children),f)]}else{if(Array.isArray(f))return f.flatMap(h=>c(h));if(typeof f[Symbol.iterator]=="function")return[...f].flatMap(h=>c(h));if(typeof f=="object"){const h=Object.keys(f),y=h.map(C=>new et([f[C]])),g=new tt(h.map((C,w)=>new mt(String(C),y[w].type))),[,v]=Ip(g,y);return v.length===0?[new kn(f)]:v}}}return[]},u=e.flatMap(f=>c(f));if(s=(r=s??((n=u[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new tt([]),!(s instanceof tt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const f of u){if(!(f instanceof kn))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!ih(s,f.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=s,this.batches=u,this._offsets=a??Lb(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,n)=>e+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Bb(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?Xh.visit(new et(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
47
|
+
*/var U0;function Bw(){if(U0)return qe;U0=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,I=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,L=t?Symbol.for("react.scope"):60119;function N(O){if(typeof O=="object"&&O!==null){var z=O.$$typeof;switch(z){case e:switch(O=O.type,O){case f:case h:case r:case a:case s:case g:return O;default:switch(O=O&&O.$$typeof,O){case u:case y:case w:case C:case c:return O;default:return z}}case n:return z}}}function E(O){return N(O)===h}return qe.AsyncMode=f,qe.ConcurrentMode=h,qe.ContextConsumer=u,qe.ContextProvider=c,qe.Element=e,qe.ForwardRef=y,qe.Fragment=r,qe.Lazy=w,qe.Memo=C,qe.Portal=n,qe.Profiler=a,qe.StrictMode=s,qe.Suspense=g,qe.isAsyncMode=function(O){return E(O)||N(O)===f},qe.isConcurrentMode=E,qe.isContextConsumer=function(O){return N(O)===u},qe.isContextProvider=function(O){return N(O)===c},qe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},qe.isForwardRef=function(O){return N(O)===y},qe.isFragment=function(O){return N(O)===r},qe.isLazy=function(O){return N(O)===w},qe.isMemo=function(O){return N(O)===C},qe.isPortal=function(O){return N(O)===n},qe.isProfiler=function(O){return N(O)===a},qe.isStrictMode=function(O){return N(O)===s},qe.isSuspense=function(O){return N(O)===g},qe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===h||O===a||O===s||O===g||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===C||O.$$typeof===c||O.$$typeof===u||O.$$typeof===y||O.$$typeof===I||O.$$typeof===P||O.$$typeof===L||O.$$typeof===_)},qe.typeOf=N,qe}var V0;function Lw(){return V0||(V0=1,vp.exports=Bw()),vp.exports}var bp,W0;function Fw(){if(W0)return bp;W0=1;var t=Lw(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=s;function c(w){return t.isMemo(w)?s:a[w.$$typeof]||e}var u=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function C(w,_,I){if(typeof _!="string"){if(v){var P=g(_);P&&P!==v&&C(w,P,I)}var L=f(_);h&&(L=L.concat(h(_)));for(var N=c(w),E=c(_),O=0;O<L.length;++O){var z=L[O];if(!n[z]&&!(I&&I[z])&&!(E&&E[z])&&!(N&&N[z])){var M=y(_,z);try{u(w,z,M)}catch{}}}}return w}return bp=C,bp}Fw();function ve(t,e,n,r){function s(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function u(y){try{h(r.next(y))}catch(g){c(g)}}function f(y){try{h(r.throw(y))}catch(g){c(g)}}function h(y){y.done?a(y.value):s(y.value).then(u,f)}h((r=r.apply(t,e||[])).next())})}function H0(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pe(t){return this instanceof Pe?(this.v=t,this):new Pe(t)}function Gr(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),s,a=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(v){r[v]&&(s[v]=function(C){return new Promise(function(w,_){a.push([v,C,w,_])>1||u(v,C)})})}function u(v,C){try{f(r[v](C))}catch(w){g(a[0][3],w)}}function f(v){v.value instanceof Pe?Promise.resolve(v.value.v).then(h,y):g(a[0][2],v)}function h(v){u("next",v)}function y(v){u("throw",v)}function g(v,C){v(C),a.shift(),a.length&&u(a[0][0],a[0][1])}}function Zc(t){var e,n;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,a){e[s]=t[s]?function(c){return(n=!n)?{value:Pe(t[s](c)),done:!1}:a?a(c):c}:a}}function Lo(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof H0=="function"?H0(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(c){return new Promise(function(u,f){c=t[a](c),s(u,f,c.done,c.value)})}}function s(a,c,u,f){Promise.resolve(f).then(function(h){a({value:h,done:u})},c)}}const $w=new TextDecoder("utf-8"),Kp=t=>$w.decode(t),zw=new TextEncoder,Lh=t=>zw.encode(t),[fO,jw]=(()=>{const t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[gl,pO]=(()=>{const t=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[e,!1]})(),[vl,hO]=(()=>{const t=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[e,!1]})(),Uw=t=>typeof t=="number",E1=t=>typeof t=="boolean",$t=t=>typeof t=="function",En=t=>t!=null&&Object(t)===t,qi=t=>En(t)&&$t(t.then),bl=t=>En(t)&&$t(t[Symbol.iterator]),Xs=t=>En(t)&&$t(t[Symbol.asyncIterator]),Qp=t=>En(t)&&En(t.schema),A1=t=>En(t)&&"done"in t&&"value"in t,P1=t=>En(t)&&$t(t.stat)&&Uw(t.fd),O1=t=>En(t)&&Fh(t.body),ed=t=>"_getDOMStream"in t&&"_getNodeStream"in t,Vw=t=>En(t)&&$t(t.abort)&&$t(t.getWriter)&&!ed(t),Fh=t=>En(t)&&$t(t.cancel)&&$t(t.getReader)&&!ed(t),Ww=t=>En(t)&&$t(t.end)&&$t(t.write)&&E1(t.writable)&&!ed(t),M1=t=>En(t)&&$t(t.read)&&$t(t.pipe)&&E1(t.readable)&&!ed(t),Hw=t=>En(t)&&$t(t.clear)&&$t(t.bytes)&&$t(t.position)&&$t(t.setPosition)&&$t(t.capacity)&&$t(t.getBufferIdentifier)&&$t(t.createLong),$h=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Gw(t){const e=t[0]?[t[0]]:[];let n,r,s,a;for(let c,u,f=0,h=0,y=t.length;++f<y;){if(c=e[h],u=t[f],!c||!u||c.buffer!==u.buffer||u.byteOffset<c.byteOffset){u&&(e[++h]=u);continue}if({byteOffset:n,byteLength:s}=c,{byteOffset:r,byteLength:a}=u,n+s<r||r+a<n){u&&(e[++h]=u);continue}e[h]=new Uint8Array(c.buffer,n,r-n+a)}return e}function G0(t,e,n=0,r=e.byteLength){const s=t.byteLength,a=new Uint8Array(t.buffer,t.byteOffset,s),c=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,s));return a.set(c,n),t}function Xr(t,e){const n=Gw(t),r=n.reduce((y,g)=>y+g.byteLength,0);let s,a,c,u=0,f=-1;const h=Math.min(e||Number.POSITIVE_INFINITY,r);for(const y=n.length;++f<y;){if(s=n[f],a=s.subarray(0,Math.min(s.length,h-u)),h<=u+a.length){a.length<s.length?n[f]=s.subarray(a.length):a.length===s.length&&f++,c?G0(c,a,u):c=a;break}G0(c||(c=new Uint8Array(h)),a,u),u+=a.length}return[c||new Uint8Array(0),n.slice(f),r-(c?c.byteLength:0)]}function ct(t,e){let n=A1(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Lh(n)),n instanceof ArrayBuffer?new t(n):n instanceof $h?new t(n):Hw(n)?ct(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const ja=t=>ct(Int32Array,t),Qe=t=>ct(Uint8Array,t),Xp=t=>(t.next(),t);function*Yw(t,e){const n=function*(s){yield s},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof $h?n(e):bl(e)?e:n(e);return yield*Xp(function*(s){let a=null;do a=s.next(yield ct(t,a));while(!a.done)}(r[Symbol.iterator]())),new t}const Kw=t=>Yw(Uint8Array,t);function D1(t,e){return Gr(this,arguments,function*(){if(qi(e))return yield Pe(yield Pe(yield*Zc(Lo(D1(t,yield Pe(e))))));const r=function(c){return Gr(this,arguments,function*(){yield yield Pe(yield Pe(c))})},s=function(c){return Gr(this,arguments,function*(){yield Pe(yield*Zc(Lo(Xp(function*(u){let f=null;do f=u.next(yield f==null?void 0:f.value);while(!f.done)}(c[Symbol.iterator]())))))})},a=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof $h?r(e):bl(e)?s(e):Xs(e)?e:r(e);return yield Pe(yield*Zc(Lo(Xp(function(c){return Gr(this,arguments,function*(){let u=null;do u=yield Pe(c.next(yield yield Pe(ct(t,u))));while(!u.done)})}(a[Symbol.asyncIterator]()))))),yield Pe(new t)})}const Qw=t=>D1(Uint8Array,t);function zh(t,e,n){if(t!==0){n=n.slice(0,e+1);for(let r=-1;++r<=e;)n[r]+=t}return n}function Xw(t,e){let n=0;const r=t.length;if(r!==e.length)return!1;if(r>0)do if(t[n]!==e[n])return!1;while(++n<r);return!0}const tr={fromIterable(t){return jc(Jw(t))},fromAsyncIterable(t){return jc(qw(t))},fromDOMStream(t){return jc(Zw(t))},fromNodeStream(t){return jc(tx(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},jc=t=>(t.next(),t);function*Jw(t){let e,n=!1,r=[],s,a,c,u=0;function f(){return a==="peek"?Xr(r,c)[0]:([s,r,u]=Xr(r,c),s)}({cmd:a,size:c}=yield null);const h=Kw(t)[Symbol.iterator]();try{do if({done:e,value:s}=Number.isNaN(c-u)?h.next():h.next(c-u),!e&&s.byteLength>0&&(r.push(s),u+=s.byteLength),e||c<=u)do({cmd:a,size:c}=yield f());while(c<u);while(!e)}catch(y){(n=!0)&&typeof h.throw=="function"&&h.throw(y)}finally{n===!1&&typeof h.return=="function"&&h.return(null)}return null}function qw(t){return Gr(this,arguments,function*(){let n,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?Xr(s,u)[0]:([a,s,f]=Xr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=Qw(t)[Symbol.asyncIterator]();try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.next()):yield Pe(y.next(u-f)),!n&&a.byteLength>0&&(s.push(a),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&typeof y.throw=="function"&&(yield Pe(y.throw(g)))}finally{r===!1&&typeof y.return=="function"&&(yield Pe(y.return(new Uint8Array(0))))}return yield Pe(null)})}function Zw(t){return Gr(this,arguments,function*(){let n=!1,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?Xr(s,u)[0]:([a,s,f]=Xr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=new ex(t);try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.read()):yield Pe(y.read(u-f)),!n&&a.byteLength>0&&(s.push(Qe(a)),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&(yield Pe(y.cancel(g)))}finally{r===!1?yield Pe(y.cancel()):t.locked&&y.releaseLock()}return yield Pe(null)})}class ex{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ve(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return ve(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=Qe(n)),n})}}const Sp=(t,e)=>{const n=s=>r([e,s]);let r;return[e,n,new Promise(s=>(r=s)&&t.once(e,n))]};function tx(t){return Gr(this,arguments,function*(){const n=[];let r="error",s=!1,a=null,c,u,f=0,h=[],y;function g(){return c==="peek"?Xr(h,u)[0]:([y,h,f]=Xr(h,u),y)}if({cmd:c,size:u}=yield yield Pe(null),t.isTTY)return yield yield Pe(new Uint8Array(0)),yield Pe(null);try{n[0]=Sp(t,"end"),n[1]=Sp(t,"error");do{if(n[2]=Sp(t,"readable"),[r,a]=yield Pe(Promise.race(n.map(C=>C[2]))),r==="error")break;if((s=r==="end")||(Number.isFinite(u-f)?(y=Qe(t.read(u-f)),y.byteLength<u-f&&(y=Qe(t.read()))):y=Qe(t.read()),y.byteLength>0&&(h.push(y),f+=y.byteLength)),s||u<=f)do({cmd:c,size:u}=yield yield Pe(g()));while(u<f)}while(!s)}finally{yield Pe(v(n,r==="error"?a:null))}return yield Pe(null);function v(C,w){return y=h=null,new Promise((_,I)=>{for(const[P,L]of C)t.off(P,L);try{const P=t.destroy;P&&P.call(t,w),w=void 0}catch(P){w=P||w}finally{w!=null?I(w):_()}})}})}var Un;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(Un||(Un={}));var Hn;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Hn||(Hn={}));var Rn;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(Rn||(Rn={}));var ki;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(ki||(ki={}));var Xe;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Xe||(Xe={}));var Zi;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Zi||(Zi={}));var Ze;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Ze||(Ze={}));var D;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"})(D||(D={}));var hi;(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(hi||(hi={}));const nx=void 0;function tl(t){if(t===null)return"null";if(t===nx)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof gl||t instanceof vl?`[${[...t].map(e=>tl(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,n)=>typeof n=="bigint"?`${n}`:n)}const rx=Symbol.for("isArrowBigNum");function kr(t,...e){return e.length===0?Object.setPrototypeOf(ct(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}kr.prototype[rx]=!0;kr.prototype.toJSON=function(){return`"${Fo(this)}"`};kr.prototype.valueOf=function(){return N1(this)};kr.prototype.toString=function(){return Fo(this)};kr.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return N1(this);case"string":return Fo(this);case"default":return Jp(this)}return Fo(this)};function As(...t){return kr.apply(this,t)}function Ps(...t){return kr.apply(this,t)}function nl(...t){return kr.apply(this,t)}Object.setPrototypeOf(As.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Ps.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(nl.prototype,Object.create(Uint32Array.prototype));Object.assign(As.prototype,kr.prototype,{constructor:As,signed:!0,TypedArray:Int32Array,BigIntArray:gl});Object.assign(Ps.prototype,kr.prototype,{constructor:Ps,signed:!1,TypedArray:Uint32Array,BigIntArray:vl});Object.assign(nl.prototype,kr.prototype,{constructor:nl,signed:!0,TypedArray:Uint32Array,BigIntArray:vl});function N1(t){const{buffer:e,byteOffset:n,length:r,signed:s}=t,a=new vl(e,n,r),c=s&&a[a.length-1]&BigInt(1)<<BigInt(63);let u=BigInt(c?1:0),f=BigInt(0);if(c){for(const h of a)u+=~h*(BigInt(1)<<BigInt(32)*f++);u*=BigInt(-1)}else for(const h of a)u+=h*(BigInt(1)<<BigInt(32)*f++);return u}let Fo,Jp;jw?(Jp=t=>t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:_p(t),Fo=t=>t.byteLength===8?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:_p(t)):(Fo=_p,Jp=Fo);function _p(t){let e="";const n=new Uint32Array(2);let r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);const s=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let a=-1;const c=r.length-1;do{for(n[0]=r[a=0];a<c;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,e=`${n[0]}${e}`}while(s[0]||s[1]||s[2]||s[3]);return e??"0"}class jh{static new(e,n){switch(n){case!0:return new As(e);case!1:return new Ps(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case gl:return new As(e)}return e.byteLength===16?new nl(e):new Ps(e)}static signed(e){return new As(e)}static unsigned(e){return new Ps(e)}static decimal(e){return new nl(e)}constructor(e,n){return jh.new(e,n)}}var B1,L1,F1,$1,z1,j1,U1,V1,W1,H1,G1,Y1,K1,Q1,X1,J1,q1,Z1,eb;class be{static isNull(e){return(e==null?void 0:e.typeId)===D.Null}static isInt(e){return(e==null?void 0:e.typeId)===D.Int}static isFloat(e){return(e==null?void 0:e.typeId)===D.Float}static isBinary(e){return(e==null?void 0:e.typeId)===D.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===D.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===D.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===D.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===D.Date}static isTime(e){return(e==null?void 0:e.typeId)===D.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===D.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===D.Interval}static isList(e){return(e==null?void 0:e.typeId)===D.List}static isStruct(e){return(e==null?void 0:e.typeId)===D.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===D.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===D.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===D.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===D.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===D.Dictionary}static isDenseUnion(e){return be.isUnion(e)&&e.mode===Hn.Dense}static isSparseUnion(e){return be.isUnion(e)&&e.mode===Hn.Sparse}get typeId(){return D.NONE}}B1=Symbol.toStringTag;be[B1]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(be.prototype);let eo=class extends be{toString(){return"Null"}get typeId(){return D.Null}};L1=Symbol.toStringTag;eo[L1]=(t=>t[Symbol.toStringTag]="Null")(eo.prototype);class to extends be{constructor(e,n){super(),this.isSigned=e,this.bitWidth=n}get typeId(){return D.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?gl:vl}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}F1=Symbol.toStringTag;to[F1]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(to.prototype);class rl extends to{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(rl.prototype,"ArrayType",{value:Int32Array});class il extends be{constructor(e){super(),this.precision=e}get typeId(){return D.Float}get ArrayType(){switch(this.precision){case Rn.HALF:return Uint16Array;case Rn.SINGLE:return Float32Array;case Rn.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}$1=Symbol.toStringTag;il[$1]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(il.prototype);let vu=class extends be{constructor(){super()}get typeId(){return D.Binary}toString(){return"Binary"}};z1=Symbol.toStringTag;vu[z1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(vu.prototype);let bu=class extends be{constructor(){super()}get typeId(){return D.Utf8}toString(){return"Utf8"}};j1=Symbol.toStringTag;bu[j1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(bu.prototype);let Su=class extends be{constructor(){super()}get typeId(){return D.Bool}toString(){return"Bool"}};U1=Symbol.toStringTag;Su[U1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Su.prototype);let _u=class extends be{constructor(e,n,r=128){super(),this.scale=e,this.precision=n,this.bitWidth=r}get typeId(){return D.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};V1=Symbol.toStringTag;_u[V1]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(_u.prototype);class Cu extends be{constructor(e){super(),this.unit=e}get typeId(){return D.Date}toString(){return`Date${(this.unit+1)*32}<${ki[this.unit]}>`}}W1=Symbol.toStringTag;Cu[W1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(Cu.prototype);class ol extends be{constructor(e,n){super(),this.unit=e,this.bitWidth=n}get typeId(){return D.Time}toString(){return`Time${this.bitWidth}<${Xe[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return gl}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}H1=Symbol.toStringTag;ol[H1]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(ol.prototype);class wu extends be{constructor(e,n){super(),this.unit=e,this.timezone=n}get typeId(){return D.Timestamp}toString(){return`Timestamp<${Xe[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}G1=Symbol.toStringTag;wu[G1]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(wu.prototype);class xu extends be{constructor(e){super(),this.unit=e}get typeId(){return D.Interval}toString(){return`Interval<${Zi[this.unit]}>`}}Y1=Symbol.toStringTag;xu[Y1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(xu.prototype);let Iu=class extends be{constructor(e){super(),this.children=[e]}get typeId(){return D.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};K1=Symbol.toStringTag;Iu[K1]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Iu.prototype);class pn extends be{constructor(e){super(),this.children=e}get typeId(){return D.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}Q1=Symbol.toStringTag;pn[Q1]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(pn.prototype);class ku extends be{constructor(e,n,r){super(),this.mode=e,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((s,a,c)=>(s[a]=c)&&s||s,Object.create(null))}get typeId(){return D.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}X1=Symbol.toStringTag;ku[X1]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(ku.prototype);let Tu=class extends be{constructor(e){super(),this.byteWidth=e}get typeId(){return D.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};J1=Symbol.toStringTag;Tu[J1]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Tu.prototype);let Ru=class extends be{constructor(e,n){super(),this.listSize=e,this.children=[n]}get typeId(){return D.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};q1=Symbol.toStringTag;Ru[q1]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Ru.prototype);class Eu extends be{constructor(e,n=!1){super(),this.children=[e],this.keysSorted=n}get typeId(){return D.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}Z1=Symbol.toStringTag;Eu[Z1]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Eu.prototype);const ix=(t=>()=>++t)(-1);class $s extends be{constructor(e,n,r,s){super(),this.indices=n,this.dictionary=e,this.isOrdered=s||!1,this.id=r==null?ix():typeof r=="number"?r:r.low}get typeId(){return D.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}eb=Symbol.toStringTag;$s[eb]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))($s.prototype);function mi(t){const e=t;switch(t.typeId){case D.Decimal:return t.bitWidth/32;case D.Timestamp:return 2;case D.Date:return 1+e.unit;case D.Interval:return 1+e.unit;case D.FixedSizeList:return e.listSize;case D.FixedSizeBinary:return e.byteWidth;default:return 1}}class Ve{visitMany(e,...n){return e.map((r,s)=>this.visit(r,...n.map(a=>a[s])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,n=!0){return ox(this,e,n)}getVisitFnByTypeId(e,n=!0){return xs(this,e,n)}visitNull(e,...n){return null}visitBool(e,...n){return null}visitInt(e,...n){return null}visitFloat(e,...n){return null}visitUtf8(e,...n){return null}visitBinary(e,...n){return null}visitFixedSizeBinary(e,...n){return null}visitDate(e,...n){return null}visitTimestamp(e,...n){return null}visitTime(e,...n){return null}visitDecimal(e,...n){return null}visitList(e,...n){return null}visitStruct(e,...n){return null}visitUnion(e,...n){return null}visitDictionary(e,...n){return null}visitInterval(e,...n){return null}visitFixedSizeList(e,...n){return null}visitMap(e,...n){return null}}function ox(t,e,n=!0){return typeof e=="number"?xs(t,e,n):typeof e=="string"&&e in D?xs(t,D[e],n):e&&e instanceof be?xs(t,Y0(e),n):e!=null&&e.type&&e.type instanceof be?xs(t,Y0(e.type),n):xs(t,D.NONE,n)}function xs(t,e,n=!0){let r=null;switch(e){case D.Null:r=t.visitNull;break;case D.Bool:r=t.visitBool;break;case D.Int:r=t.visitInt;break;case D.Int8:r=t.visitInt8||t.visitInt;break;case D.Int16:r=t.visitInt16||t.visitInt;break;case D.Int32:r=t.visitInt32||t.visitInt;break;case D.Int64:r=t.visitInt64||t.visitInt;break;case D.Uint8:r=t.visitUint8||t.visitInt;break;case D.Uint16:r=t.visitUint16||t.visitInt;break;case D.Uint32:r=t.visitUint32||t.visitInt;break;case D.Uint64:r=t.visitUint64||t.visitInt;break;case D.Float:r=t.visitFloat;break;case D.Float16:r=t.visitFloat16||t.visitFloat;break;case D.Float32:r=t.visitFloat32||t.visitFloat;break;case D.Float64:r=t.visitFloat64||t.visitFloat;break;case D.Utf8:r=t.visitUtf8;break;case D.Binary:r=t.visitBinary;break;case D.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case D.Date:r=t.visitDate;break;case D.DateDay:r=t.visitDateDay||t.visitDate;break;case D.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case D.Timestamp:r=t.visitTimestamp;break;case D.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case D.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case D.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case D.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case D.Time:r=t.visitTime;break;case D.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case D.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case D.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case D.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case D.Decimal:r=t.visitDecimal;break;case D.List:r=t.visitList;break;case D.Struct:r=t.visitStruct;break;case D.Union:r=t.visitUnion;break;case D.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case D.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case D.Dictionary:r=t.visitDictionary;break;case D.Interval:r=t.visitInterval;break;case D.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case D.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case D.FixedSizeList:r=t.visitFixedSizeList;break;case D.Map:r=t.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${D[e]}'`)}function Y0(t){switch(t.typeId){case D.Null:return D.Null;case D.Int:{const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?D.Int8:D.Uint8;case 16:return n?D.Int16:D.Uint16;case 32:return n?D.Int32:D.Uint32;case 64:return n?D.Int64:D.Uint64}return D.Int}case D.Float:switch(t.precision){case Rn.HALF:return D.Float16;case Rn.SINGLE:return D.Float32;case Rn.DOUBLE:return D.Float64}return D.Float;case D.Binary:return D.Binary;case D.Utf8:return D.Utf8;case D.Bool:return D.Bool;case D.Decimal:return D.Decimal;case D.Time:switch(t.unit){case Xe.SECOND:return D.TimeSecond;case Xe.MILLISECOND:return D.TimeMillisecond;case Xe.MICROSECOND:return D.TimeMicrosecond;case Xe.NANOSECOND:return D.TimeNanosecond}return D.Time;case D.Timestamp:switch(t.unit){case Xe.SECOND:return D.TimestampSecond;case Xe.MILLISECOND:return D.TimestampMillisecond;case Xe.MICROSECOND:return D.TimestampMicrosecond;case Xe.NANOSECOND:return D.TimestampNanosecond}return D.Timestamp;case D.Date:switch(t.unit){case ki.DAY:return D.DateDay;case ki.MILLISECOND:return D.DateMillisecond}return D.Date;case D.Interval:switch(t.unit){case Zi.DAY_TIME:return D.IntervalDayTime;case Zi.YEAR_MONTH:return D.IntervalYearMonth}return D.Interval;case D.Map:return D.Map;case D.List:return D.List;case D.Struct:return D.Struct;case D.Union:switch(t.mode){case Hn.Dense:return D.DenseUnion;case Hn.Sparse:return D.SparseUnion}return D.Union;case D.FixedSizeBinary:return D.FixedSizeBinary;case D.FixedSizeList:return D.FixedSizeList;case D.Dictionary:return D.Dictionary}throw new Error(`Unrecognized type '${D[t.typeId]}'`)}Ve.prototype.visitInt8=null;Ve.prototype.visitInt16=null;Ve.prototype.visitInt32=null;Ve.prototype.visitInt64=null;Ve.prototype.visitUint8=null;Ve.prototype.visitUint16=null;Ve.prototype.visitUint32=null;Ve.prototype.visitUint64=null;Ve.prototype.visitFloat16=null;Ve.prototype.visitFloat32=null;Ve.prototype.visitFloat64=null;Ve.prototype.visitDateDay=null;Ve.prototype.visitDateMillisecond=null;Ve.prototype.visitTimestampSecond=null;Ve.prototype.visitTimestampMillisecond=null;Ve.prototype.visitTimestampMicrosecond=null;Ve.prototype.visitTimestampNanosecond=null;Ve.prototype.visitTimeSecond=null;Ve.prototype.visitTimeMillisecond=null;Ve.prototype.visitTimeMicrosecond=null;Ve.prototype.visitTimeNanosecond=null;Ve.prototype.visitDenseUnion=null;Ve.prototype.visitSparseUnion=null;Ve.prototype.visitIntervalDayTime=null;Ve.prototype.visitIntervalYearMonth=null;const tb=new Float64Array(1),hs=new Uint32Array(tb.buffer);function nb(t){const e=(t&31744)>>10,n=(t&1023)/1024,r=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function sx(t){if(t!==t)return 32256;tb[0]=t;const e=(hs[1]&2147483648)>>16&65535;let n=hs[1]&2146435072,r=0;return n>=1089470464?hs[0]>0?n=31744:(n=(n&2080374784)>>16,r=(hs[1]&1048575)>>10):n<=1056964608?(r=1048576+(hs[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(hs[1]&1048575)+512>>10),e|n|r&65535}class ke extends Ve{}function Ee(t){return(e,n,r)=>{if(e.setValid(n,r!=null))return t(e,n,r)}}const ax=(t,e,n)=>{t[e]=Math.trunc(n/864e5)},Uh=(t,e,n)=>{t[e]=Math.trunc(n%4294967296),t[e+1]=Math.trunc(n/4294967296)},lx=(t,e,n)=>{t[e]=Math.trunc(n*1e3%4294967296),t[e+1]=Math.trunc(n*1e3/4294967296)},cx=(t,e,n)=>{t[e]=Math.trunc(n*1e6%4294967296),t[e+1]=Math.trunc(n*1e6/4294967296)},rb=(t,e,n,r)=>{if(n+1<e.length){const{[n]:s,[n+1]:a}=e;t.set(r.subarray(0,a-s),s)}},ux=({offset:t,values:e},n,r)=>{const s=t+n;r?e[s>>3]|=1<<s%8:e[s>>3]&=~(1<<s%8)},Ti=({values:t},e,n)=>{t[e]=n},Vh=({values:t},e,n)=>{t[e]=n},ib=({values:t},e,n)=>{t[e]=sx(n)},dx=(t,e,n)=>{switch(t.type.precision){case Rn.HALF:return ib(t,e,n);case Rn.SINGLE:case Rn.DOUBLE:return Vh(t,e,n)}},ob=({values:t},e,n)=>{ax(t,e,n.valueOf())},sb=({values:t},e,n)=>{Uh(t,e*2,n.valueOf())},fx=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},px=({values:t,valueOffsets:e},n,r)=>rb(t,e,n,r),hx=({values:t,valueOffsets:e},n,r)=>{rb(t,e,n,Lh(r))},mx=(t,e,n)=>{t.type.unit===ki.DAY?ob(t,e,n):sb(t,e,n)},ab=({values:t},e,n)=>Uh(t,e*2,n/1e3),lb=({values:t},e,n)=>Uh(t,e*2,n),cb=({values:t},e,n)=>lx(t,e*2,n),ub=({values:t},e,n)=>cx(t,e*2,n),yx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return ab(t,e,n);case Xe.MILLISECOND:return lb(t,e,n);case Xe.MICROSECOND:return cb(t,e,n);case Xe.NANOSECOND:return ub(t,e,n)}},db=({values:t},e,n)=>{t[e]=n},fb=({values:t},e,n)=>{t[e]=n},pb=({values:t},e,n)=>{t[e]=n},hb=({values:t},e,n)=>{t[e]=n},gx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return db(t,e,n);case Xe.MILLISECOND:return fb(t,e,n);case Xe.MICROSECOND:return pb(t,e,n);case Xe.NANOSECOND:return hb(t,e,n)}},vx=({values:t,stride:e},n,r)=>{t.set(r.subarray(0,e),e*n)},bx=(t,e,n)=>{const r=t.children[0],s=t.valueOffsets,a=ar.getVisitFn(r);if(Array.isArray(n))for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n[++c]);else for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n.get(++c))},Sx=(t,e,n)=>{const r=t.children[0],{valueOffsets:s}=t,a=ar.getVisitFn(r);let{[e]:c,[e+1]:u}=s;const f=n instanceof Map?n.entries():Object.entries(n);for(const h of f)if(a(r,c,h),++c>=u)break},_x=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[a]),Cx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(a)),wx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(s.name)),xx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[s.name]),Ix=(t,e,n)=>{const r=t.type.children.map(a=>ar.getVisitFn(a.type)),s=n instanceof Map?wx(e,n):n instanceof et?Cx(e,n):Array.isArray(n)?_x(e,n):xx(e,n);t.type.children.forEach((a,c)=>s(r[c],t.children[c],a,c))},kx=(t,e,n)=>{t.type.mode===Hn.Dense?mb(t,e,n):yb(t,e,n)},mb=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];ar.visit(s,t.valueOffsets[e],n)},yb=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];ar.visit(s,e,n)},Tx=(t,e,n)=>{var r;(r=t.dictionary)===null||r===void 0||r.set(t.values[e],n)},Rx=(t,e,n)=>{t.type.unit===Zi.DAY_TIME?gb(t,e,n):vb(t,e,n)},gb=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},vb=({values:t},e,n)=>{t[e]=n[0]*12+n[1]%12},Ex=(t,e,n)=>{const{stride:r}=t,s=t.children[0],a=ar.getVisitFn(s);if(Array.isArray(n))for(let c=-1,u=e*r;++c<r;)a(s,u+c,n[c]);else for(let c=-1,u=e*r;++c<r;)a(s,u+c,n.get(c))};ke.prototype.visitBool=Ee(ux);ke.prototype.visitInt=Ee(Ti);ke.prototype.visitInt8=Ee(Ti);ke.prototype.visitInt16=Ee(Ti);ke.prototype.visitInt32=Ee(Ti);ke.prototype.visitInt64=Ee(Ti);ke.prototype.visitUint8=Ee(Ti);ke.prototype.visitUint16=Ee(Ti);ke.prototype.visitUint32=Ee(Ti);ke.prototype.visitUint64=Ee(Ti);ke.prototype.visitFloat=Ee(dx);ke.prototype.visitFloat16=Ee(ib);ke.prototype.visitFloat32=Ee(Vh);ke.prototype.visitFloat64=Ee(Vh);ke.prototype.visitUtf8=Ee(hx);ke.prototype.visitBinary=Ee(px);ke.prototype.visitFixedSizeBinary=Ee(fx);ke.prototype.visitDate=Ee(mx);ke.prototype.visitDateDay=Ee(ob);ke.prototype.visitDateMillisecond=Ee(sb);ke.prototype.visitTimestamp=Ee(yx);ke.prototype.visitTimestampSecond=Ee(ab);ke.prototype.visitTimestampMillisecond=Ee(lb);ke.prototype.visitTimestampMicrosecond=Ee(cb);ke.prototype.visitTimestampNanosecond=Ee(ub);ke.prototype.visitTime=Ee(gx);ke.prototype.visitTimeSecond=Ee(db);ke.prototype.visitTimeMillisecond=Ee(fb);ke.prototype.visitTimeMicrosecond=Ee(pb);ke.prototype.visitTimeNanosecond=Ee(hb);ke.prototype.visitDecimal=Ee(vx);ke.prototype.visitList=Ee(bx);ke.prototype.visitStruct=Ee(Ix);ke.prototype.visitUnion=Ee(kx);ke.prototype.visitDenseUnion=Ee(mb);ke.prototype.visitSparseUnion=Ee(yb);ke.prototype.visitDictionary=Ee(Tx);ke.prototype.visitInterval=Ee(Rx);ke.prototype.visitIntervalDayTime=Ee(gb);ke.prototype.visitIntervalYearMonth=Ee(vb);ke.prototype.visitFixedSizeList=Ee(Ex);ke.prototype.visitMap=Ee(Sx);const ar=new ke,Sr=Symbol.for("parent"),Os=Symbol.for("rowIndex");class Wh{constructor(e,n){return this[Sr]=e,this[Os]=n,new Proxy(this,new Px)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Os],n=this[Sr],r=n.type.children,s={};for(let a=-1,c=r.length;++a<c;)s[r[a].name]=An.visit(n.children[a],e);return s}toString(){return`{${[...this].map(([e,n])=>`${tl(e)}: ${tl(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Ax(this[Sr],this[Os])}}class Ax{constructor(e,n){this.childIndex=0,this.children=e.children,this.rowIndex=n,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,An.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Wh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Sr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Os]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Px{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Sr].type.children.map(n=>n.name)}has(e,n){return e[Sr].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(e,n){if(e[Sr].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[Sr].type.children.findIndex(s=>s.name===n);if(r!==-1){const s=An.visit(e[Sr].children[r],e[Os]);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[Sr].type.children.findIndex(a=>a.name===n);return s!==-1?(ar.visit(e[Sr].children[s],e[Os],r),Reflect.set(e,n,r)):Reflect.has(e,n)||typeof n=="symbol"?Reflect.set(e,n,r):!1}}class Se extends Ve{}function Te(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Ox=(t,e)=>864e5*t[e],Hh=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Mx=(t,e)=>4294967296*(t[e+1]/1e3)+(t[e]>>>0)/1e3,Dx=(t,e)=>4294967296*(t[e+1]/1e6)+(t[e]>>>0)/1e6,bb=t=>new Date(t),Nx=(t,e)=>bb(Ox(t,e)),Bx=(t,e)=>bb(Hh(t,e)),Lx=(t,e)=>null,Sb=(t,e,n)=>{if(n+1>=e.length)return null;const r=e[n],s=e[n+1];return t.subarray(r,s)},Fx=({offset:t,values:e},n)=>{const r=t+n;return(e[r>>3]&1<<r%8)!==0},_b=({values:t},e)=>Nx(t,e),Cb=({values:t},e)=>Bx(t,e*2),ao=({stride:t,values:e},n)=>e[t*n],$x=({stride:t,values:e},n)=>nb(e[t*n]),wb=({values:t},e)=>t[e],zx=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),jx=({values:t,valueOffsets:e},n)=>Sb(t,e,n),Ux=({values:t,valueOffsets:e},n)=>{const r=Sb(t,e,n);return r!==null?Kp(r):null},Vx=({values:t},e)=>t[e],Wx=({type:t,values:e},n)=>t.precision!==Rn.HALF?e[n]:nb(e[n]),Hx=(t,e)=>t.type.unit===ki.DAY?_b(t,e):Cb(t,e),xb=({values:t},e)=>1e3*Hh(t,e*2),Ib=({values:t},e)=>Hh(t,e*2),kb=({values:t},e)=>Mx(t,e*2),Tb=({values:t},e)=>Dx(t,e*2),Gx=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return xb(t,e);case Xe.MILLISECOND:return Ib(t,e);case Xe.MICROSECOND:return kb(t,e);case Xe.NANOSECOND:return Tb(t,e)}},Rb=({values:t},e)=>t[e],Eb=({values:t},e)=>t[e],Ab=({values:t},e)=>t[e],Pb=({values:t},e)=>t[e],Yx=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return Rb(t,e);case Xe.MILLISECOND:return Eb(t,e);case Xe.MICROSECOND:return Ab(t,e);case Xe.NANOSECOND:return Pb(t,e)}},Kx=({values:t,stride:e},n)=>jh.decimal(t.subarray(e*n,e*(n+1))),Qx=(t,e)=>{const{valueOffsets:n,stride:r,children:s}=t,{[e*r]:a,[e*r+1]:c}=n,f=s[0].slice(a,c-a);return new et([f])},Xx=(t,e)=>{const{valueOffsets:n,children:r}=t,{[e]:s,[e+1]:a}=n,c=r[0];return new Gh(c.slice(s,a-s))},Jx=(t,e)=>new Wh(t,e),qx=(t,e)=>t.type.mode===Hn.Dense?Ob(t,e):Mb(t,e),Ob=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return An.visit(r,t.valueOffsets[e])},Mb=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return An.visit(r,e)},Zx=(t,e)=>{var n;return(n=t.dictionary)===null||n===void 0?void 0:n.get(t.values[e])},eI=(t,e)=>t.type.unit===Zi.DAY_TIME?Db(t,e):Nb(t,e),Db=({values:t},e)=>t.subarray(2*e,2*(e+1)),Nb=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},tI=(t,e)=>{const{stride:n,children:r}=t,a=r[0].slice(e*n,n);return new et([a])};Se.prototype.visitNull=Te(Lx);Se.prototype.visitBool=Te(Fx);Se.prototype.visitInt=Te(Vx);Se.prototype.visitInt8=Te(ao);Se.prototype.visitInt16=Te(ao);Se.prototype.visitInt32=Te(ao);Se.prototype.visitInt64=Te(wb);Se.prototype.visitUint8=Te(ao);Se.prototype.visitUint16=Te(ao);Se.prototype.visitUint32=Te(ao);Se.prototype.visitUint64=Te(wb);Se.prototype.visitFloat=Te(Wx);Se.prototype.visitFloat16=Te($x);Se.prototype.visitFloat32=Te(ao);Se.prototype.visitFloat64=Te(ao);Se.prototype.visitUtf8=Te(Ux);Se.prototype.visitBinary=Te(jx);Se.prototype.visitFixedSizeBinary=Te(zx);Se.prototype.visitDate=Te(Hx);Se.prototype.visitDateDay=Te(_b);Se.prototype.visitDateMillisecond=Te(Cb);Se.prototype.visitTimestamp=Te(Gx);Se.prototype.visitTimestampSecond=Te(xb);Se.prototype.visitTimestampMillisecond=Te(Ib);Se.prototype.visitTimestampMicrosecond=Te(kb);Se.prototype.visitTimestampNanosecond=Te(Tb);Se.prototype.visitTime=Te(Yx);Se.prototype.visitTimeSecond=Te(Rb);Se.prototype.visitTimeMillisecond=Te(Eb);Se.prototype.visitTimeMicrosecond=Te(Ab);Se.prototype.visitTimeNanosecond=Te(Pb);Se.prototype.visitDecimal=Te(Kx);Se.prototype.visitList=Te(Qx);Se.prototype.visitStruct=Te(Jx);Se.prototype.visitUnion=Te(qx);Se.prototype.visitDenseUnion=Te(Ob);Se.prototype.visitSparseUnion=Te(Mb);Se.prototype.visitDictionary=Te(Zx);Se.prototype.visitInterval=Te(eI);Se.prototype.visitIntervalDayTime=Te(Db);Se.prototype.visitIntervalYearMonth=Te(Nb);Se.prototype.visitFixedSizeList=Te(tI);Se.prototype.visitMap=Te(Xx);const An=new Se,Fr=Symbol.for("keys"),Ms=Symbol.for("vals");class Gh{constructor(e){return this[Fr]=new et([e.children[0]]).memoize(),this[Ms]=e.children[1],new Proxy(this,new rI)}[Symbol.iterator](){return new nI(this[Fr],this[Ms])}get size(){return this[Fr].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Fr],n=this[Ms],r={};for(let s=-1,a=e.length;++s<a;)r[e.get(s)]=An.visit(n,s);return r}toString(){return`{${[...this].map(([e,n])=>`${tl(e)}: ${tl(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class nI{constructor(e,n){this.keys=e,this.vals=n,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),An.visit(this.vals,e)]})}}class rI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Fr].toArray().map(String)}has(e,n){return e[Fr].includes(n)}getOwnPropertyDescriptor(e,n){if(e[Fr].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[Fr].indexOf(n);if(r!==-1){const s=An.visit(Reflect.get(e,Ms),r);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[Fr].indexOf(n);return s!==-1?(ar.visit(Reflect.get(e,Ms),s,r),Reflect.set(e,n,r)):Reflect.has(e,n)?Reflect.set(e,n,r):!1}}Object.defineProperties(Gh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Fr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ms]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let K0;function Bb(t,e,n,r){const{length:s=0}=t;let a=typeof e!="number"?0:e,c=typeof n!="number"?s:n;return a<0&&(a=(a%s+s)%s),c<0&&(c=(c%s+s)%s),c<a&&(K0=a,a=c,c=K0),c>s&&(c=s),r?r(t,a,c):[a,c]}const Q0=t=>t!==t;function Js(t){if(typeof t!=="object"||t===null)return Q0(t)?Q0:n=>n===t;if(t instanceof Date){const n=t.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(t)?n=>n?Xw(t,n):!1:t instanceof Map?oI(t):Array.isArray(t)?iI(t):t instanceof et?sI(t):aI(t,!0)}function iI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Js(t[n]);return td(e)}function oI(t){let e=-1;const n=[];for(const r of t.values())n[++e]=Js(r);return td(n)}function sI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Js(t.get(n));return td(e)}function aI(t,e=!1){const n=Object.keys(t);if(!e&&n.length===0)return()=>!1;const r=[];for(let s=-1,a=n.length;++s<a;)r[s]=Js(t[n[s]]);return td(r,n)}function td(t,e){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return lI(t,n);case Map:return X0(t,n,n.keys());case Gh:case Wh:case Object:case void 0:return X0(t,n,e||Object.keys(n))}return n instanceof et?cI(t,n):!1}}function lI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}function cI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}function X0(t,e,n){const r=n[Symbol.iterator](),s=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),a=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let c=0;const u=t.length;let f=a.next(),h=r.next(),y=s.next();for(;c<u&&!h.done&&!y.done&&!f.done&&!(h.value!==y.value||!t[c](f.value));++c,h=r.next(),y=s.next(),f=a.next());return c===u&&h.done&&y.done&&f.done?!0:(r.return&&r.return(),s.return&&s.return(),a.return&&a.return(),!1)}function Lb(t,e,n,r){return(n&1<<r)!==0}function uI(t,e,n,r){return(n&1<<r)>>r}function Yh(t,e,n){const r=n.byteLength+7&-8;if(t>0||n.byteLength<r){const s=new Uint8Array(r);return s.set(t%8===0?n.subarray(t>>3):Au(new Kh(n,t,e,null,Lb)).subarray(0,r)),s}return n}function Au(t){const e=[];let n=0,r=0,s=0;for(const c of t)c&&(s|=1<<r),++r===8&&(e[n++]=s,s=r=0);(n===0||r>0)&&(e[n++]=s);const a=new Uint8Array(e.length+7&-8);return a.set(e),a}class Kh{constructor(e,n,r,s,a){this.bytes=e,this.length=r,this.context=s,this.get=a,this.bit=n%8,this.byteIndex=n>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function qp(t,e,n){if(n-e<=0)return 0;if(n-e<8){let a=0;for(const c of new Kh(t,e,n-e,t,uI))a+=c;return a}const r=n>>3<<3,s=e+(e%8===0?0:8-e%8);return qp(t,e,s)+qp(t,r,n)+dI(t,s>>3,r-s>>3)}function dI(t,e,n){let r=0,s=Math.trunc(e);const a=new DataView(t.buffer,t.byteOffset,t.byteLength),c=n===void 0?t.byteLength:s+n;for(;c-s>=4;)r+=Cp(a.getUint32(s)),s+=4;for(;c-s>=2;)r+=Cp(a.getUint16(s)),s+=2;for(;c-s>=1;)r+=Cp(a.getUint8(s)),s+=1;return r}function Cp(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const fI=-1;class ft{constructor(e,n,r,s,a,c=[],u){this.type=e,this.children=c,this.dictionary=u,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(s||0,-1));let f;a instanceof ft?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=mi(e),a&&((f=a[0])&&(this.valueOffsets=f),(f=a[1])&&(this.values=f),(f=a[2])&&(this.nullBitmap=f),(f=a[3])&&(this.typeIds=f))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:n,values:r,nullBitmap:s,typeIds:a}=this;return n&&(e+=n.byteLength),r&&(e+=r.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),this.children.reduce((c,u)=>c+u.byteLength,e)}get nullCount(){let e=this._nullCount,n;return e<=fI&&(n=this.nullBitmap)&&(this._nullCount=e=this.length-qp(n,this.offset,this.offset+this.length)),e}getValid(e){if(this.nullable&&this.nullCount>0){const n=this.offset+e;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(e,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:f}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:f,_nullCount:0})}const{nullBitmap:r,offset:s}=this,a=s+e>>3,c=(s+e)%8,u=r[a]>>c&1;return n?u===0&&(r[a]|=1<<c,this._nullCount=this.nullCount+1):u===1&&(r[a]&=~(1<<c),this._nullCount=this.nullCount-1),n}clone(e=this.type,n=this.offset,r=this.length,s=this._nullCount,a=this,c=this.children){return new ft(e,n,r,s,a,c,this.dictionary)}slice(e,n){const{stride:r,typeId:s,children:a}=this,c=+(this._nullCount===0)-1,u=s===16?r:1,f=this._sliceBuffers(e,n,r,s);return this.clone(this.type,this.offset+e,n,c,f,a.length===0||this.valueOffsets?a:this._sliceChildren(a,u*e,u*n))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===D.Null)return this.clone(this.type,0,e,0);const{length:n,nullCount:r}=this,s=new Uint8Array((e+63&-64)>>3).fill(255,0,n>>3);s[n>>3]=(1<<n-(n&-8))-1,r>0&&s.set(Yh(this.offset,n,this.nullBitmap),0);const a=this.buffers;return a[hi.VALIDITY]=s,this.clone(this.type,0,e,r+(e-n),a)}_sliceBuffers(e,n,r,s){let a;const{buffers:c}=this;return(a=c[hi.TYPE])&&(c[hi.TYPE]=a.subarray(e,e+n)),(a=c[hi.OFFSET])&&(c[hi.OFFSET]=a.subarray(e,e+n+1))||(a=c[hi.DATA])&&(c[hi.DATA]=s===6?a:a.subarray(r*e,r*(e+n))),c}_sliceChildren(e,n,r){return e.map(s=>s.slice(n,r))}}ft.prototype.children=Object.freeze([]);class Qa extends Ve{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:n,["offset"]:r=0,["length"]:s=0}=e;return new ft(n,r,s,0)}visitBool(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length>>3,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitInt(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFloat(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitUtf8(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitFixedSizeBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDate(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTimestamp(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTime(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDecimal(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitList(e){const{["type"]:n,["offset"]:r=0,["child"]:s}=e,a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}visitStruct(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),{length:c=s.reduce((f,{length:h})=>Math.max(f,h),0),nullCount:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],s)}visitUnion(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),c=ct(n.ArrayType,e.typeIds),{["length"]:u=c.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;if(be.isSparseUnion(n))return new ft(n,r,u,f,[void 0,void 0,a,c],s);const h=ja(e.valueOffsets);return new ft(n,r,u,f,[h,void 0,a,c],s)}visitDictionary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.indices.ArrayType,e.data),{["dictionary"]:c=new et([new Qa().visit({type:n.dictionary})])}=e,{["length"]:u=a.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[void 0,a,s],[],c)}visitInterval(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFixedSizeList(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new Qa().visit({type:n.valueType})}=e,a=Qe(e.nullBitmap),{["length"]:c=s.length/mi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],[s])}visitMap(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new Qa().visit({type:n.childType})}=e,a=Qe(e.nullBitmap),c=ja(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}}function Ue(t){return new Qa().visit(t)}class J0{constructor(e=0,n){this.numChunks=e,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Fb(t){return t.reduce((e,n)=>e+n.nullCount,0)}function $b(t){return t.reduce((e,n,r)=>(e[r+1]=e[r]+n.length,e),new Uint32Array(t.length+1))}function zb(t,e,n,r){const s=[];for(let a=-1,c=t.length;++a<c;){const u=t[a],f=e[a],{length:h}=u;if(f>=r)break;if(n>=f+h)continue;if(f>=n&&f+h<=r){s.push(u);continue}const y=Math.max(0,n-f),g=Math.min(r-f,h);s.push(u.slice(y,g-y))}return s.length===0&&s.push(t[0].slice(0,0)),s}function Qh(t,e,n,r){let s=0,a=0,c=e.length-1;do{if(s>=c-1)return n<e[c]?r(t,s,n-e[s]):null;a=s+Math.trunc((c-s)*.5),n<e[a]?c=a:s=a}while(s<c)}function Xh(t,e){return t.getValid(e)}function Ds(t){function e(n,r,s){return t(n[r],s)}return function(n){const r=this.data;return Qh(r,this._offsets,n,e)}}function jb(t){let e;function n(r,s,a){return t(r[s],a,e)}return function(r,s){const a=this.data;e=s;const c=Qh(a,this._offsets,r,n);return e=void 0,c}}function Ub(t){let e;function n(r,s,a){let c=a,u=0,f=0;for(let h=s-1,y=r.length;++h<y;){const g=r[h];if(~(u=t(g,e,c)))return f+u;c=0,f+=g.length}return-1}return function(r,s){e=r;const a=this.data,c=typeof s!="number"?n(a,0,0):Qh(a,this._offsets,s,n);return e=void 0,c}}class _e extends Ve{}function pI(t,e){return e===null&&t.length>0?0:-1}function hI(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const s of new Kh(n,t.offset+(e||0),t.length,n,Lb)){if(!s)return r;++r}return-1}function Me(t,e,n){if(e===void 0)return-1;if(e===null)return hI(t,n);const r=An.getVisitFn(t),s=Js(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}function Vb(t,e,n){const r=An.getVisitFn(t),s=Js(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}_e.prototype.visitNull=pI;_e.prototype.visitBool=Me;_e.prototype.visitInt=Me;_e.prototype.visitInt8=Me;_e.prototype.visitInt16=Me;_e.prototype.visitInt32=Me;_e.prototype.visitInt64=Me;_e.prototype.visitUint8=Me;_e.prototype.visitUint16=Me;_e.prototype.visitUint32=Me;_e.prototype.visitUint64=Me;_e.prototype.visitFloat=Me;_e.prototype.visitFloat16=Me;_e.prototype.visitFloat32=Me;_e.prototype.visitFloat64=Me;_e.prototype.visitUtf8=Me;_e.prototype.visitBinary=Me;_e.prototype.visitFixedSizeBinary=Me;_e.prototype.visitDate=Me;_e.prototype.visitDateDay=Me;_e.prototype.visitDateMillisecond=Me;_e.prototype.visitTimestamp=Me;_e.prototype.visitTimestampSecond=Me;_e.prototype.visitTimestampMillisecond=Me;_e.prototype.visitTimestampMicrosecond=Me;_e.prototype.visitTimestampNanosecond=Me;_e.prototype.visitTime=Me;_e.prototype.visitTimeSecond=Me;_e.prototype.visitTimeMillisecond=Me;_e.prototype.visitTimeMicrosecond=Me;_e.prototype.visitTimeNanosecond=Me;_e.prototype.visitDecimal=Me;_e.prototype.visitList=Me;_e.prototype.visitStruct=Me;_e.prototype.visitUnion=Me;_e.prototype.visitDenseUnion=Vb;_e.prototype.visitSparseUnion=Vb;_e.prototype.visitDictionary=Me;_e.prototype.visitInterval=Me;_e.prototype.visitIntervalDayTime=Me;_e.prototype.visitIntervalYearMonth=Me;_e.prototype.visitFixedSizeList=Me;_e.prototype.visitMap=Me;const Pu=new _e;class Ce extends Ve{}function Re(t){const{type:e}=t;if(t.nullCount===0&&t.stride===1&&(e.typeId===D.Timestamp||e instanceof to&&e.bitWidth!==64||e instanceof ol&&e.bitWidth!==64||e instanceof il&&e.precision!==Rn.HALF))return new J0(t.data.length,r=>{const s=t.data[r];return s.values.subarray(0,s.length)[Symbol.iterator]()});let n=0;return new J0(t.data.length,r=>{const a=t.data[r].length,c=t.slice(n,n+a);return n+=a,new mI(c)})}class mI{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}Ce.prototype.visitNull=Re;Ce.prototype.visitBool=Re;Ce.prototype.visitInt=Re;Ce.prototype.visitInt8=Re;Ce.prototype.visitInt16=Re;Ce.prototype.visitInt32=Re;Ce.prototype.visitInt64=Re;Ce.prototype.visitUint8=Re;Ce.prototype.visitUint16=Re;Ce.prototype.visitUint32=Re;Ce.prototype.visitUint64=Re;Ce.prototype.visitFloat=Re;Ce.prototype.visitFloat16=Re;Ce.prototype.visitFloat32=Re;Ce.prototype.visitFloat64=Re;Ce.prototype.visitUtf8=Re;Ce.prototype.visitBinary=Re;Ce.prototype.visitFixedSizeBinary=Re;Ce.prototype.visitDate=Re;Ce.prototype.visitDateDay=Re;Ce.prototype.visitDateMillisecond=Re;Ce.prototype.visitTimestamp=Re;Ce.prototype.visitTimestampSecond=Re;Ce.prototype.visitTimestampMillisecond=Re;Ce.prototype.visitTimestampMicrosecond=Re;Ce.prototype.visitTimestampNanosecond=Re;Ce.prototype.visitTime=Re;Ce.prototype.visitTimeSecond=Re;Ce.prototype.visitTimeMillisecond=Re;Ce.prototype.visitTimeMicrosecond=Re;Ce.prototype.visitTimeNanosecond=Re;Ce.prototype.visitDecimal=Re;Ce.prototype.visitList=Re;Ce.prototype.visitStruct=Re;Ce.prototype.visitUnion=Re;Ce.prototype.visitDenseUnion=Re;Ce.prototype.visitSparseUnion=Re;Ce.prototype.visitDictionary=Re;Ce.prototype.visitInterval=Re;Ce.prototype.visitIntervalDayTime=Re;Ce.prototype.visitIntervalYearMonth=Re;Ce.prototype.visitFixedSizeList=Re;Ce.prototype.visitMap=Re;const Jh=new Ce,yI=(t,e)=>t+e;class lo extends Ve{visitNull(e,n){return 0}visitInt(e,n){return e.type.bitWidth/8}visitFloat(e,n){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,n){return 1/8}visitDecimal(e,n){return e.type.bitWidth/8}visitDate(e,n){return(e.type.unit+1)*4}visitTime(e,n){return e.type.bitWidth/8}visitTimestamp(e,n){return e.type.unit===Xe.SECOND?4:8}visitInterval(e,n){return(e.type.unit+1)*4}visitStruct(e,n){return e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitFixedSizeBinary(e,n){return e.type.byteWidth}visitMap(e,n){return 8+e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitDictionary(e,n){var r;return e.type.indices.bitWidth/8+(((r=e.dictionary)===null||r===void 0?void 0:r.getByteLength(e.values[n]))||0)}}const gI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),vI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),bI=({valueOffsets:t,stride:e,children:n},r)=>{const s=n[0],{[r*e]:a}=t,{[r*e+1]:c}=t,u=Jr.getVisitFn(s.type),f=s.slice(a,c-a);let h=8;for(let y=-1,g=c-a;++y<g;)h+=u(f,y);return h},SI=({stride:t,children:e},n)=>{const r=e[0],s=r.slice(n*t,t),a=Jr.getVisitFn(r.type);let c=0;for(let u=-1,f=s.length;++u<f;)c+=a(s,u);return c},_I=(t,e)=>t.type.mode===Hn.Dense?Wb(t,e):Hb(t,e),Wb=({type:t,children:e,typeIds:n,valueOffsets:r},s)=>{const a=t.typeIdToChildIndex[n[s]];return 8+Jr.visit(e[a],r[s])},Hb=({children:t},e)=>4+Jr.visitMany(t,t.map(()=>e)).reduce(yI,0);lo.prototype.visitUtf8=gI;lo.prototype.visitBinary=vI;lo.prototype.visitList=bI;lo.prototype.visitFixedSizeList=SI;lo.prototype.visitUnion=_I;lo.prototype.visitDenseUnion=Wb;lo.prototype.visitSparseUnion=Hb;const Jr=new lo;var Gb;const Yb={},Kb={};class et{constructor(e){var n,r,s;const a=e[0]instanceof et?e.flatMap(u=>u.data):e;if(a.length===0||a.some(u=>!(u instanceof ft)))throw new TypeError("Vector constructor expects an Array of Data instances.");const c=(n=a[0])===null||n===void 0?void 0:n.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{const{get:u,set:f,indexOf:h,byteLength:y}=Yb[c.typeId],g=a[0];this.isValid=v=>Xh(g,v),this.get=v=>u(g,v),this.set=(v,C)=>f(g,v,C),this.indexOf=v=>h(g,v),this.getByteLength=v=>y(g,v),this._offsets=[0,g.length];break}default:Object.setPrototypeOf(this,Kb[c.typeId]),this._offsets=$b(a);break}this.data=a,this.type=c,this.stride=mi(c),this.numChildren=(s=(r=c.children)===null||r===void 0?void 0:r.length)!==null&&s!==void 0?s:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,n)=>e+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Fb(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${D[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}includes(e,n){return this.indexOf(e,n)>0}getByteLength(e){return 0}[Symbol.iterator](){return Jh.visit(this)}concat(...e){return new et(this.data.concat(e.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(e,n){return new et(Bb(this,e,n,({data:r,_offsets:s},a,c)=>zb(r,s,a,c)))}toJSON(){return[...this]}toArray(){const{type:e,data:n,length:r,stride:s,ArrayType:a}=this;switch(e.typeId){case D.Int:case D.Float:case D.Decimal:case D.Time:case D.Timestamp:switch(n.length){case 0:return new a;case 1:return n[0].values.subarray(0,r*s);default:return n.reduce((c,{values:u,length:f})=>(c.array.set(u.subarray(0,f*s),c.offset),c.offset+=f*s,c),{array:new a(r*s),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new et(this.data.map(({children:n})=>n[e])):null}get isMemoized(){return be.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(be.isDictionary(this.type)){const e=new Ou(this.data[0].dictionary),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return new Ou(this)}unmemoize(){if(be.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return this}}Gb=Symbol.toStringTag;et[Gb]=(t=>{t.type=be.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(D).map(n=>D[n]).filter(n=>typeof n=="number"&&n!==D.NONE);for(const n of e){const r=An.getVisitFnByTypeId(n),s=ar.getVisitFnByTypeId(n),a=Pu.getVisitFnByTypeId(n),c=Jr.getVisitFnByTypeId(n);Yb[n]={get:r,set:s,indexOf:a,byteLength:c},Kb[n]=Object.create(t,{isValid:{value:Ds(Xh)},get:{value:Ds(An.getVisitFnByTypeId(n))},set:{value:jb(ar.getVisitFnByTypeId(n))},indexOf:{value:Ub(Pu.getVisitFnByTypeId(n))},getByteLength:{value:Ds(Jr.getVisitFnByTypeId(n))}})}return"Vector"})(et.prototype);class Ou extends et{constructor(e){super(e.data);const n=this.get,r=this.set,s=this.slice,a=new Array(this.length);Object.defineProperty(this,"get",{value(c){const u=a[c];if(u!==void 0)return u;const f=n.call(this,c);return a[c]=f,f}}),Object.defineProperty(this,"set",{value(c,u){r.call(this,c,u),a[c]=u}}),Object.defineProperty(this,"slice",{value:(c,u)=>new Ou(s.call(this,c,u))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new et(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Zp{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,n,r,s){return e.prep(8,24),e.writeInt64(s),e.pad(4),e.writeInt32(r),e.writeInt64(n),e.offset()}}const wp=2,$r=4,vi=4,ut=4,Xi=new Int32Array(2),q0=new Float32Array(Xi.buffer),Z0=new Float64Array(Xi.buffer),Uc=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let Ci=class eh{constructor(e,n){this.low=e|0,this.high=n|0}static create(e,n){return e==0&&n==0?eh.ZERO:new eh(e,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(e){return this.low==e.low&&this.high==e.high}};Ci.ZERO=new Ci(0,0);var th;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(th||(th={}));let zs=class Qb{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new Qb(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new Ci(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new Ci(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return Xi[0]=this.readInt32(e),q0[0]}readFloat64(e){return Xi[Uc?0:1]=this.readInt32(e),Xi[Uc?1:0]=this.readInt32(e+4),Z0[0]}writeInt8(e,n){this.bytes_[e]=n}writeUint8(e,n){this.bytes_[e]=n}writeInt16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeUint16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeInt32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeUint32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeInt64(e,n){this.writeInt32(e,n.low),this.writeInt32(e+4,n.high)}writeUint64(e,n){this.writeUint32(e,n.low),this.writeUint32(e+4,n.high)}writeFloat32(e,n){q0[0]=n,this.writeInt32(e,Xi[0])}writeFloat64(e,n){Z0[0]=n,this.writeInt32(e,Xi[Uc?0:1]),this.writeInt32(e+4,Xi[Uc?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+$r+vi)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let n=0;n<vi;n++)e+=String.fromCharCode(this.readInt8(this.position_+$r+n));return e}__offset(e,n){const r=e-this.readInt32(e);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(e,n){return e.bb_pos=n+this.readInt32(n),e.bb=this,e}__string(e,n){e+=this.readInt32(e);const r=this.readInt32(e);let s="",a=0;if(e+=$r,n===th.UTF8_BYTES)return this.bytes_.subarray(e,e+r);for(;a<r;){let c;const u=this.readUint8(e+a++);if(u<192)c=u;else{const f=this.readUint8(e+a++);if(u<224)c=(u&31)<<6|f&63;else{const h=this.readUint8(e+a++);if(u<240)c=(u&15)<<12|(f&63)<<6|h&63;else{const y=this.readUint8(e+a++);c=(u&7)<<18|(f&63)<<12|(h&63)<<6|y&63}}}c<65536?s+=String.fromCharCode(c):(c-=65536,s+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return s}__union_with_string(e,n){return typeof e=="string"?this.__string(n):this.__union(e,n)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+$r}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=vi)throw new Error("FlatBuffers: file identifier must be length "+vi);for(let n=0;n<vi;n++)if(e.charCodeAt(n)!=this.readInt8(this.position()+$r+n))return!1;return!0}createLong(e,n){return Ci.create(e,n)}createScalarList(e,n){const r=[];for(let s=0;s<n;++s)e(s)!==null&&r.push(e(s));return r}createObjList(e,n){const r=[];for(let s=0;s<n;++s){const a=e(s);a!==null&&r.push(a.unpack())}return r}},Xb=class Jb{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null;let n;e?n=e:n=1024,this.bb=zs.allocate(n),this.space=n}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e);const r=~(this.bb.capacity()-this.space+n)+1&e-1;for(;this.space<r+e+n;){const s=this.bb.capacity();this.bb=Jb.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(r)}pad(e){for(let n=0;n<e;n++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(e))}addFieldInt16(e,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(e))}addFieldInt32(e,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(e))}addFieldInt64(e,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(e))}addFieldFloat32(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(e))}addFieldFloat64(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(e))}addFieldOffset(e,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(e))}addFieldStruct(e,n,r){n!=r&&(this.nested(n),this.slot(e))}nested(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const n=e.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,s=zs.allocate(r);return s.setPosition(r-n),s.bytes().set(e.bytes(),r-n),s}addOffset(e){this.prep($r,0),this.writeInt32(this.offset()-e+$r)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let n=0;n<e;n++)this.vtable[n]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let n=this.vtable_in_use-1;for(;n>=0&&this.vtable[n]==0;n--);const r=n+1;for(;n>=0;n--)this.addInt16(this.vtable[n]!=0?e-this.vtable[n]:0);const s=2;this.addInt16(e-this.object_start);const a=(r+s)*wp;this.addInt16(a);let c=0;const u=this.space;e:for(n=0;n<this.vtables.length;n++){const f=this.bb.capacity()-this.vtables[n];if(a==this.bb.readInt16(f)){for(let h=wp;h<a;h+=wp)if(this.bb.readInt16(u+h)!=this.bb.readInt16(f+h))continue e;c=this.vtables[n];break}}return c?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,c-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,n,r){const s=r?ut:0;if(n){const a=n;if(this.prep(this.minalign,$r+vi+s),a.length!=vi)throw new Error("FlatBuffers: file identifier must be length "+vi);for(let c=vi-1;c>=0;c--)this.writeInt8(a.charCodeAt(c))}this.prep(this.minalign,$r+s),this.addOffset(e),s&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,n){this.finish(e,n,!0)}requiredField(e,n){const r=this.bb.capacity()-e,s=r-this.bb.readInt32(r);if(!(this.bb.readInt16(s+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(e,n,r){this.notNested(),this.vector_num_elems=n,this.prep($r,e*n),this.prep(r,e*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const n=this.createString(e);return this.string_maps.set(e,n),n}createString(e){if(!e)return 0;let n;if(e instanceof Uint8Array)n=e;else{n=[];let r=0;for(;r<e.length;){let s;const a=e.charCodeAt(r++);if(a<55296||a>=56320)s=a;else{const c=e.charCodeAt(r++);s=(a<<10)+c+-56613888}s<128?n.push(s):(s<2048?n.push(s>>6&31|192):(s<65536?n.push(s>>12&15|224):n.push(s>>18&7|240,s>>12&63|128),n.push(s>>6&63|128)),n.push(s&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,s=this.space,a=this.bb.bytes();r<n.length;r++)a[s++]=n[r];return this.endVector()}createLong(e,n){return Ci.create(e,n)}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const n=[];for(let r=0;r<e.length;++r){const s=e[r];if(s!==null)n.push(this.createObjectOffset(s));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(e,n){return n(this,e.length),this.createObjectOffsetList(e),this.endVector()}};class zt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsKeyValue(e,n){return(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,n){return e.setPosition(e.position()+ut),(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}value(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,n){e.addFieldOffset(0,n,0)}static addValue(e,n){e.addFieldOffset(1,n,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,n,r){return zt.startKeyValue(e),zt.addKey(e,n),zt.addValue(e,r),zt.endKeyValue(e)}}var js;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(js||(js={}));var Us;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Us||(Us={}));var Mu;(function(t){t[t.DenseArray=0]="DenseArray"})(Mu||(Mu={}));class jn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInt(e,n){return(n||new jn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,n){return e.setPosition(e.position()+ut),(n||new jn).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,n){e.addFieldInt32(0,n,0)}static addIsSigned(e,n){e.addFieldInt8(1,+n,0)}static endInt(e){return e.endObject()}static createInt(e,n,r){return jn.startInt(e),jn.addBitWidth(e,n),jn.addIsSigned(e,r),jn.endInt(e)}}class bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryEncoding(e,n){return(n||new bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,n){return e.setPosition(e.position()+ut),(n||new bi).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new jn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Mu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addIndexType(e,n){e.addFieldOffset(1,n,0)}static addIsOrdered(e,n){e.addFieldInt8(2,+n,0)}static addDictionaryKind(e,n){e.addFieldInt16(3,n,Mu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class Ao{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBinary(e,n){return(n||new Ao).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+ut),(n||new Ao).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Ao.startBinary(e),Ao.endBinary(e)}}class Po{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBool(e,n){return(n||new Po).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+ut),(n||new Po).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Po.startBool(e),Po.endBool(e)}}var Du;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Du||(Du={}));let eu=class Is{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDate(e,n){return(n||new Is).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+ut),(n||new Is).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Du.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,Du.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,n){return Is.startDate(e),Is.addUnit(e,n),Is.endDate(e)}};class xn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDecimal(e,n){return(n||new xn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+ut),(n||new xn).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,n){e.addFieldInt32(0,n,0)}static addScale(e,n){e.addFieldInt32(1,n,0)}static addBitWidth(e,n){e.addFieldInt32(2,n,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,n,r,s){return xn.startDecimal(e),xn.addPrecision(e,n),xn.addScale(e,r),xn.addBitWidth(e,s),xn.endDecimal(e)}}var Vs;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Vs||(Vs={}));class zr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeBinary(e,n){return(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+ut),(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,n){return zr.startFixedSizeBinary(e),zr.addByteWidth(e,n),zr.endFixedSizeBinary(e)}}class jr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeList(e,n){return(n||new jr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+ut),(n||new jr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,n){return jr.startFixedSizeList(e),jr.addListSize(e,n),jr.endFixedSizeList(e)}}var Nu;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(Nu||(Nu={}));class Ur{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFloatingPoint(e,n){return(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,n){return e.setPosition(e.position()+ut),(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nu.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,Nu.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,n){return Ur.startFloatingPoint(e),Ur.addPrecision(e,n),Ur.endFloatingPoint(e)}}var Bu;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Bu||(Bu={}));class Vr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInterval(e,n){return(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,n){return e.setPosition(e.position()+ut),(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bu.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,Bu.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,n){return Vr.startInterval(e),Vr.addUnit(e,n),Vr.endInterval(e)}}class Oo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsList(e,n){return(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+ut),(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Oo.startList(e),Oo.endList(e)}}let tu=class ks{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMap(e,n){return(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+ut),(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,n){e.addFieldInt8(0,+n,0)}static endMap(e){return e.endObject()}static createMap(e,n){return ks.startMap(e),ks.addKeysSorted(e,n),ks.endMap(e)}};class Mo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsNull(e,n){return(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+ut),(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Mo.startNull(e),Mo.endNull(e)}}class Do{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsStruct_(e,n){return(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,n){return e.setPosition(e.position()+ut),(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Do.startStruct_(e),Do.endStruct_(e)}}class rr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTime(e,n){return(n||new rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,n){return e.setPosition(e.position()+ut),(n||new rr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Vs.MILLISECOND)}static addBitWidth(e,n){e.addFieldInt32(1,n,32)}static endTime(e){return e.endObject()}static createTime(e,n,r){return rr.startTime(e),rr.addUnit(e,n),rr.addBitWidth(e,r),rr.endTime(e)}}class ir{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTimestamp(e,n){return(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,n){return e.setPosition(e.position()+ut),(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.SECOND}timezone(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Vs.SECOND)}static addTimezone(e,n){e.addFieldOffset(1,n,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,n,r){return ir.startTimestamp(e),ir.addUnit(e,n),ir.addTimezone(e,r),ir.endTimestamp(e)}}var Lu;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Lu||(Lu={}));class In{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUnion(e,n){return(n||new In).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,n){return e.setPosition(e.position()+ut),(n||new In).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Lu.Sparse}typeIds(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,Lu.Sparse)}static addTypeIds(e,n){e.addFieldOffset(1,n,0)}static createTypeIdsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addInt32(n[r]);return e.endVector()}static startTypeIdsVector(e,n){e.startVector(4,n,4)}static endUnion(e){return e.endObject()}static createUnion(e,n,r){return In.startUnion(e),In.addMode(e,n),In.addTypeIds(e,r),In.endUnion(e)}}class No{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUtf8(e,n){return(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+ut),(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return No.startUtf8(e),No.endUtf8(e)}}var _t;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"})(_t||(_t={}));let er=class nu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsField(e,n){return(n||new nu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+ut),(n||new nu).__init(e.readInt32(e.position())+e.position(),e)}name(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):_t.NONE}type(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(e,this.bb_pos+n):null}dictionary(e){const n=this.bb.__offset(this.bb_pos,12);return n?(e||new bi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,n){e.addFieldOffset(0,n,0)}static addNullable(e,n){e.addFieldInt8(1,+n,0)}static addTypeType(e,n){e.addFieldInt8(2,n,_t.NONE)}static addType(e,n){e.addFieldOffset(3,n,0)}static addDictionary(e,n){e.addFieldOffset(4,n,0)}static addChildren(e,n){e.addFieldOffset(5,n,0)}static createChildrenVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startChildrenVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(6,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endField(e){return e.endObject()}},Dr=class pi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsSchema(e,n){return(n||new pi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+ut),(n||new pi).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Us.Little}fields(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new er).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+e*8):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,n){e.addFieldInt16(0,n,Us.Little)}static addFields(e,n){e.addFieldOffset(1,n,0)}static createFieldsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startFieldsVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(2,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static addFeatures(e,n){e.addFieldOffset(3,n,0)}static createFeaturesVector(e,n){e.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)e.addInt64(n[r]);return e.endVector()}static startFeaturesVector(e,n){e.startVector(8,n,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,n){e.finish(n)}static finishSizePrefixedSchemaBuffer(e,n){e.finish(n,void 0,!0)}static createSchema(e,n,r,s,a){return pi.startSchema(e),pi.addEndianness(e,n),pi.addFields(e,r),pi.addCustomMetadata(e,s),pi.addFeatures(e,a),pi.endSchema(e)}};class zn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFooter(e,n){return(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,n){return e.setPosition(e.position()+ut),(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):js.V1}schema(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new Dr).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Zp).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new Zp).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,js.V1)}static addSchema(e,n){e.addFieldOffset(1,n,0)}static addDictionaries(e,n){e.addFieldOffset(2,n,0)}static startDictionariesVector(e,n){e.startVector(24,n,8)}static addRecordBatches(e,n){e.addFieldOffset(3,n,0)}static startRecordBatchesVector(e,n){e.startVector(24,n,8)}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,n){e.finish(n)}static finishSizePrefixedFooterBuffer(e,n){e.finish(n,void 0,!0)}}class tt{constructor(e=[],n,r){this.fields=e||[],this.metadata=n||new Map,r||(r=nh(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,n)=>`${n}: ${e}`).join(", ")} }>`}select(e){const n=new Set(e),r=this.fields.filter(s=>n.has(s.name));return new tt(r,this.metadata)}selectAt(e){const n=e.map(r=>this.fields[r]).filter(Boolean);return new tt(n,this.metadata)}assign(...e){const n=e[0]instanceof tt?e[0]:Array.isArray(e[0])?new tt(e[0]):new tt(e),r=[...this.fields],s=Vc(Vc(new Map,this.metadata),n.metadata),a=n.fields.filter(u=>{const f=r.findIndex(h=>h.name===u.name);return~f?(r[f]=u.clone({metadata:Vc(Vc(new Map,r[f].metadata),u.metadata)}))&&!1:!0}),c=nh(a,new Map);return new tt([...r,...a],s,new Map([...this.dictionaries,...c]))}}tt.prototype.fields=null;tt.prototype.metadata=null;tt.prototype.dictionaries=null;class mt{constructor(e,n,r=!1,s){this.name=e,this.type=n,this.nullable=r,this.metadata=s||new Map}static new(...e){let[n,r,s,a]=e;return e[0]&&typeof e[0]=="object"&&({name:n}=e[0],r===void 0&&(r=e[0].type),s===void 0&&(s=e[0].nullable),a===void 0&&(a=e[0].metadata)),new mt(`${n}`,r,s,a)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[n,r,s,a]=e;return!e[0]||typeof e[0]!="object"?[n=this.name,r=this.type,s=this.nullable,a=this.metadata]=e:{name:n=this.name,type:r=this.type,nullable:s=this.nullable,metadata:a=this.metadata}=e[0],mt.new(n,r,s,a)}}mt.prototype.type=null;mt.prototype.name=null;mt.prototype.nullable=null;mt.prototype.metadata=null;function Vc(t,e){return new Map([...t||new Map,...e||new Map])}function nh(t,e=new Map){for(let n=-1,r=t.length;++n<r;){const a=t[n].type;if(be.isDictionary(a)){if(!e.has(a.id))e.set(a.id,a.dictionary);else if(e.get(a.id)!==a.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}a.children&&a.children.length>0&&nh(a.children,e)}return e}var ev=Ci,CI=Xb,wI=zs;class sl{constructor(e,n=Un.V4,r,s){this.schema=e,this.version=n,r&&(this._recordBatches=r),s&&(this._dictionaryBatches=s)}static decode(e){e=new wI(Qe(e));const n=zn.getRootAsFooter(e),r=tt.decode(n.schema());return new xI(r,n)}static encode(e){const n=new CI,r=tt.encode(n,e.schema);zn.startRecordBatchesVector(n,e.numRecordBatches);for(const c of[...e.recordBatches()].slice().reverse())no.encode(n,c);const s=n.endVector();zn.startDictionariesVector(n,e.numDictionaries);for(const c of[...e.dictionaryBatches()].slice().reverse())no.encode(n,c);const a=n.endVector();return zn.startFooter(n),zn.addSchema(n,r),zn.addVersion(n,Un.V4),zn.addRecordBatches(n,s),zn.addDictionaries(n,a),zn.finishFooterBuffer(n,zn.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,n=-1,r=this.numRecordBatches;++n<r;)(e=this.getRecordBatch(n))&&(yield e)}*dictionaryBatches(){for(let e,n=-1,r=this.numDictionaries;++n<r;)(e=this.getDictionaryBatch(n))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class xI extends sl{constructor(e,n){super(e,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const n=this._footer.recordBatches(e);if(n)return no.decode(n)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const n=this._footer.dictionaries(e);if(n)return no.decode(n)}return null}}class no{constructor(e,n,r){this.metaDataLength=e,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(e){return new no(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,n){const{metaDataLength:r}=n,s=new ev(n.offset,0),a=new ev(n.bodyLength,0);return Zp.createBlock(e,s,r,a)}}const Ct=Object.freeze({done:!0,value:void 0});class tv{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class qh{tee(){return this._getDOMStream().tee()}pipe(e,n){return this._getNodeStream().pipe(e,n)}pipeTo(e,n){return this._getDOMStream().pipeTo(e,n)}pipeThrough(e,n){return this._getDOMStream().pipeThrough(e,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class II extends qh{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Ct);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return tr.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return tr.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ve(this,void 0,void 0,function*(){return yield this.abort(e),Ct})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),Ct})}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(Ct)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class ru extends II{write(e){if((e=Qe(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Kp(this.toUint8Array(!0)):this.toUint8Array(!1).then(Kp)}toUint8Array(e=!1){return e?Xr(this._values)[0]:ve(this,void 0,void 0,function*(){var n,r;const s=[];let a=0;try{for(var c=Lo(this),u;u=yield c.next(),!u.done;){const f=u.value;s.push(f),a+=f.byteLength}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=c.return)&&(yield r.call(c))}finally{if(n)throw n.error}}return Xr(s,a)[0]})}}class Fu{constructor(e){e&&(this.source=new kI(tr.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Ws{constructor(e){e instanceof Ws?this.source=e.source:e instanceof ru?this.source=new Ro(tr.fromAsyncIterable(e)):M1(e)?this.source=new Ro(tr.fromNodeStream(e)):Fh(e)?this.source=new Ro(tr.fromDOMStream(e)):O1(e)?this.source=new Ro(tr.fromDOMStream(e.body)):bl(e)?this.source=new Ro(tr.fromIterable(e)):qi(e)?this.source=new Ro(tr.fromAsyncIterable(e)):Xs(e)&&(this.source=new Ro(tr.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class kI{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,n="read"){return this.source.next({cmd:n,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Ct)}return(e){return Object.create(this.source.return&&this.source.return(e)||Ct)}}class Ro{constructor(e){this.source=e,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,n="read"){return ve(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:e})})}throw(e){return ve(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(e))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(e){return ve(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(e))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class nv extends Fu{constructor(e,n){super(),this.position=0,this.buffer=Qe(e),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(e){const{buffer:n,byteOffset:r}=this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:n,size:r,position:s}=this;return n&&s<r?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(r,s+Math.min(r-s,e)),n.subarray(s,this.position)):null}readAt(e,n){const r=this.buffer,s=Math.min(this.size,e+n);return r?r.subarray(e,s):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class $u extends Ws{constructor(e,n){super(),this.position=0,this._handle=e,typeof n=="number"?this.size=n:this._pending=ve(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ve(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)})}seek(e){return ve(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:s}=this;if(n&&s<r){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let a=s,c=0,u=0;const f=Math.min(r,a+Math.min(r-a,e)),h=new Uint8Array(Math.max(0,(this.position=f)-a));for(;(a+=u)<f&&(c+=u)<h.byteLength;)({bytesRead:u}=yield n.read(h,c,h.byteLength-c,a));return h}return null})}readAt(e,n){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:s}=this;if(r&&e+n<s){const a=Math.min(s,e+n),c=new Uint8Array(a-e);return(yield r.read(c,0,n,e)).buffer}return new Uint8Array(n)})}close(){return ve(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const TI=65536;function Es(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const Hs=8,Zh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class qb{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let s=n[3]*r[3];this.buffer[0]=s&65535;let a=s>>>16;return s=n[2]*r[3],a+=s,s=n[3]*r[2]>>>0,a+=s,this.buffer[0]+=a<<16,this.buffer[1]=a>>>0<s?TI:0,this.buffer[1]+=a>>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(e){const n=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Es(this.buffer[1])} ${Es(this.buffer[0])}`}}class rt extends qb{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,n=new Uint32Array(2)){return rt.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return rt.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.length,s=new rt(n);for(let a=0;a<r;){const c=Hs<r-a?Hs:r-a,u=new rt(new Uint32Array([Number.parseInt(e.slice(a,a+c),10),0])),f=new rt(new Uint32Array([Zh[c],0]));s.times(f),s.plus(u),a+=c}return s}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)rt.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new rt(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new rt(new Uint32Array(e.buffer)).plus(n)}}class wn extends qb{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const n=this.buffer[1]<<0,r=e.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<e.buffer[0]}static from(e,n=new Uint32Array(2)){return wn.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return wn.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.startsWith("-"),s=e.length,a=new wn(n);for(let c=r?1:0;c<s;){const u=Hs<s-c?Hs:s-c,f=new wn(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0])),h=new wn(new Uint32Array([Zh[u],0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)wn.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new wn(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new wn(new Uint32Array(e.buffer)).plus(n)}}class Nr{constructor(e){this.buffer=e}high(){return new wn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new wn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const n=new rt(new Uint32Array([this.buffer[3],0])),r=new rt(new Uint32Array([this.buffer[2],0])),s=new rt(new Uint32Array([this.buffer[1],0])),a=new rt(new Uint32Array([this.buffer[0],0])),c=new rt(new Uint32Array([e.buffer[3],0])),u=new rt(new Uint32Array([e.buffer[2],0])),f=new rt(new Uint32Array([e.buffer[1],0])),h=new rt(new Uint32Array([e.buffer[0],0]));let y=rt.multiply(a,h);this.buffer[0]=y.low();const g=new rt(new Uint32Array([y.high(),0]));return y=rt.multiply(s,h),g.plus(y),y=rt.multiply(a,f),g.plus(y),this.buffer[1]=g.low(),this.buffer[3]=g.lessThan(y)?1:0,this.buffer[2]=g.high(),new rt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(rt.multiply(r,h)).plus(rt.multiply(s,f)).plus(rt.multiply(a,u)),this.buffer[3]+=rt.multiply(n,h).plus(rt.multiply(r,f)).plus(rt.multiply(s,u)).plus(rt.multiply(a,c)).low(),this}plus(e){const n=new Uint32Array(4);return n[3]=this.buffer[3]+e.buffer[3]>>>0,n[2]=this.buffer[2]+e.buffer[2]>>>0,n[1]=this.buffer[1]+e.buffer[1]>>>0,n[0]=this.buffer[0]+e.buffer[0]>>>0,n[0]<this.buffer[0]>>>0&&++n[1],n[1]<this.buffer[1]>>>0&&++n[2],n[2]<this.buffer[2]>>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${Es(this.buffer[3])} ${Es(this.buffer[2])} ${Es(this.buffer[1])} ${Es(this.buffer[0])}`}static multiply(e,n){return new Nr(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Nr(new Uint32Array(e.buffer)).plus(n)}static from(e,n=new Uint32Array(4)){return Nr.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(4)){return Nr.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(4)){const r=e.startsWith("-"),s=e.length,a=new Nr(n);for(let c=r?1:0;c<s;){const u=Hs<s-c?Hs:s-c,f=new Nr(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0,0,0])),h=new Nr(new Uint32Array([Zh[u],0,0,0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*4);for(let r=-1,s=e.length;++r<s;)Nr.from(e[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class Zb extends Ve{constructor(e,n,r,s){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=n,this.buffers=r,this.dictionaries=s}visit(e){return super.visit(e instanceof mt?e.type:e)}visitNull(e,{length:n}=this.nextFieldNode()){return Ue({type:e,length:n})}visitBool(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitInt(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFloat(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDate(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTimestamp(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTime(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDecimal(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===Hn.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFixedSizeList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),child:this.visit(e.children[0])})}visitMap(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,n,r=this.nextBufferRange()){return n>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,n){return this.readData(e,n)}readTypeIds(e,n){return this.readData(e,n)}readData(e,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(e){return this.dictionaries.get(e.id)}}class RI extends Zb{constructor(e,n,r,s){super(new Uint8Array(0),n,r,s),this.sources=e}readNullBitmap(e,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):Au(this.sources[r])}readOffsets(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(Int32Array,this.sources[n]))}readTypeIds(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(e.ArrayType,this.sources[n]))}readData(e,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return be.isTimestamp(e)||(be.isInt(e)||be.isTime(e))&&e.bitWidth===64||be.isDate(e)&&e.unit===ki.MILLISECOND?ct(Uint8Array,wn.convertArray(r[n])):be.isDecimal(e)?ct(Uint8Array,Nr.convertArray(r[n])):be.isBinary(e)||be.isFixedSizeBinary(e)?EI(r[n]):be.isBool(e)?Au(r[n]):be.isUtf8(e)?Lh(r[n].join("")):ct(Uint8Array,ct(e.ArrayType,r[n].map(s=>+s)))}}function EI(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r>>1]=Number.parseInt(e.slice(r,r+2),16);return n}class we extends Ve{compareSchemas(e,n){return e===n||n instanceof e.constructor&&this.compareManyFields(e.fields,n.fields)}compareManyFields(e,n){return e===n||Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((r,s)=>this.compareFields(r,n[s]))}compareFields(e,n){return e===n||n instanceof e.constructor&&e.name===n.name&&e.nullable===n.nullable&&this.visit(e.type,n.type)}}function Mn(t,e){return e instanceof t.constructor}function Sl(t,e){return t===e||Mn(t,e)}function Ri(t,e){return t===e||Mn(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function nd(t,e){return t===e||Mn(t,e)&&t.precision===e.precision}function AI(t,e){return t===e||Mn(t,e)&&t.byteWidth===e.byteWidth}function em(t,e){return t===e||Mn(t,e)&&t.unit===e.unit}function _l(t,e){return t===e||Mn(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Cl(t,e){return t===e||Mn(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function PI(t,e){return t===e||Mn(t,e)&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function OI(t,e){return t===e||Mn(t,e)&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function tm(t,e){return t===e||Mn(t,e)&&t.mode===e.mode&&t.typeIds.every((n,r)=>n===e.typeIds[r])&&ro.compareManyFields(t.children,e.children)}function MI(t,e){return t===e||Mn(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&ro.visit(t.indices,e.indices)&&ro.visit(t.dictionary,e.dictionary)}function nm(t,e){return t===e||Mn(t,e)&&t.unit===e.unit}function DI(t,e){return t===e||Mn(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}function NI(t,e){return t===e||Mn(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&ro.compareManyFields(t.children,e.children)}we.prototype.visitNull=Sl;we.prototype.visitBool=Sl;we.prototype.visitInt=Ri;we.prototype.visitInt8=Ri;we.prototype.visitInt16=Ri;we.prototype.visitInt32=Ri;we.prototype.visitInt64=Ri;we.prototype.visitUint8=Ri;we.prototype.visitUint16=Ri;we.prototype.visitUint32=Ri;we.prototype.visitUint64=Ri;we.prototype.visitFloat=nd;we.prototype.visitFloat16=nd;we.prototype.visitFloat32=nd;we.prototype.visitFloat64=nd;we.prototype.visitUtf8=Sl;we.prototype.visitBinary=Sl;we.prototype.visitFixedSizeBinary=AI;we.prototype.visitDate=em;we.prototype.visitDateDay=em;we.prototype.visitDateMillisecond=em;we.prototype.visitTimestamp=_l;we.prototype.visitTimestampSecond=_l;we.prototype.visitTimestampMillisecond=_l;we.prototype.visitTimestampMicrosecond=_l;we.prototype.visitTimestampNanosecond=_l;we.prototype.visitTime=Cl;we.prototype.visitTimeSecond=Cl;we.prototype.visitTimeMillisecond=Cl;we.prototype.visitTimeMicrosecond=Cl;we.prototype.visitTimeNanosecond=Cl;we.prototype.visitDecimal=Sl;we.prototype.visitList=PI;we.prototype.visitStruct=OI;we.prototype.visitUnion=tm;we.prototype.visitDenseUnion=tm;we.prototype.visitSparseUnion=tm;we.prototype.visitDictionary=MI;we.prototype.visitInterval=nm;we.prototype.visitIntervalDayTime=nm;we.prototype.visitIntervalYearMonth=nm;we.prototype.visitFixedSizeList=DI;we.prototype.visitMap=NI;const ro=new we;function rh(t,e){return ro.compareSchemas(t,e)}function xp(t,e){return BI(t,e.map(n=>n.data.concat()))}function BI(t,e){const n=[...t.fields],r=[],s={numBatches:e.reduce((g,v)=>Math.max(g,v.length),0)};let a=0,c=0,u=-1;const f=e.length;let h,y=[];for(;s.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,u=-1;++u<f;)y[u]=h=e[u].shift(),c=Math.min(c,h?h.length:c);Number.isFinite(c)&&(y=LI(n,c,y,e,s),c>0&&(r[a++]=Ue({type:new pn(n),length:c,nullCount:0,children:y.slice()})))}return[t=t.assign(n),r.map(g=>new kn(t,g))]}function LI(t,e,n,r,s){var a;const c=(e+63&-64)>>3;for(let u=-1,f=r.length;++u<f;){const h=n[u],y=h==null?void 0:h.length;if(y>=e)y===e?n[u]=h:(n[u]=h.slice(0,e),s.numBatches=Math.max(s.numBatches,r[u].unshift(h.slice(e,y-e))));else{const g=t[u];t[u]=g.clone({nullable:!0}),n[u]=(a=h==null?void 0:h._changeLengthAndBackfillNullBitmap(e))!==null&&a!==void 0?a:Ue({type:g.type,length:e,nullCount:e,nullBitmap:new Uint8Array(c)})}}return n}var eS;class fn{constructor(...e){var n,r;if(e.length===0)return this.batches=[],this.schema=new tt([]),this._offsets=[0],this;let s,a;e[0]instanceof tt&&(s=e.shift()),e[e.length-1]instanceof Uint32Array&&(a=e.pop());const c=f=>{if(f){if(f instanceof kn)return[f];if(f instanceof fn)return f.batches;if(f instanceof ft){if(f.type instanceof pn)return[new kn(new tt(f.type.children),f)]}else{if(Array.isArray(f))return f.flatMap(h=>c(h));if(typeof f[Symbol.iterator]=="function")return[...f].flatMap(h=>c(h));if(typeof f=="object"){const h=Object.keys(f),y=h.map(C=>new et([f[C]])),g=new tt(h.map((C,w)=>new mt(String(C),y[w].type))),[,v]=xp(g,y);return v.length===0?[new kn(f)]:v}}}return[]},u=e.flatMap(f=>c(f));if(s=(r=s??((n=u[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new tt([]),!(s instanceof tt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const f of u){if(!(f instanceof kn))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!rh(s,f.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=s,this.batches=u,this._offsets=a??$b(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,n)=>e+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Fb(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?Jh.visit(new et(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
48
48
|
${this.toArray().join(`,
|
49
49
|
`)}
|
50
|
-
]`}concat(...e){const n=this.schema,r=this.data.concat(e.flatMap(({data:s})=>s));return new fn(n,r.map(s=>new kn(n,s)))}slice(e,n){const r=this.schema;[e,n]=Db({length:this.numRows},e,n);const s=Fb(this.data,this._offsets,e,n);return new fn(r,s.map(a=>new kn(r,a)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const n=this.data.map(r=>r.children[e]);if(n.length===0){const{type:r}=this.schema.fields[e],s=Ue({type:r,length:0,nullCount:0});n.push(s._changeLengthAndBackfillNullBitmap(this.numRows))}return new et(n)}return null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=[...this.batches];if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new eo,length:this.numRows})]));const a=r.fields.slice(),c=a[e].clone({type:n.type}),u=this.schema.fields.map((f,h)=>this.getChildAt(h));[a[e],u[e]]=[c,n],[r,s]=Ip(r,u)}return new fn(r,s)}select(e){const n=this.schema.fields.reduce((r,s,a)=>r.set(s.name,a),new Map);return this.selectAt(e.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(e){const n=this.schema.selectAt(e),r=this.batches.map(s=>s.selectAt(e));return new fn(n,r)}assign(e){const n=this.schema.fields,[r,s]=e.schema.fields.reduce((u,f,h)=>{const[y,g]=u,v=n.findIndex(C=>C.name===f.name);return~v?g[v]=h:y.push(h),u},[[],[]]),a=this.schema.assign(e.schema),c=[...n.map((u,f)=>[f,s[f]]).map(([u,f])=>f===void 0?this.getChildAt(u):e.getChildAt(f)),...r.map(u=>e.getChildAt(u))].filter(Boolean);return new fn(...Ip(a,c))}}qb=Symbol.toStringTag;fn[qb]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Ds(Qh),t.get=Ds(An.getVisitFn(D.Struct)),t.set=$b(ar.getVisitFn(D.Struct)),t.indexOf=zb(Pu.getVisitFn(D.Struct)),t.getByteLength=Ds(Jr.getVisitFn(D.Struct)),"Table"))(fn.prototype);var Zb;let kn=class Ha{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof tt))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Ue({nullCount:0,type:new pn(this.schema.fields),children:this.schema.fields.map(n=>Ue({type:n.type,nullCount:0}))})]=e,!(this.data instanceof ft))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=nv(this.schema,this.data.children);break}case 1:{const[n]=e,{fields:r,children:s,length:a}=Object.keys(n).reduce((f,h,y)=>(f.children[y]=n[h],f.length=Math.max(f.length,n[h].length),f.fields[y]=mt.new({name:h,type:n[h].type,nullable:!0}),f),{length:0,fields:new Array,children:new Array}),c=new tt(r),u=Ue({type:new pn(r),length:a,children:s,nullCount:0});[this.schema,this.data]=nv(c,u.children,a);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=eS(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return An.visit(this.data,e)}set(e,n){return ar.visit(this.data,e,n)}indexOf(e,n){return Pu.visit(this.data,e,n)}getByteLength(e){return Jr.visit(this.data,e)}[Symbol.iterator](){return Xh.visit(new et([this.data]))}toArray(){return[...this]}concat(...e){return new fn(this.schema,[this,...e])}slice(e,n){const[r]=new et([this.data]).slice(e,n).data;return new Ha(this.schema,r)}getChild(e){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new et([this.data.children[e]]):null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=this.data;if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new eo,length:this.numRows})]));const a=r.fields.slice(),c=s.children.slice(),u=a[e].clone({type:n.type});[a[e],c[e]]=[u,n.data[0]],r=new tt(a,new Map(this.schema.metadata)),s=Ue({type:new pn(a),children:c})}return new Ha(r,s)}select(e){const n=this.schema.select(e),r=new pn(n.fields),s=[];for(const a of e){const c=this.schema.fields.findIndex(u=>u.name===a);~c&&(s[c]=this.data.children[c])}return new Ha(n,Ue({type:r,length:this.numRows,children:s}))}selectAt(e){const n=this.schema.selectAt(e),r=e.map(a=>this.data.children[a]).filter(Boolean),s=Ue({type:new pn(n.fields),length:this.numRows,children:r});return new Ha(n,s)}};Zb=Symbol.toStringTag;kn[Zb]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(kn.prototype);function nv(t,e,n=e.reduce((r,s)=>Math.max(r,s.length),0)){var r;const s=[...t.fields],a=[...e],c=(n+63&-64)>>3;for(const[u,f]of t.fields.entries()){const h=e[u];(!h||h.length!==n)&&(s[u]=f.clone({nullable:!0}),a[u]=(r=h==null?void 0:h._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:Ue({type:f.type,length:n,nullCount:n,nullBitmap:new Uint8Array(c)}))}return[t.assign(s),Ue({type:new pn(s),length:n,children:a})]}function eS(t,e,n=new Map){for(let r=-1,s=t.length;++r<s;){const c=t[r].type,u=e[r];if(be.isDictionary(c)){if(!n.has(c.id))u.dictionary&&n.set(c.id,u.dictionary);else if(n.get(c.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}c.children&&c.children.length>0&&eS(c.children,u.children,n)}return n}class nm extends kn{constructor(e){const n=e.fields.map(s=>Ue({type:s.type})),r=Ue({type:new pn(e.fields),nullCount:0,children:n});super(e,r)}}var zu;(function(t){t[t.BUFFER=0]="BUFFER"})(zu||(zu={}));var ju;(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(ju||(ju={}));class Ji{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBodyCompression(e,n){return(n||new Ji).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+ut),(n||new Ji).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):ju.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):zu.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,n){e.addFieldInt8(0,n,ju.LZ4_FRAME)}static addMethod(e,n){e.addFieldInt8(1,n,zu.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,n,r){return Ji.startBodyCompression(e),Ji.addCodec(e,n),Ji.addMethod(e,r),Ji.endBodyCompression(e)}}class tS{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}}let nS=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}},yi=class oh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsRecordBatch(e,n){return(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+ut),(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new nS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new tS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const n=this.bb.__offset(this.bb_pos,10);return n?(e||new Ji).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addNodes(e,n){e.addFieldOffset(1,n,0)}static startNodesVector(e,n){e.startVector(16,n,8)}static addBuffers(e,n){e.addFieldOffset(2,n,0)}static startBuffersVector(e,n){e.startVector(16,n,8)}static addCompression(e,n){e.addFieldOffset(3,n,0)}static endRecordBatch(e){return e.endObject()}},Ts=class sh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryBatch(e,n){return(n||new sh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+ut),(n||new sh).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new yi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addData(e,n){e.addFieldOffset(1,n,0)}static addIsDelta(e,n){e.addFieldInt8(2,+n,0)}static endDictionaryBatch(e){return e.endObject()}};var Uu;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Uu||(Uu={}));let Ki=class Mr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMessage(e,n){return(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+ut),(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):js.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Uu.NONE}header(e){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(e,this.bb_pos+n):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,js.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,Uu.NONE)}static addHeader(e,n){e.addFieldOffset(2,n,0)}static addBodyLength(e,n){e.addFieldInt64(3,n,e.createLong(0,0))}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,n){e.finish(n)}static finishSizePrefixedMessageBuffer(e,n){e.finish(n,void 0,!0)}static createMessage(e,n,r,s,a,c){return Mr.startMessage(e),Mr.addVersion(e,n),Mr.addHeaderType(e,r),Mr.addHeader(e,s),Mr.addBodyLength(e,a),Mr.addCustomMetadata(e,c),Mr.endMessage(e)}};var BI=Ci;class LI extends Ve{visit(e,n){return e==null||n==null?void 0:super.visit(e,n)}visitNull(e,n){return Mo.startNull(n),Mo.endNull(n)}visitInt(e,n){return jn.startInt(n),jn.addBitWidth(n,e.bitWidth),jn.addIsSigned(n,e.isSigned),jn.endInt(n)}visitFloat(e,n){return Ur.startFloatingPoint(n),Ur.addPrecision(n,e.precision),Ur.endFloatingPoint(n)}visitBinary(e,n){return Ao.startBinary(n),Ao.endBinary(n)}visitBool(e,n){return Po.startBool(n),Po.endBool(n)}visitUtf8(e,n){return No.startUtf8(n),No.endUtf8(n)}visitDecimal(e,n){return xn.startDecimal(n),xn.addScale(n,e.scale),xn.addPrecision(n,e.precision),xn.addBitWidth(n,e.bitWidth),xn.endDecimal(n)}visitDate(e,n){return eu.startDate(n),eu.addUnit(n,e.unit),eu.endDate(n)}visitTime(e,n){return rr.startTime(n),rr.addUnit(n,e.unit),rr.addBitWidth(n,e.bitWidth),rr.endTime(n)}visitTimestamp(e,n){const r=e.timezone&&n.createString(e.timezone)||void 0;return ir.startTimestamp(n),ir.addUnit(n,e.unit),r!==void 0&&ir.addTimezone(n,r),ir.endTimestamp(n)}visitInterval(e,n){return Vr.startInterval(n),Vr.addUnit(n,e.unit),Vr.endInterval(n)}visitList(e,n){return Oo.startList(n),Oo.endList(n)}visitStruct(e,n){return Do.startStruct_(n),Do.endStruct_(n)}visitUnion(e,n){In.startTypeIdsVector(n,e.typeIds.length);const r=In.createTypeIdsVector(n,e.typeIds);return In.startUnion(n),In.addMode(n,e.mode),In.addTypeIds(n,r),In.endUnion(n)}visitDictionary(e,n){const r=this.visit(e.indices,n);return bi.startDictionaryEncoding(n),bi.addId(n,new BI(e.id,0)),bi.addIsOrdered(n,e.isOrdered),r!==void 0&&bi.addIndexType(n,r),bi.endDictionaryEncoding(n)}visitFixedSizeBinary(e,n){return zr.startFixedSizeBinary(n),zr.addByteWidth(n,e.byteWidth),zr.endFixedSizeBinary(n)}visitFixedSizeList(e,n){return jr.startFixedSizeList(n),jr.addListSize(n,e.listSize),jr.endFixedSizeList(n)}visitMap(e,n){return tu.startMap(n),tu.addKeysSorted(n,e.keysSorted),tu.endMap(n)}}const kp=new LI;function FI(t,e=new Map){return new tt(zI(t,e),iu(t.customMetadata),e)}function rS(t){return new Gn(t.count,iS(t.columns),oS(t.columns))}function $I(t){return new qr(rS(t.data),t.id,t.isDelta)}function zI(t,e){return(t.fields||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function rv(t,e){return(t.children||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function iS(t){return(t||[]).reduce((e,n)=>[...e,new Uo(n.count,jI(n.VALIDITY)),...iS(n.children)],[])}function oS(t,e=[]){for(let n=-1,r=(t||[]).length;++n<r;){const s=t[n];s.VALIDITY&&e.push(new Yr(e.length,s.VALIDITY.length)),s.TYPE&&e.push(new Yr(e.length,s.TYPE.length)),s.OFFSET&&e.push(new Yr(e.length,s.OFFSET.length)),s.DATA&&e.push(new Yr(e.length,s.DATA.length)),e=oS(s.children,e)}return e}function jI(t){return(t||[]).reduce((e,n)=>e+ +(n===0),0)}function UI(t,e){let n,r,s,a,c,u;return!e||!(a=t.dictionary)?(c=ov(t,rv(t,e)),s=new mt(t.name,c,t.nullable,iu(t.customMetadata))):e.has(n=a.id)?(r=(r=a.indexType)?iv(r):new rl,u=new $s(e.get(n),r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,iu(t.customMetadata))):(r=(r=a.indexType)?iv(r):new rl,e.set(n,c=ov(t,rv(t,e))),u=new $s(c,r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,iu(t.customMetadata))),s||null}function iu(t){return new Map(Object.entries(t||{}))}function iv(t){return new to(t.isSigned,t.bitWidth)}function ov(t,e){const n=t.type.name;switch(n){case"NONE":return new eo;case"null":return new eo;case"binary":return new vu;case"utf8":return new bu;case"bool":return new Su;case"list":return new Iu((e||[])[0]);case"struct":return new pn(e||[]);case"struct_":return new pn(e||[])}switch(n){case"int":{const r=t.type;return new to(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=t.type;return new il(Rn[r.precision])}case"decimal":{const r=t.type;return new _u(r.scale,r.precision,r.bitWidth)}case"date":{const r=t.type;return new Cu(ki[r.unit])}case"time":{const r=t.type;return new ol(Xe[r.unit],r.bitWidth)}case"timestamp":{const r=t.type;return new wu(Xe[r.unit],r.timezone)}case"interval":{const r=t.type;return new xu(Zi[r.unit])}case"union":{const r=t.type;return new ku(Hn[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{const r=t.type;return new Tu(r.byteWidth)}case"fixedsizelist":{const r=t.type;return new Ru(r.listSize,(e||[])[0])}case"map":{const r=t.type;return new Eu((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var zo=Ci,VI=Kb,WI=zs;let Si=class Rs{constructor(e,n,r,s){this._version=n,this._headerType=r,this.body=new Uint8Array(0),s&&(this._createHeader=()=>s),this._bodyLength=typeof e=="number"?e:e.low}static fromJSON(e,n){const r=new Rs(0,Un.V4,n);return r._createHeader=HI(e,n),r}static decode(e){e=new WI(Qe(e));const n=Ki.getRootAsMessage(e),r=n.bodyLength(),s=n.version(),a=n.headerType(),c=new Rs(r,s,a);return c._createHeader=GI(n,a),c}static encode(e){const n=new VI;let r=-1;return e.isSchema()?r=tt.encode(n,e.header()):e.isRecordBatch()?r=Gn.encode(n,e.header()):e.isDictionaryBatch()&&(r=qr.encode(n,e.header())),Ki.startMessage(n),Ki.addVersion(n,Un.V4),Ki.addHeader(n,r),Ki.addHeaderType(n,e.headerType),Ki.addBodyLength(n,new zo(e.bodyLength,0)),Ki.finishMessageBuffer(n,Ki.endMessage(n)),n.asUint8Array()}static from(e,n=0){if(e instanceof tt)return new Rs(0,Un.V4,Ze.Schema,e);if(e instanceof Gn)return new Rs(n,Un.V4,Ze.RecordBatch,e);if(e instanceof qr)return new Rs(n,Un.V4,Ze.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Ze.Schema}isRecordBatch(){return this.headerType===Ze.RecordBatch}isDictionaryBatch(){return this.headerType===Ze.DictionaryBatch}};class Gn{constructor(e,n,r){this._nodes=n,this._buffers=r,this._length=typeof e=="number"?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class qr{constructor(e,n,r=!1){this._data=e,this._isDelta=r,this._id=typeof n=="number"?n:n.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}}class Yr{constructor(e,n){this.offset=typeof e=="number"?e:e.low,this.length=typeof n=="number"?n:n.low}}class Uo{constructor(e,n){this.length=typeof e=="number"?e:e.low,this.nullCount=typeof n=="number"?n:n.low}}function HI(t,e){return()=>{switch(e){case Ze.Schema:return tt.fromJSON(t);case Ze.RecordBatch:return Gn.fromJSON(t);case Ze.DictionaryBatch:return qr.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}function GI(t,e){return()=>{switch(e){case Ze.Schema:return tt.decode(t.header(new Dr));case Ze.RecordBatch:return Gn.decode(t.header(new yi),t.version());case Ze.DictionaryBatch:return qr.decode(t.header(new Ts),t.version())}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}mt.encode=rk;mt.decode=tk;mt.fromJSON=UI;tt.encode=nk;tt.decode=YI;tt.fromJSON=FI;Gn.encode=ik;Gn.decode=KI;Gn.fromJSON=rS;qr.encode=ok;qr.decode=QI;qr.fromJSON=$I;Uo.encode=sk;Uo.decode=JI;Yr.encode=ak;Yr.decode=XI;function YI(t,e=new Map){const n=ek(t,e);return new tt(n,ou(t),e)}function KI(t,e=Un.V4){if(t.compression()!==null)throw new Error("Record batch compression not implemented");return new Gn(t.length(),qI(t),ZI(t,e))}function QI(t,e=Un.V4){return new qr(Gn.decode(t.data(),e),t.id(),t.isDelta())}function XI(t){return new Yr(t.offset(),t.length())}function JI(t){return new Uo(t.length(),t.nullCount())}function qI(t){const e=[];for(let n,r=-1,s=-1,a=t.nodesLength();++r<a;)(n=t.nodes(r))&&(e[++s]=Uo.decode(n));return e}function ZI(t,e){const n=[];for(let r,s=-1,a=-1,c=t.buffersLength();++s<c;)(r=t.buffers(s))&&(e<Un.V4&&(r.bb_pos+=8*(s+1)),n[++a]=Yr.decode(r));return n}function ek(t,e){const n=[];for(let r,s=-1,a=-1,c=t.fieldsLength();++s<c;)(r=t.fields(s))&&(n[++a]=mt.decode(r,e));return n}function sv(t,e){const n=[];for(let r,s=-1,a=-1,c=t.childrenLength();++s<c;)(r=t.children(s))&&(n[++a]=mt.decode(r,e));return n}function tk(t,e){let n,r,s,a,c,u;return!e||!(u=t.dictionary())?(s=lv(t,sv(t,e)),r=new mt(t.name(),s,t.nullable(),ou(t))):e.has(n=u.id().low)?(a=(a=u.indexType())?av(a):new rl,c=new $s(e.get(n),a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),ou(t))):(a=(a=u.indexType())?av(a):new rl,e.set(n,s=lv(t,sv(t,e))),c=new $s(s,a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),ou(t))),r||null}function ou(t){const e=new Map;if(t)for(let n,r,s=-1,a=Math.trunc(t.customMetadataLength());++s<a;)(n=t.customMetadata(s))&&(r=n.key())!=null&&e.set(r,n.value());return e}function av(t){return new to(t.isSigned(),t.bitWidth())}function lv(t,e){const n=t.typeType();switch(n){case _t.NONE:return new eo;case _t.Null:return new eo;case _t.Binary:return new vu;case _t.Utf8:return new bu;case _t.Bool:return new Su;case _t.List:return new Iu((e||[])[0]);case _t.Struct_:return new pn(e||[])}switch(n){case _t.Int:{const r=t.type(new jn);return new to(r.isSigned(),r.bitWidth())}case _t.FloatingPoint:{const r=t.type(new Ur);return new il(r.precision())}case _t.Decimal:{const r=t.type(new xn);return new _u(r.scale(),r.precision(),r.bitWidth())}case _t.Date:{const r=t.type(new eu);return new Cu(r.unit())}case _t.Time:{const r=t.type(new rr);return new ol(r.unit(),r.bitWidth())}case _t.Timestamp:{const r=t.type(new ir);return new wu(r.unit(),r.timezone())}case _t.Interval:{const r=t.type(new Vr);return new xu(r.unit())}case _t.Union:{const r=t.type(new In);return new ku(r.mode(),r.typeIdsArray()||[],e||[])}case _t.FixedSizeBinary:{const r=t.type(new zr);return new Tu(r.byteWidth())}case _t.FixedSizeList:{const r=t.type(new jr);return new Ru(r.listSize(),(e||[])[0])}case _t.Map:{const r=t.type(new tu);return new Eu((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${_t[n]}" (${n})`)}function nk(t,e){const n=e.fields.map(a=>mt.encode(t,a));Dr.startFieldsVector(t,n.length);const r=Dr.createFieldsVector(t,n),s=e.metadata&&e.metadata.size>0?Dr.createCustomMetadataVector(t,[...e.metadata].map(([a,c])=>{const u=t.createString(`${a}`),f=t.createString(`${c}`);return zt.startKeyValue(t),zt.addKey(t,u),zt.addValue(t,f),zt.endKeyValue(t)})):-1;return Dr.startSchema(t),Dr.addFields(t,r),Dr.addEndianness(t,lk?Us.Little:Us.Big),s!==-1&&Dr.addCustomMetadata(t,s),Dr.endSchema(t)}function rk(t,e){let n=-1,r=-1,s=-1;const a=e.type;let c=e.typeId;be.isDictionary(a)?(c=a.dictionary.typeId,s=kp.visit(a,t),r=kp.visit(a.dictionary,t)):r=kp.visit(a,t);const u=(a.children||[]).map(y=>mt.encode(t,y)),f=er.createChildrenVector(t,u),h=e.metadata&&e.metadata.size>0?er.createCustomMetadataVector(t,[...e.metadata].map(([y,g])=>{const v=t.createString(`${y}`),C=t.createString(`${g}`);return zt.startKeyValue(t),zt.addKey(t,v),zt.addValue(t,C),zt.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),er.startField(t),er.addType(t,r),er.addTypeType(t,c),er.addChildren(t,f),er.addNullable(t,!!e.nullable),n!==-1&&er.addName(t,n),s!==-1&&er.addDictionary(t,s),h!==-1&&er.addCustomMetadata(t,h),er.endField(t)}function ik(t,e){const n=e.nodes||[],r=e.buffers||[];yi.startNodesVector(t,n.length);for(const c of n.slice().reverse())Uo.encode(t,c);const s=t.endVector();yi.startBuffersVector(t,r.length);for(const c of r.slice().reverse())Yr.encode(t,c);const a=t.endVector();return yi.startRecordBatch(t),yi.addLength(t,new zo(e.length,0)),yi.addNodes(t,s),yi.addBuffers(t,a),yi.endRecordBatch(t)}function ok(t,e){const n=Gn.encode(t,e.data);return Ts.startDictionaryBatch(t),Ts.addId(t,new zo(e.id,0)),Ts.addIsDelta(t,e.isDelta),Ts.addData(t,n),Ts.endDictionaryBatch(t)}function sk(t,e){return nS.createFieldNode(t,new zo(e.length,0),new zo(e.nullCount,0))}function ak(t,e){return tS.createBuffer(t,new zo(e.offset,0),new zo(e.length,0))}const lk=(()=>{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})(),rm=t=>`Expected ${Ze[t]} Message in stream, but was null or length 0.`,im=t=>`Header pointer of flatbuffer-encoded ${Ze[t]} Message is null or length 0.`,sS=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,aS=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class lS{constructor(e){this.source=e instanceof Fu?e:new Fu(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Ct:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(rm(e));return n.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const n=Qe(this.source.read(e));if(n.byteLength<e)throw new Error(aS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(e=!1){const n=Ze.Schema,r=this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(im(n));return s}readMetadataLength(){const e=this.source.read(id),n=e&&new zs(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(e){const n=this.source.read(e);if(!n)return Ct;if(n.byteLength<e)throw new Error(sS(e,n.byteLength));return{done:!1,value:Si.decode(n)}}}class ck{constructor(e,n){this.source=e instanceof Ws?e:E1(e)?new $u(e,n):new Ws(e)}[Symbol.asyncIterator](){return this}next(){return ve(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?Ct:e})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ve(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ve(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(rm(e));return n.value})}readMessageBody(e){return ve(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const n=Qe(yield this.source.read(e));if(n.byteLength<e)throw new Error(aS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(e=!1){return ve(this,void 0,void 0,function*(){const n=Ze.Schema,r=yield this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(im(n));return s})}readMetadataLength(){return ve(this,void 0,void 0,function*(){const e=yield this.source.read(id),n=e&&new zs(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(e){return ve(this,void 0,void 0,function*(){const n=yield this.source.read(e);if(!n)return Ct;if(n.byteLength<e)throw new Error(sS(e,n.byteLength));return{done:!1,value:Si.decode(n)}})}}class uk extends lS{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof ev?e:new ev(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Si.fromJSON(e.schema,Ze.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const n=e.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:Si.fromJSON(n,Ze.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:Si.fromJSON(n,Ze.RecordBatch)}}return this._body=[],Ct}readMessageBody(e){return n(this._body);function n(r){return(r||[]).reduce((s,a)=>[...s,...a.VALIDITY&&[a.VALIDITY]||[],...a.TYPE&&[a.TYPE]||[],...a.OFFSET&&[a.OFFSET]||[],...a.DATA&&[a.DATA]||[],...n(a.children)],[])}}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(rm(e));return n.value}readSchema(){const e=Ze.Schema,n=this.readMessage(e),r=n==null?void 0:n.header();if(!n||!r)throw new Error(im(e));return r}}const id=4,ah="ARROW1",al=new Uint8Array(ah.length);for(let t=0;t<ah.length;t+=1)al[t]=ah.codePointAt(t);function om(t,e=0){for(let n=-1,r=al.length;++n<r;)if(al[n]!==t[e+n])return!1;return!0}const wl=al.length,cS=wl+id,dk=wl*2+id;class wi extends Jh{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const n=this._impl.open(e);return qi(n)?n.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return tr.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return tr.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof wi?e:Xp(e)?mk(e):E1(e)?vk(e):qi(e)?ve(this,void 0,void 0,function*(){return yield wi.from(yield e)}):A1(e)||Lh(e)||P1(e)||Xs(e)?gk(new Ws(e)):yk(new Fu(e))}static readAll(e){return e instanceof wi?e.isSync()?cv(e):uv(e):Xp(e)||ArrayBuffer.isView(e)||bl(e)||R1(e)?cv(e):uv(e)}}class Vu extends wi{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Gr(this,arguments,function*(){yield Pe(yield*Zc(Lo(this[Symbol.iterator]())))})}}class Wu extends wi{constructor(e){super(e),this._impl=e}readAll(){var e,n;return ve(this,void 0,void 0,function*(){const r=new Array;try{for(var s=Lo(this),a;a=yield s.next(),!a.done;){const c=a.value;r.push(c)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&(yield n.call(s))}finally{if(e)throw e.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class uS extends Vu{constructor(e){super(e),this._impl=e}}class fk extends Wu{constructor(e){super(e),this._impl=e}}class dS{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,n){const r=this._loadVectors(e,n,this.schema.fields),s=Ue({type:new pn(this.schema.fields),length:e.length,children:r});return new kn(this.schema,s)}_loadDictionaryBatch(e,n){const{id:r,isDelta:s}=e,{dictionaries:a,schema:c}=this,u=a.get(r);if(s||!u){const f=c.dictionaries.get(r),h=this._loadVectors(e.data,n,[f]);return(u&&s?u.concat(new et(h)):new et(h)).memoize()}return u.memoize()}_loadVectors(e,n,r){return new Jb(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}class Hu extends dS{constructor(e,n){super(n),this._reader=Xp(e)?new uk(this._handle=e):new lS(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=pS(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Ct}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Ct}next(){if(this.closed)return Ct;let e;const{_reader:n}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new nm(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Gu extends dS{constructor(e,n){super(n),this._reader=new ck(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ve(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ve(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=pS(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Ct})}return(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Ct})}next(){return ve(this,void 0,void 0,function*(){if(this.closed)return Ct;let e;const{_reader:n}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new nm(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class fS extends Hu{constructor(e,n){super(e instanceof tv?e:new tv(e),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null}_readDictionaryBatch(e){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}}_readFooter(){const{_handle:e}=this,n=e.size-cS,r=e.readInt32(n),s=e.readAt(n-r,r);return sl.decode(s)}_readNextMessageAndValidate(e){var n;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(e)}return null}}class pk extends Gu{constructor(e,...n){const r=typeof n[0]!="number"?n.shift():void 0,s=n[0]instanceof Map?n.shift():void 0;super(e instanceof $u?e:new $u(e,r),s)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){const n=Object.create(null,{open:{get:()=>super.open}});return ve(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,e)})}readRecordBatch(e){var n;return ve(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null})}_readDictionaryBatch(e){var n;return ve(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}})}_readFooter(){return ve(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const n=e.size-cS,r=yield e.readInt32(n),s=yield e.readAt(n-r,r);return sl.decode(s)})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=this._footer.getRecordBatch(this._recordBatchIndex);if(n&&(yield this._handle.seek(n.offset)))return yield this._reader.readMessage(e)}return null})}}class hk extends Hu{constructor(e,n){super(e,n)}_loadVectors(e,n,r){return new kI(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}function pS(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*cv(t){const e=wi.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function uv(t){return Gr(this,arguments,function*(){const n=yield Pe(wi.from(t));try{if(!(yield Pe(n.open({autoDestroy:!1}))).closed)do yield yield Pe(n);while(!(yield Pe(n.reset().open())).closed)}finally{yield Pe(n.cancel())}})}function mk(t){return new Vu(new hk(t))}function yk(t){const e=t.peek(wl+7&-8);return e&&e.byteLength>=4?om(e)?new uS(new fS(t.read())):new Vu(new Hu(t)):new Vu(new Hu(function*(){}()))}function gk(t){return ve(this,void 0,void 0,function*(){const e=yield t.peek(wl+7&-8);return e&&e.byteLength>=4?om(e)?new uS(new fS(yield t.read())):new Wu(new Gu(t)):new Wu(new Gu(function(){return Gr(this,arguments,function*(){})}()))})}function vk(t){return ve(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new $u(t,e);return e>=dk&&om(yield n.readAt(0,wl+7&-8))?new fk(new pk(n)):new Wu(new Gu(n))})}class Nt extends Ve{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){const n=s=>s.flatMap(a=>Array.isArray(a)?n(a):a instanceof kn?a.data.children:a.data),r=new Nt;return r.visitMany(n(e)),r}visit(e){if(e instanceof et)return this.visitMany(e.data),this;const{type:n}=e;if(!be.isDictionary(n)){const{length:r,nullCount:s}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");be.isNull(n)||_r.call(this,s<=0?new Uint8Array(0):Gh(e.offset,r,e.nullBitmap)),this.nodes.push(new Uo(r,s))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function _r(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Yr(this._byteLength,e)),this._byteLength+=e,this}function bk(t){const{type:e,length:n,typeIds:r,valueOffsets:s}=t;if(_r.call(this,r),e.mode===Hn.Sparse)return lh.call(this,t);if(e.mode===Hn.Dense){if(t.offset<=0)return _r.call(this,s),lh.call(this,t);{const a=r.reduce((y,g)=>Math.max(y,g),r[0]),c=new Int32Array(a+1),u=new Int32Array(a+1).fill(-1),f=new Int32Array(n),h=$h(-s[0],n,s);for(let y,g,v=-1;++v<n;)(g=u[y=r[v]])===-1&&(g=u[y]=h[y]),f[v]=h[v]-g,++c[y];_r.call(this,f);for(let y,g=-1,v=e.children.length;++g<v;)if(y=t.children[g]){const C=e.typeIds[g],w=Math.min(n,c[C]);this.visit(y.slice(u[C],w))}}}return this}function Sk(t){let e;return t.nullCount>=t.length?_r.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?_r.call(this,Gh(t.offset,t.length,e)):_r.call(this,Au(t.values))}function co(t){return _r.call(this,t.values.subarray(0,t.length*t.stride))}function hS(t){const{length:e,values:n,valueOffsets:r}=t,s=r[0],a=r[e],c=Math.min(a-s,n.byteLength-s);return _r.call(this,$h(-r[0],e,r)),_r.call(this,n.subarray(s,s+c)),this}function sm(t){const{length:e,valueOffsets:n}=t;return n&&_r.call(this,$h(n[0],e,n)),this.visit(t.children[0])}function lh(t){return this.visitMany(t.type.children.map((e,n)=>t.children[n]).filter(Boolean))[0]}Nt.prototype.visitBool=Sk;Nt.prototype.visitInt=co;Nt.prototype.visitFloat=co;Nt.prototype.visitUtf8=hS;Nt.prototype.visitBinary=hS;Nt.prototype.visitFixedSizeBinary=co;Nt.prototype.visitDate=co;Nt.prototype.visitTimestamp=co;Nt.prototype.visitTime=co;Nt.prototype.visitDecimal=co;Nt.prototype.visitList=sm;Nt.prototype.visitStruct=lh;Nt.prototype.visitUnion=bk;Nt.prototype.visitInterval=co;Nt.prototype.visitFixedSizeList=sm;Nt.prototype.visitMap=sm;class mS extends Jh{constructor(e){super(),this._position=0,this._started=!1,this._sink=new ru,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,En(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return qi(e)?e.then(n=>this.writeAll(n)):Xs(e)?um(this,e):cm(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,n=null){return e===this._sink||e instanceof ru?this._sink=e:(this._sink=new ru,e&&jw(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Uw(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!n||!ih(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(e){let n=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof fn&&!(n=e.schema))return this.finish()&&void 0;if(e instanceof kn&&!(n=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!ih(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}e instanceof kn?e instanceof nm||this._writeRecordBatch(e):e instanceof fn?this.writeAll(e.batches):bl(e)&&this.writeAll(e)}_writeMessage(e,n=8){const r=n-1,s=Si.encode(e),a=s.byteLength,c=this._writeLegacyIpcFormat?4:8,u=a+c+r&~r,f=u-a-c;return e.headerType===Ze.RecordBatch?this._recordBatchBlocks.push(new no(u,e.bodyLength,this._position)):e.headerType===Ze.DictionaryBatch&&this._dictionaryBlocks.push(new no(u,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(u-c)),a>0&&this._write(s),this._writePadding(f)}_write(e){if(this._started){const n=Qe(e);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(e){return this._writeMessage(Si.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(al)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:n,nodes:r,bufferRegions:s,buffers:a}=Nt.assemble(e),c=new Gn(e.numRows,r,s),u=Si.from(c,n);return this._writeDictionaries(e)._writeMessage(u)._writeBodyBuffers(a)}_writeDictionaryBatch(e,n,r=!1){this._dictionaryDeltaOffsets.set(n,e.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:s,nodes:a,bufferRegions:c,buffers:u}=Nt.assemble(new et([e])),f=new Gn(e.length,a,c),h=new qr(f,n,r),y=Si.from(h,s);return this._writeMessage(y)._writeBodyBuffers(u)}_writeBodyBuffers(e){let n,r,s;for(let a=-1,c=e.length;++a<c;)(n=e[a])&&(r=n.byteLength)>0&&(this._write(n),(s=(r+7&-8)-r)>0&&this._writePadding(s));return this}_writeDictionaries(e){for(let[n,r]of e.dictionaries){let s=this._dictionaryDeltaOffsets.get(n)||0;if(s===0||(r=r==null?void 0:r.slice(s)).length>0)for(const a of r.data)this._writeDictionaryBatch(a,n,s>0),s+=a.length}return this}}class am extends mS{static writeAll(e,n){const r=new am(n);return qi(e)?e.then(s=>r.writeAll(s)):Xs(e)?um(r,e):cm(r,e)}}class lm extends mS{static writeAll(e){const n=new lm;return qi(e)?e.then(r=>n.writeAll(r)):Xs(e)?um(n,e):cm(n,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const n=sl.encode(new sl(e,Un.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function cm(t,e){let n=e;e instanceof fn&&(n=e.batches,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}function um(t,e){var n,r,s,a;return ve(this,void 0,void 0,function*(){try{for(n=Lo(e);r=yield n.next(),!r.done;){const c=r.value;t.write(c)}}catch(c){s={error:c}}finally{try{r&&!r.done&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}return t.finish()})}function Ga(t){const e=wi.from(t);return qi(e)?e.then(n=>Ga(n)):e.isAsync()?e.readAll().then(n=>new fn(n)):new fn(e.readAll())}function Tp(t,e="stream"){return(e==="stream"?am:lm).writeAll(t).toUint8Array(!0)}var dv=function(){function t(e,n,r,s){var a=this;this.getCell=function(c,u){var f=c<a.headerRows&&u<a.headerColumns,h=c>=a.headerRows&&u<a.headerColumns,y=c<a.headerRows&&u>=a.headerColumns;if(f){var g=["blank"];return u>0&&g.push("level"+c),{type:"blank",classNames:g.join(" "),content:""}}else if(y){var v=u-a.headerColumns,g=["col_heading","level"+c,"col"+v];return{type:"columns",classNames:g.join(" "),content:a.getContent(a.columnsTable,v,c)}}else if(h){var C=c-a.headerRows,g=["row_heading","level"+u,"row"+C];return{type:"index",id:"T_".concat(a.uuid,"level").concat(u,"_row").concat(C),classNames:g.join(" "),content:a.getContent(a.indexTable,C,u)}}else{var C=c-a.headerRows,v=u-a.headerColumns,g=["data","row"+C,"col"+v],w=a.styler?a.getContent(a.styler.displayValuesTable,C,v):a.getContent(a.dataTable,C,v);return{type:"data",id:"T_".concat(a.uuid,"row").concat(C,"_col").concat(v),classNames:g.join(" "),content:w}}},this.getContent=function(c,u,f){var h=c.getChildAt(f);if(h===null)return"";var y=a.getColumnTypeId(c,f);switch(y){case D.Timestamp:return a.nanosToDate(h.get(u));default:return h.get(u)}},this.dataTable=Ga(e),this.indexTable=Ga(n),this.columnsTable=Ga(r),this.styler=s?{caption:s.caption,displayValuesTable:Ga(s.displayValues),styles:s.styles,uuid:s.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),t.prototype.serialize=function(){return{data:Tp(this.dataTable),index:Tp(this.indexTable),columns:Tp(this.columnsTable)}},t.prototype.getColumnTypeId=function(e,n){return e.schema.fields[n].type.typeId},t.prototype.nanosToDate=function(e){return new Date(e/1e6)},t}(),Xa=function(){return Xa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},Xa.apply(this,arguments)},Ja;(function(t){t.COMPONENT_READY="streamlit:componentReady",t.SET_COMPONENT_VALUE="streamlit:setComponentValue",t.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(Ja||(Ja={}));var Tn=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new EventTarget,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(Ja.COMPONENT_READY,{apiVersion:t.API_VERSION})},t.setFrameHeight=function(e){e===void 0&&(e=document.body.scrollHeight),e!==t.lastFrameHeight&&(t.lastFrameHeight=e,t.sendBackMsg(Ja.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof dv?(n="dataframe",e=e.serialize()):Ck(e)?(n="bytes",e=new Uint8Array(e.buffer)):e instanceof ArrayBuffer?(n="bytes",e=new Uint8Array(e)):n="json",t.sendBackMsg(Ja.SET_COMPONENT_VALUE,{value:e,dataType:n})},t.onMessageEvent=function(e){var n=e.data.type;switch(n){case t.RENDER_EVENT:t.onRenderMessage(e.data);break}},t.onRenderMessage=function(e){var n=e.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=e.dfs&&e.dfs.length>0?t.argsDataframeToObject(e.dfs):{};n=Xa(Xa({},n),r);var s=!!e.disabled,a=e.theme;a&&_k(a);var c={disabled:s,args:n,theme:a},u=new CustomEvent(t.RENDER_EVENT,{detail:c});t.events.dispatchEvent(u)},t.argsDataframeToObject=function(e){var n=e.map(function(r){var s=r.key,a=r.value;return[s,t.toArrowTable(a)]});return Object.fromEntries(n)},t.toArrowTable=function(e){var n,r=(n=e.data,n.data),s=n.index,a=n.columns,c=n.styler;return new dv(r,s,a,c)},t.sendBackMsg=function(e,n){window.parent.postMessage(Xa({isStreamlitMessage:!0,type:e},n),"*")},t}(),_k=function(t){var e=document.createElement("style");document.head.appendChild(e),e.innerHTML=`
|
50
|
+
]`}concat(...e){const n=this.schema,r=this.data.concat(e.flatMap(({data:s})=>s));return new fn(n,r.map(s=>new kn(n,s)))}slice(e,n){const r=this.schema;[e,n]=Bb({length:this.numRows},e,n);const s=zb(this.data,this._offsets,e,n);return new fn(r,s.map(a=>new kn(r,a)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const n=this.data.map(r=>r.children[e]);if(n.length===0){const{type:r}=this.schema.fields[e],s=Ue({type:r,length:0,nullCount:0});n.push(s._changeLengthAndBackfillNullBitmap(this.numRows))}return new et(n)}return null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=[...this.batches];if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new eo,length:this.numRows})]));const a=r.fields.slice(),c=a[e].clone({type:n.type}),u=this.schema.fields.map((f,h)=>this.getChildAt(h));[a[e],u[e]]=[c,n],[r,s]=xp(r,u)}return new fn(r,s)}select(e){const n=this.schema.fields.reduce((r,s,a)=>r.set(s.name,a),new Map);return this.selectAt(e.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(e){const n=this.schema.selectAt(e),r=this.batches.map(s=>s.selectAt(e));return new fn(n,r)}assign(e){const n=this.schema.fields,[r,s]=e.schema.fields.reduce((u,f,h)=>{const[y,g]=u,v=n.findIndex(C=>C.name===f.name);return~v?g[v]=h:y.push(h),u},[[],[]]),a=this.schema.assign(e.schema),c=[...n.map((u,f)=>[f,s[f]]).map(([u,f])=>f===void 0?this.getChildAt(u):e.getChildAt(f)),...r.map(u=>e.getChildAt(u))].filter(Boolean);return new fn(...xp(a,c))}}eS=Symbol.toStringTag;fn[eS]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Ds(Xh),t.get=Ds(An.getVisitFn(D.Struct)),t.set=jb(ar.getVisitFn(D.Struct)),t.indexOf=Ub(Pu.getVisitFn(D.Struct)),t.getByteLength=Ds(Jr.getVisitFn(D.Struct)),"Table"))(fn.prototype);var tS;let kn=class Ha{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof tt))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Ue({nullCount:0,type:new pn(this.schema.fields),children:this.schema.fields.map(n=>Ue({type:n.type,nullCount:0}))})]=e,!(this.data instanceof ft))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=rv(this.schema,this.data.children);break}case 1:{const[n]=e,{fields:r,children:s,length:a}=Object.keys(n).reduce((f,h,y)=>(f.children[y]=n[h],f.length=Math.max(f.length,n[h].length),f.fields[y]=mt.new({name:h,type:n[h].type,nullable:!0}),f),{length:0,fields:new Array,children:new Array}),c=new tt(r),u=Ue({type:new pn(r),length:a,children:s,nullCount:0});[this.schema,this.data]=rv(c,u.children,a);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=nS(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return An.visit(this.data,e)}set(e,n){return ar.visit(this.data,e,n)}indexOf(e,n){return Pu.visit(this.data,e,n)}getByteLength(e){return Jr.visit(this.data,e)}[Symbol.iterator](){return Jh.visit(new et([this.data]))}toArray(){return[...this]}concat(...e){return new fn(this.schema,[this,...e])}slice(e,n){const[r]=new et([this.data]).slice(e,n).data;return new Ha(this.schema,r)}getChild(e){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new et([this.data.children[e]]):null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=this.data;if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new eo,length:this.numRows})]));const a=r.fields.slice(),c=s.children.slice(),u=a[e].clone({type:n.type});[a[e],c[e]]=[u,n.data[0]],r=new tt(a,new Map(this.schema.metadata)),s=Ue({type:new pn(a),children:c})}return new Ha(r,s)}select(e){const n=this.schema.select(e),r=new pn(n.fields),s=[];for(const a of e){const c=this.schema.fields.findIndex(u=>u.name===a);~c&&(s[c]=this.data.children[c])}return new Ha(n,Ue({type:r,length:this.numRows,children:s}))}selectAt(e){const n=this.schema.selectAt(e),r=e.map(a=>this.data.children[a]).filter(Boolean),s=Ue({type:new pn(n.fields),length:this.numRows,children:r});return new Ha(n,s)}};tS=Symbol.toStringTag;kn[tS]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(kn.prototype);function rv(t,e,n=e.reduce((r,s)=>Math.max(r,s.length),0)){var r;const s=[...t.fields],a=[...e],c=(n+63&-64)>>3;for(const[u,f]of t.fields.entries()){const h=e[u];(!h||h.length!==n)&&(s[u]=f.clone({nullable:!0}),a[u]=(r=h==null?void 0:h._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:Ue({type:f.type,length:n,nullCount:n,nullBitmap:new Uint8Array(c)}))}return[t.assign(s),Ue({type:new pn(s),length:n,children:a})]}function nS(t,e,n=new Map){for(let r=-1,s=t.length;++r<s;){const c=t[r].type,u=e[r];if(be.isDictionary(c)){if(!n.has(c.id))u.dictionary&&n.set(c.id,u.dictionary);else if(n.get(c.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}c.children&&c.children.length>0&&nS(c.children,u.children,n)}return n}class rm extends kn{constructor(e){const n=e.fields.map(s=>Ue({type:s.type})),r=Ue({type:new pn(e.fields),nullCount:0,children:n});super(e,r)}}var zu;(function(t){t[t.BUFFER=0]="BUFFER"})(zu||(zu={}));var ju;(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(ju||(ju={}));class Ji{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBodyCompression(e,n){return(n||new Ji).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+ut),(n||new Ji).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):ju.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):zu.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,n){e.addFieldInt8(0,n,ju.LZ4_FRAME)}static addMethod(e,n){e.addFieldInt8(1,n,zu.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,n,r){return Ji.startBodyCompression(e),Ji.addCodec(e,n),Ji.addMethod(e,r),Ji.endBodyCompression(e)}}class rS{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}}let iS=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}},yi=class ih{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsRecordBatch(e,n){return(n||new ih).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+ut),(n||new ih).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new iS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new rS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const n=this.bb.__offset(this.bb_pos,10);return n?(e||new Ji).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addNodes(e,n){e.addFieldOffset(1,n,0)}static startNodesVector(e,n){e.startVector(16,n,8)}static addBuffers(e,n){e.addFieldOffset(2,n,0)}static startBuffersVector(e,n){e.startVector(16,n,8)}static addCompression(e,n){e.addFieldOffset(3,n,0)}static endRecordBatch(e){return e.endObject()}},Ts=class oh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryBatch(e,n){return(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+ut),(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new yi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addData(e,n){e.addFieldOffset(1,n,0)}static addIsDelta(e,n){e.addFieldInt8(2,+n,0)}static endDictionaryBatch(e){return e.endObject()}};var Uu;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Uu||(Uu={}));let Ki=class Mr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMessage(e,n){return(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+ut),(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):js.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Uu.NONE}header(e){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(e,this.bb_pos+n):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,js.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,Uu.NONE)}static addHeader(e,n){e.addFieldOffset(2,n,0)}static addBodyLength(e,n){e.addFieldInt64(3,n,e.createLong(0,0))}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,n){e.finish(n)}static finishSizePrefixedMessageBuffer(e,n){e.finish(n,void 0,!0)}static createMessage(e,n,r,s,a,c){return Mr.startMessage(e),Mr.addVersion(e,n),Mr.addHeaderType(e,r),Mr.addHeader(e,s),Mr.addBodyLength(e,a),Mr.addCustomMetadata(e,c),Mr.endMessage(e)}};var FI=Ci;class $I extends Ve{visit(e,n){return e==null||n==null?void 0:super.visit(e,n)}visitNull(e,n){return Mo.startNull(n),Mo.endNull(n)}visitInt(e,n){return jn.startInt(n),jn.addBitWidth(n,e.bitWidth),jn.addIsSigned(n,e.isSigned),jn.endInt(n)}visitFloat(e,n){return Ur.startFloatingPoint(n),Ur.addPrecision(n,e.precision),Ur.endFloatingPoint(n)}visitBinary(e,n){return Ao.startBinary(n),Ao.endBinary(n)}visitBool(e,n){return Po.startBool(n),Po.endBool(n)}visitUtf8(e,n){return No.startUtf8(n),No.endUtf8(n)}visitDecimal(e,n){return xn.startDecimal(n),xn.addScale(n,e.scale),xn.addPrecision(n,e.precision),xn.addBitWidth(n,e.bitWidth),xn.endDecimal(n)}visitDate(e,n){return eu.startDate(n),eu.addUnit(n,e.unit),eu.endDate(n)}visitTime(e,n){return rr.startTime(n),rr.addUnit(n,e.unit),rr.addBitWidth(n,e.bitWidth),rr.endTime(n)}visitTimestamp(e,n){const r=e.timezone&&n.createString(e.timezone)||void 0;return ir.startTimestamp(n),ir.addUnit(n,e.unit),r!==void 0&&ir.addTimezone(n,r),ir.endTimestamp(n)}visitInterval(e,n){return Vr.startInterval(n),Vr.addUnit(n,e.unit),Vr.endInterval(n)}visitList(e,n){return Oo.startList(n),Oo.endList(n)}visitStruct(e,n){return Do.startStruct_(n),Do.endStruct_(n)}visitUnion(e,n){In.startTypeIdsVector(n,e.typeIds.length);const r=In.createTypeIdsVector(n,e.typeIds);return In.startUnion(n),In.addMode(n,e.mode),In.addTypeIds(n,r),In.endUnion(n)}visitDictionary(e,n){const r=this.visit(e.indices,n);return bi.startDictionaryEncoding(n),bi.addId(n,new FI(e.id,0)),bi.addIsOrdered(n,e.isOrdered),r!==void 0&&bi.addIndexType(n,r),bi.endDictionaryEncoding(n)}visitFixedSizeBinary(e,n){return zr.startFixedSizeBinary(n),zr.addByteWidth(n,e.byteWidth),zr.endFixedSizeBinary(n)}visitFixedSizeList(e,n){return jr.startFixedSizeList(n),jr.addListSize(n,e.listSize),jr.endFixedSizeList(n)}visitMap(e,n){return tu.startMap(n),tu.addKeysSorted(n,e.keysSorted),tu.endMap(n)}}const Ip=new $I;function zI(t,e=new Map){return new tt(UI(t,e),iu(t.customMetadata),e)}function oS(t){return new Gn(t.count,sS(t.columns),aS(t.columns))}function jI(t){return new qr(oS(t.data),t.id,t.isDelta)}function UI(t,e){return(t.fields||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function iv(t,e){return(t.children||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function sS(t){return(t||[]).reduce((e,n)=>[...e,new Uo(n.count,VI(n.VALIDITY)),...sS(n.children)],[])}function aS(t,e=[]){for(let n=-1,r=(t||[]).length;++n<r;){const s=t[n];s.VALIDITY&&e.push(new Yr(e.length,s.VALIDITY.length)),s.TYPE&&e.push(new Yr(e.length,s.TYPE.length)),s.OFFSET&&e.push(new Yr(e.length,s.OFFSET.length)),s.DATA&&e.push(new Yr(e.length,s.DATA.length)),e=aS(s.children,e)}return e}function VI(t){return(t||[]).reduce((e,n)=>e+ +(n===0),0)}function WI(t,e){let n,r,s,a,c,u;return!e||!(a=t.dictionary)?(c=sv(t,iv(t,e)),s=new mt(t.name,c,t.nullable,iu(t.customMetadata))):e.has(n=a.id)?(r=(r=a.indexType)?ov(r):new rl,u=new $s(e.get(n),r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,iu(t.customMetadata))):(r=(r=a.indexType)?ov(r):new rl,e.set(n,c=sv(t,iv(t,e))),u=new $s(c,r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,iu(t.customMetadata))),s||null}function iu(t){return new Map(Object.entries(t||{}))}function ov(t){return new to(t.isSigned,t.bitWidth)}function sv(t,e){const n=t.type.name;switch(n){case"NONE":return new eo;case"null":return new eo;case"binary":return new vu;case"utf8":return new bu;case"bool":return new Su;case"list":return new Iu((e||[])[0]);case"struct":return new pn(e||[]);case"struct_":return new pn(e||[])}switch(n){case"int":{const r=t.type;return new to(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=t.type;return new il(Rn[r.precision])}case"decimal":{const r=t.type;return new _u(r.scale,r.precision,r.bitWidth)}case"date":{const r=t.type;return new Cu(ki[r.unit])}case"time":{const r=t.type;return new ol(Xe[r.unit],r.bitWidth)}case"timestamp":{const r=t.type;return new wu(Xe[r.unit],r.timezone)}case"interval":{const r=t.type;return new xu(Zi[r.unit])}case"union":{const r=t.type;return new ku(Hn[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{const r=t.type;return new Tu(r.byteWidth)}case"fixedsizelist":{const r=t.type;return new Ru(r.listSize,(e||[])[0])}case"map":{const r=t.type;return new Eu((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var zo=Ci,HI=Xb,GI=zs;let Si=class Rs{constructor(e,n,r,s){this._version=n,this._headerType=r,this.body=new Uint8Array(0),s&&(this._createHeader=()=>s),this._bodyLength=typeof e=="number"?e:e.low}static fromJSON(e,n){const r=new Rs(0,Un.V4,n);return r._createHeader=YI(e,n),r}static decode(e){e=new GI(Qe(e));const n=Ki.getRootAsMessage(e),r=n.bodyLength(),s=n.version(),a=n.headerType(),c=new Rs(r,s,a);return c._createHeader=KI(n,a),c}static encode(e){const n=new HI;let r=-1;return e.isSchema()?r=tt.encode(n,e.header()):e.isRecordBatch()?r=Gn.encode(n,e.header()):e.isDictionaryBatch()&&(r=qr.encode(n,e.header())),Ki.startMessage(n),Ki.addVersion(n,Un.V4),Ki.addHeader(n,r),Ki.addHeaderType(n,e.headerType),Ki.addBodyLength(n,new zo(e.bodyLength,0)),Ki.finishMessageBuffer(n,Ki.endMessage(n)),n.asUint8Array()}static from(e,n=0){if(e instanceof tt)return new Rs(0,Un.V4,Ze.Schema,e);if(e instanceof Gn)return new Rs(n,Un.V4,Ze.RecordBatch,e);if(e instanceof qr)return new Rs(n,Un.V4,Ze.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Ze.Schema}isRecordBatch(){return this.headerType===Ze.RecordBatch}isDictionaryBatch(){return this.headerType===Ze.DictionaryBatch}};class Gn{constructor(e,n,r){this._nodes=n,this._buffers=r,this._length=typeof e=="number"?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class qr{constructor(e,n,r=!1){this._data=e,this._isDelta=r,this._id=typeof n=="number"?n:n.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}}class Yr{constructor(e,n){this.offset=typeof e=="number"?e:e.low,this.length=typeof n=="number"?n:n.low}}class Uo{constructor(e,n){this.length=typeof e=="number"?e:e.low,this.nullCount=typeof n=="number"?n:n.low}}function YI(t,e){return()=>{switch(e){case Ze.Schema:return tt.fromJSON(t);case Ze.RecordBatch:return Gn.fromJSON(t);case Ze.DictionaryBatch:return qr.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}function KI(t,e){return()=>{switch(e){case Ze.Schema:return tt.decode(t.header(new Dr));case Ze.RecordBatch:return Gn.decode(t.header(new yi),t.version());case Ze.DictionaryBatch:return qr.decode(t.header(new Ts),t.version())}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}mt.encode=ok;mt.decode=rk;mt.fromJSON=WI;tt.encode=ik;tt.decode=QI;tt.fromJSON=zI;Gn.encode=sk;Gn.decode=XI;Gn.fromJSON=oS;qr.encode=ak;qr.decode=JI;qr.fromJSON=jI;Uo.encode=lk;Uo.decode=ZI;Yr.encode=ck;Yr.decode=qI;function QI(t,e=new Map){const n=nk(t,e);return new tt(n,ou(t),e)}function XI(t,e=Un.V4){if(t.compression()!==null)throw new Error("Record batch compression not implemented");return new Gn(t.length(),ek(t),tk(t,e))}function JI(t,e=Un.V4){return new qr(Gn.decode(t.data(),e),t.id(),t.isDelta())}function qI(t){return new Yr(t.offset(),t.length())}function ZI(t){return new Uo(t.length(),t.nullCount())}function ek(t){const e=[];for(let n,r=-1,s=-1,a=t.nodesLength();++r<a;)(n=t.nodes(r))&&(e[++s]=Uo.decode(n));return e}function tk(t,e){const n=[];for(let r,s=-1,a=-1,c=t.buffersLength();++s<c;)(r=t.buffers(s))&&(e<Un.V4&&(r.bb_pos+=8*(s+1)),n[++a]=Yr.decode(r));return n}function nk(t,e){const n=[];for(let r,s=-1,a=-1,c=t.fieldsLength();++s<c;)(r=t.fields(s))&&(n[++a]=mt.decode(r,e));return n}function av(t,e){const n=[];for(let r,s=-1,a=-1,c=t.childrenLength();++s<c;)(r=t.children(s))&&(n[++a]=mt.decode(r,e));return n}function rk(t,e){let n,r,s,a,c,u;return!e||!(u=t.dictionary())?(s=cv(t,av(t,e)),r=new mt(t.name(),s,t.nullable(),ou(t))):e.has(n=u.id().low)?(a=(a=u.indexType())?lv(a):new rl,c=new $s(e.get(n),a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),ou(t))):(a=(a=u.indexType())?lv(a):new rl,e.set(n,s=cv(t,av(t,e))),c=new $s(s,a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),ou(t))),r||null}function ou(t){const e=new Map;if(t)for(let n,r,s=-1,a=Math.trunc(t.customMetadataLength());++s<a;)(n=t.customMetadata(s))&&(r=n.key())!=null&&e.set(r,n.value());return e}function lv(t){return new to(t.isSigned(),t.bitWidth())}function cv(t,e){const n=t.typeType();switch(n){case _t.NONE:return new eo;case _t.Null:return new eo;case _t.Binary:return new vu;case _t.Utf8:return new bu;case _t.Bool:return new Su;case _t.List:return new Iu((e||[])[0]);case _t.Struct_:return new pn(e||[])}switch(n){case _t.Int:{const r=t.type(new jn);return new to(r.isSigned(),r.bitWidth())}case _t.FloatingPoint:{const r=t.type(new Ur);return new il(r.precision())}case _t.Decimal:{const r=t.type(new xn);return new _u(r.scale(),r.precision(),r.bitWidth())}case _t.Date:{const r=t.type(new eu);return new Cu(r.unit())}case _t.Time:{const r=t.type(new rr);return new ol(r.unit(),r.bitWidth())}case _t.Timestamp:{const r=t.type(new ir);return new wu(r.unit(),r.timezone())}case _t.Interval:{const r=t.type(new Vr);return new xu(r.unit())}case _t.Union:{const r=t.type(new In);return new ku(r.mode(),r.typeIdsArray()||[],e||[])}case _t.FixedSizeBinary:{const r=t.type(new zr);return new Tu(r.byteWidth())}case _t.FixedSizeList:{const r=t.type(new jr);return new Ru(r.listSize(),(e||[])[0])}case _t.Map:{const r=t.type(new tu);return new Eu((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${_t[n]}" (${n})`)}function ik(t,e){const n=e.fields.map(a=>mt.encode(t,a));Dr.startFieldsVector(t,n.length);const r=Dr.createFieldsVector(t,n),s=e.metadata&&e.metadata.size>0?Dr.createCustomMetadataVector(t,[...e.metadata].map(([a,c])=>{const u=t.createString(`${a}`),f=t.createString(`${c}`);return zt.startKeyValue(t),zt.addKey(t,u),zt.addValue(t,f),zt.endKeyValue(t)})):-1;return Dr.startSchema(t),Dr.addFields(t,r),Dr.addEndianness(t,uk?Us.Little:Us.Big),s!==-1&&Dr.addCustomMetadata(t,s),Dr.endSchema(t)}function ok(t,e){let n=-1,r=-1,s=-1;const a=e.type;let c=e.typeId;be.isDictionary(a)?(c=a.dictionary.typeId,s=Ip.visit(a,t),r=Ip.visit(a.dictionary,t)):r=Ip.visit(a,t);const u=(a.children||[]).map(y=>mt.encode(t,y)),f=er.createChildrenVector(t,u),h=e.metadata&&e.metadata.size>0?er.createCustomMetadataVector(t,[...e.metadata].map(([y,g])=>{const v=t.createString(`${y}`),C=t.createString(`${g}`);return zt.startKeyValue(t),zt.addKey(t,v),zt.addValue(t,C),zt.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),er.startField(t),er.addType(t,r),er.addTypeType(t,c),er.addChildren(t,f),er.addNullable(t,!!e.nullable),n!==-1&&er.addName(t,n),s!==-1&&er.addDictionary(t,s),h!==-1&&er.addCustomMetadata(t,h),er.endField(t)}function sk(t,e){const n=e.nodes||[],r=e.buffers||[];yi.startNodesVector(t,n.length);for(const c of n.slice().reverse())Uo.encode(t,c);const s=t.endVector();yi.startBuffersVector(t,r.length);for(const c of r.slice().reverse())Yr.encode(t,c);const a=t.endVector();return yi.startRecordBatch(t),yi.addLength(t,new zo(e.length,0)),yi.addNodes(t,s),yi.addBuffers(t,a),yi.endRecordBatch(t)}function ak(t,e){const n=Gn.encode(t,e.data);return Ts.startDictionaryBatch(t),Ts.addId(t,new zo(e.id,0)),Ts.addIsDelta(t,e.isDelta),Ts.addData(t,n),Ts.endDictionaryBatch(t)}function lk(t,e){return iS.createFieldNode(t,new zo(e.length,0),new zo(e.nullCount,0))}function ck(t,e){return rS.createBuffer(t,new zo(e.offset,0),new zo(e.length,0))}const uk=(()=>{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})(),im=t=>`Expected ${Ze[t]} Message in stream, but was null or length 0.`,om=t=>`Header pointer of flatbuffer-encoded ${Ze[t]} Message is null or length 0.`,lS=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,cS=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class uS{constructor(e){this.source=e instanceof Fu?e:new Fu(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Ct:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(im(e));return n.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const n=Qe(this.source.read(e));if(n.byteLength<e)throw new Error(cS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(e=!1){const n=Ze.Schema,r=this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(om(n));return s}readMetadataLength(){const e=this.source.read(rd),n=e&&new zs(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(e){const n=this.source.read(e);if(!n)return Ct;if(n.byteLength<e)throw new Error(lS(e,n.byteLength));return{done:!1,value:Si.decode(n)}}}class dk{constructor(e,n){this.source=e instanceof Ws?e:P1(e)?new $u(e,n):new Ws(e)}[Symbol.asyncIterator](){return this}next(){return ve(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?Ct:e})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ve(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ve(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(im(e));return n.value})}readMessageBody(e){return ve(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const n=Qe(yield this.source.read(e));if(n.byteLength<e)throw new Error(cS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(e=!1){return ve(this,void 0,void 0,function*(){const n=Ze.Schema,r=yield this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(om(n));return s})}readMetadataLength(){return ve(this,void 0,void 0,function*(){const e=yield this.source.read(rd),n=e&&new zs(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(e){return ve(this,void 0,void 0,function*(){const n=yield this.source.read(e);if(!n)return Ct;if(n.byteLength<e)throw new Error(lS(e,n.byteLength));return{done:!1,value:Si.decode(n)}})}}class fk extends uS{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof tv?e:new tv(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Si.fromJSON(e.schema,Ze.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const n=e.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:Si.fromJSON(n,Ze.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:Si.fromJSON(n,Ze.RecordBatch)}}return this._body=[],Ct}readMessageBody(e){return n(this._body);function n(r){return(r||[]).reduce((s,a)=>[...s,...a.VALIDITY&&[a.VALIDITY]||[],...a.TYPE&&[a.TYPE]||[],...a.OFFSET&&[a.OFFSET]||[],...a.DATA&&[a.DATA]||[],...n(a.children)],[])}}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(im(e));return n.value}readSchema(){const e=Ze.Schema,n=this.readMessage(e),r=n==null?void 0:n.header();if(!n||!r)throw new Error(om(e));return r}}const rd=4,sh="ARROW1",al=new Uint8Array(sh.length);for(let t=0;t<sh.length;t+=1)al[t]=sh.codePointAt(t);function sm(t,e=0){for(let n=-1,r=al.length;++n<r;)if(al[n]!==t[e+n])return!1;return!0}const wl=al.length,dS=wl+rd,pk=wl*2+rd;class wi extends qh{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const n=this._impl.open(e);return qi(n)?n.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return tr.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return tr.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof wi?e:Qp(e)?gk(e):P1(e)?Sk(e):qi(e)?ve(this,void 0,void 0,function*(){return yield wi.from(yield e)}):O1(e)||Fh(e)||M1(e)||Xs(e)?bk(new Ws(e)):vk(new Fu(e))}static readAll(e){return e instanceof wi?e.isSync()?uv(e):dv(e):Qp(e)||ArrayBuffer.isView(e)||bl(e)||A1(e)?uv(e):dv(e)}}class Vu extends wi{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Gr(this,arguments,function*(){yield Pe(yield*Zc(Lo(this[Symbol.iterator]())))})}}class Wu extends wi{constructor(e){super(e),this._impl=e}readAll(){var e,n;return ve(this,void 0,void 0,function*(){const r=new Array;try{for(var s=Lo(this),a;a=yield s.next(),!a.done;){const c=a.value;r.push(c)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&(yield n.call(s))}finally{if(e)throw e.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class fS extends Vu{constructor(e){super(e),this._impl=e}}class hk extends Wu{constructor(e){super(e),this._impl=e}}class pS{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,n){const r=this._loadVectors(e,n,this.schema.fields),s=Ue({type:new pn(this.schema.fields),length:e.length,children:r});return new kn(this.schema,s)}_loadDictionaryBatch(e,n){const{id:r,isDelta:s}=e,{dictionaries:a,schema:c}=this,u=a.get(r);if(s||!u){const f=c.dictionaries.get(r),h=this._loadVectors(e.data,n,[f]);return(u&&s?u.concat(new et(h)):new et(h)).memoize()}return u.memoize()}_loadVectors(e,n,r){return new Zb(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}class Hu extends pS{constructor(e,n){super(n),this._reader=Qp(e)?new fk(this._handle=e):new uS(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=mS(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Ct}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Ct}next(){if(this.closed)return Ct;let e;const{_reader:n}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new rm(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Gu extends pS{constructor(e,n){super(n),this._reader=new dk(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ve(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ve(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=mS(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Ct})}return(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Ct})}next(){return ve(this,void 0,void 0,function*(){if(this.closed)return Ct;let e;const{_reader:n}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new rm(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class hS extends Hu{constructor(e,n){super(e instanceof nv?e:new nv(e),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null}_readDictionaryBatch(e){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}}_readFooter(){const{_handle:e}=this,n=e.size-dS,r=e.readInt32(n),s=e.readAt(n-r,r);return sl.decode(s)}_readNextMessageAndValidate(e){var n;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(e)}return null}}class mk extends Gu{constructor(e,...n){const r=typeof n[0]!="number"?n.shift():void 0,s=n[0]instanceof Map?n.shift():void 0;super(e instanceof $u?e:new $u(e,r),s)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){const n=Object.create(null,{open:{get:()=>super.open}});return ve(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,e)})}readRecordBatch(e){var n;return ve(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null})}_readDictionaryBatch(e){var n;return ve(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}})}_readFooter(){return ve(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const n=e.size-dS,r=yield e.readInt32(n),s=yield e.readAt(n-r,r);return sl.decode(s)})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=this._footer.getRecordBatch(this._recordBatchIndex);if(n&&(yield this._handle.seek(n.offset)))return yield this._reader.readMessage(e)}return null})}}class yk extends Hu{constructor(e,n){super(e,n)}_loadVectors(e,n,r){return new RI(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}function mS(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*uv(t){const e=wi.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function dv(t){return Gr(this,arguments,function*(){const n=yield Pe(wi.from(t));try{if(!(yield Pe(n.open({autoDestroy:!1}))).closed)do yield yield Pe(n);while(!(yield Pe(n.reset().open())).closed)}finally{yield Pe(n.cancel())}})}function gk(t){return new Vu(new yk(t))}function vk(t){const e=t.peek(wl+7&-8);return e&&e.byteLength>=4?sm(e)?new fS(new hS(t.read())):new Vu(new Hu(t)):new Vu(new Hu(function*(){}()))}function bk(t){return ve(this,void 0,void 0,function*(){const e=yield t.peek(wl+7&-8);return e&&e.byteLength>=4?sm(e)?new fS(new hS(yield t.read())):new Wu(new Gu(t)):new Wu(new Gu(function(){return Gr(this,arguments,function*(){})}()))})}function Sk(t){return ve(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new $u(t,e);return e>=pk&&sm(yield n.readAt(0,wl+7&-8))?new hk(new mk(n)):new Wu(new Gu(n))})}class Nt extends Ve{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){const n=s=>s.flatMap(a=>Array.isArray(a)?n(a):a instanceof kn?a.data.children:a.data),r=new Nt;return r.visitMany(n(e)),r}visit(e){if(e instanceof et)return this.visitMany(e.data),this;const{type:n}=e;if(!be.isDictionary(n)){const{length:r,nullCount:s}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");be.isNull(n)||_r.call(this,s<=0?new Uint8Array(0):Yh(e.offset,r,e.nullBitmap)),this.nodes.push(new Uo(r,s))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function _r(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Yr(this._byteLength,e)),this._byteLength+=e,this}function _k(t){const{type:e,length:n,typeIds:r,valueOffsets:s}=t;if(_r.call(this,r),e.mode===Hn.Sparse)return ah.call(this,t);if(e.mode===Hn.Dense){if(t.offset<=0)return _r.call(this,s),ah.call(this,t);{const a=r.reduce((y,g)=>Math.max(y,g),r[0]),c=new Int32Array(a+1),u=new Int32Array(a+1).fill(-1),f=new Int32Array(n),h=zh(-s[0],n,s);for(let y,g,v=-1;++v<n;)(g=u[y=r[v]])===-1&&(g=u[y]=h[y]),f[v]=h[v]-g,++c[y];_r.call(this,f);for(let y,g=-1,v=e.children.length;++g<v;)if(y=t.children[g]){const C=e.typeIds[g],w=Math.min(n,c[C]);this.visit(y.slice(u[C],w))}}}return this}function Ck(t){let e;return t.nullCount>=t.length?_r.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?_r.call(this,Yh(t.offset,t.length,e)):_r.call(this,Au(t.values))}function co(t){return _r.call(this,t.values.subarray(0,t.length*t.stride))}function yS(t){const{length:e,values:n,valueOffsets:r}=t,s=r[0],a=r[e],c=Math.min(a-s,n.byteLength-s);return _r.call(this,zh(-r[0],e,r)),_r.call(this,n.subarray(s,s+c)),this}function am(t){const{length:e,valueOffsets:n}=t;return n&&_r.call(this,zh(n[0],e,n)),this.visit(t.children[0])}function ah(t){return this.visitMany(t.type.children.map((e,n)=>t.children[n]).filter(Boolean))[0]}Nt.prototype.visitBool=Ck;Nt.prototype.visitInt=co;Nt.prototype.visitFloat=co;Nt.prototype.visitUtf8=yS;Nt.prototype.visitBinary=yS;Nt.prototype.visitFixedSizeBinary=co;Nt.prototype.visitDate=co;Nt.prototype.visitTimestamp=co;Nt.prototype.visitTime=co;Nt.prototype.visitDecimal=co;Nt.prototype.visitList=am;Nt.prototype.visitStruct=ah;Nt.prototype.visitUnion=_k;Nt.prototype.visitInterval=co;Nt.prototype.visitFixedSizeList=am;Nt.prototype.visitMap=am;class gS extends qh{constructor(e){super(),this._position=0,this._started=!1,this._sink=new ru,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,En(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return qi(e)?e.then(n=>this.writeAll(n)):Xs(e)?dm(this,e):um(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,n=null){return e===this._sink||e instanceof ru?this._sink=e:(this._sink=new ru,e&&Vw(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Ww(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!n||!rh(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(e){let n=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof fn&&!(n=e.schema))return this.finish()&&void 0;if(e instanceof kn&&!(n=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!rh(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}e instanceof kn?e instanceof rm||this._writeRecordBatch(e):e instanceof fn?this.writeAll(e.batches):bl(e)&&this.writeAll(e)}_writeMessage(e,n=8){const r=n-1,s=Si.encode(e),a=s.byteLength,c=this._writeLegacyIpcFormat?4:8,u=a+c+r&~r,f=u-a-c;return e.headerType===Ze.RecordBatch?this._recordBatchBlocks.push(new no(u,e.bodyLength,this._position)):e.headerType===Ze.DictionaryBatch&&this._dictionaryBlocks.push(new no(u,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(u-c)),a>0&&this._write(s),this._writePadding(f)}_write(e){if(this._started){const n=Qe(e);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(e){return this._writeMessage(Si.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(al)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:n,nodes:r,bufferRegions:s,buffers:a}=Nt.assemble(e),c=new Gn(e.numRows,r,s),u=Si.from(c,n);return this._writeDictionaries(e)._writeMessage(u)._writeBodyBuffers(a)}_writeDictionaryBatch(e,n,r=!1){this._dictionaryDeltaOffsets.set(n,e.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:s,nodes:a,bufferRegions:c,buffers:u}=Nt.assemble(new et([e])),f=new Gn(e.length,a,c),h=new qr(f,n,r),y=Si.from(h,s);return this._writeMessage(y)._writeBodyBuffers(u)}_writeBodyBuffers(e){let n,r,s;for(let a=-1,c=e.length;++a<c;)(n=e[a])&&(r=n.byteLength)>0&&(this._write(n),(s=(r+7&-8)-r)>0&&this._writePadding(s));return this}_writeDictionaries(e){for(let[n,r]of e.dictionaries){let s=this._dictionaryDeltaOffsets.get(n)||0;if(s===0||(r=r==null?void 0:r.slice(s)).length>0)for(const a of r.data)this._writeDictionaryBatch(a,n,s>0),s+=a.length}return this}}class lm extends gS{static writeAll(e,n){const r=new lm(n);return qi(e)?e.then(s=>r.writeAll(s)):Xs(e)?dm(r,e):um(r,e)}}class cm extends gS{static writeAll(e){const n=new cm;return qi(e)?e.then(r=>n.writeAll(r)):Xs(e)?dm(n,e):um(n,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const n=sl.encode(new sl(e,Un.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function um(t,e){let n=e;e instanceof fn&&(n=e.batches,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}function dm(t,e){var n,r,s,a;return ve(this,void 0,void 0,function*(){try{for(n=Lo(e);r=yield n.next(),!r.done;){const c=r.value;t.write(c)}}catch(c){s={error:c}}finally{try{r&&!r.done&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}return t.finish()})}function Ga(t){const e=wi.from(t);return qi(e)?e.then(n=>Ga(n)):e.isAsync()?e.readAll().then(n=>new fn(n)):new fn(e.readAll())}function kp(t,e="stream"){return(e==="stream"?lm:cm).writeAll(t).toUint8Array(!0)}var fv=function(){function t(e,n,r,s){var a=this;this.getCell=function(c,u){var f=c<a.headerRows&&u<a.headerColumns,h=c>=a.headerRows&&u<a.headerColumns,y=c<a.headerRows&&u>=a.headerColumns;if(f){var g=["blank"];return u>0&&g.push("level"+c),{type:"blank",classNames:g.join(" "),content:""}}else if(y){var v=u-a.headerColumns,g=["col_heading","level"+c,"col"+v];return{type:"columns",classNames:g.join(" "),content:a.getContent(a.columnsTable,v,c)}}else if(h){var C=c-a.headerRows,g=["row_heading","level"+u,"row"+C];return{type:"index",id:"T_".concat(a.uuid,"level").concat(u,"_row").concat(C),classNames:g.join(" "),content:a.getContent(a.indexTable,C,u)}}else{var C=c-a.headerRows,v=u-a.headerColumns,g=["data","row"+C,"col"+v],w=a.styler?a.getContent(a.styler.displayValuesTable,C,v):a.getContent(a.dataTable,C,v);return{type:"data",id:"T_".concat(a.uuid,"row").concat(C,"_col").concat(v),classNames:g.join(" "),content:w}}},this.getContent=function(c,u,f){var h=c.getChildAt(f);if(h===null)return"";var y=a.getColumnTypeId(c,f);switch(y){case D.Timestamp:return a.nanosToDate(h.get(u));default:return h.get(u)}},this.dataTable=Ga(e),this.indexTable=Ga(n),this.columnsTable=Ga(r),this.styler=s?{caption:s.caption,displayValuesTable:Ga(s.displayValues),styles:s.styles,uuid:s.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),t.prototype.serialize=function(){return{data:kp(this.dataTable),index:kp(this.indexTable),columns:kp(this.columnsTable)}},t.prototype.getColumnTypeId=function(e,n){return e.schema.fields[n].type.typeId},t.prototype.nanosToDate=function(e){return new Date(e/1e6)},t}(),Xa=function(){return Xa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},Xa.apply(this,arguments)},Ja;(function(t){t.COMPONENT_READY="streamlit:componentReady",t.SET_COMPONENT_VALUE="streamlit:setComponentValue",t.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(Ja||(Ja={}));var Tn=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new EventTarget,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(Ja.COMPONENT_READY,{apiVersion:t.API_VERSION})},t.setFrameHeight=function(e){e===void 0&&(e=document.body.scrollHeight),e!==t.lastFrameHeight&&(t.lastFrameHeight=e,t.sendBackMsg(Ja.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof fv?(n="dataframe",e=e.serialize()):xk(e)?(n="bytes",e=new Uint8Array(e.buffer)):e instanceof ArrayBuffer?(n="bytes",e=new Uint8Array(e)):n="json",t.sendBackMsg(Ja.SET_COMPONENT_VALUE,{value:e,dataType:n})},t.onMessageEvent=function(e){var n=e.data.type;switch(n){case t.RENDER_EVENT:t.onRenderMessage(e.data);break}},t.onRenderMessage=function(e){var n=e.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=e.dfs&&e.dfs.length>0?t.argsDataframeToObject(e.dfs):{};n=Xa(Xa({},n),r);var s=!!e.disabled,a=e.theme;a&&wk(a);var c={disabled:s,args:n,theme:a},u=new CustomEvent(t.RENDER_EVENT,{detail:c});t.events.dispatchEvent(u)},t.argsDataframeToObject=function(e){var n=e.map(function(r){var s=r.key,a=r.value;return[s,t.toArrowTable(a)]});return Object.fromEntries(n)},t.toArrowTable=function(e){var n,r=(n=e.data,n.data),s=n.index,a=n.columns,c=n.styler;return new fv(r,s,a,c)},t.sendBackMsg=function(e,n){window.parent.postMessage(Xa({isStreamlitMessage:!0,type:e},n),"*")},t}(),wk=function(t){var e=document.createElement("style");document.head.appendChild(e),e.innerHTML=`
|
51
51
|
:root {
|
52
52
|
--primary-color: `.concat(t.primaryColor,`;
|
53
53
|
--background-color: `).concat(t.backgroundColor,`;
|
@@ -60,13 +60,13 @@ Error generating stack: `+m.message+`
|
|
60
60
|
background-color: var(--background-color);
|
61
61
|
color: var(--text-color);
|
62
62
|
}
|
63
|
-
`)};function Ck(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch{}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e}var wk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){wk(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){Tn.setFrameHeight()},e.prototype.componentDidUpdate=function(){Tn.setFrameHeight()},e})(Kt.PureComponent);const xk=()=>{const[t,e]=R.useState();return R.useEffect(()=>{const n=s=>{e(s.detail)};return Tn.events.addEventListener(Tn.RENDER_EVENT,n),Tn.setComponentReady(),()=>{Tn.events.removeEventListener(Tn.RENDER_EVENT,n)}},[]),t};class Ik extends Kt.PureComponent{constructor(e){super(e),this.state={error:void 0}}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error!=null?z.jsxs("div",{children:[z.jsx("h1",{children:"Component Error"}),z.jsx("span",{children:this.state.error.message})]}):this.props.children}}const yS=Kt.createContext(void 0),dm=()=>{const t=R.useContext(yS);if(t==null)throw new Error("useRenderData() must be used inside <StreamlitProvider />");return t};function kk(t){const e=xk();return R.useEffect(()=>{Tn.setFrameHeight()}),e==null?null:z.jsx(Ik,{children:z.jsx(yS.Provider,{value:e,children:t.children})})}function io(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}const Cr="$$material";function Yu(){return Yu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yu.apply(null,arguments)}function Tk(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Rk(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Ek=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rk(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Tk(s);try{a.insertRule(r,a.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},t}(),nn="-ms-",Ku="-moz-",Ye="-webkit-",gS="comm",fm="rule",pm="decl",Ak="@import",vS="@keyframes",Pk="@layer",Ok=Math.abs,od=String.fromCharCode,Mk=Object.assign;function Dk(t,e){return Yt(t,0)^45?(((e<<2^Yt(t,0))<<2^Yt(t,1))<<2^Yt(t,2))<<2^Yt(t,3):0}function bS(t){return t.trim()}function Nk(t,e){return(t=e.exec(t))?t[0]:t}function Ke(t,e,n){return t.replace(e,n)}function ch(t,e){return t.indexOf(e)}function Yt(t,e){return t.charCodeAt(e)|0}function ll(t,e,n){return t.slice(e,n)}function Br(t){return t.length}function hm(t){return t.length}function Wc(t,e){return e.push(t),t}function Bk(t,e){return t.map(e).join("")}var sd=1,Gs=1,SS=0,Pn=0,Dt=0,qs="";function ad(t,e,n,r,s,a,c){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:sd,column:Gs,length:c,return:""}}function Ua(t,e){return Mk(ad("",null,null,"",null,null,0),t,{length:-t.length},e)}function Lk(){return Dt}function Fk(){return Dt=Pn>0?Yt(qs,--Pn):0,Gs--,Dt===10&&(Gs=1,sd--),Dt}function Wn(){return Dt=Pn<SS?Yt(qs,Pn++):0,Gs++,Dt===10&&(Gs=1,sd++),Dt}function Kr(){return Yt(qs,Pn)}function su(){return Pn}function xl(t,e){return ll(qs,t,e)}function cl(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _S(t){return sd=Gs=1,SS=Br(qs=t),Pn=0,[]}function CS(t){return qs="",t}function au(t){return bS(xl(Pn-1,uh(t===91?t+2:t===40?t+1:t)))}function $k(t){for(;(Dt=Kr())&&Dt<33;)Wn();return cl(t)>2||cl(Dt)>3?"":" "}function zk(t,e){for(;--e&&Wn()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return xl(t,su()+(e<6&&Kr()==32&&Wn()==32))}function uh(t){for(;Wn();)switch(Dt){case t:return Pn;case 34:case 39:t!==34&&t!==39&&uh(Dt);break;case 40:t===41&&uh(t);break;case 92:Wn();break}return Pn}function jk(t,e){for(;Wn()&&t+Dt!==57;)if(t+Dt===84&&Kr()===47)break;return"/*"+xl(e,Pn-1)+"*"+od(t===47?t:Wn())}function Uk(t){for(;!cl(Kr());)Wn();return xl(t,Pn)}function Vk(t){return CS(lu("",null,null,null,[""],t=_S(t),0,[0],t))}function lu(t,e,n,r,s,a,c,u,f){for(var h=0,y=0,g=c,v=0,C=0,w=0,_=1,I=1,P=1,L=0,B="",A=s,O=a,F=r,M=B;I;)switch(w=L,L=Wn()){case 40:if(w!=108&&Yt(M,g-1)==58){ch(M+=Ke(au(L),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:M+=au(L);break;case 9:case 10:case 13:case 32:M+=$k(w);break;case 92:M+=zk(su()-1,7);continue;case 47:switch(Kr()){case 42:case 47:Wc(Wk(jk(Wn(),su()),e,n),f);break;default:M+="/"}break;case 123*_:u[h++]=Br(M)*P;case 125*_:case 59:case 0:switch(L){case 0:case 125:I=0;case 59+y:P==-1&&(M=Ke(M,/\f/g,"")),C>0&&Br(M)-g&&Wc(C>32?pv(M+";",r,n,g-1):pv(Ke(M," ","")+";",r,n,g-2),f);break;case 59:M+=";";default:if(Wc(F=fv(M,e,n,h,y,s,u,B,A=[],O=[],g),a),L===123)if(y===0)lu(M,e,F,F,A,a,g,u,O);else switch(v===99&&Yt(M,3)===110?100:v){case 100:case 108:case 109:case 115:lu(t,F,F,r&&Wc(fv(t,F,F,0,0,s,u,B,s,A=[],g),O),s,O,g,u,r?A:O);break;default:lu(M,F,F,F,[""],O,0,u,O)}}h=y=C=0,_=P=1,B=M="",g=c;break;case 58:g=1+Br(M),C=w;default:if(_<1){if(L==123)--_;else if(L==125&&_++==0&&Fk()==125)continue}switch(M+=od(L),L*_){case 38:P=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(Br(M)-1)*P,P=1;break;case 64:Kr()===45&&(M+=au(Wn())),v=Kr(),y=g=Br(B=M+=Uk(su())),L++;break;case 45:w===45&&Br(M)==2&&(_=0)}}return a}function fv(t,e,n,r,s,a,c,u,f,h,y){for(var g=s-1,v=s===0?a:[""],C=hm(v),w=0,_=0,I=0;w<r;++w)for(var P=0,L=ll(t,g+1,g=Ok(_=c[w])),B=t;P<C;++P)(B=bS(_>0?v[P]+" "+L:Ke(L,/&\f/g,v[P])))&&(f[I++]=B);return ad(t,e,n,s===0?fm:u,f,h,y)}function Wk(t,e,n){return ad(t,e,n,gS,od(Lk()),ll(t,2,-2),0)}function pv(t,e,n,r){return ad(t,e,n,pm,ll(t,0,r),ll(t,r+1,-1),r)}function Ns(t,e){for(var n="",r=hm(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function Hk(t,e,n,r){switch(t.type){case Pk:if(t.children.length)break;case Ak:case pm:return t.return=t.return||t.value;case gS:return"";case vS:return t.return=t.value+"{"+Ns(t.children,r)+"}";case fm:t.value=t.props.join(",")}return Br(n=Ns(t.children,r))?t.return=t.value+"{"+n+"}":""}function Gk(t){var e=hm(t);return function(n,r,s,a){for(var c="",u=0;u<e;u++)c+=t[u](n,r,s,a)||"";return c}}function Yk(t){return function(e){e.root||(e=e.return)&&t(e)}}function wS(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Kk=function(e,n,r){for(var s=0,a=0;s=a,a=Kr(),s===38&&a===12&&(n[r]=1),!cl(a);)Wn();return xl(e,Pn)},Qk=function(e,n){var r=-1,s=44;do switch(cl(s)){case 0:s===38&&Kr()===12&&(n[r]=1),e[r]+=Kk(Pn-1,n,r);break;case 2:e[r]+=au(s);break;case 4:if(s===44){e[++r]=Kr()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=od(s)}while(s=Wn());return e},Xk=function(e,n){return CS(Qk(_S(e),n))},hv=new WeakMap,Jk=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!hv.get(r))&&!s){hv.set(e,!0);for(var a=[],c=Xk(n,a),u=r.props,f=0,h=0;f<c.length;f++)for(var y=0;y<u.length;y++,h++)e.props[h]=a[f]?c[f].replace(/&\f/g,u[y]):u[y]+" "+c[f]}}},qk=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function xS(t,e){switch(Dk(t,e)){case 5103:return Ye+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+t+Ku+t+nn+t+t;case 6828:case 4268:return Ye+t+nn+t+t;case 6165:return Ye+t+nn+"flex-"+t+t;case 5187:return Ye+t+Ke(t,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+nn+"flex-$1$2")+t;case 5443:return Ye+t+nn+"flex-item-"+Ke(t,/flex-|-self/,"")+t;case 4675:return Ye+t+nn+"flex-line-pack"+Ke(t,/align-content|flex-|-self/,"")+t;case 5548:return Ye+t+nn+Ke(t,"shrink","negative")+t;case 5292:return Ye+t+nn+Ke(t,"basis","preferred-size")+t;case 6060:return Ye+"box-"+Ke(t,"-grow","")+Ye+t+nn+Ke(t,"grow","positive")+t;case 4554:return Ye+Ke(t,/([^-])(transform)/g,"$1"+Ye+"$2")+t;case 6187:return Ke(Ke(Ke(t,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),t,"")+t;case 5495:case 3959:return Ke(t,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Ke(Ke(t,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+t+t;case 4095:case 3583:case 4068:case 2532:return Ke(t,/(.+)-inline(.+)/,Ye+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Br(t)-1-e>6)switch(Yt(t,e+1)){case 109:if(Yt(t,e+4)!==45)break;case 102:return Ke(t,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Ku+(Yt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ch(t,"stretch")?xS(Ke(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Yt(t,e+1)!==115)break;case 6444:switch(Yt(t,Br(t)-3-(~ch(t,"!important")&&10))){case 107:return Ke(t,":",":"+Ye)+t;case 101:return Ke(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Yt(t,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+nn+"$2box$3")+t}break;case 5936:switch(Yt(t,e+11)){case 114:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ye+t+nn+t+t}return t}var Zk=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case pm:e.return=xS(e.value,e.length);break;case vS:return Ns([Ua(e,{value:Ke(e.value,"@","@"+Ye)})],s);case fm:if(e.length)return Bk(e.props,function(a){switch(Nk(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ns([Ua(e,{props:[Ke(a,/:(read-\w+)/,":"+Ku+"$1")]})],s);case"::placeholder":return Ns([Ua(e,{props:[Ke(a,/:(plac\w+)/,":"+Ye+"input-$1")]}),Ua(e,{props:[Ke(a,/:(plac\w+)/,":"+Ku+"$1")]}),Ua(e,{props:[Ke(a,/:(plac\w+)/,nn+"input-$1")]})],s)}return""})}},eT=[Zk],tT=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var s=e.stylisPlugins||eT,a={},c,u=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),P=1;P<I.length;P++)a[I[P]]=!0;u.push(_)});var f,h=[Jk,qk];{var y,g=[Hk,Yk(function(_){y.insert(_)})],v=Gk(h.concat(s,g)),C=function(I){return Ns(Vk(I),v)};f=function(I,P,L,B){y=L,C(I?I+"{"+P.styles+"}":P.styles),B&&(w.inserted[P.name]=!0)}}var w={key:n,sheet:new Ek({key:n,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:f};return w.sheet.hydrate(u),w},nT=!0;function IS(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(r+=s+" ")}),r}var mm=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||nT===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},ym=function(e,n,r){mm(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+s:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function rT(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var iT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oT=/[A-Z]|^ms/g,sT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kS=function(e){return e.charCodeAt(1)===45},mv=function(e){return e!=null&&typeof e!="boolean"},Rp=wS(function(t){return kS(t)?t:t.replace(oT,"-$&").toLowerCase()}),yv=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(sT,function(r,s,a){return Lr={name:s,styles:a,next:Lr},s})}return iT[e]!==1&&!kS(e)&&typeof n=="number"&&n!==0?n+"px":n};function ul(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Lr={name:s.name,styles:s.styles,next:Lr},s.name;var a=n;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)Lr={name:c.name,styles:c.styles,next:Lr},c=c.next;var u=a.styles+";";return u}return aT(t,e,n)}case"function":{if(t!==void 0){var f=Lr,h=n(t);return Lr=f,ul(t,e,h)}break}}var y=n;if(e==null)return y;var g=e[y];return g!==void 0?g:y}function aT(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=ul(t,e,n[s])+";";else for(var a in n){var c=n[a];if(typeof c!="object"){var u=c;e!=null&&e[u]!==void 0?r+=a+"{"+e[u]+"}":mv(u)&&(r+=Rp(a)+":"+yv(a,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(e==null||e[c[0]]===void 0))for(var f=0;f<c.length;f++)mv(c[f])&&(r+=Rp(a)+":"+yv(a,c[f])+";");else{var h=ul(t,e,c);switch(a){case"animation":case"animationName":{r+=Rp(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}return r}var gv=/label:\s*([^\s;{]+)\s*(;|$)/g,Lr;function Il(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,s="";Lr=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,s+=ul(n,e,a);else{var c=a;s+=c[0]}for(var u=1;u<t.length;u++)if(s+=ul(n,e,t[u]),r){var f=a;s+=f[u]}gv.lastIndex=0;for(var h="",y;(y=gv.exec(s))!==null;)h+="-"+y[1];var g=rT(s)+h;return{name:g,styles:s,next:Lr}}var lT=function(e){return e()},TS=gu.useInsertionEffect?gu.useInsertionEffect:!1,RS=TS||lT,vv=TS||R.useLayoutEffect,ES=R.createContext(typeof HTMLElement<"u"?tT({key:"css"}):null);ES.Provider;var gm=function(e){return R.forwardRef(function(n,r){var s=R.useContext(ES);return e(n,s,r)})},kl=R.createContext({}),vm={}.hasOwnProperty,dh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cT=function(e,n){var r={};for(var s in n)vm.call(n,s)&&(r[s]=n[s]);return r[dh]=e,r},uT=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return mm(n,r,s),RS(function(){return ym(n,r,s)}),null},dT=gm(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[dh],a=[r],c="";typeof t.className=="string"?c=IS(e.registered,a,t.className):t.className!=null&&(c=t.className+" ");var u=Il(a,void 0,R.useContext(kl));c+=e.key+"-"+u.name;var f={};for(var h in t)vm.call(t,h)&&h!=="css"&&h!==dh&&(f[h]=t[h]);return f.className=c,n&&(f.ref=n),R.createElement(R.Fragment,null,R.createElement(uT,{cache:e,serialized:u,isStringTag:typeof s=="string"}),R.createElement(s,f))}),fT=dT,bv=function(e,n){var r=arguments;if(n==null||!vm.call(n,"css"))return R.createElement.apply(void 0,r);var s=r.length,a=new Array(s);a[0]=fT,a[1]=cT(e,n);for(var c=2;c<s;c++)a[c]=r[c];return R.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(bv||(bv={}));var pT=gm(function(t,e){var n=t.styles,r=Il([n],void 0,R.useContext(kl)),s=R.useRef();return vv(function(){var a=e.key+"-global",c=new e.sheet.constructor({key:a,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return e.sheet.tags.length&&(c.before=e.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",a),c.hydrate([f])),s.current=[c,u],function(){c.flush()}},[e]),vv(function(){var a=s.current,c=a[0],u=a[1];if(u){a[1]=!1;return}if(r.next!==void 0&&ym(e,r.next,!0),c.tags.length){var f=c.tags[c.tags.length-1].nextElementSibling;c.before=f,c.flush()}e.insert("",r,c,!1)},[e,r.name]),null});function bm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Il(e)}function Tl(){var t=bm.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var hT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mT=wS(function(t){return hT.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),yT=mT,gT=function(e){return e!=="theme"},Sv=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?yT:gT},_v=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(c){return e.__emotion_forwardProp(c)&&a(c)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},vT=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return mm(n,r,s),RS(function(){return ym(n,r,s)}),null},bT=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,c;n!==void 0&&(a=n.label,c=n.target);var u=_v(e,n,r),f=u||Sv(s),h=!f("as");return function(){var y=arguments,g=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)g.push.apply(g,y);else{var v=y[0];g.push(v[0]);for(var C=y.length,w=1;w<C;w++)g.push(y[w],v[w])}var _=gm(function(I,P,L){var B=h&&I.as||s,A="",O=[],F=I;if(I.theme==null){F={};for(var M in I)F[M]=I[M];F.theme=R.useContext(kl)}typeof I.className=="string"?A=IS(P.registered,O,I.className):I.className!=null&&(A=I.className+" ");var V=Il(g.concat(O),P.registered,F);A+=P.key+"-"+V.name,c!==void 0&&(A+=" "+c);var Y=h&&u===void 0?Sv(B):f,S={};for(var j in I)h&&j==="as"||Y(j)&&(S[j]=I[j]);return S.className=A,L&&(S.ref=L),R.createElement(R.Fragment,null,R.createElement(vT,{cache:P,serialized:V,isStringTag:typeof B=="string"}),R.createElement(B,S))});return _.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",_.defaultProps=e.defaultProps,_.__emotion_real=_,_.__emotion_base=s,_.__emotion_styles=g,_.__emotion_forwardProp=u,Object.defineProperty(_,"toString",{value:function(){return"."+c}}),_.withComponent=function(I,P){var L=t(I,Yu({},n,P,{shouldForwardProp:_v(_,P,!0)}));return L.apply(void 0,g)},_}},ST=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fh=bT.bind(null);ST.forEach(function(t){fh[t]=fh(t)});function _T(t){return t==null||Object.keys(t).length===0}function AS(t){const{styles:e,defaultTheme:n={}}=t,r=typeof e=="function"?s=>e(_T(s)?n:s):e;return z.jsx(pT,{styles:r})}/**
|
63
|
+
`)};function xk(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch{}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e}var Ik=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){Ik(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){Tn.setFrameHeight()},e.prototype.componentDidUpdate=function(){Tn.setFrameHeight()},e})(Kt.PureComponent);const kk=()=>{const[t,e]=T.useState();return T.useEffect(()=>{const n=s=>{e(s.detail)};return Tn.events.addEventListener(Tn.RENDER_EVENT,n),Tn.setComponentReady(),()=>{Tn.events.removeEventListener(Tn.RENDER_EVENT,n)}},[]),t};class Tk extends Kt.PureComponent{constructor(e){super(e),this.state={error:void 0}}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error!=null?$.jsxs("div",{children:[$.jsx("h1",{children:"Component Error"}),$.jsx("span",{children:this.state.error.message})]}):this.props.children}}const vS=Kt.createContext(void 0),fm=()=>{const t=T.useContext(vS);if(t==null)throw new Error("useRenderData() must be used inside <StreamlitProvider />");return t};function Rk(t){const e=kk();return T.useEffect(()=>{Tn.setFrameHeight()}),e==null?null:$.jsx(Tk,{children:$.jsx(vS.Provider,{value:e,children:t.children})})}function io(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}const Cr="$$material";function lh(){return lh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lh.apply(null,arguments)}function Ek(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Ak(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Pk=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ak(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Ek(s);try{a.insertRule(r,a.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},t}(),nn="-ms-",Yu="-moz-",Ye="-webkit-",bS="comm",pm="rule",hm="decl",Ok="@import",SS="@keyframes",Mk="@layer",Dk=Math.abs,id=String.fromCharCode,Nk=Object.assign;function Bk(t,e){return Yt(t,0)^45?(((e<<2^Yt(t,0))<<2^Yt(t,1))<<2^Yt(t,2))<<2^Yt(t,3):0}function _S(t){return t.trim()}function Lk(t,e){return(t=e.exec(t))?t[0]:t}function Ke(t,e,n){return t.replace(e,n)}function ch(t,e){return t.indexOf(e)}function Yt(t,e){return t.charCodeAt(e)|0}function ll(t,e,n){return t.slice(e,n)}function Br(t){return t.length}function mm(t){return t.length}function Wc(t,e){return e.push(t),t}function Fk(t,e){return t.map(e).join("")}var od=1,Gs=1,CS=0,Pn=0,Dt=0,qs="";function sd(t,e,n,r,s,a,c){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:od,column:Gs,length:c,return:""}}function Ua(t,e){return Nk(sd("",null,null,"",null,null,0),t,{length:-t.length},e)}function $k(){return Dt}function zk(){return Dt=Pn>0?Yt(qs,--Pn):0,Gs--,Dt===10&&(Gs=1,od--),Dt}function Wn(){return Dt=Pn<CS?Yt(qs,Pn++):0,Gs++,Dt===10&&(Gs=1,od++),Dt}function Kr(){return Yt(qs,Pn)}function su(){return Pn}function xl(t,e){return ll(qs,t,e)}function cl(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wS(t){return od=Gs=1,CS=Br(qs=t),Pn=0,[]}function xS(t){return qs="",t}function au(t){return _S(xl(Pn-1,uh(t===91?t+2:t===40?t+1:t)))}function jk(t){for(;(Dt=Kr())&&Dt<33;)Wn();return cl(t)>2||cl(Dt)>3?"":" "}function Uk(t,e){for(;--e&&Wn()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return xl(t,su()+(e<6&&Kr()==32&&Wn()==32))}function uh(t){for(;Wn();)switch(Dt){case t:return Pn;case 34:case 39:t!==34&&t!==39&&uh(Dt);break;case 40:t===41&&uh(t);break;case 92:Wn();break}return Pn}function Vk(t,e){for(;Wn()&&t+Dt!==57;)if(t+Dt===84&&Kr()===47)break;return"/*"+xl(e,Pn-1)+"*"+id(t===47?t:Wn())}function Wk(t){for(;!cl(Kr());)Wn();return xl(t,Pn)}function Hk(t){return xS(lu("",null,null,null,[""],t=wS(t),0,[0],t))}function lu(t,e,n,r,s,a,c,u,f){for(var h=0,y=0,g=c,v=0,C=0,w=0,_=1,I=1,P=1,L=0,N="",E=s,O=a,z=r,M=N;I;)switch(w=L,L=Wn()){case 40:if(w!=108&&Yt(M,g-1)==58){ch(M+=Ke(au(L),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:M+=au(L);break;case 9:case 10:case 13:case 32:M+=jk(w);break;case 92:M+=Uk(su()-1,7);continue;case 47:switch(Kr()){case 42:case 47:Wc(Gk(Vk(Wn(),su()),e,n),f);break;default:M+="/"}break;case 123*_:u[h++]=Br(M)*P;case 125*_:case 59:case 0:switch(L){case 0:case 125:I=0;case 59+y:P==-1&&(M=Ke(M,/\f/g,"")),C>0&&Br(M)-g&&Wc(C>32?hv(M+";",r,n,g-1):hv(Ke(M," ","")+";",r,n,g-2),f);break;case 59:M+=";";default:if(Wc(z=pv(M,e,n,h,y,s,u,N,E=[],O=[],g),a),L===123)if(y===0)lu(M,e,z,z,E,a,g,u,O);else switch(v===99&&Yt(M,3)===110?100:v){case 100:case 108:case 109:case 115:lu(t,z,z,r&&Wc(pv(t,z,z,0,0,s,u,N,s,E=[],g),O),s,O,g,u,r?E:O);break;default:lu(M,z,z,z,[""],O,0,u,O)}}h=y=C=0,_=P=1,N=M="",g=c;break;case 58:g=1+Br(M),C=w;default:if(_<1){if(L==123)--_;else if(L==125&&_++==0&&zk()==125)continue}switch(M+=id(L),L*_){case 38:P=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(Br(M)-1)*P,P=1;break;case 64:Kr()===45&&(M+=au(Wn())),v=Kr(),y=g=Br(N=M+=Wk(su())),L++;break;case 45:w===45&&Br(M)==2&&(_=0)}}return a}function pv(t,e,n,r,s,a,c,u,f,h,y){for(var g=s-1,v=s===0?a:[""],C=mm(v),w=0,_=0,I=0;w<r;++w)for(var P=0,L=ll(t,g+1,g=Dk(_=c[w])),N=t;P<C;++P)(N=_S(_>0?v[P]+" "+L:Ke(L,/&\f/g,v[P])))&&(f[I++]=N);return sd(t,e,n,s===0?pm:u,f,h,y)}function Gk(t,e,n){return sd(t,e,n,bS,id($k()),ll(t,2,-2),0)}function hv(t,e,n,r){return sd(t,e,n,hm,ll(t,0,r),ll(t,r+1,-1),r)}function Ns(t,e){for(var n="",r=mm(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function Yk(t,e,n,r){switch(t.type){case Mk:if(t.children.length)break;case Ok:case hm:return t.return=t.return||t.value;case bS:return"";case SS:return t.return=t.value+"{"+Ns(t.children,r)+"}";case pm:t.value=t.props.join(",")}return Br(n=Ns(t.children,r))?t.return=t.value+"{"+n+"}":""}function Kk(t){var e=mm(t);return function(n,r,s,a){for(var c="",u=0;u<e;u++)c+=t[u](n,r,s,a)||"";return c}}function Qk(t){return function(e){e.root||(e=e.return)&&t(e)}}function IS(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Xk=function(e,n,r){for(var s=0,a=0;s=a,a=Kr(),s===38&&a===12&&(n[r]=1),!cl(a);)Wn();return xl(e,Pn)},Jk=function(e,n){var r=-1,s=44;do switch(cl(s)){case 0:s===38&&Kr()===12&&(n[r]=1),e[r]+=Xk(Pn-1,n,r);break;case 2:e[r]+=au(s);break;case 4:if(s===44){e[++r]=Kr()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=id(s)}while(s=Wn());return e},qk=function(e,n){return xS(Jk(wS(e),n))},mv=new WeakMap,Zk=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!mv.get(r))&&!s){mv.set(e,!0);for(var a=[],c=qk(n,a),u=r.props,f=0,h=0;f<c.length;f++)for(var y=0;y<u.length;y++,h++)e.props[h]=a[f]?c[f].replace(/&\f/g,u[y]):u[y]+" "+c[f]}}},eT=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function kS(t,e){switch(Bk(t,e)){case 5103:return Ye+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+t+Yu+t+nn+t+t;case 6828:case 4268:return Ye+t+nn+t+t;case 6165:return Ye+t+nn+"flex-"+t+t;case 5187:return Ye+t+Ke(t,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+nn+"flex-$1$2")+t;case 5443:return Ye+t+nn+"flex-item-"+Ke(t,/flex-|-self/,"")+t;case 4675:return Ye+t+nn+"flex-line-pack"+Ke(t,/align-content|flex-|-self/,"")+t;case 5548:return Ye+t+nn+Ke(t,"shrink","negative")+t;case 5292:return Ye+t+nn+Ke(t,"basis","preferred-size")+t;case 6060:return Ye+"box-"+Ke(t,"-grow","")+Ye+t+nn+Ke(t,"grow","positive")+t;case 4554:return Ye+Ke(t,/([^-])(transform)/g,"$1"+Ye+"$2")+t;case 6187:return Ke(Ke(Ke(t,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),t,"")+t;case 5495:case 3959:return Ke(t,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Ke(Ke(t,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+t+t;case 4095:case 3583:case 4068:case 2532:return Ke(t,/(.+)-inline(.+)/,Ye+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Br(t)-1-e>6)switch(Yt(t,e+1)){case 109:if(Yt(t,e+4)!==45)break;case 102:return Ke(t,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Yu+(Yt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ch(t,"stretch")?kS(Ke(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Yt(t,e+1)!==115)break;case 6444:switch(Yt(t,Br(t)-3-(~ch(t,"!important")&&10))){case 107:return Ke(t,":",":"+Ye)+t;case 101:return Ke(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Yt(t,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+nn+"$2box$3")+t}break;case 5936:switch(Yt(t,e+11)){case 114:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ye+t+nn+Ke(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ye+t+nn+t+t}return t}var tT=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case hm:e.return=kS(e.value,e.length);break;case SS:return Ns([Ua(e,{value:Ke(e.value,"@","@"+Ye)})],s);case pm:if(e.length)return Fk(e.props,function(a){switch(Lk(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ns([Ua(e,{props:[Ke(a,/:(read-\w+)/,":"+Yu+"$1")]})],s);case"::placeholder":return Ns([Ua(e,{props:[Ke(a,/:(plac\w+)/,":"+Ye+"input-$1")]}),Ua(e,{props:[Ke(a,/:(plac\w+)/,":"+Yu+"$1")]}),Ua(e,{props:[Ke(a,/:(plac\w+)/,nn+"input-$1")]})],s)}return""})}},nT=[tT],rT=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var s=e.stylisPlugins||nT,a={},c,u=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),P=1;P<I.length;P++)a[I[P]]=!0;u.push(_)});var f,h=[Zk,eT];{var y,g=[Yk,Qk(function(_){y.insert(_)})],v=Kk(h.concat(s,g)),C=function(I){return Ns(Hk(I),v)};f=function(I,P,L,N){y=L,C(I?I+"{"+P.styles+"}":P.styles),N&&(w.inserted[P.name]=!0)}}var w={key:n,sheet:new Pk({key:n,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:f};return w.sheet.hydrate(u),w},iT=!0;function TS(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(r+=s+" ")}),r}var ym=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||iT===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},gm=function(e,n,r){ym(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+s:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function oT(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var sT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},aT=/[A-Z]|^ms/g,lT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RS=function(e){return e.charCodeAt(1)===45},yv=function(e){return e!=null&&typeof e!="boolean"},Tp=IS(function(t){return RS(t)?t:t.replace(aT,"-$&").toLowerCase()}),gv=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(lT,function(r,s,a){return Lr={name:s,styles:a,next:Lr},s})}return sT[e]!==1&&!RS(e)&&typeof n=="number"&&n!==0?n+"px":n};function ul(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Lr={name:s.name,styles:s.styles,next:Lr},s.name;var a=n;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)Lr={name:c.name,styles:c.styles,next:Lr},c=c.next;var u=a.styles+";";return u}return cT(t,e,n)}case"function":{if(t!==void 0){var f=Lr,h=n(t);return Lr=f,ul(t,e,h)}break}}var y=n;if(e==null)return y;var g=e[y];return g!==void 0?g:y}function cT(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=ul(t,e,n[s])+";";else for(var a in n){var c=n[a];if(typeof c!="object"){var u=c;e!=null&&e[u]!==void 0?r+=a+"{"+e[u]+"}":yv(u)&&(r+=Tp(a)+":"+gv(a,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(e==null||e[c[0]]===void 0))for(var f=0;f<c.length;f++)yv(c[f])&&(r+=Tp(a)+":"+gv(a,c[f])+";");else{var h=ul(t,e,c);switch(a){case"animation":case"animationName":{r+=Tp(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}return r}var vv=/label:\s*([^\s;{]+)\s*(;|$)/g,Lr;function Il(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,s="";Lr=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,s+=ul(n,e,a);else{var c=a;s+=c[0]}for(var u=1;u<t.length;u++)if(s+=ul(n,e,t[u]),r){var f=a;s+=f[u]}vv.lastIndex=0;for(var h="",y;(y=vv.exec(s))!==null;)h+="-"+y[1];var g=oT(s)+h;return{name:g,styles:s,next:Lr}}var uT=function(e){return e()},ES=gu.useInsertionEffect?gu.useInsertionEffect:!1,AS=ES||uT,bv=ES||T.useLayoutEffect,PS=T.createContext(typeof HTMLElement<"u"?rT({key:"css"}):null);PS.Provider;var vm=function(e){return T.forwardRef(function(n,r){var s=T.useContext(PS);return e(n,s,r)})},kl=T.createContext({}),bm={}.hasOwnProperty,dh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dT=function(e,n){var r={};for(var s in n)bm.call(n,s)&&(r[s]=n[s]);return r[dh]=e,r},fT=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return ym(n,r,s),AS(function(){return gm(n,r,s)}),null},pT=vm(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[dh],a=[r],c="";typeof t.className=="string"?c=TS(e.registered,a,t.className):t.className!=null&&(c=t.className+" ");var u=Il(a,void 0,T.useContext(kl));c+=e.key+"-"+u.name;var f={};for(var h in t)bm.call(t,h)&&h!=="css"&&h!==dh&&(f[h]=t[h]);return f.className=c,n&&(f.ref=n),T.createElement(T.Fragment,null,T.createElement(fT,{cache:e,serialized:u,isStringTag:typeof s=="string"}),T.createElement(s,f))}),hT=pT,Sv=function(e,n){var r=arguments;if(n==null||!bm.call(n,"css"))return T.createElement.apply(void 0,r);var s=r.length,a=new Array(s);a[0]=hT,a[1]=dT(e,n);for(var c=2;c<s;c++)a[c]=r[c];return T.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Sv||(Sv={}));var mT=vm(function(t,e){var n=t.styles,r=Il([n],void 0,T.useContext(kl)),s=T.useRef();return bv(function(){var a=e.key+"-global",c=new e.sheet.constructor({key:a,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return e.sheet.tags.length&&(c.before=e.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",a),c.hydrate([f])),s.current=[c,u],function(){c.flush()}},[e]),bv(function(){var a=s.current,c=a[0],u=a[1];if(u){a[1]=!1;return}if(r.next!==void 0&&gm(e,r.next,!0),c.tags.length){var f=c.tags[c.tags.length-1].nextElementSibling;c.before=f,c.flush()}e.insert("",r,c,!1)},[e,r.name]),null});function Sm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Il(e)}function Tl(){var t=Sm.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gT=IS(function(t){return yT.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),vT=gT,bT=function(e){return e!=="theme"},_v=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?vT:bT},Cv=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(c){return e.__emotion_forwardProp(c)&&a(c)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},ST=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return ym(n,r,s),AS(function(){return gm(n,r,s)}),null},_T=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,c;n!==void 0&&(a=n.label,c=n.target);var u=Cv(e,n,r),f=u||_v(s),h=!f("as");return function(){var y=arguments,g=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)g.push.apply(g,y);else{var v=y[0];g.push(v[0]);for(var C=y.length,w=1;w<C;w++)g.push(y[w],v[w])}var _=vm(function(I,P,L){var N=h&&I.as||s,E="",O=[],z=I;if(I.theme==null){z={};for(var M in I)z[M]=I[M];z.theme=T.useContext(kl)}typeof I.className=="string"?E=TS(P.registered,O,I.className):I.className!=null&&(E=I.className+" ");var V=Il(g.concat(O),P.registered,z);E+=P.key+"-"+V.name,c!==void 0&&(E+=" "+c);var Y=h&&u===void 0?_v(N):f,S={};for(var j in I)h&&j==="as"||Y(j)&&(S[j]=I[j]);return S.className=E,L&&(S.ref=L),T.createElement(T.Fragment,null,T.createElement(ST,{cache:P,serialized:V,isStringTag:typeof N=="string"}),T.createElement(N,S))});return _.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",_.defaultProps=e.defaultProps,_.__emotion_real=_,_.__emotion_base=s,_.__emotion_styles=g,_.__emotion_forwardProp=u,Object.defineProperty(_,"toString",{value:function(){return"."+c}}),_.withComponent=function(I,P){var L=t(I,lh({},n,P,{shouldForwardProp:Cv(_,P,!0)}));return L.apply(void 0,g)},_}},CT=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fh=_T.bind(null);CT.forEach(function(t){fh[t]=fh(t)});function wT(t){return t==null||Object.keys(t).length===0}function OS(t){const{styles:e,defaultTheme:n={}}=t,r=typeof e=="function"?s=>e(wT(s)?n:s):e;return $.jsx(mT,{styles:r})}/**
|
64
64
|
* @mui/styled-engine v6.4.8
|
65
65
|
*
|
66
66
|
* @license MIT
|
67
67
|
* This source code is licensed under the MIT license found in the
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
69
|
-
*/function
|
69
|
+
*/function MS(t,e){return fh(t,e)}function xT(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const wv=[];function xv(t){return wv[0]=t,Il(wv)}var Rp={exports:{}},it={};/**
|
70
70
|
* @license React
|
71
71
|
* react-is.production.js
|
72
72
|
*
|
@@ -74,10 +74,10 @@ Error generating stack: `+m.message+`
|
|
74
74
|
*
|
75
75
|
* This source code is licensed under the MIT license found in the
|
76
76
|
* LICENSE file in the root directory of this source tree.
|
77
|
-
*/var xv;function wT(){if(xv)return it;xv=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),C=Symbol.for("react.client.reference");function w(_){if(typeof _=="object"&&_!==null){var I=_.$$typeof;switch(I){case t:switch(_=_.type,_){case n:case s:case r:case f:case h:return _;default:switch(_=_&&_.$$typeof,_){case c:case u:case g:case y:return _;case a:return _;default:return I}}case e:return I}}}return it.ContextConsumer=a,it.ContextProvider=c,it.Element=t,it.ForwardRef=u,it.Fragment=n,it.Lazy=g,it.Memo=y,it.Portal=e,it.Profiler=s,it.StrictMode=r,it.Suspense=f,it.SuspenseList=h,it.isContextConsumer=function(_){return w(_)===a},it.isContextProvider=function(_){return w(_)===c},it.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},it.isForwardRef=function(_){return w(_)===u},it.isFragment=function(_){return w(_)===n},it.isLazy=function(_){return w(_)===g},it.isMemo=function(_){return w(_)===y},it.isPortal=function(_){return w(_)===e},it.isProfiler=function(_){return w(_)===s},it.isStrictMode=function(_){return w(_)===r},it.isSuspense=function(_){return w(_)===f},it.isSuspenseList=function(_){return w(_)===h},it.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===s||_===r||_===f||_===h||_===v||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===y||_.$$typeof===c||_.$$typeof===a||_.$$typeof===u||_.$$typeof===C||_.getModuleId!==void 0)},it.typeOf=w,it}var Iv;function xT(){return Iv||(Iv=1,Ep.exports=wT()),Ep.exports}var OS=xT();function Wr(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function MS(t){if(R.isValidElement(t)||OS.isValidElementType(t)||!Wr(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=MS(t[n])}),e}function on(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Wr(t)&&Wr(e)&&Object.keys(e).forEach(s=>{R.isValidElement(e[s])||OS.isValidElementType(e[s])?r[s]=e[s]:Wr(e[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Wr(t[s])?r[s]=on(t[s],e[s],n):n.clone?r[s]=Wr(e[s])?MS(e[s]):e[s]:r[s]=e[s]}),r}const IT=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function kT(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=t,a=IT(e),c=Object.keys(a);function u(v){return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n})`}function f(v){return`@media (max-width:${(typeof e[v]=="number"?e[v]:v)-r/100}${n})`}function h(v,C){const w=c.indexOf(C);return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n}) and (max-width:${(w!==-1&&typeof e[c[w]]=="number"?e[c[w]]:C)-r/100}${n})`}function y(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):u(v)}function g(v){const C=c.indexOf(v);return C===0?u(c[1]):C===c.length-1?f(c[C]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:a,up:u,down:f,between:h,only:y,not:g,unit:n,...s}}function TT(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,s)=>{var c,u;const a=/min-width:\s*([0-9.]+)/;return+(((c=r.match(a))==null?void 0:c[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,s)=>{const a=e[s];return delete r[s],r[s]=a,r},{...e}):e}function RT(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function ET(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,s]=n,a=Number.isNaN(+r)?r||0:+r;return t.containerQueries(s).up(a)}function AT(t){const e=(a,c)=>a.replace("@media",c?`@container ${c}`:"@container");function n(a,c){a.up=(...u)=>e(t.breakpoints.up(...u),c),a.down=(...u)=>e(t.breakpoints.down(...u),c),a.between=(...u)=>e(t.breakpoints.between(...u),c),a.only=(...u)=>e(t.breakpoints.only(...u),c),a.not=(...u)=>{const f=e(t.breakpoints.not(...u),c);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const r={},s=a=>(n(r,a),r);return n(s),{...t,containerQueries:s}}const PT={borderRadius:4};function qa(t,e){return e?on(t,e,{clone:!1}):t}const ld={xs:0,sm:600,md:900,lg:1200,xl:1536},kv={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${ld[t]}px)`},OT={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:ld[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function xr(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const a=r.breakpoints||kv;return e.reduce((c,u,f)=>(c[a.up(a.keys[f])]=n(e[f]),c),{})}if(typeof e=="object"){const a=r.breakpoints||kv;return Object.keys(e).reduce((c,u)=>{if(RT(a.keys,u)){const f=ET(r.containerQueries?r:OT,u);f&&(c[f]=n(e[u],u))}else if(Object.keys(a.values||ld).includes(u)){const f=a.up(u);c[f]=n(e[u],u)}else{const f=u;c[f]=e[f]}return c},{})}return n(e)}function DS(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,s)=>{const a=t.up(s);return r[a]={},r},{}))||{}}function NS(t,e){return t.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},e)}function MT(t,...e){const n=DS(t),r=[n,...e].reduce((s,a)=>on(s,a),{});return NS(Object.keys(n),r)}function DT(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((s,a)=>{a<t.length&&(n[s]=!0)}):r.forEach(s=>{t[s]!=null&&(n[s]=!0)}),n}function Ap({values:t,breakpoints:e,base:n}){const r=n||DT(t,e),s=Object.keys(r);if(s.length===0)return t;let a;return s.reduce((c,u,f)=>(Array.isArray(t)?(c[u]=t[f]!=null?t[f]:t[a],a=f):typeof t=="object"?(c[u]=t[u]!=null?t[u]:t[a],a=u):c[u]=t,c),{})}function Oe(t){if(typeof t!="string")throw new Error(io(7));return t.charAt(0).toUpperCase()+t.slice(1)}function cd(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,t);if(r!=null)return r}return e.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,t)}function Qu(t,e,n,r=n){let s;return typeof t=="function"?s=t(n):Array.isArray(t)?s=t[n]||r:s=cd(t,n)||r,e&&(s=e(s,r,t)),s}function At(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:s}=t,a=c=>{if(c[e]==null)return null;const u=c[e],f=c.theme,h=cd(f,r)||{};return xr(c,u,g=>{let v=Qu(h,s,g);return g===v&&typeof g=="string"&&(v=Qu(h,s,`${e}${g==="default"?"":Oe(g)}`,g)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[e],a}function NT(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const BT={m:"margin",p:"padding"},LT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},FT=NT(t=>{if(t.length>2)if(Tv[t])t=Tv[t];else return[t];const[e,n]=t.split(""),r=BT[e],s=LT[n]||"";return Array.isArray(s)?s.map(a=>r+a):[r+s]}),Sm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_m=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Sm,..._m];function Rl(t,e,n,r){const s=cd(t,e,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const c=Math.abs(a),u=s[c];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function ud(t){return Rl(t,"spacing",8)}function jo(t,e){return typeof e=="string"||e==null?e:t(e)}function $T(t,e){return n=>t.reduce((r,s)=>(r[s]=jo(e,n),r),{})}function zT(t,e,n,r){if(!e.includes(n))return null;const s=FT(n),a=$T(s,r),c=t[n];return xr(t,c,a)}function BS(t,e){const n=ud(t.theme);return Object.keys(t).map(r=>zT(t,e,r,n)).reduce(qa,{})}function It(t){return BS(t,Sm)}It.propTypes={};It.filterProps=Sm;function kt(t){return BS(t,_m)}kt.propTypes={};kt.filterProps=_m;function LS(t=8,e=ud({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const c=e(a);return typeof c=="number"?`${c}px`:c}).join(" ");return n.mui=!0,n}function dd(...t){const e=t.reduce((r,s)=>(s.filterProps.forEach(a=>{r[a]=s}),r),{}),n=r=>Object.keys(r).reduce((s,a)=>e[a]?qa(s,e[a](r)):s,{});return n.propTypes={},n.filterProps=t.reduce((r,s)=>r.concat(s.filterProps),[]),n}function or(t){return typeof t!="number"?t:`${t}px solid`}function cr(t,e){return At({prop:t,themeKey:"borders",transform:e})}const jT=cr("border",or),UT=cr("borderTop",or),VT=cr("borderRight",or),WT=cr("borderBottom",or),HT=cr("borderLeft",or),GT=cr("borderColor"),YT=cr("borderTopColor"),KT=cr("borderRightColor"),QT=cr("borderBottomColor"),XT=cr("borderLeftColor"),JT=cr("outline",or),qT=cr("outlineColor"),fd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Rl(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:jo(e,r)});return xr(t,t.borderRadius,n)}return null};fd.propTypes={};fd.filterProps=["borderRadius"];dd(jT,UT,VT,WT,HT,GT,YT,KT,QT,XT,fd,JT,qT);const pd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({gap:jo(e,r)});return xr(t,t.gap,n)}return null};pd.propTypes={};pd.filterProps=["gap"];const hd=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({columnGap:jo(e,r)});return xr(t,t.columnGap,n)}return null};hd.propTypes={};hd.filterProps=["columnGap"];const md=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({rowGap:jo(e,r)});return xr(t,t.rowGap,n)}return null};md.propTypes={};md.filterProps=["rowGap"];const ZT=At({prop:"gridColumn"}),e3=At({prop:"gridRow"}),t3=At({prop:"gridAutoFlow"}),n3=At({prop:"gridAutoColumns"}),r3=At({prop:"gridAutoRows"}),i3=At({prop:"gridTemplateColumns"}),o3=At({prop:"gridTemplateRows"}),s3=At({prop:"gridTemplateAreas"}),a3=At({prop:"gridArea"});dd(pd,hd,md,ZT,e3,t3,n3,r3,i3,o3,s3,a3);function Bs(t,e){return e==="grey"?e:t}const l3=At({prop:"color",themeKey:"palette",transform:Bs}),c3=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bs}),u3=At({prop:"backgroundColor",themeKey:"palette",transform:Bs});dd(l3,c3,u3);function Vn(t){return t<=1&&t!==0?`${t*100}%`:t}const d3=At({prop:"width",transform:Vn}),Cm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var s,a,c,u,f;const r=((c=(a=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:c[n])||ld[n];return r?((f=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Vn(n)}};return xr(t,t.maxWidth,e)}return null};Cm.filterProps=["maxWidth"];const f3=At({prop:"minWidth",transform:Vn}),p3=At({prop:"height",transform:Vn}),h3=At({prop:"maxHeight",transform:Vn}),m3=At({prop:"minHeight",transform:Vn});At({prop:"size",cssProperty:"width",transform:Vn});At({prop:"size",cssProperty:"height",transform:Vn});const y3=At({prop:"boxSizing"});dd(d3,Cm,f3,p3,h3,m3,y3);const El={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fd},color:{themeKey:"palette",transform:Bs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bs},backgroundColor:{themeKey:"palette",transform:Bs},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pd},rowGap:{style:md},columnGap:{style:hd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:Cm},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function g3(...t){const e=t.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function v3(t,e){return typeof t=="function"?t(e):t}function b3(){function t(n,r,s,a){const c={[n]:r,theme:s},u=a[n];if(!u)return{[n]:r};const{cssProperty:f=n,themeKey:h,transform:y,style:g}=u;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=cd(s,h)||{};return g?g(c):xr(c,r,w=>{let _=Qu(v,y,w);return w===_&&typeof w=="string"&&(_=Qu(v,y,`${n}${w==="default"?"":Oe(w)}`,w)),f===!1?_:{[f]:_}})}function e(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const a=s.unstable_sxConfig??El;function c(u){let f=u;if(typeof u=="function")f=u(s);else if(typeof u!="object")return u;if(!f)return null;const h=DS(s.breakpoints),y=Object.keys(h);let g=h;return Object.keys(f).forEach(v=>{const C=v3(f[v],s);if(C!=null)if(typeof C=="object")if(a[v])g=qa(g,t(v,C,s,a));else{const w=xr({theme:s},C,_=>({[v]:_}));g3(w,C)?g[v]=e({sx:C,theme:s}):g=qa(g,w)}else g=qa(g,t(v,C,s,a))}),TT(s,NS(y,g))}return Array.isArray(r)?r.map(c):c(r)}return e}const oo=b3();oo.filterProps=["sx"];function S3(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(t);return s==="&"?e:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:e})}return n.palette.mode===t?e:{}}function yd(t={},...e){const{breakpoints:n={},palette:r={},spacing:s,shape:a={},...c}=t,u=kT(n),f=LS(s);let h=on({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:f,shape:{...PT,...a}},c);return h=AT(h),h.applyStyles=S3,h=e.reduce((y,g)=>on(y,g),h),h.unstable_sxConfig={...El,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return oo({sx:g,theme:this})},h}function _3(t){return Object.keys(t).length===0}function wm(t=null){const e=R.useContext(kl);return!e||_3(e)?t:e}const C3=yd();function gd(t=C3){return wm(t)}function w3({styles:t,themeId:e,defaultTheme:n={}}){const r=gd(n),s=typeof t=="function"?t(e&&r[e]||r):t;return z.jsx(AS,{styles:s})}const x3=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??El;return Object.keys(t).forEach(s=>{n[s]?e.systemProps[s]=t[s]:e.otherProps[s]=t[s]}),e};function FS(t){const{sx:e,...n}=t,{systemProps:r,otherProps:s}=x3(n);let a;return Array.isArray(e)?a=[r,...e]:typeof e=="function"?a=(...c)=>{const u=e(...c);return Wr(u)?{...r,...u}:r}:a={...r,...e},{...s,sx:a}}const Rv=t=>t,I3=()=>{let t=Rv;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Rv}}},$S=I3();function zS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=zS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ot(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=zS(t))&&(r&&(r+=" "),r+=e);return r}function k3(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=t,a=PS("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(oo);return R.forwardRef(function(f,h){const y=gd(n),{className:g,component:v="div",...C}=FS(f);return z.jsx(a,{as:v,ref:h,className:ot(g,s?s(r):r),theme:e&&y[e]||y,...C})})}const T3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function hn(t,e,n="Mui"){const r=T3[e];return r?`${n}-${r}`:`${$S.generate(t)}-${e}`}function mn(t,e,n="Mui"){const r={};return e.forEach(s=>{r[s]=hn(t,s,n)}),r}function jS(t){const{variants:e,...n}=t,r={variants:e,style:wv(n),isProcessed:!0};return r.style===n||e&&e.forEach(s=>{typeof s.style!="function"&&(s.style=wv(s.style))}),r}const R3=yd();function Pp(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function E3(t){return t?(e,n)=>n[t]:null}function A3(t,e,n){t.theme=O3(t.theme)?n:t.theme[e]||t.theme}function cu(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>cu(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...a}=n;r=a}return US(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function US(t,e,n=[]){var s;let r;e:for(let a=0;a<e.length;a+=1){const c=e[a];if(typeof c.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(r))continue}else for(const u in c.props)if(t[u]!==c.props[u]&&((s=t.ownerState)==null?void 0:s[u])!==c.props[u])continue e;typeof c.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(c.style(r))):n.push(c.style)}return n}function VS(t={}){const{themeId:e,defaultTheme:n=R3,rootShouldForwardProp:r=Pp,slotShouldForwardProp:s=Pp}=t;function a(u){A3(u,e,n)}return(u,f={})=>{CT(u,O=>O.filter(F=>F!==oo));const{name:h,slot:y,skipVariantsResolver:g,skipSx:v,overridesResolver:C=E3(D3(y)),...w}=f,_=g!==void 0?g:y&&y!=="Root"&&y!=="root"||!1,I=v||!1;let P=Pp;y==="Root"||y==="root"?P=r:y?P=s:M3(u)&&(P=void 0);const L=PS(u,{shouldForwardProp:P,label:P3(),...w}),B=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(M){return cu(M,O)};if(Wr(O)){const F=jS(O);return F.variants?function(V){return cu(V,F)}:F.style}return O},A=(...O)=>{const F=[],M=O.map(B),V=[];if(F.push(a),h&&C&&V.push(function(W){var de,fe;const ae=(fe=(de=W.theme.components)==null?void 0:de[h])==null?void 0:fe.styleOverrides;if(!ae)return null;const ce={};for(const q in ae)ce[q]=cu(W,ae[q]);return C(W,ce)}),h&&!_&&V.push(function(W){var ce,de;const X=W.theme,ae=(de=(ce=X==null?void 0:X.components)==null?void 0:ce[h])==null?void 0:de.variants;return ae?US(W,ae):null}),I||V.push(oo),Array.isArray(M[0])){const j=M.shift(),W=new Array(F.length).fill(""),X=new Array(V.length).fill("");let ae;ae=[...W,...j,...X],ae.raw=[...W,...j.raw,...X],F.unshift(ae)}const Y=[...F,...M,...V],S=L(...Y);return u.muiName&&(S.muiName=u.muiName),S};return L.withConfig&&(A.withConfig=L.withConfig),A}}function P3(t,e){return void 0}function O3(t){for(const e in t)return!1;return!0}function M3(t){return typeof t=="string"&&t.charCodeAt(0)>96}function D3(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const N3=VS();function dl(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const s=r;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=t[s],c=e[s];if(!c)n[s]=a||{};else if(!a)n[s]=c;else{n[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[s][f]=dl(a[f],c[f])}}}else n[s]===void 0&&(n[s]=t[s])}return n}function WS(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:dl(e.components[n].defaultProps,r)}function B3({props:t,name:e,defaultTheme:n,themeId:r}){let s=gd(n);return r&&(s=s[r]||s),WS({theme:s,name:e,props:t})}const Ys=typeof window<"u"?R.useLayoutEffect:R.useEffect;function L3(t,e,n,r,s){const[a,c]=R.useState(()=>s&&n?n(t).matches:r?r(t).matches:e);return Ys(()=>{if(!n)return;const u=n(t),f=()=>{c(u.matches)};return f(),u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}},[t,n]),a}const F3={...gu},HS=F3.useSyncExternalStore;function $3(t,e,n,r,s){const a=R.useCallback(()=>e,[e]),c=R.useMemo(()=>{if(s&&n)return()=>n(t).matches;if(r!==null){const{matches:y}=r(t);return()=>y}return a},[a,t,r,s,n]),[u,f]=R.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const y=n(t);return[()=>y.matches,g=>(y.addEventListener("change",g),()=>{y.removeEventListener("change",g)})]},[a,n,t]);return HS(f,u,c)}function GS(t={}){const{themeId:e}=t;return function(r,s={}){let a=wm();a&&e&&(a=a[e]||a);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:f=c?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:y=!1}=WS({name:"MuiUseMediaQuery",props:s,theme:a});let g=typeof r=="function"?r(a):r;return g=g.replace(/^@media( ?)/m,""),(HS!==void 0?$3:L3)(g,u,f,h,y)}}GS();function z3(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function xm(t,e=0,n=1){return z3(t,e,n)}function j3(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function so(t){if(t.type)return t;if(t.charAt(0)==="#")return so(j3(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(io(9,t));let r=t.substring(e+1,t.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(io(10,s))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:s}}const U3=t=>{const e=so(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ya=(t,e)=>{try{return U3(t)}catch{return t}};function vd(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((s,a)=>a<3?parseInt(s,10):s):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function YS(t){t=so(t);const{values:e}=t,n=e[0],r=e[1]/100,s=e[2]/100,a=r*Math.min(s,1-s),c=(h,y=(h+n/30)%12)=>s-a*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const f=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(u+="a",f.push(e[3])),vd({type:u,values:f})}function ph(t){t=so(t);let e=t.type==="hsl"||t.type==="hsla"?so(YS(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function V3(t,e){const n=ph(t),r=ph(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Hr(t,e){return t=so(t),e=xm(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,vd(t)}function Hc(t,e,n){try{return Hr(t,e)}catch{return t}}function fl(t,e){if(t=so(t),e=xm(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return vd(t)}function at(t,e,n){try{return fl(t,e)}catch{return t}}function pl(t,e){if(t=so(t),e=xm(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return vd(t)}function lt(t,e,n){try{return pl(t,e)}catch{return t}}function W3(t,e=.15){return ph(t)>.5?fl(t,e):pl(t,e)}function Gc(t,e,n){try{return W3(t,e)}catch{return t}}function H3(t,e=166){let n;function r(...s){const a=()=>{t.apply(this,s)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function Op(t,e){var n,r,s;return R.isValidElement(t)&&e.indexOf(t.type.muiName??((s=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}function G3(t){return t&&t.ownerDocument||document}function Ev(t){return G3(t).defaultView||window}function Y3(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Av=0;function K3(t){const[e,n]=R.useState(t),r=t||e;return R.useEffect(()=>{e==null&&(Av+=1,n(`mui-${Av}`))},[e]),r}const Q3={...gu},Pv=Q3.useId;function KS(t){if(Pv!==void 0){const e=Pv();return t??e}return K3(t)}function Za(t){const e=R.useRef(t);return Ys(()=>{e.current=t}),R.useRef((...n)=>(0,e.current)(...n)).current}function hl(...t){return R.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Y3(n,e)})},t)}const Ov={};function QS(t,e){const n=R.useRef(Ov);return n.current===Ov&&(n.current=t(e)),n}const X3=[];function J3(t){R.useEffect(t,X3)}class Im{constructor(){$a(this,"currentId",null);$a(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});$a(this,"disposeEffect",()=>this.clear)}static create(){return new Im}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function q3(){const t=QS(Im.create).current;return J3(t.disposeEffect),t}function Mv(t){try{return t.matches(":focus-visible")}catch{}return!1}function yn(t,e,n=void 0){const r={};for(const s in t){const a=t[s];let c="",u=!0;for(let f=0;f<a.length;f+=1){const h=a[f];h&&(c+=(u===!0?"":" ")+e(h),u=!1,n&&n[h]&&(c+=" "+n[h]))}r[s]=c}return r}function Z3(t){return typeof t=="string"}function eR(t,e,n){return t===void 0||Z3(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function tR(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function Dv(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function nR(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:a}=t;if(!e){const C=ot(n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),w={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},_={...n,...s,...r};return C.length>0&&(_.className=C),Object.keys(w).length>0&&(_.style=w),{props:_,internalRef:void 0}}const c=tR({...s,...r}),u=Dv(r),f=Dv(s),h=e(c),y=ot(h==null?void 0:h.className,n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),g={...h==null?void 0:h.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},v={...h,...n,...f,...u};return y.length>0&&(v.className=y),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:h.ref}}function rR(t,e,n){return typeof t=="function"?t(e,n):t}const XS=R.createContext(null);function km(){return R.useContext(XS)}const iR=typeof Symbol=="function"&&Symbol.for,oR=iR?Symbol.for("mui.nested"):"__THEME_NESTED__";function sR(t,e){return typeof e=="function"?e(t):{...t,...e}}function aR(t){const{children:e,theme:n}=t,r=km(),s=R.useMemo(()=>{const a=r===null?{...n}:sR(r,n);return a!=null&&(a[oR]=r!==null),a},[n,r]);return z.jsx(XS.Provider,{value:s,children:e})}const lR=R.createContext();function cR({value:t,...e}){return z.jsx(lR.Provider,{value:t??!0,...e})}const JS=R.createContext(void 0);function uR({value:t,children:e}){return z.jsx(JS.Provider,{value:t,children:e})}function dR(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const s=e.components[n];return s.defaultProps?dl(s.defaultProps,r):!s.styleOverrides&&!s.variants?dl(s,r):r}function fR({props:t,name:e}){const n=R.useContext(JS);return dR({props:t,name:e,theme:{components:n}})}const Nv={};function Bv(t,e,n,r=!1){return R.useMemo(()=>{const s=t&&e[t]||e;if(typeof n=="function"){const a=n(s),c=t?{...e,[t]:a}:a;return r?()=>c:c}return t?{...e,[t]:n}:{...e,...n}},[t,e,n,r])}function qS(t){const{children:e,theme:n,themeId:r}=t,s=wm(Nv),a=km()||Nv,c=Bv(r,s,n),u=Bv(r,a,n,!0),f=(r?c[r]:c).direction==="rtl";return z.jsx(aR,{theme:u,children:z.jsx(kl.Provider,{value:c,children:z.jsx(cR,{value:f,children:z.jsx(uR,{value:r?c[r].components:c.components,children:e})})})})}const Lv={theme:void 0};function pR(t){let e,n;return function(s){let a=e;return(a===void 0||s.theme!==n)&&(Lv.theme=s.theme,a=jS(t(Lv)),e=a,n=s.theme),a}}const Tm="mode",Rm="color-scheme",hR="data-color-scheme";function mR(t){const{defaultMode:e="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=Tm,colorSchemeStorageKey:a=Rm,attribute:c=hR,colorSchemeNode:u="document.documentElement",nonce:f}=t||{};let h="",y=c;if(c==="class"&&(y=".%s"),c==="data"&&(y="[data-%s]"),y.startsWith(".")){const v=y.substring(1);h+=`${u}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
|
77
|
+
*/var Iv;function IT(){if(Iv)return it;Iv=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),C=Symbol.for("react.client.reference");function w(_){if(typeof _=="object"&&_!==null){var I=_.$$typeof;switch(I){case t:switch(_=_.type,_){case n:case s:case r:case f:case h:return _;default:switch(_=_&&_.$$typeof,_){case c:case u:case g:case y:return _;case a:return _;default:return I}}case e:return I}}}return it.ContextConsumer=a,it.ContextProvider=c,it.Element=t,it.ForwardRef=u,it.Fragment=n,it.Lazy=g,it.Memo=y,it.Portal=e,it.Profiler=s,it.StrictMode=r,it.Suspense=f,it.SuspenseList=h,it.isContextConsumer=function(_){return w(_)===a},it.isContextProvider=function(_){return w(_)===c},it.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},it.isForwardRef=function(_){return w(_)===u},it.isFragment=function(_){return w(_)===n},it.isLazy=function(_){return w(_)===g},it.isMemo=function(_){return w(_)===y},it.isPortal=function(_){return w(_)===e},it.isProfiler=function(_){return w(_)===s},it.isStrictMode=function(_){return w(_)===r},it.isSuspense=function(_){return w(_)===f},it.isSuspenseList=function(_){return w(_)===h},it.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===s||_===r||_===f||_===h||_===v||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===y||_.$$typeof===c||_.$$typeof===a||_.$$typeof===u||_.$$typeof===C||_.getModuleId!==void 0)},it.typeOf=w,it}var kv;function kT(){return kv||(kv=1,Rp.exports=IT()),Rp.exports}var DS=kT();function Wr(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function NS(t){if(T.isValidElement(t)||DS.isValidElementType(t)||!Wr(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=NS(t[n])}),e}function on(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Wr(t)&&Wr(e)&&Object.keys(e).forEach(s=>{T.isValidElement(e[s])||DS.isValidElementType(e[s])?r[s]=e[s]:Wr(e[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Wr(t[s])?r[s]=on(t[s],e[s],n):n.clone?r[s]=Wr(e[s])?NS(e[s]):e[s]:r[s]=e[s]}),r}const TT=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function RT(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=t,a=TT(e),c=Object.keys(a);function u(v){return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n})`}function f(v){return`@media (max-width:${(typeof e[v]=="number"?e[v]:v)-r/100}${n})`}function h(v,C){const w=c.indexOf(C);return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n}) and (max-width:${(w!==-1&&typeof e[c[w]]=="number"?e[c[w]]:C)-r/100}${n})`}function y(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):u(v)}function g(v){const C=c.indexOf(v);return C===0?u(c[1]):C===c.length-1?f(c[C]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:a,up:u,down:f,between:h,only:y,not:g,unit:n,...s}}function ET(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,s)=>{var c,u;const a=/min-width:\s*([0-9.]+)/;return+(((c=r.match(a))==null?void 0:c[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,s)=>{const a=e[s];return delete r[s],r[s]=a,r},{...e}):e}function AT(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function PT(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,s]=n,a=Number.isNaN(+r)?r||0:+r;return t.containerQueries(s).up(a)}function OT(t){const e=(a,c)=>a.replace("@media",c?`@container ${c}`:"@container");function n(a,c){a.up=(...u)=>e(t.breakpoints.up(...u),c),a.down=(...u)=>e(t.breakpoints.down(...u),c),a.between=(...u)=>e(t.breakpoints.between(...u),c),a.only=(...u)=>e(t.breakpoints.only(...u),c),a.not=(...u)=>{const f=e(t.breakpoints.not(...u),c);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const r={},s=a=>(n(r,a),r);return n(s),{...t,containerQueries:s}}const MT={borderRadius:4};function qa(t,e){return e?on(t,e,{clone:!1}):t}const ad={xs:0,sm:600,md:900,lg:1200,xl:1536},Tv={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${ad[t]}px)`},DT={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:ad[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function xr(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const a=r.breakpoints||Tv;return e.reduce((c,u,f)=>(c[a.up(a.keys[f])]=n(e[f]),c),{})}if(typeof e=="object"){const a=r.breakpoints||Tv;return Object.keys(e).reduce((c,u)=>{if(AT(a.keys,u)){const f=PT(r.containerQueries?r:DT,u);f&&(c[f]=n(e[u],u))}else if(Object.keys(a.values||ad).includes(u)){const f=a.up(u);c[f]=n(e[u],u)}else{const f=u;c[f]=e[f]}return c},{})}return n(e)}function BS(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,s)=>{const a=t.up(s);return r[a]={},r},{}))||{}}function LS(t,e){return t.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},e)}function NT(t,...e){const n=BS(t),r=[n,...e].reduce((s,a)=>on(s,a),{});return LS(Object.keys(n),r)}function BT(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((s,a)=>{a<t.length&&(n[s]=!0)}):r.forEach(s=>{t[s]!=null&&(n[s]=!0)}),n}function Ep({values:t,breakpoints:e,base:n}){const r=n||BT(t,e),s=Object.keys(r);if(s.length===0)return t;let a;return s.reduce((c,u,f)=>(Array.isArray(t)?(c[u]=t[f]!=null?t[f]:t[a],a=f):typeof t=="object"?(c[u]=t[u]!=null?t[u]:t[a],a=u):c[u]=t,c),{})}function Oe(t){if(typeof t!="string")throw new Error(io(7));return t.charAt(0).toUpperCase()+t.slice(1)}function ld(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,t);if(r!=null)return r}return e.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,t)}function Ku(t,e,n,r=n){let s;return typeof t=="function"?s=t(n):Array.isArray(t)?s=t[n]||r:s=ld(t,n)||r,e&&(s=e(s,r,t)),s}function At(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:s}=t,a=c=>{if(c[e]==null)return null;const u=c[e],f=c.theme,h=ld(f,r)||{};return xr(c,u,g=>{let v=Ku(h,s,g);return g===v&&typeof g=="string"&&(v=Ku(h,s,`${e}${g==="default"?"":Oe(g)}`,g)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[e],a}function LT(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const FT={m:"margin",p:"padding"},$T={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zT=LT(t=>{if(t.length>2)if(Rv[t])t=Rv[t];else return[t];const[e,n]=t.split(""),r=FT[e],s=$T[n]||"";return Array.isArray(s)?s.map(a=>r+a):[r+s]}),_m=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._m,...Cm];function Rl(t,e,n,r){const s=ld(t,e,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const c=Math.abs(a),u=s[c];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function cd(t){return Rl(t,"spacing",8)}function jo(t,e){return typeof e=="string"||e==null?e:t(e)}function jT(t,e){return n=>t.reduce((r,s)=>(r[s]=jo(e,n),r),{})}function UT(t,e,n,r){if(!e.includes(n))return null;const s=zT(n),a=jT(s,r),c=t[n];return xr(t,c,a)}function FS(t,e){const n=cd(t.theme);return Object.keys(t).map(r=>UT(t,e,r,n)).reduce(qa,{})}function It(t){return FS(t,_m)}It.propTypes={};It.filterProps=_m;function kt(t){return FS(t,Cm)}kt.propTypes={};kt.filterProps=Cm;function $S(t=8,e=cd({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const c=e(a);return typeof c=="number"?`${c}px`:c}).join(" ");return n.mui=!0,n}function ud(...t){const e=t.reduce((r,s)=>(s.filterProps.forEach(a=>{r[a]=s}),r),{}),n=r=>Object.keys(r).reduce((s,a)=>e[a]?qa(s,e[a](r)):s,{});return n.propTypes={},n.filterProps=t.reduce((r,s)=>r.concat(s.filterProps),[]),n}function or(t){return typeof t!="number"?t:`${t}px solid`}function cr(t,e){return At({prop:t,themeKey:"borders",transform:e})}const VT=cr("border",or),WT=cr("borderTop",or),HT=cr("borderRight",or),GT=cr("borderBottom",or),YT=cr("borderLeft",or),KT=cr("borderColor"),QT=cr("borderTopColor"),XT=cr("borderRightColor"),JT=cr("borderBottomColor"),qT=cr("borderLeftColor"),ZT=cr("outline",or),e3=cr("outlineColor"),dd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Rl(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:jo(e,r)});return xr(t,t.borderRadius,n)}return null};dd.propTypes={};dd.filterProps=["borderRadius"];ud(VT,WT,HT,GT,YT,KT,QT,XT,JT,qT,dd,ZT,e3);const fd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({gap:jo(e,r)});return xr(t,t.gap,n)}return null};fd.propTypes={};fd.filterProps=["gap"];const pd=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({columnGap:jo(e,r)});return xr(t,t.columnGap,n)}return null};pd.propTypes={};pd.filterProps=["columnGap"];const hd=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Rl(t.theme,"spacing",8),n=r=>({rowGap:jo(e,r)});return xr(t,t.rowGap,n)}return null};hd.propTypes={};hd.filterProps=["rowGap"];const t3=At({prop:"gridColumn"}),n3=At({prop:"gridRow"}),r3=At({prop:"gridAutoFlow"}),i3=At({prop:"gridAutoColumns"}),o3=At({prop:"gridAutoRows"}),s3=At({prop:"gridTemplateColumns"}),a3=At({prop:"gridTemplateRows"}),l3=At({prop:"gridTemplateAreas"}),c3=At({prop:"gridArea"});ud(fd,pd,hd,t3,n3,r3,i3,o3,s3,a3,l3,c3);function Bs(t,e){return e==="grey"?e:t}const u3=At({prop:"color",themeKey:"palette",transform:Bs}),d3=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bs}),f3=At({prop:"backgroundColor",themeKey:"palette",transform:Bs});ud(u3,d3,f3);function Vn(t){return t<=1&&t!==0?`${t*100}%`:t}const p3=At({prop:"width",transform:Vn}),wm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var s,a,c,u,f;const r=((c=(a=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:c[n])||ad[n];return r?((f=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Vn(n)}};return xr(t,t.maxWidth,e)}return null};wm.filterProps=["maxWidth"];const h3=At({prop:"minWidth",transform:Vn}),m3=At({prop:"height",transform:Vn}),y3=At({prop:"maxHeight",transform:Vn}),g3=At({prop:"minHeight",transform:Vn});At({prop:"size",cssProperty:"width",transform:Vn});At({prop:"size",cssProperty:"height",transform:Vn});const v3=At({prop:"boxSizing"});ud(p3,wm,h3,m3,y3,g3,v3);const El={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dd},color:{themeKey:"palette",transform:Bs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bs},backgroundColor:{themeKey:"palette",transform:Bs},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fd},rowGap:{style:hd},columnGap:{style:pd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:wm},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function b3(...t){const e=t.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function S3(t,e){return typeof t=="function"?t(e):t}function _3(){function t(n,r,s,a){const c={[n]:r,theme:s},u=a[n];if(!u)return{[n]:r};const{cssProperty:f=n,themeKey:h,transform:y,style:g}=u;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=ld(s,h)||{};return g?g(c):xr(c,r,w=>{let _=Ku(v,y,w);return w===_&&typeof w=="string"&&(_=Ku(v,y,`${n}${w==="default"?"":Oe(w)}`,w)),f===!1?_:{[f]:_}})}function e(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const a=s.unstable_sxConfig??El;function c(u){let f=u;if(typeof u=="function")f=u(s);else if(typeof u!="object")return u;if(!f)return null;const h=BS(s.breakpoints),y=Object.keys(h);let g=h;return Object.keys(f).forEach(v=>{const C=S3(f[v],s);if(C!=null)if(typeof C=="object")if(a[v])g=qa(g,t(v,C,s,a));else{const w=xr({theme:s},C,_=>({[v]:_}));b3(w,C)?g[v]=e({sx:C,theme:s}):g=qa(g,w)}else g=qa(g,t(v,C,s,a))}),ET(s,LS(y,g))}return Array.isArray(r)?r.map(c):c(r)}return e}const oo=_3();oo.filterProps=["sx"];function C3(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(t);return s==="&"?e:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:e})}return n.palette.mode===t?e:{}}function md(t={},...e){const{breakpoints:n={},palette:r={},spacing:s,shape:a={},...c}=t,u=RT(n),f=$S(s);let h=on({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:f,shape:{...MT,...a}},c);return h=OT(h),h.applyStyles=C3,h=e.reduce((y,g)=>on(y,g),h),h.unstable_sxConfig={...El,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return oo({sx:g,theme:this})},h}function w3(t){return Object.keys(t).length===0}function xm(t=null){const e=T.useContext(kl);return!e||w3(e)?t:e}const x3=md();function yd(t=x3){return xm(t)}function I3({styles:t,themeId:e,defaultTheme:n={}}){const r=yd(n),s=typeof t=="function"?t(e&&r[e]||r):t;return $.jsx(OS,{styles:s})}const k3=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??El;return Object.keys(t).forEach(s=>{n[s]?e.systemProps[s]=t[s]:e.otherProps[s]=t[s]}),e};function zS(t){const{sx:e,...n}=t,{systemProps:r,otherProps:s}=k3(n);let a;return Array.isArray(e)?a=[r,...e]:typeof e=="function"?a=(...c)=>{const u=e(...c);return Wr(u)?{...r,...u}:r}:a={...r,...e},{...s,sx:a}}const Ev=t=>t,T3=()=>{let t=Ev;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Ev}}},jS=T3();function US(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=US(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ot(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=US(t))&&(r&&(r+=" "),r+=e);return r}function R3(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=t,a=MS("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(oo);return T.forwardRef(function(f,h){const y=yd(n),{className:g,component:v="div",...C}=zS(f);return $.jsx(a,{as:v,ref:h,className:ot(g,s?s(r):r),theme:e&&y[e]||y,...C})})}const E3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function hn(t,e,n="Mui"){const r=E3[e];return r?`${n}-${r}`:`${jS.generate(t)}-${e}`}function mn(t,e,n="Mui"){const r={};return e.forEach(s=>{r[s]=hn(t,s,n)}),r}function VS(t){const{variants:e,...n}=t,r={variants:e,style:xv(n),isProcessed:!0};return r.style===n||e&&e.forEach(s=>{typeof s.style!="function"&&(s.style=xv(s.style))}),r}const A3=md();function Ap(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function P3(t){return t?(e,n)=>n[t]:null}function O3(t,e,n){t.theme=D3(t.theme)?n:t.theme[e]||t.theme}function cu(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>cu(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...a}=n;r=a}return WS(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function WS(t,e,n=[]){var s;let r;e:for(let a=0;a<e.length;a+=1){const c=e[a];if(typeof c.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(r))continue}else for(const u in c.props)if(t[u]!==c.props[u]&&((s=t.ownerState)==null?void 0:s[u])!==c.props[u])continue e;typeof c.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(c.style(r))):n.push(c.style)}return n}function HS(t={}){const{themeId:e,defaultTheme:n=A3,rootShouldForwardProp:r=Ap,slotShouldForwardProp:s=Ap}=t;function a(u){O3(u,e,n)}return(u,f={})=>{xT(u,O=>O.filter(z=>z!==oo));const{name:h,slot:y,skipVariantsResolver:g,skipSx:v,overridesResolver:C=P3(B3(y)),...w}=f,_=g!==void 0?g:y&&y!=="Root"&&y!=="root"||!1,I=v||!1;let P=Ap;y==="Root"||y==="root"?P=r:y?P=s:N3(u)&&(P=void 0);const L=MS(u,{shouldForwardProp:P,label:M3(),...w}),N=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(M){return cu(M,O)};if(Wr(O)){const z=VS(O);return z.variants?function(V){return cu(V,z)}:z.style}return O},E=(...O)=>{const z=[],M=O.map(N),V=[];if(z.push(a),h&&C&&V.push(function(W){var de,fe;const ae=(fe=(de=W.theme.components)==null?void 0:de[h])==null?void 0:fe.styleOverrides;if(!ae)return null;const ce={};for(const q in ae)ce[q]=cu(W,ae[q]);return C(W,ce)}),h&&!_&&V.push(function(W){var ce,de;const X=W.theme,ae=(de=(ce=X==null?void 0:X.components)==null?void 0:ce[h])==null?void 0:de.variants;return ae?WS(W,ae):null}),I||V.push(oo),Array.isArray(M[0])){const j=M.shift(),W=new Array(z.length).fill(""),X=new Array(V.length).fill("");let ae;ae=[...W,...j,...X],ae.raw=[...W,...j.raw,...X],z.unshift(ae)}const Y=[...z,...M,...V],S=L(...Y);return u.muiName&&(S.muiName=u.muiName),S};return L.withConfig&&(E.withConfig=L.withConfig),E}}function M3(t,e){return void 0}function D3(t){for(const e in t)return!1;return!0}function N3(t){return typeof t=="string"&&t.charCodeAt(0)>96}function B3(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const L3=HS();function dl(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const s=r;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=t[s],c=e[s];if(!c)n[s]=a||{};else if(!a)n[s]=c;else{n[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[s][f]=dl(a[f],c[f])}}}else n[s]===void 0&&(n[s]=t[s])}return n}function GS(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:dl(e.components[n].defaultProps,r)}function F3({props:t,name:e,defaultTheme:n,themeId:r}){let s=yd(n);return r&&(s=s[r]||s),GS({theme:s,name:e,props:t})}const Ys=typeof window<"u"?T.useLayoutEffect:T.useEffect;function $3(t,e,n,r,s){const[a,c]=T.useState(()=>s&&n?n(t).matches:r?r(t).matches:e);return Ys(()=>{if(!n)return;const u=n(t),f=()=>{c(u.matches)};return f(),u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}},[t,n]),a}const z3={...gu},YS=z3.useSyncExternalStore;function j3(t,e,n,r,s){const a=T.useCallback(()=>e,[e]),c=T.useMemo(()=>{if(s&&n)return()=>n(t).matches;if(r!==null){const{matches:y}=r(t);return()=>y}return a},[a,t,r,s,n]),[u,f]=T.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const y=n(t);return[()=>y.matches,g=>(y.addEventListener("change",g),()=>{y.removeEventListener("change",g)})]},[a,n,t]);return YS(f,u,c)}function KS(t={}){const{themeId:e}=t;return function(r,s={}){let a=xm();a&&e&&(a=a[e]||a);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:f=c?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:y=!1}=GS({name:"MuiUseMediaQuery",props:s,theme:a});let g=typeof r=="function"?r(a):r;return g=g.replace(/^@media( ?)/m,""),(YS!==void 0?j3:$3)(g,u,f,h,y)}}KS();function U3(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function Im(t,e=0,n=1){return U3(t,e,n)}function V3(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function so(t){if(t.type)return t;if(t.charAt(0)==="#")return so(V3(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(io(9,t));let r=t.substring(e+1,t.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(io(10,s))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:s}}const W3=t=>{const e=so(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ya=(t,e)=>{try{return W3(t)}catch{return t}};function gd(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((s,a)=>a<3?parseInt(s,10):s):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function QS(t){t=so(t);const{values:e}=t,n=e[0],r=e[1]/100,s=e[2]/100,a=r*Math.min(s,1-s),c=(h,y=(h+n/30)%12)=>s-a*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const f=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(u+="a",f.push(e[3])),gd({type:u,values:f})}function ph(t){t=so(t);let e=t.type==="hsl"||t.type==="hsla"?so(QS(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function H3(t,e){const n=ph(t),r=ph(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Hr(t,e){return t=so(t),e=Im(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,gd(t)}function Hc(t,e,n){try{return Hr(t,e)}catch{return t}}function fl(t,e){if(t=so(t),e=Im(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return gd(t)}function at(t,e,n){try{return fl(t,e)}catch{return t}}function pl(t,e){if(t=so(t),e=Im(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return gd(t)}function lt(t,e,n){try{return pl(t,e)}catch{return t}}function G3(t,e=.15){return ph(t)>.5?fl(t,e):pl(t,e)}function Gc(t,e,n){try{return G3(t,e)}catch{return t}}function Y3(t,e=166){let n;function r(...s){const a=()=>{t.apply(this,s)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function Pp(t,e){var n,r,s;return T.isValidElement(t)&&e.indexOf(t.type.muiName??((s=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}function K3(t){return t&&t.ownerDocument||document}function Av(t){return K3(t).defaultView||window}function Q3(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Pv=0;function X3(t){const[e,n]=T.useState(t),r=t||e;return T.useEffect(()=>{e==null&&(Pv+=1,n(`mui-${Pv}`))},[e]),r}const J3={...gu},Ov=J3.useId;function XS(t){if(Ov!==void 0){const e=Ov();return t??e}return X3(t)}function Za(t){const e=T.useRef(t);return Ys(()=>{e.current=t}),T.useRef((...n)=>(0,e.current)(...n)).current}function hl(...t){return T.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Q3(n,e)})},t)}const Mv={};function JS(t,e){const n=T.useRef(Mv);return n.current===Mv&&(n.current=t(e)),n}const q3=[];function Z3(t){T.useEffect(t,q3)}class km{constructor(){$a(this,"currentId",null);$a(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});$a(this,"disposeEffect",()=>this.clear)}static create(){return new km}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function eR(){const t=JS(km.create).current;return Z3(t.disposeEffect),t}function Dv(t){try{return t.matches(":focus-visible")}catch{}return!1}function yn(t,e,n=void 0){const r={};for(const s in t){const a=t[s];let c="",u=!0;for(let f=0;f<a.length;f+=1){const h=a[f];h&&(c+=(u===!0?"":" ")+e(h),u=!1,n&&n[h]&&(c+=" "+n[h]))}r[s]=c}return r}function tR(t){return typeof t=="string"}function nR(t,e,n){return t===void 0||tR(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function rR(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function Nv(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function iR(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:a}=t;if(!e){const C=ot(n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),w={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},_={...n,...s,...r};return C.length>0&&(_.className=C),Object.keys(w).length>0&&(_.style=w),{props:_,internalRef:void 0}}const c=rR({...s,...r}),u=Nv(r),f=Nv(s),h=e(c),y=ot(h==null?void 0:h.className,n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),g={...h==null?void 0:h.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},v={...h,...n,...f,...u};return y.length>0&&(v.className=y),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:h.ref}}function oR(t,e,n){return typeof t=="function"?t(e,n):t}const qS=T.createContext(null);function Tm(){return T.useContext(qS)}const sR=typeof Symbol=="function"&&Symbol.for,aR=sR?Symbol.for("mui.nested"):"__THEME_NESTED__";function lR(t,e){return typeof e=="function"?e(t):{...t,...e}}function cR(t){const{children:e,theme:n}=t,r=Tm(),s=T.useMemo(()=>{const a=r===null?{...n}:lR(r,n);return a!=null&&(a[aR]=r!==null),a},[n,r]);return $.jsx(qS.Provider,{value:s,children:e})}const uR=T.createContext();function dR({value:t,...e}){return $.jsx(uR.Provider,{value:t??!0,...e})}const ZS=T.createContext(void 0);function fR({value:t,children:e}){return $.jsx(ZS.Provider,{value:t,children:e})}function pR(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const s=e.components[n];return s.defaultProps?dl(s.defaultProps,r):!s.styleOverrides&&!s.variants?dl(s,r):r}function hR({props:t,name:e}){const n=T.useContext(ZS);return pR({props:t,name:e,theme:{components:n}})}const Bv={};function Lv(t,e,n,r=!1){return T.useMemo(()=>{const s=t&&e[t]||e;if(typeof n=="function"){const a=n(s),c=t?{...e,[t]:a}:a;return r?()=>c:c}return t?{...e,[t]:n}:{...e,...n}},[t,e,n,r])}function e2(t){const{children:e,theme:n,themeId:r}=t,s=xm(Bv),a=Tm()||Bv,c=Lv(r,s,n),u=Lv(r,a,n,!0),f=(r?c[r]:c).direction==="rtl";return $.jsx(cR,{theme:u,children:$.jsx(kl.Provider,{value:c,children:$.jsx(dR,{value:f,children:$.jsx(fR,{value:r?c[r].components:c.components,children:e})})})})}const Fv={theme:void 0};function mR(t){let e,n;return function(s){let a=e;return(a===void 0||s.theme!==n)&&(Fv.theme=s.theme,a=VS(t(Fv)),e=a,n=s.theme),a}}const Rm="mode",Em="color-scheme",yR="data-color-scheme";function gR(t){const{defaultMode:e="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=Rm,colorSchemeStorageKey:a=Em,attribute:c=yR,colorSchemeNode:u="document.documentElement",nonce:f}=t||{};let h="",y=c;if(c==="class"&&(y=".%s"),c==="data"&&(y="[data-%s]"),y.startsWith(".")){const v=y.substring(1);h+=`${u}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
|
78
78
|
${u}.classList.add('${v}'.replace('%s', colorScheme));`}const g=y.match(/\[([^\]]+)\]/);if(g){const[v,C]=g[1].split("=");C||(h+=`${u}.removeAttribute('${v}'.replace('%s', light));
|
79
79
|
${u}.removeAttribute('${v}'.replace('%s', dark));`),h+=`
|
80
|
-
${u}.setAttribute('${v}'.replace('%s', colorScheme), ${C?`${C}.replace('%s', colorScheme)`:'""'});`}else h+=`${u}.setAttribute('${y}', colorScheme);`;return
|
80
|
+
${u}.setAttribute('${v}'.replace('%s', colorScheme), ${C?`${C}.replace('%s', colorScheme)`:'""'});`}else h+=`${u}.setAttribute('${y}', colorScheme);`;return $.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(function() {
|
81
81
|
try {
|
82
82
|
let colorScheme = '';
|
83
83
|
const mode = localStorage.getItem('${s}') || '${e}';
|
@@ -101,14 +101,14 @@ try {
|
|
101
101
|
if (colorScheme) {
|
102
102
|
${h}
|
103
103
|
}
|
104
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function yR(){}const gR=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(n){if(typeof window>"u")return;if(!e)return n;let r;try{r=e.localStorage.getItem(t)}catch{}return r||n},set:n=>{if(e)try{e.localStorage.setItem(t,n)}catch{}},subscribe:n=>{if(!e)return yR;const r=s=>{const a=s.newValue;s.key===t&&n(a)};return e.addEventListener("storage",r),()=>{e.removeEventListener("storage",r)}}});function Mp(){}function Fv(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function ZS(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function vR(t){return ZS(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function bR(t){const{defaultMode:e="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:a=Tm,colorSchemeStorageKey:c=Rm,storageWindow:u=typeof window>"u"?void 0:window,storageManager:f=gR,noSsr:h=!1}=t,y=s.join(","),g=s.length>1,v=R.useMemo(()=>f==null?void 0:f({key:a,storageWindow:u}),[f,a,u]),C=R.useMemo(()=>f==null?void 0:f({key:`${c}-light`,storageWindow:u}),[f,c,u]),w=R.useMemo(()=>f==null?void 0:f({key:`${c}-dark`,storageWindow:u}),[f,c,u]),[_,I]=R.useState(()=>{const V=(v==null?void 0:v.get(e))||e,Y=(C==null?void 0:C.get(n))||n,S=(w==null?void 0:w.get(r))||r;return{mode:V,systemMode:Fv(V),lightColorScheme:Y,darkColorScheme:S}}),[P,L]=R.useState(h||!g);R.useEffect(()=>{L(!0)},[]);const B=vR(_),A=R.useCallback(V=>{I(Y=>{if(V===Y.mode)return Y;const S=V??e;return v==null||v.set(S),{...Y,mode:S,systemMode:Fv(S)}})},[v,e]),O=R.useCallback(V=>{V?typeof V=="string"?V&&!y.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):I(Y=>{const S={...Y};return ZS(Y,j=>{j==="light"&&(C==null||C.set(V),S.lightColorScheme=V),j==="dark"&&(w==null||w.set(V),S.darkColorScheme=V)}),S}):I(Y=>{const S={...Y},j=V.light===null?n:V.light,W=V.dark===null?r:V.dark;return j&&(y.includes(j)?(S.lightColorScheme=j,C==null||C.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),W&&(y.includes(W)?(S.darkColorScheme=W,w==null||w.set(W)):console.error(`\`${W}\` does not exist in \`theme.colorSchemes\`.`)),S}):I(Y=>(C==null||C.set(n),w==null||w.set(r),{...Y,lightColorScheme:n,darkColorScheme:r}))},[y,C,w,n,r]),F=R.useCallback(V=>{_.mode==="system"&&I(Y=>{const S=V!=null&&V.matches?"dark":"light";return Y.systemMode===S?Y:{...Y,systemMode:S}})},[_.mode]),M=R.useRef(F);return M.current=F,R.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const V=(...S)=>M.current(...S),Y=window.matchMedia("(prefers-color-scheme: dark)");return Y.addListener(V),V(Y),()=>{Y.removeListener(V)}},[g]),R.useEffect(()=>{if(g){const V=(v==null?void 0:v.subscribe(j=>{(!j||["light","dark","system"].includes(j))&&A(j||e)}))||Mp,Y=(C==null?void 0:C.subscribe(j=>{(!j||y.match(j))&&O({light:j})}))||Mp,S=(w==null?void 0:w.subscribe(j=>{(!j||y.match(j))&&O({dark:j})}))||Mp;return()=>{V(),Y(),S()}}},[O,A,y,e,u,g,v,C,w]),{..._,mode:P?_.mode:void 0,systemMode:P?_.systemMode:void 0,colorScheme:P?B:void 0,setMode:A,setColorScheme:O}}const SR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function _R(t){const{themeId:e,theme:n={},modeStorageKey:r=Tm,colorSchemeStorageKey:s=Rm,disableTransitionOnChange:a=!1,defaultColorScheme:c,resolveTheme:u}=t,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=R.createContext(void 0),y=()=>R.useContext(h)||f,g={},v={};function C(P){var an,ho,ei,ti;const{children:L,theme:B,modeStorageKey:A=r,colorSchemeStorageKey:O=s,disableTransitionOnChange:F=a,storageManager:M,storageWindow:V=typeof window>"u"?void 0:window,documentNode:Y=typeof document>"u"?void 0:document,colorSchemeNode:S=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:W=!1,defaultMode:X="system",noSsr:ae}=P,ce=R.useRef(!1),de=km(),fe=R.useContext(h),q=!!fe&&!j,te=R.useMemo(()=>B||(typeof n=="function"?n():n),[B]),ne=te[e],T=ne||te,{colorSchemes:G=g,components:ue=v,cssVarPrefix:ge}=T,De=Object.keys(G).filter(vt=>!!G[vt]).join(","),xe=R.useMemo(()=>De.split(","),[De]),$e=typeof c=="string"?c:c.light,Ne=typeof c=="string"?c:c.dark,je=G[$e]&&G[Ne]?X:((ho=(an=G[T.defaultColorScheme])==null?void 0:an.palette)==null?void 0:ho.mode)||((ei=T.palette)==null?void 0:ei.mode),{mode:Bt,setMode:ur,systemMode:dr,lightColorScheme:Dn,darkColorScheme:Je,colorScheme:jt,setColorScheme:fr}=bR({supportedColorSchemes:xe,defaultLightColorScheme:$e,defaultDarkColorScheme:Ne,modeStorageKey:A,colorSchemeStorageKey:O,defaultMode:je,storageManager:M,storageWindow:V,noSsr:ae});let Qt=Bt,st=jt;q&&(Qt=fe.mode,st=fe.colorScheme);const Nn=R.useMemo(()=>{var He;const vt=st||T.defaultColorScheme,Tt=((He=T.generateThemeVars)==null?void 0:He.call(T))||T.vars,wt={...T,components:ue,colorSchemes:G,cssVarPrefix:ge,vars:Tt};if(typeof wt.generateSpacing=="function"&&(wt.spacing=wt.generateSpacing()),vt){const Jt=G[vt];Jt&&typeof Jt=="object"&&Object.keys(Jt).forEach(ln=>{Jt[ln]&&typeof Jt[ln]=="object"?wt[ln]={...wt[ln],...Jt[ln]}:wt[ln]=Jt[ln]})}return u?u(wt):wt},[T,st,ue,G,ge]),Xt=T.colorSchemeSelector;Ys(()=>{if(st&&S&&Xt&&Xt!=="media"){const vt=Xt;let Tt=Xt;if(vt==="class"&&(Tt=".%s"),vt==="data"&&(Tt="[data-%s]"),vt!=null&&vt.startsWith("data-")&&!vt.includes("%s")&&(Tt=`[${vt}="%s"]`),Tt.startsWith("."))S.classList.remove(...xe.map(wt=>Tt.substring(1).replace("%s",wt))),S.classList.add(Tt.substring(1).replace("%s",st));else{const wt=Tt.replace("%s",st).match(/\[([^\]]+)\]/);if(wt){const[He,Jt]=wt[1].split("=");Jt||xe.forEach(ln=>{S.removeAttribute(He.replace(st,ln))}),S.setAttribute(He,Jt?Jt.replace(/"|'/g,""):"")}else S.setAttribute(Tt,st)}}},[st,Xt,S,xe]),R.useEffect(()=>{let vt;if(F&&ce.current&&Y){const Tt=Y.createElement("style");Tt.appendChild(Y.createTextNode(SR)),Y.head.appendChild(Tt),window.getComputedStyle(Y.body),vt=setTimeout(()=>{Y.head.removeChild(Tt)},1)}return()=>{clearTimeout(vt)}},[st,F,Y]),R.useEffect(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const Yn=R.useMemo(()=>({allColorSchemes:xe,colorScheme:st,darkColorScheme:Je,lightColorScheme:Dn,mode:Qt,setColorScheme:fr,setMode:ur,systemMode:dr}),[xe,st,Je,Dn,Qt,fr,ur,dr,Nn.colorSchemeSelector]);let me=!0;(W||T.cssVariables===!1||q&&(de==null?void 0:de.cssVarPrefix)===ge)&&(me=!1);const Zr=z.jsxs(R.Fragment,{children:[z.jsx(qS,{themeId:ne?e:void 0,theme:Nn,children:L}),me&&z.jsx(AS,{styles:((ti=Nn.generateStyleSheets)==null?void 0:ti.call(Nn))||[]})]});return q?Zr:z.jsx(h.Provider,{value:Yn,children:Zr})}const w=typeof c=="string"?c:c.light,_=typeof c=="string"?c:c.dark;return{CssVarsProvider:C,useColorScheme:y,getInitColorSchemeScript:P=>mR({colorSchemeStorageKey:s,defaultLightColorScheme:w,defaultDarkColorScheme:_,modeStorageKey:r,...P})}}function CR(t=""){function e(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${e(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${t?`${t}-`:""}${r}${e(...s)})`}const $v=(t,e,n,r=[])=>{let s=t;e.forEach((a,c)=>{c===e.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=r.includes(a)?[]:{}),s=s[a])})},wR=(t,e,n)=>{function r(s,a=[],c=[]){Object.entries(s).forEach(([u,f])=>{(!n||n&&!n([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?r(f,[...a,u],Array.isArray(f)?[...c,u]:c):e([...a,u],f,c))})}r(t)},xR=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Dp(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},s={},a={},c={};return wR(t,(u,f,h)=>{if((typeof f=="string"||typeof f=="number")&&(!r||!r(u,f))){const y=`--${n?`${n}-`:""}${u.join("-")}`,g=xR(u,f);Object.assign(s,{[y]:g}),$v(a,u,`var(${y})`,h),$v(c,u,`var(${y}, ${g})`,h)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:c}}function IR(t,e={}){const{getSelector:n=I,disableCssColorScheme:r,colorSchemeSelector:s}=e,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...f}=t,{vars:h,css:y,varsWithDefaults:g}=Dp(f,e);let v=g;const C={},{[u]:w,..._}=a;if(Object.entries(_||{}).forEach(([B,A])=>{const{vars:O,css:F,varsWithDefaults:M}=Dp(A,e);v=on(v,M),C[B]={css:F,vars:O}}),w){const{css:B,vars:A,varsWithDefaults:O}=Dp(w,e);v=on(v,O),C[u]={css:B,vars:A}}function I(B,A){var F,M;let O=s;if(s==="class"&&(O=".%s"),s==="data"&&(O="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(O=`[${s}="%s"]`),B){if(O==="media")return t.defaultColorScheme===B?":root":{[`@media (prefers-color-scheme: ${((M=(F=a[B])==null?void 0:F.palette)==null?void 0:M.mode)||B})`]:{":root":A}};if(O)return t.defaultColorScheme===B?`:root, ${O.replace("%s",String(B))}`:O.replace("%s",String(B))}return":root"}return{vars:v,generateThemeVars:()=>{let B={...h};return Object.entries(C).forEach(([,{vars:A}])=>{B=on(B,A)}),B},generateStyleSheets:()=>{var V,Y;const B=[],A=t.defaultColorScheme||"light";function O(S,j){Object.keys(j).length&&B.push(typeof S=="string"?{[S]:{...j}}:S)}O(n(void 0,{...y}),y);const{[A]:F,...M}=C;if(F){const{css:S}=F,j=(Y=(V=a[A])==null?void 0:V.palette)==null?void 0:Y.mode,W=!r&&j?{colorScheme:j,...S}:{...S};O(n(A,{...W}),W)}return Object.entries(M).forEach(([S,{css:j}])=>{var ae,ce;const W=(ce=(ae=a[S])==null?void 0:ae.palette)==null?void 0:ce.mode,X=!r&&W?{colorScheme:W,...j}:{...j};O(n(S,{...X}),X)}),B}}}function kR(t){return function(n){return t==="media"?`@media (prefers-color-scheme: ${n})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const TR=yd(),RR=N3("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function ER(t){return B3({props:t,name:"MuiStack",defaultTheme:TR})}function AR(t,e){const n=R.Children.toArray(t).filter(Boolean);return n.reduce((r,s,a)=>(r.push(s),a<n.length-1&&r.push(R.cloneElement(e,{key:`separator-${a}`})),r),[])}const PR=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],OR=({ownerState:t,theme:e})=>{let n={display:"flex",flexDirection:"column",...xr({theme:e},Ap({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r}))};if(t.spacing){const r=ud(e),s=Object.keys(e.breakpoints.values).reduce((f,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(f[h]=!0),f),{}),a=Ap({values:t.direction,base:s}),c=Ap({values:t.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((f,h,y)=>{if(!a[f]){const v=h>0?a[y[h-1]]:"column";a[f]=v}}),n=on(n,xr({theme:e},c,(f,h)=>t.useFlexGap?{gap:jo(r,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${PR(h?a[h]:t.direction)}`]:jo(r,f)}}))}return n=MT(e.breakpoints,n),n};function MR(t={}){const{createStyledComponent:e=RR,useThemeProps:n=ER,componentName:r="MuiStack"}=t,s=()=>yn({root:["root"]},f=>hn(r,f),{}),a=e(OR);return R.forwardRef(function(f,h){const y=n(f),g=FS(y),{component:v="div",direction:C="column",spacing:w=0,divider:_,children:I,className:P,useFlexGap:L=!1,...B}=g,A={direction:C,spacing:w,useFlexGap:L},O=s();return z.jsx(a,{as:v,ownerState:A,ref:h,className:ot(O.root,P),...B,children:_?AR(I,_):I})})}const ml={black:"#000",white:"#fff"},DR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ms={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ys={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Va={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},bs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function e2(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ml.white,default:ml.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const NR=e2();function t2(){return{text:{primary:ml.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ml.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const zv=t2();function jv(t,e,n,r){const s=r.light||r,a=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=pl(t.main,s):e==="dark"&&(t.dark=fl(t.main,a)))}function BR(t="light"){return t==="dark"?{main:gs[200],light:gs[50],dark:gs[400]}:{main:gs[700],light:gs[400],dark:gs[800]}}function LR(t="light"){return t==="dark"?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[500],light:ms[300],dark:ms[700]}}function FR(t="light"){return t==="dark"?{main:ys[500],light:ys[300],dark:ys[700]}:{main:ys[700],light:ys[400],dark:ys[800]}}function $R(t="light"){return t==="dark"?{main:vs[400],light:vs[300],dark:vs[700]}:{main:vs[700],light:vs[500],dark:vs[900]}}function zR(t="light"){return t==="dark"?{main:bs[400],light:bs[300],dark:bs[700]}:{main:bs[800],light:bs[500],dark:bs[900]}}function jR(t="light"){return t==="dark"?{main:Va[400],light:Va[300],dark:Va[700]}:{main:"#ed6c02",light:Va[500],dark:Va[900]}}function Em(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=t,a=t.primary||BR(e),c=t.secondary||LR(e),u=t.error||FR(e),f=t.info||$R(e),h=t.success||zR(e),y=t.warning||jR(e);function g(_){return V3(_,zv.text.primary)>=n?zv.text.primary:NR.text.primary}const v=({color:_,name:I,mainShade:P=500,lightShade:L=300,darkShade:B=700})=>{if(_={..._},!_.main&&_[P]&&(_.main=_[P]),!_.hasOwnProperty("main"))throw new Error(io(11,I?` (${I})`:"",P));if(typeof _.main!="string")throw new Error(io(12,I?` (${I})`:"",JSON.stringify(_.main)));return jv(_,"light",L,r),jv(_,"dark",B,r),_.contrastText||(_.contrastText=g(_.main)),_};let C;return e==="light"?C=e2():e==="dark"&&(C=t2()),on({common:{...ml},mode:e,primary:v({color:a,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:u,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:h,name:"success"}),grey:DR,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r,...C},s)}function UR(t){const e={};return Object.entries(t).forEach(r=>{const[s,a]=r;typeof a=="object"&&(e[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function VR(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function WR(t){return Math.round(t*1e5)/1e5}const Uv={textTransform:"uppercase"},Vv='"Roboto", "Helvetica", "Arial", sans-serif';function n2(t,e){const{fontFamily:n=Vv,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:h,pxToRem:y,...g}=typeof e=="function"?e(t):e,v=r/14,C=y||(I=>`${I/f*v}rem`),w=(I,P,L,B,A)=>({fontFamily:n,fontWeight:I,fontSize:C(P),lineHeight:L,...n===Vv?{letterSpacing:`${WR(B/P)}em`}:{},...A,...h}),_={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(c,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(c,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(c,14,1.75,.4,Uv),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,Uv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return on({htmlFontSize:f,pxToRem:C,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u,..._},g,{clone:!1})}const HR=.2,GR=.14,YR=.12;function gt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${HR})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${GR})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${YR})`].join(",")}const KR=["none",gt(0,2,1,-1,0,1,1,0,0,1,3,0),gt(0,3,1,-2,0,2,2,0,0,1,5,0),gt(0,3,3,-2,0,3,4,0,0,1,8,0),gt(0,2,4,-1,0,4,5,0,0,1,10,0),gt(0,3,5,-1,0,5,8,0,0,1,14,0),gt(0,3,5,-1,0,6,10,0,0,1,18,0),gt(0,4,5,-2,0,7,10,1,0,2,16,1),gt(0,5,5,-3,0,8,10,1,0,3,14,2),gt(0,5,6,-3,0,9,12,1,0,3,16,2),gt(0,6,6,-3,0,10,14,1,0,4,18,3),gt(0,6,7,-4,0,11,15,1,0,4,20,3),gt(0,7,8,-4,0,12,17,2,0,5,22,4),gt(0,7,8,-4,0,13,19,2,0,5,24,4),gt(0,7,9,-4,0,14,21,2,0,5,26,4),gt(0,8,9,-5,0,15,22,2,0,6,28,5),gt(0,8,10,-5,0,16,24,2,0,6,30,5),gt(0,8,11,-5,0,17,26,2,0,6,32,5),gt(0,9,11,-5,0,18,28,2,0,7,34,6),gt(0,9,12,-6,0,19,29,2,0,7,36,6),gt(0,10,13,-6,0,20,31,3,0,8,38,7),gt(0,10,13,-6,0,21,33,3,0,8,40,7),gt(0,10,14,-6,0,22,35,3,0,8,42,7),gt(0,11,14,-7,0,23,36,3,0,9,44,8),gt(0,11,15,-7,0,24,38,3,0,9,46,8)],QR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},XR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wv(t){return`${Math.round(t)}ms`}function JR(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function qR(t){const e={...QR,...t.easing},n={...XR,...t.duration};return{getAutoHeightDuration:JR,create:(s=["all"],a={})=>{const{duration:c=n.standard,easing:u=e.easeInOut,delay:f=0,...h}=a;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof c=="string"?c:Wv(c)} ${u} ${typeof f=="string"?f:Wv(f)}`).join(",")},...t,easing:e,duration:n}}const ZR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eE(t){return Wr(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function r2(t={}){const e={...t};function n(r){const s=Object.entries(r);for(let a=0;a<s.length;a++){const[c,u]=s[a];!eE(u)||c.startsWith("unstable_")?delete r[c]:Wr(u)&&(r[c]={...u},n(r[c]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
104
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function vR(){}const bR=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(n){if(typeof window>"u")return;if(!e)return n;let r;try{r=e.localStorage.getItem(t)}catch{}return r||n},set:n=>{if(e)try{e.localStorage.setItem(t,n)}catch{}},subscribe:n=>{if(!e)return vR;const r=s=>{const a=s.newValue;s.key===t&&n(a)};return e.addEventListener("storage",r),()=>{e.removeEventListener("storage",r)}}});function Op(){}function $v(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function t2(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function SR(t){return t2(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function _R(t){const{defaultMode:e="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:a=Rm,colorSchemeStorageKey:c=Em,storageWindow:u=typeof window>"u"?void 0:window,storageManager:f=bR,noSsr:h=!1}=t,y=s.join(","),g=s.length>1,v=T.useMemo(()=>f==null?void 0:f({key:a,storageWindow:u}),[f,a,u]),C=T.useMemo(()=>f==null?void 0:f({key:`${c}-light`,storageWindow:u}),[f,c,u]),w=T.useMemo(()=>f==null?void 0:f({key:`${c}-dark`,storageWindow:u}),[f,c,u]),[_,I]=T.useState(()=>{const V=(v==null?void 0:v.get(e))||e,Y=(C==null?void 0:C.get(n))||n,S=(w==null?void 0:w.get(r))||r;return{mode:V,systemMode:$v(V),lightColorScheme:Y,darkColorScheme:S}}),[P,L]=T.useState(h||!g);T.useEffect(()=>{L(!0)},[]);const N=SR(_),E=T.useCallback(V=>{I(Y=>{if(V===Y.mode)return Y;const S=V??e;return v==null||v.set(S),{...Y,mode:S,systemMode:$v(S)}})},[v,e]),O=T.useCallback(V=>{V?typeof V=="string"?V&&!y.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):I(Y=>{const S={...Y};return t2(Y,j=>{j==="light"&&(C==null||C.set(V),S.lightColorScheme=V),j==="dark"&&(w==null||w.set(V),S.darkColorScheme=V)}),S}):I(Y=>{const S={...Y},j=V.light===null?n:V.light,W=V.dark===null?r:V.dark;return j&&(y.includes(j)?(S.lightColorScheme=j,C==null||C.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),W&&(y.includes(W)?(S.darkColorScheme=W,w==null||w.set(W)):console.error(`\`${W}\` does not exist in \`theme.colorSchemes\`.`)),S}):I(Y=>(C==null||C.set(n),w==null||w.set(r),{...Y,lightColorScheme:n,darkColorScheme:r}))},[y,C,w,n,r]),z=T.useCallback(V=>{_.mode==="system"&&I(Y=>{const S=V!=null&&V.matches?"dark":"light";return Y.systemMode===S?Y:{...Y,systemMode:S}})},[_.mode]),M=T.useRef(z);return M.current=z,T.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const V=(...S)=>M.current(...S),Y=window.matchMedia("(prefers-color-scheme: dark)");return Y.addListener(V),V(Y),()=>{Y.removeListener(V)}},[g]),T.useEffect(()=>{if(g){const V=(v==null?void 0:v.subscribe(j=>{(!j||["light","dark","system"].includes(j))&&E(j||e)}))||Op,Y=(C==null?void 0:C.subscribe(j=>{(!j||y.match(j))&&O({light:j})}))||Op,S=(w==null?void 0:w.subscribe(j=>{(!j||y.match(j))&&O({dark:j})}))||Op;return()=>{V(),Y(),S()}}},[O,E,y,e,u,g,v,C,w]),{..._,mode:P?_.mode:void 0,systemMode:P?_.systemMode:void 0,colorScheme:P?N:void 0,setMode:E,setColorScheme:O}}const CR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function wR(t){const{themeId:e,theme:n={},modeStorageKey:r=Rm,colorSchemeStorageKey:s=Em,disableTransitionOnChange:a=!1,defaultColorScheme:c,resolveTheme:u}=t,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=T.createContext(void 0),y=()=>T.useContext(h)||f,g={},v={};function C(P){var an,ho,ei,ti;const{children:L,theme:N,modeStorageKey:E=r,colorSchemeStorageKey:O=s,disableTransitionOnChange:z=a,storageManager:M,storageWindow:V=typeof window>"u"?void 0:window,documentNode:Y=typeof document>"u"?void 0:document,colorSchemeNode:S=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:W=!1,defaultMode:X="system",noSsr:ae}=P,ce=T.useRef(!1),de=Tm(),fe=T.useContext(h),q=!!fe&&!j,te=T.useMemo(()=>N||(typeof n=="function"?n():n),[N]),ne=te[e],R=ne||te,{colorSchemes:G=g,components:ue=v,cssVarPrefix:ge}=R,De=Object.keys(G).filter(vt=>!!G[vt]).join(","),xe=T.useMemo(()=>De.split(","),[De]),$e=typeof c=="string"?c:c.light,Ne=typeof c=="string"?c:c.dark,je=G[$e]&&G[Ne]?X:((ho=(an=G[R.defaultColorScheme])==null?void 0:an.palette)==null?void 0:ho.mode)||((ei=R.palette)==null?void 0:ei.mode),{mode:Bt,setMode:ur,systemMode:dr,lightColorScheme:Dn,darkColorScheme:Je,colorScheme:jt,setColorScheme:fr}=_R({supportedColorSchemes:xe,defaultLightColorScheme:$e,defaultDarkColorScheme:Ne,modeStorageKey:E,colorSchemeStorageKey:O,defaultMode:je,storageManager:M,storageWindow:V,noSsr:ae});let Qt=Bt,st=jt;q&&(Qt=fe.mode,st=fe.colorScheme);const Nn=T.useMemo(()=>{var He;const vt=st||R.defaultColorScheme,Tt=((He=R.generateThemeVars)==null?void 0:He.call(R))||R.vars,wt={...R,components:ue,colorSchemes:G,cssVarPrefix:ge,vars:Tt};if(typeof wt.generateSpacing=="function"&&(wt.spacing=wt.generateSpacing()),vt){const Jt=G[vt];Jt&&typeof Jt=="object"&&Object.keys(Jt).forEach(ln=>{Jt[ln]&&typeof Jt[ln]=="object"?wt[ln]={...wt[ln],...Jt[ln]}:wt[ln]=Jt[ln]})}return u?u(wt):wt},[R,st,ue,G,ge]),Xt=R.colorSchemeSelector;Ys(()=>{if(st&&S&&Xt&&Xt!=="media"){const vt=Xt;let Tt=Xt;if(vt==="class"&&(Tt=".%s"),vt==="data"&&(Tt="[data-%s]"),vt!=null&&vt.startsWith("data-")&&!vt.includes("%s")&&(Tt=`[${vt}="%s"]`),Tt.startsWith("."))S.classList.remove(...xe.map(wt=>Tt.substring(1).replace("%s",wt))),S.classList.add(Tt.substring(1).replace("%s",st));else{const wt=Tt.replace("%s",st).match(/\[([^\]]+)\]/);if(wt){const[He,Jt]=wt[1].split("=");Jt||xe.forEach(ln=>{S.removeAttribute(He.replace(st,ln))}),S.setAttribute(He,Jt?Jt.replace(/"|'/g,""):"")}else S.setAttribute(Tt,st)}}},[st,Xt,S,xe]),T.useEffect(()=>{let vt;if(z&&ce.current&&Y){const Tt=Y.createElement("style");Tt.appendChild(Y.createTextNode(CR)),Y.head.appendChild(Tt),window.getComputedStyle(Y.body),vt=setTimeout(()=>{Y.head.removeChild(Tt)},1)}return()=>{clearTimeout(vt)}},[st,z,Y]),T.useEffect(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const Yn=T.useMemo(()=>({allColorSchemes:xe,colorScheme:st,darkColorScheme:Je,lightColorScheme:Dn,mode:Qt,setColorScheme:fr,setMode:ur,systemMode:dr}),[xe,st,Je,Dn,Qt,fr,ur,dr,Nn.colorSchemeSelector]);let me=!0;(W||R.cssVariables===!1||q&&(de==null?void 0:de.cssVarPrefix)===ge)&&(me=!1);const Zr=$.jsxs(T.Fragment,{children:[$.jsx(e2,{themeId:ne?e:void 0,theme:Nn,children:L}),me&&$.jsx(OS,{styles:((ti=Nn.generateStyleSheets)==null?void 0:ti.call(Nn))||[]})]});return q?Zr:$.jsx(h.Provider,{value:Yn,children:Zr})}const w=typeof c=="string"?c:c.light,_=typeof c=="string"?c:c.dark;return{CssVarsProvider:C,useColorScheme:y,getInitColorSchemeScript:P=>gR({colorSchemeStorageKey:s,defaultLightColorScheme:w,defaultDarkColorScheme:_,modeStorageKey:r,...P})}}function xR(t=""){function e(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${e(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${t?`${t}-`:""}${r}${e(...s)})`}const zv=(t,e,n,r=[])=>{let s=t;e.forEach((a,c)=>{c===e.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=r.includes(a)?[]:{}),s=s[a])})},IR=(t,e,n)=>{function r(s,a=[],c=[]){Object.entries(s).forEach(([u,f])=>{(!n||n&&!n([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?r(f,[...a,u],Array.isArray(f)?[...c,u]:c):e([...a,u],f,c))})}r(t)},kR=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Mp(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},s={},a={},c={};return IR(t,(u,f,h)=>{if((typeof f=="string"||typeof f=="number")&&(!r||!r(u,f))){const y=`--${n?`${n}-`:""}${u.join("-")}`,g=kR(u,f);Object.assign(s,{[y]:g}),zv(a,u,`var(${y})`,h),zv(c,u,`var(${y}, ${g})`,h)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:c}}function TR(t,e={}){const{getSelector:n=I,disableCssColorScheme:r,colorSchemeSelector:s}=e,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...f}=t,{vars:h,css:y,varsWithDefaults:g}=Mp(f,e);let v=g;const C={},{[u]:w,..._}=a;if(Object.entries(_||{}).forEach(([N,E])=>{const{vars:O,css:z,varsWithDefaults:M}=Mp(E,e);v=on(v,M),C[N]={css:z,vars:O}}),w){const{css:N,vars:E,varsWithDefaults:O}=Mp(w,e);v=on(v,O),C[u]={css:N,vars:E}}function I(N,E){var z,M;let O=s;if(s==="class"&&(O=".%s"),s==="data"&&(O="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(O=`[${s}="%s"]`),N){if(O==="media")return t.defaultColorScheme===N?":root":{[`@media (prefers-color-scheme: ${((M=(z=a[N])==null?void 0:z.palette)==null?void 0:M.mode)||N})`]:{":root":E}};if(O)return t.defaultColorScheme===N?`:root, ${O.replace("%s",String(N))}`:O.replace("%s",String(N))}return":root"}return{vars:v,generateThemeVars:()=>{let N={...h};return Object.entries(C).forEach(([,{vars:E}])=>{N=on(N,E)}),N},generateStyleSheets:()=>{var V,Y;const N=[],E=t.defaultColorScheme||"light";function O(S,j){Object.keys(j).length&&N.push(typeof S=="string"?{[S]:{...j}}:S)}O(n(void 0,{...y}),y);const{[E]:z,...M}=C;if(z){const{css:S}=z,j=(Y=(V=a[E])==null?void 0:V.palette)==null?void 0:Y.mode,W=!r&&j?{colorScheme:j,...S}:{...S};O(n(E,{...W}),W)}return Object.entries(M).forEach(([S,{css:j}])=>{var ae,ce;const W=(ce=(ae=a[S])==null?void 0:ae.palette)==null?void 0:ce.mode,X=!r&&W?{colorScheme:W,...j}:{...j};O(n(S,{...X}),X)}),N}}}function RR(t){return function(n){return t==="media"?`@media (prefers-color-scheme: ${n})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const ER=md(),AR=L3("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function PR(t){return F3({props:t,name:"MuiStack",defaultTheme:ER})}function OR(t,e){const n=T.Children.toArray(t).filter(Boolean);return n.reduce((r,s,a)=>(r.push(s),a<n.length-1&&r.push(T.cloneElement(e,{key:`separator-${a}`})),r),[])}const MR=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],DR=({ownerState:t,theme:e})=>{let n={display:"flex",flexDirection:"column",...xr({theme:e},Ep({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r}))};if(t.spacing){const r=cd(e),s=Object.keys(e.breakpoints.values).reduce((f,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(f[h]=!0),f),{}),a=Ep({values:t.direction,base:s}),c=Ep({values:t.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((f,h,y)=>{if(!a[f]){const v=h>0?a[y[h-1]]:"column";a[f]=v}}),n=on(n,xr({theme:e},c,(f,h)=>t.useFlexGap?{gap:jo(r,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${MR(h?a[h]:t.direction)}`]:jo(r,f)}}))}return n=NT(e.breakpoints,n),n};function NR(t={}){const{createStyledComponent:e=AR,useThemeProps:n=PR,componentName:r="MuiStack"}=t,s=()=>yn({root:["root"]},f=>hn(r,f),{}),a=e(DR);return T.forwardRef(function(f,h){const y=n(f),g=zS(y),{component:v="div",direction:C="column",spacing:w=0,divider:_,children:I,className:P,useFlexGap:L=!1,...N}=g,E={direction:C,spacing:w,useFlexGap:L},O=s();return $.jsx(a,{as:v,ownerState:E,ref:h,className:ot(O.root,P),...N,children:_?OR(I,_):I})})}const ml={black:"#000",white:"#fff"},BR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ms={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ys={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Va={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},bs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function n2(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ml.white,default:ml.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const LR=n2();function r2(){return{text:{primary:ml.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ml.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const jv=r2();function Uv(t,e,n,r){const s=r.light||r,a=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=pl(t.main,s):e==="dark"&&(t.dark=fl(t.main,a)))}function FR(t="light"){return t==="dark"?{main:gs[200],light:gs[50],dark:gs[400]}:{main:gs[700],light:gs[400],dark:gs[800]}}function $R(t="light"){return t==="dark"?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[500],light:ms[300],dark:ms[700]}}function zR(t="light"){return t==="dark"?{main:ys[500],light:ys[300],dark:ys[700]}:{main:ys[700],light:ys[400],dark:ys[800]}}function jR(t="light"){return t==="dark"?{main:vs[400],light:vs[300],dark:vs[700]}:{main:vs[700],light:vs[500],dark:vs[900]}}function UR(t="light"){return t==="dark"?{main:bs[400],light:bs[300],dark:bs[700]}:{main:bs[800],light:bs[500],dark:bs[900]}}function VR(t="light"){return t==="dark"?{main:Va[400],light:Va[300],dark:Va[700]}:{main:"#ed6c02",light:Va[500],dark:Va[900]}}function Am(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=t,a=t.primary||FR(e),c=t.secondary||$R(e),u=t.error||zR(e),f=t.info||jR(e),h=t.success||UR(e),y=t.warning||VR(e);function g(_){return H3(_,jv.text.primary)>=n?jv.text.primary:LR.text.primary}const v=({color:_,name:I,mainShade:P=500,lightShade:L=300,darkShade:N=700})=>{if(_={..._},!_.main&&_[P]&&(_.main=_[P]),!_.hasOwnProperty("main"))throw new Error(io(11,I?` (${I})`:"",P));if(typeof _.main!="string")throw new Error(io(12,I?` (${I})`:"",JSON.stringify(_.main)));return Uv(_,"light",L,r),Uv(_,"dark",N,r),_.contrastText||(_.contrastText=g(_.main)),_};let C;return e==="light"?C=n2():e==="dark"&&(C=r2()),on({common:{...ml},mode:e,primary:v({color:a,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:u,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:h,name:"success"}),grey:BR,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r,...C},s)}function WR(t){const e={};return Object.entries(t).forEach(r=>{const[s,a]=r;typeof a=="object"&&(e[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function HR(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function GR(t){return Math.round(t*1e5)/1e5}const Vv={textTransform:"uppercase"},Wv='"Roboto", "Helvetica", "Arial", sans-serif';function i2(t,e){const{fontFamily:n=Wv,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:h,pxToRem:y,...g}=typeof e=="function"?e(t):e,v=r/14,C=y||(I=>`${I/f*v}rem`),w=(I,P,L,N,E)=>({fontFamily:n,fontWeight:I,fontSize:C(P),lineHeight:L,...n===Wv?{letterSpacing:`${GR(N/P)}em`}:{},...E,...h}),_={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(c,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(c,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(c,14,1.75,.4,Vv),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,Vv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return on({htmlFontSize:f,pxToRem:C,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u,..._},g,{clone:!1})}const YR=.2,KR=.14,QR=.12;function gt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${YR})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${KR})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${QR})`].join(",")}const XR=["none",gt(0,2,1,-1,0,1,1,0,0,1,3,0),gt(0,3,1,-2,0,2,2,0,0,1,5,0),gt(0,3,3,-2,0,3,4,0,0,1,8,0),gt(0,2,4,-1,0,4,5,0,0,1,10,0),gt(0,3,5,-1,0,5,8,0,0,1,14,0),gt(0,3,5,-1,0,6,10,0,0,1,18,0),gt(0,4,5,-2,0,7,10,1,0,2,16,1),gt(0,5,5,-3,0,8,10,1,0,3,14,2),gt(0,5,6,-3,0,9,12,1,0,3,16,2),gt(0,6,6,-3,0,10,14,1,0,4,18,3),gt(0,6,7,-4,0,11,15,1,0,4,20,3),gt(0,7,8,-4,0,12,17,2,0,5,22,4),gt(0,7,8,-4,0,13,19,2,0,5,24,4),gt(0,7,9,-4,0,14,21,2,0,5,26,4),gt(0,8,9,-5,0,15,22,2,0,6,28,5),gt(0,8,10,-5,0,16,24,2,0,6,30,5),gt(0,8,11,-5,0,17,26,2,0,6,32,5),gt(0,9,11,-5,0,18,28,2,0,7,34,6),gt(0,9,12,-6,0,19,29,2,0,7,36,6),gt(0,10,13,-6,0,20,31,3,0,8,38,7),gt(0,10,13,-6,0,21,33,3,0,8,40,7),gt(0,10,14,-6,0,22,35,3,0,8,42,7),gt(0,11,14,-7,0,23,36,3,0,9,44,8),gt(0,11,15,-7,0,24,38,3,0,9,46,8)],JR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hv(t){return`${Math.round(t)}ms`}function ZR(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function eE(t){const e={...JR,...t.easing},n={...qR,...t.duration};return{getAutoHeightDuration:ZR,create:(s=["all"],a={})=>{const{duration:c=n.standard,easing:u=e.easeInOut,delay:f=0,...h}=a;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof c=="string"?c:Hv(c)} ${u} ${typeof f=="string"?f:Hv(f)}`).join(",")},...t,easing:e,duration:n}}const tE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nE(t){return Wr(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function o2(t={}){const e={...t};function n(r){const s=Object.entries(r);for(let a=0;a<s.length;a++){const[c,u]=s[a];!nE(u)||c.startsWith("unstable_")?delete r[c]:Wr(u)&&(r[c]={...u},n(r[c]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
105
105
|
|
106
106
|
const theme = ${JSON.stringify(e,null,2)};
|
107
107
|
|
108
108
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
109
109
|
theme.transitions = createTransitions(theme.transitions || {});
|
110
110
|
|
111
|
-
export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},spacing:s,palette:a={},transitions:c={},typography:u={},shape:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(io(20));const y=Em(a),g=yd(t);let v=on(g,{mixins:VR(g.breakpoints,r),palette:y,shadows:KR.slice(),typography:n2(y,u),transitions:qR(c),zIndex:{...ZR}});return v=on(v,h),v=e.reduce((C,w)=>on(C,w),v),v.unstable_sxConfig={...El,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(w){return oo({sx:w,theme:this})},v.toRuntimeSource=r2,v}function mh(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const tE=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=mh(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function i2(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function o2(t){return t==="dark"?tE:[]}function nE(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...s}=t,a=Em(e);return{palette:a,opacity:{...i2(a.mode),...n},overlays:r||o2(a.mode),...s}}function rE(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const iE=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],oE=t=>(e,n)=>{const r=t.rootSelector||":root",s=t.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const c={};return iE(t.cssVarPrefix).forEach(u=>{c[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:c}}:a?{[a.replace("%s",e)]:c,[`${r}, ${a.replace("%s",e)}`]:n}:{[r]:{...n,...c}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(a)return a.replace("%s",String(e))}return r};function sE(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function H(t,e,n){!t[e]&&n&&(t[e]=n)}function Ka(t){return typeof t!="string"||!t.startsWith("hsl")?t:YS(t)}function ui(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Ya(Ka(t[e])))}function aE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Or=t=>{try{return t()}catch{}},lE=(t="mui")=>CR(t);function Np(t,e,n,r){if(!e)return;e=e===!0?{}:e;const s=r==="dark"?"dark":"light";if(!n){t[r]=nE({...e,palette:{mode:s,...e==null?void 0:e.palette}});return}const{palette:a,...c}=hh({...n,palette:{mode:s,...e==null?void 0:e.palette}});return t[r]={...e,palette:a,opacity:{...i2(s),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||o2(s)},c}function cE(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:c=rE,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...h}=t,y=Object.keys(n)[0],g=r||(n.light&&y!=="light"?"light":y),v=lE(a),{[g]:C,light:w,dark:_,...I}=n,P={...I};let L=C;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(L=!0),!L)throw new Error(io(21,g));const B=Np(P,L,h,g);w&&!P.light&&Np(P,w,void 0,"light"),_&&!P.dark&&Np(P,_,void 0,"dark");let A={defaultColorScheme:g,...B,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:v,colorSchemes:P,font:{...UR(B.typography),...B.font},spacing:aE(h.spacing)};Object.keys(A.colorSchemes).forEach(Y=>{const S=A.colorSchemes[Y].palette,j=W=>{const X=W.split("-"),ae=X[1],ce=X[2];return v(W,S[ae][ce])};if(S.mode==="light"&&(H(S.common,"background","#fff"),H(S.common,"onBackground","#000")),S.mode==="dark"&&(H(S.common,"background","#000"),H(S.common,"onBackground","#fff")),sE(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){H(S.Alert,"errorColor",at(S.error.light,.6)),H(S.Alert,"infoColor",at(S.info.light,.6)),H(S.Alert,"successColor",at(S.success.light,.6)),H(S.Alert,"warningColor",at(S.warning.light,.6)),H(S.Alert,"errorFilledBg",j("palette-error-main")),H(S.Alert,"infoFilledBg",j("palette-info-main")),H(S.Alert,"successFilledBg",j("palette-success-main")),H(S.Alert,"warningFilledBg",j("palette-warning-main")),H(S.Alert,"errorFilledColor",Or(()=>S.getContrastText(S.error.main))),H(S.Alert,"infoFilledColor",Or(()=>S.getContrastText(S.info.main))),H(S.Alert,"successFilledColor",Or(()=>S.getContrastText(S.success.main))),H(S.Alert,"warningFilledColor",Or(()=>S.getContrastText(S.warning.main))),H(S.Alert,"errorStandardBg",lt(S.error.light,.9)),H(S.Alert,"infoStandardBg",lt(S.info.light,.9)),H(S.Alert,"successStandardBg",lt(S.success.light,.9)),H(S.Alert,"warningStandardBg",lt(S.warning.light,.9)),H(S.Alert,"errorIconColor",j("palette-error-main")),H(S.Alert,"infoIconColor",j("palette-info-main")),H(S.Alert,"successIconColor",j("palette-success-main")),H(S.Alert,"warningIconColor",j("palette-warning-main")),H(S.AppBar,"defaultBg",j("palette-grey-100")),H(S.Avatar,"defaultBg",j("palette-grey-400")),H(S.Button,"inheritContainedBg",j("palette-grey-300")),H(S.Button,"inheritContainedHoverBg",j("palette-grey-A100")),H(S.Chip,"defaultBorder",j("palette-grey-400")),H(S.Chip,"defaultAvatarColor",j("palette-grey-700")),H(S.Chip,"defaultIconColor",j("palette-grey-700")),H(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(S.LinearProgress,"primaryBg",lt(S.primary.main,.62)),H(S.LinearProgress,"secondaryBg",lt(S.secondary.main,.62)),H(S.LinearProgress,"errorBg",lt(S.error.main,.62)),H(S.LinearProgress,"infoBg",lt(S.info.main,.62)),H(S.LinearProgress,"successBg",lt(S.success.main,.62)),H(S.LinearProgress,"warningBg",lt(S.warning.main,.62)),H(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),H(S.Slider,"primaryTrack",lt(S.primary.main,.62)),H(S.Slider,"secondaryTrack",lt(S.secondary.main,.62)),H(S.Slider,"errorTrack",lt(S.error.main,.62)),H(S.Slider,"infoTrack",lt(S.info.main,.62)),H(S.Slider,"successTrack",lt(S.success.main,.62)),H(S.Slider,"warningTrack",lt(S.warning.main,.62));const W=Gc(S.background.default,.8);H(S.SnackbarContent,"bg",W),H(S.SnackbarContent,"color",Or(()=>S.getContrastText(W))),H(S.SpeedDialAction,"fabHoverBg",Gc(S.background.paper,.15)),H(S.StepConnector,"border",j("palette-grey-400")),H(S.StepContent,"border",j("palette-grey-400")),H(S.Switch,"defaultColor",j("palette-common-white")),H(S.Switch,"defaultDisabledColor",j("palette-grey-100")),H(S.Switch,"primaryDisabledColor",lt(S.primary.main,.62)),H(S.Switch,"secondaryDisabledColor",lt(S.secondary.main,.62)),H(S.Switch,"errorDisabledColor",lt(S.error.main,.62)),H(S.Switch,"infoDisabledColor",lt(S.info.main,.62)),H(S.Switch,"successDisabledColor",lt(S.success.main,.62)),H(S.Switch,"warningDisabledColor",lt(S.warning.main,.62)),H(S.TableCell,"border",lt(Hc(S.divider,1),.88)),H(S.Tooltip,"bg",Hc(S.grey[700],.92))}if(S.mode==="dark"){H(S.Alert,"errorColor",lt(S.error.light,.6)),H(S.Alert,"infoColor",lt(S.info.light,.6)),H(S.Alert,"successColor",lt(S.success.light,.6)),H(S.Alert,"warningColor",lt(S.warning.light,.6)),H(S.Alert,"errorFilledBg",j("palette-error-dark")),H(S.Alert,"infoFilledBg",j("palette-info-dark")),H(S.Alert,"successFilledBg",j("palette-success-dark")),H(S.Alert,"warningFilledBg",j("palette-warning-dark")),H(S.Alert,"errorFilledColor",Or(()=>S.getContrastText(S.error.dark))),H(S.Alert,"infoFilledColor",Or(()=>S.getContrastText(S.info.dark))),H(S.Alert,"successFilledColor",Or(()=>S.getContrastText(S.success.dark))),H(S.Alert,"warningFilledColor",Or(()=>S.getContrastText(S.warning.dark))),H(S.Alert,"errorStandardBg",at(S.error.light,.9)),H(S.Alert,"infoStandardBg",at(S.info.light,.9)),H(S.Alert,"successStandardBg",at(S.success.light,.9)),H(S.Alert,"warningStandardBg",at(S.warning.light,.9)),H(S.Alert,"errorIconColor",j("palette-error-main")),H(S.Alert,"infoIconColor",j("palette-info-main")),H(S.Alert,"successIconColor",j("palette-success-main")),H(S.Alert,"warningIconColor",j("palette-warning-main")),H(S.AppBar,"defaultBg",j("palette-grey-900")),H(S.AppBar,"darkBg",j("palette-background-paper")),H(S.AppBar,"darkColor",j("palette-text-primary")),H(S.Avatar,"defaultBg",j("palette-grey-600")),H(S.Button,"inheritContainedBg",j("palette-grey-800")),H(S.Button,"inheritContainedHoverBg",j("palette-grey-700")),H(S.Chip,"defaultBorder",j("palette-grey-700")),H(S.Chip,"defaultAvatarColor",j("palette-grey-300")),H(S.Chip,"defaultIconColor",j("palette-grey-300")),H(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(S.LinearProgress,"primaryBg",at(S.primary.main,.5)),H(S.LinearProgress,"secondaryBg",at(S.secondary.main,.5)),H(S.LinearProgress,"errorBg",at(S.error.main,.5)),H(S.LinearProgress,"infoBg",at(S.info.main,.5)),H(S.LinearProgress,"successBg",at(S.success.main,.5)),H(S.LinearProgress,"warningBg",at(S.warning.main,.5)),H(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),H(S.Slider,"primaryTrack",at(S.primary.main,.5)),H(S.Slider,"secondaryTrack",at(S.secondary.main,.5)),H(S.Slider,"errorTrack",at(S.error.main,.5)),H(S.Slider,"infoTrack",at(S.info.main,.5)),H(S.Slider,"successTrack",at(S.success.main,.5)),H(S.Slider,"warningTrack",at(S.warning.main,.5));const W=Gc(S.background.default,.98);H(S.SnackbarContent,"bg",W),H(S.SnackbarContent,"color",Or(()=>S.getContrastText(W))),H(S.SpeedDialAction,"fabHoverBg",Gc(S.background.paper,.15)),H(S.StepConnector,"border",j("palette-grey-600")),H(S.StepContent,"border",j("palette-grey-600")),H(S.Switch,"defaultColor",j("palette-grey-300")),H(S.Switch,"defaultDisabledColor",j("palette-grey-600")),H(S.Switch,"primaryDisabledColor",at(S.primary.main,.55)),H(S.Switch,"secondaryDisabledColor",at(S.secondary.main,.55)),H(S.Switch,"errorDisabledColor",at(S.error.main,.55)),H(S.Switch,"infoDisabledColor",at(S.info.main,.55)),H(S.Switch,"successDisabledColor",at(S.success.main,.55)),H(S.Switch,"warningDisabledColor",at(S.warning.main,.55)),H(S.TableCell,"border",at(Hc(S.divider,1),.68)),H(S.Tooltip,"bg",Hc(S.grey[700],.92))}ui(S.background,"default"),ui(S.background,"paper"),ui(S.common,"background"),ui(S.common,"onBackground"),ui(S,"divider"),Object.keys(S).forEach(W=>{const X=S[W];W!=="tonalOffset"&&X&&typeof X=="object"&&(X.main&&H(S[W],"mainChannel",Ya(Ka(X.main))),X.light&&H(S[W],"lightChannel",Ya(Ka(X.light))),X.dark&&H(S[W],"darkChannel",Ya(Ka(X.dark))),X.contrastText&&H(S[W],"contrastTextChannel",Ya(Ka(X.contrastText))),W==="text"&&(ui(S[W],"primary"),ui(S[W],"secondary")),W==="action"&&(X.active&&ui(S[W],"active"),X.selected&&ui(S[W],"selected")))})}),A=e.reduce((Y,S)=>on(Y,S),A);const O={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:oE(A)},{vars:F,generateThemeVars:M,generateStyleSheets:V}=IR(A,O);return A.vars=F,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([Y,S])=>{A[Y]=S}),A.generateThemeVars=M,A.generateStyleSheets=V,A.generateSpacing=function(){return LS(h.spacing,ud(this))},A.getColorSchemeSelector=kR(u),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=c,A.unstable_sxConfig={...El,...h==null?void 0:h.unstable_sxConfig},A.unstable_sx=function(S){return oo({sx:S,theme:this})},A.toRuntimeSource=r2,A}function Hv(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Em({...n===!0?{}:n.palette,mode:e})})}function bd(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...c}=t,u=a||"light",f=s==null?void 0:s[u],h={...s,...n?{[u]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return hh(t,...e);let y=n;"palette"in t||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const g=hh({...t,palette:y},...e);return g.defaultColorScheme=u,g.colorSchemes=h,g.palette.mode==="light"&&(g.colorSchemes.light={...h.light!==!0&&h.light,palette:g.palette},Hv(g,"dark",h.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:g.palette},Hv(g,"light",h.light)),g}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),cE({...c,colorSchemes:h,defaultColorScheme:u,...typeof r!="boolean"&&r},...e)}const Am=bd();function s2(){const t=gd(Am);return t[Cr]||t}function uE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Al=t=>uE(t)&&t!=="classes",Fe=VS({themeId:Cr,defaultTheme:Am,rootShouldForwardProp:Al});function Bp({theme:t,...e}){const n=Cr in t?t[Cr]:void 0;return z.jsx(qS,{...e,themeId:n?Cr:void 0,theme:n||t})}const Yc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:dE}=_R({themeId:Cr,theme:()=>bd({cssVariables:!0}),colorSchemeStorageKey:Yc.colorSchemeStorageKey,modeStorageKey:Yc.modeStorageKey,defaultColorScheme:{light:Yc.defaultLightColorScheme,dark:Yc.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:n2(t.palette,t.typography)};return e.unstable_sx=function(r){return oo({sx:r,theme:this})},e}}),fE=dE;function pE({theme:t,...e}){if(typeof t=="function")return z.jsx(Bp,{theme:t,...e});const n=Cr in t?t[Cr]:t;return"colorSchemes"in n?z.jsx(fE,{theme:t,...e}):"vars"in n?z.jsx(Bp,{theme:t,...e}):z.jsx(Bp,{theme:{...t,vars:null},...e})}const{min:hE,max:mE}=Math,$o=(t,e=0,n=1)=>hE(mE(e,t),n),Pm=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=$o(t[e],0,255)):e===3&&(t[e]=$o(t[e],0,1));return t},a2={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])a2[`[object ${t}]`]=t.toLowerCase();function Le(t){return a2[Object.prototype.toString.call(t)]||"object"}const Ae=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):Le(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0].slice(0),Zs=t=>{if(t.length<2)return null;const e=t.length-1;return Le(t[e])=="string"?t[e].toLowerCase():null},{PI:Sd,min:l2,max:c2}=Math,sr=t=>Math.round(t*100)/100,yh=t=>Math.round(t*100)/100,gi=Sd*2,Lp=Sd/3,yE=Sd/180,gE=180/Sd;function u2(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}const Ie={format:{},autodetect:[]};class Z{constructor(...e){const n=this;if(Le(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Zs(e),s=!1;if(!r){s=!0,Ie.sorted||(Ie.autodetect=Ie.autodetect.sort((a,c)=>c.p-a.p),Ie.sorted=!0);for(let a of Ie.autodetect)if(r=a.test(...e),r)break}if(Ie.format[r]){const a=Ie.format[r].apply(null,s?e:e.slice(0,-1));n._rgb=Pm(a)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return Le(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const vE="3.1.2",ze=(...t)=>new Z(...t);ze.version=vE;const Ks={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},bE=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,SE=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,d2=t=>{if(t.match(bE)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,s=e&255;return[n,r,s,1]}if(t.match(SE)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,s=e>>8&255,a=Math.round((e&255)/255*100)/100;return[n,r,s,a]}throw new Error(`unknown hex color: ${t}`)},{round:Kc}=Math,f2=(...t)=>{let[e,n,r,s]=Ae(t,"rgba"),a=Zs(t)||"auto";s===void 0&&(s=1),a==="auto"&&(a=s<1?"rgba":"rgb"),e=Kc(e),n=Kc(n),r=Kc(r);let u="000000"+(e<<16|n<<8|r).toString(16);u=u.substr(u.length-6);let f="0"+Kc(s*255).toString(16);switch(f=f.substr(f.length-2),a.toLowerCase()){case"rgba":return`#${u}${f}`;case"argb":return`#${f}${u}`;default:return`#${u}`}};Z.prototype.name=function(){const t=f2(this._rgb,"rgb");for(let e of Object.keys(Ks))if(Ks[e]===t)return e.toLowerCase();return t};Ie.format.named=t=>{if(t=t.toLowerCase(),Ks[t])return d2(Ks[t]);throw new Error("unknown color name: "+t)};Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&Ks[t.toLowerCase()])return"named"}});Z.prototype.alpha=function(t,e=!1){return t!==void 0&&Le(t)==="number"?e?(this._rgb[3]=t,this):new Z([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};Z.prototype.clipped=function(){return this._rgb._clipped||!1};const Qr={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},_E=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function _i(t){const e=_E.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Qr.labWhitePoint=t,Qr.Xn=e[0],Qr.Zn=e[1]}function yl(){return Qr.labWhitePoint}const Om=(...t)=>{t=Ae(t,"lab");const[e,n,r]=t,[s,a,c]=CE(e,n,r),[u,f,h]=p2(s,a,c);return[u,f,h,t.length>3?t[3]:1]},CE=(t,e,n)=>{const{kE:r,kK:s,kKE:a,Xn:c,Yn:u,Zn:f}=Qr,h=(t+16)/116,y=.002*e+h,g=h-.005*n,v=y*y*y,C=g*g*g,w=v>r?v:(116*y-16)/s,_=t>a?Math.pow((t+16)/116,3):t/s,I=C>r?C:(116*g-16)/s,P=w*c,L=_*u,B=I*f;return[P,L,B]},Fp=t=>{const e=Math.sign(t);return t=Math.abs(t),(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*e},p2=(t,e,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:s,MtxXYZ2RGB:a,RefWhiteRGB:c,Xn:u,Yn:f,Zn:h}=Qr,y=u*r.m00+f*r.m10+h*r.m20,g=u*r.m01+f*r.m11+h*r.m21,v=u*r.m02+f*r.m12+h*r.m22,C=c.X*r.m00+c.Y*r.m10+c.Z*r.m20,w=c.X*r.m01+c.Y*r.m11+c.Z*r.m21,_=c.X*r.m02+c.Y*r.m12+c.Z*r.m22,I=(t*r.m00+e*r.m10+n*r.m20)*(C/y),P=(t*r.m01+e*r.m11+n*r.m21)*(w/g),L=(t*r.m02+e*r.m12+n*r.m22)*(_/v),B=I*s.m00+P*s.m10+L*s.m20,A=I*s.m01+P*s.m11+L*s.m21,O=I*s.m02+P*s.m12+L*s.m22,F=Fp(B*a.m00+A*a.m10+O*a.m20),M=Fp(B*a.m01+A*a.m11+O*a.m21),V=Fp(B*a.m02+A*a.m12+O*a.m22);return[F*255,M*255,V*255]},Mm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=h2(e,n,r),[f,h,y]=wE(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function wE(t,e,n){const{Xn:r,Yn:s,Zn:a,kE:c,kK:u}=Qr,f=t/r,h=e/s,y=n/a,g=f>c?Math.pow(f,1/3):(u*f+16)/116,v=h>c?Math.pow(h,1/3):(u*h+16)/116,C=y>c?Math.pow(y,1/3):(u*y+16)/116;return[116*v-16,500*(g-v),200*(v-C)]}function $p(t){const e=Math.sign(t);return t=Math.abs(t),(t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}const h2=(t,e,n)=>{t=$p(t/255),e=$p(e/255),n=$p(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:s,MtxAdaptMaI:a,Xn:c,Yn:u,Zn:f,As:h,Bs:y,Cs:g}=Qr;let v=t*r.m00+e*r.m10+n*r.m20,C=t*r.m01+e*r.m11+n*r.m21,w=t*r.m02+e*r.m12+n*r.m22;const _=c*s.m00+u*s.m10+f*s.m20,I=c*s.m01+u*s.m11+f*s.m21,P=c*s.m02+u*s.m12+f*s.m22;let L=v*s.m00+C*s.m10+w*s.m20,B=v*s.m01+C*s.m11+w*s.m21,A=v*s.m02+C*s.m12+w*s.m22;return L*=_/h,B*=I/y,A*=P/g,v=L*a.m00+B*a.m10+A*a.m20,C=L*a.m01+B*a.m11+A*a.m21,w=L*a.m02+B*a.m12+A*a.m22,[v,C,w]};Z.prototype.lab=function(){return Mm(this._rgb)};const xE=(...t)=>new Z(...t,"lab");Object.assign(ze,{lab:xE,getLabWhitePoint:yl,setLabWhitePoint:_i});Ie.format.lab=Om;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"lab"),Le(t)==="array"&&t.length===3)return"lab"}});Z.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Qr.Kn*t,new Z(n,"lab").alpha(e.alpha(),!0)};Z.prototype.brighten=function(t=1){return this.darken(-t)};Z.prototype.darker=Z.prototype.darken;Z.prototype.brighter=Z.prototype.brighten;Z.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const s=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(s>-1)return r[s];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:IE}=Math,kE=1e-7,TE=20;Z.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&Le(t)==="number"){if(t===0)return new Z([0,0,0,this._rgb[3]],"rgb");if(t===1)return new Z([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=TE;const s=(c,u)=>{const f=c.interpolate(u,.5,e),h=f.luminance();return Math.abs(t-h)<kE||!r--?f:h>t?s(c,f):s(f,u)},a=(n>t?s(new Z([0,0,0]),this):s(this,new Z([255,255,255]))).rgb();return new Z([...a,this._rgb[3]])}return RE(...this._rgb.slice(0,3))};const RE=(t,e,n)=>(t=zp(t),e=zp(e),n=zp(n),.2126*t+.7152*e+.0722*n),zp=t=>(t/=255,t<=.03928?t/12.92:IE((t+.055)/1.055,2.4)),rn={},Qs=(t,e,n=.5,...r)=>{let s=r[0]||"lrgb";if(!rn[s]&&!r.length&&(s=Object.keys(rn)[0]),!rn[s])throw new Error(`interpolation mode ${s} is not defined`);return Le(t)!=="object"&&(t=new Z(t)),Le(e)!=="object"&&(e=new Z(e)),rn[s](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};Z.prototype.mix=Z.prototype.interpolate=function(t,e=.5,...n){return Qs(this,t,e,...n)};Z.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new Z([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};const{sin:EE,cos:AE}=Math,m2=(...t)=>{let[e,n,r]=Ae(t,"lch");return isNaN(r)&&(r=0),r=r*yE,[e,AE(r)*n,EE(r)*n]},Dm=(...t)=>{t=Ae(t,"lch");const[e,n,r]=t,[s,a,c]=m2(e,n,r),[u,f,h]=Om(s,a,c);return[u,f,h,t.length>3?t[3]:1]},PE=(...t)=>{const e=u2(Ae(t,"hcl"));return Dm(...e)},{sqrt:OE,atan2:ME,round:DE}=Math,y2=(...t)=>{const[e,n,r]=Ae(t,"lab"),s=OE(n*n+r*r);let a=(ME(r,n)*gE+360)%360;return DE(s*1e4)===0&&(a=Number.NaN),[e,s,a]},Nm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=Mm(e,n,r),[f,h,y]=y2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};Z.prototype.lch=function(){return Nm(this._rgb)};Z.prototype.hcl=function(){return u2(Nm(this._rgb))};const NE=(...t)=>new Z(...t,"lch"),BE=(...t)=>new Z(...t,"hcl");Object.assign(ze,{lch:NE,hcl:BE});Ie.format.lch=Dm;Ie.format.hcl=PE;["lch","hcl"].forEach(t=>Ie.autodetect.push({p:2,test:(...e)=>{if(e=Ae(e,t),Le(e)==="array"&&e.length===3)return t}}));Z.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Qr.Kn*t,n[1]<0&&(n[1]=0),new Z(n,"lch").alpha(e.alpha(),!0)};Z.prototype.desaturate=function(t=1){return this.saturate(-t)};Z.prototype.set=function(t,e,n=!1){const[r,s]=t.split("."),a=this[r]();if(s){const c=r.indexOf(s)-(r.substr(0,2)==="ok"?2:0);if(c>-1){if(Le(e)=="string")switch(e.charAt(0)){case"+":a[c]+=+e;break;case"-":a[c]+=+e;break;case"*":a[c]*=+e.substr(1);break;case"/":a[c]/=+e.substr(1);break;default:a[c]=+e}else if(Le(e)==="number")a[c]=e;else throw new Error("unsupported value for Color.set");const u=new Z(a,r);return n?(this._rgb=u._rgb,this):u}throw new Error(`unknown channel ${s} in mode ${r}`)}else return a};Z.prototype.tint=function(t=.5,...e){return Qs(this,"white",t,...e)};Z.prototype.shade=function(t=.5,...e){return Qs(this,"black",t,...e)};const LE=(t,e,n)=>{const r=t._rgb,s=e._rgb;return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"rgb")};rn.rgb=LE;const{sqrt:jp,pow:Ss}=Math,FE=(t,e,n)=>{const[r,s,a]=t._rgb,[c,u,f]=e._rgb;return new Z(jp(Ss(r,2)*(1-n)+Ss(c,2)*n),jp(Ss(s,2)*(1-n)+Ss(u,2)*n),jp(Ss(a,2)*(1-n)+Ss(f,2)*n),"rgb")};rn.lrgb=FE;const $E=(t,e,n)=>{const r=t.lab(),s=e.lab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"lab")};rn.lab=$E;const ea=(t,e,n,r)=>{let s,a;r==="hsl"?(s=t.hsl(),a=e.hsl()):r==="hsv"?(s=t.hsv(),a=e.hsv()):r==="hcg"?(s=t.hcg(),a=e.hcg()):r==="hsi"?(s=t.hsi(),a=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",s=t.hcl(),a=e.hcl()):r==="oklch"&&(s=t.oklch().reverse(),a=e.oklch().reverse());let c,u,f,h,y,g;(r.substr(0,1)==="h"||r==="oklch")&&([c,f,y]=s,[u,h,g]=a);let v,C,w,_;return!isNaN(c)&&!isNaN(u)?(u>c&&u-c>180?_=u-(c+360):u<c&&c-u>180?_=u+360-c:_=u-c,C=c+n*_):isNaN(c)?isNaN(u)?C=Number.NaN:(C=u,(y==1||y==0)&&r!="hsv"&&(v=h)):(C=c,(g==1||g==0)&&r!="hsv"&&(v=f)),v===void 0&&(v=f+n*(h-f)),w=y+n*(g-y),r==="oklch"?new Z([w,v,C],r):new Z([C,v,w],r)},g2=(t,e,n)=>ea(t,e,n,"lch");rn.lch=g2;rn.hcl=g2;const zE=t=>{if(Le(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},jE=(...t)=>{const[e,n,r]=Ae(t,"rgb");return(e<<16)+(n<<8)+r};Z.prototype.num=function(){return jE(this._rgb)};const UE=(...t)=>new Z(...t,"num");Object.assign(ze,{num:UE});Ie.format.num=zE;Ie.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&Le(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const VE=(t,e,n)=>{const r=t.num(),s=e.num();return new Z(r+n*(s-r),"num")};rn.num=VE;const{floor:WE}=Math,HE=(...t)=>{t=Ae(t,"hcg");let[e,n,r]=t,s,a,c;r=r*255;const u=n*255;if(n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const f=WE(e),h=e-f,y=r*(1-n),g=y+u*(1-h),v=y+u*h,C=y+u;switch(f){case 0:[s,a,c]=[C,v,y];break;case 1:[s,a,c]=[g,C,y];break;case 2:[s,a,c]=[y,C,v];break;case 3:[s,a,c]=[y,g,C];break;case 4:[s,a,c]=[v,y,C];break;case 5:[s,a,c]=[C,y,g];break}}return[s,a,c,t.length>3?t[3]:1]},GE=(...t)=>{const[e,n,r]=Ae(t,"rgb"),s=l2(e,n,r),a=c2(e,n,r),c=a-s,u=c*100/255,f=s/(255-c)*100;let h;return c===0?h=Number.NaN:(e===a&&(h=(n-r)/c),n===a&&(h=2+(r-e)/c),r===a&&(h=4+(e-n)/c),h*=60,h<0&&(h+=360)),[h,u,f]};Z.prototype.hcg=function(){return GE(this._rgb)};const YE=(...t)=>new Z(...t,"hcg");ze.hcg=YE;Ie.format.hcg=HE;Ie.autodetect.push({p:1,test:(...t)=>{if(t=Ae(t,"hcg"),Le(t)==="array"&&t.length===3)return"hcg"}});const KE=(t,e,n)=>ea(t,e,n,"hcg");rn.hcg=KE;const{cos:_s}=Math,QE=(...t)=>{t=Ae(t,"hsi");let[e,n,r]=t,s,a,c;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(c=(1-n)/3,s=(1+n*_s(gi*e)/_s(Lp-gi*e))/3,a=1-(c+s)):e<2/3?(e-=1/3,s=(1-n)/3,a=(1+n*_s(gi*e)/_s(Lp-gi*e))/3,c=1-(s+a)):(e-=2/3,a=(1-n)/3,c=(1+n*_s(gi*e)/_s(Lp-gi*e))/3,s=1-(a+c)),s=$o(r*s*3),a=$o(r*a*3),c=$o(r*c*3),[s*255,a*255,c*255,t.length>3?t[3]:1]},{min:XE,sqrt:JE,acos:qE}=Math,ZE=(...t)=>{let[e,n,r]=Ae(t,"rgb");e/=255,n/=255,r/=255;let s;const a=XE(e,n,r),c=(e+n+r)/3,u=c>0?1-a/c:0;return u===0?s=NaN:(s=(e-n+(e-r))/2,s/=JE((e-n)*(e-n)+(e-r)*(n-r)),s=qE(s),r>n&&(s=gi-s),s/=gi),[s*360,u,c]};Z.prototype.hsi=function(){return ZE(this._rgb)};const eA=(...t)=>new Z(...t,"hsi");ze.hsi=eA;Ie.format.hsi=QE;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsi"),Le(t)==="array"&&t.length===3)return"hsi"}});const tA=(t,e,n)=>ea(t,e,n,"hsi");rn.hsi=tA;const gh=(...t)=>{t=Ae(t,"hsl");const[e,n,r]=t;let s,a,c;if(n===0)s=a=c=r*255;else{const u=[0,0,0],f=[0,0,0],h=r<.5?r*(1+n):r+n-r*n,y=2*r-h,g=e/360;u[0]=g+1/3,u[1]=g,u[2]=g-1/3;for(let v=0;v<3;v++)u[v]<0&&(u[v]+=1),u[v]>1&&(u[v]-=1),6*u[v]<1?f[v]=y+(h-y)*6*u[v]:2*u[v]<1?f[v]=h:3*u[v]<2?f[v]=y+(h-y)*(2/3-u[v])*6:f[v]=y;[s,a,c]=[f[0]*255,f[1]*255,f[2]*255]}return t.length>3?[s,a,c,t[3]]:[s,a,c,1]},v2=(...t)=>{t=Ae(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const s=l2(e,n,r),a=c2(e,n,r),c=(a+s)/2;let u,f;return a===s?(u=0,f=Number.NaN):u=c<.5?(a-s)/(a+s):(a-s)/(2-a-s),e==a?f=(n-r)/(a-s):n==a?f=2+(r-e)/(a-s):r==a&&(f=4+(e-n)/(a-s)),f*=60,f<0&&(f+=360),t.length>3&&t[3]!==void 0?[f,u,c,t[3]]:[f,u,c]};Z.prototype.hsl=function(){return v2(this._rgb)};const nA=(...t)=>new Z(...t,"hsl");ze.hsl=nA;Ie.format.hsl=gh;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsl"),Le(t)==="array"&&t.length===3)return"hsl"}});const rA=(t,e,n)=>ea(t,e,n,"hsl");rn.hsl=rA;const{floor:iA}=Math,oA=(...t)=>{t=Ae(t,"hsv");let[e,n,r]=t,s,a,c;if(r*=255,n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const u=iA(e),f=e-u,h=r*(1-n),y=r*(1-n*f),g=r*(1-n*(1-f));switch(u){case 0:[s,a,c]=[r,g,h];break;case 1:[s,a,c]=[y,r,h];break;case 2:[s,a,c]=[h,r,g];break;case 3:[s,a,c]=[h,y,r];break;case 4:[s,a,c]=[g,h,r];break;case 5:[s,a,c]=[r,h,y];break}}return[s,a,c,t.length>3?t[3]:1]},{min:sA,max:aA}=Math,lA=(...t)=>{t=Ae(t,"rgb");let[e,n,r]=t;const s=sA(e,n,r),a=aA(e,n,r),c=a-s;let u,f,h;return h=a/255,a===0?(u=Number.NaN,f=0):(f=c/a,e===a&&(u=(n-r)/c),n===a&&(u=2+(r-e)/c),r===a&&(u=4+(e-n)/c),u*=60,u<0&&(u+=360)),[u,f,h]};Z.prototype.hsv=function(){return lA(this._rgb)};const cA=(...t)=>new Z(...t,"hsv");ze.hsv=cA;Ie.format.hsv=oA;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsv"),Le(t)==="array"&&t.length===3)return"hsv"}});const uA=(t,e,n)=>ea(t,e,n,"hsv");rn.hsv=uA;function Xu(t,e){let n=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map(c=>[c]));let r=e[0].length,s=e[0].map((c,u)=>e.map(f=>f[u])),a=t.map(c=>s.map(u=>Array.isArray(c)?c.reduce((f,h,y)=>f+h*(u[y]||0),0):u.reduce((f,h)=>f+h*c,0)));return n===1&&(a=a[0]),r===1?a.map(c=>c[0]):a}const Bm=(...t)=>{t=Ae(t,"lab");const[e,n,r,...s]=t,[a,c,u]=dA([e,n,r]),[f,h,y]=p2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function dA(t){var e=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],r=Xu(n,t);return Xu(e,r.map(s=>s**3))}const Lm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),a=h2(e,n,r);return[...fA(a),...s.length>0&&s[0]<1?[s[0]]:[]]};function fA(t){const e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],r=Xu(e,t);return Xu(n,r.map(s=>Math.cbrt(s)))}Z.prototype.oklab=function(){return Lm(this._rgb)};const pA=(...t)=>new Z(...t,"oklab");Object.assign(ze,{oklab:pA});Ie.format.oklab=Bm;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklab"),Le(t)==="array"&&t.length===3)return"oklab"}});const hA=(t,e,n)=>{const r=t.oklab(),s=e.oklab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"oklab")};rn.oklab=hA;const mA=(t,e,n)=>ea(t,e,n,"oklch");rn.oklch=mA;const{pow:Up,sqrt:Vp,PI:Wp,cos:Gv,sin:Yv,atan2:yA}=Math,gA=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const s=r/n.reduce(function(g,v){return g+v});if(n.forEach((g,v)=>{n[v]*=s}),t=t.map(g=>new Z(g)),e==="lrgb")return vA(t,n);const a=t.shift(),c=a.get(e),u=[];let f=0,h=0;for(let g=0;g<c.length;g++)if(c[g]=(c[g]||0)*n[0],u.push(isNaN(c[g])?0:n[0]),e.charAt(g)==="h"&&!isNaN(c[g])){const v=c[g]/180*Wp;f+=Gv(v)*n[0],h+=Yv(v)*n[0]}let y=a.alpha()*n[0];t.forEach((g,v)=>{const C=g.get(e);y+=g.alpha()*n[v+1];for(let w=0;w<c.length;w++)if(!isNaN(C[w]))if(u[w]+=n[v+1],e.charAt(w)==="h"){const _=C[w]/180*Wp;f+=Gv(_)*n[v+1],h+=Yv(_)*n[v+1]}else c[w]+=C[w]*n[v+1]});for(let g=0;g<c.length;g++)if(e.charAt(g)==="h"){let v=yA(h/u[g],f/u[g])/Wp*180;for(;v<0;)v+=360;for(;v>=360;)v-=360;c[g]=v}else c[g]=c[g]/u[g];return y/=r,new Z(c,e).alpha(y>.99999?1:y,!0)},vA=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let s=0;s<t.length;s++){const a=t[s],c=e[s]/n,u=a._rgb;r[0]+=Up(u[0],2)*c,r[1]+=Up(u[1],2)*c,r[2]+=Up(u[2],2)*c,r[3]+=u[3]*c}return r[0]=Vp(r[0]),r[1]=Vp(r[1]),r[2]=Vp(r[2]),r[3]>.9999999&&(r[3]=1),new Z(Pm(r))},{pow:bA}=Math;function Ju(t){let e="rgb",n=ze("#ccc"),r=0,s=[0,1],a=[],c=[0,0],u=!1,f=[],h=!1,y=0,g=1,v=!1,C={},w=!0,_=1;const I=function(M){if(M=M||["#fff","#000"],M&&Le(M)==="string"&&ze.brewer&&ze.brewer[M.toLowerCase()]&&(M=ze.brewer[M.toLowerCase()]),Le(M)==="array"){M.length===1&&(M=[M[0],M[0]]),M=M.slice(0);for(let V=0;V<M.length;V++)M[V]=ze(M[V]);a.length=0;for(let V=0;V<M.length;V++)a.push(V/(M.length-1))}return O(),f=M},P=function(M){if(u!=null){const V=u.length-1;let Y=0;for(;Y<V&&M>=u[Y];)Y++;return Y-1}return 0};let L=M=>M,B=M=>M;const A=function(M,V){let Y,S;if(V==null&&(V=!1),isNaN(M)||M===null)return n;V?S=M:u&&u.length>2?S=P(M)/(u.length-2):g!==y?S=(M-y)/(g-y):S=1,S=B(S),V||(S=L(S)),_!==1&&(S=bA(S,_)),S=c[0]+S*(1-c[0]-c[1]),S=$o(S,0,1);const j=Math.floor(S*1e4);if(w&&C[j])Y=C[j];else{if(Le(f)==="array")for(let W=0;W<a.length;W++){const X=a[W];if(S<=X){Y=f[W];break}if(S>=X&&W===a.length-1){Y=f[W];break}if(S>X&&S<a[W+1]){S=(S-X)/(a[W+1]-X),Y=ze.interpolate(f[W],f[W+1],S,e);break}}else Le(f)==="function"&&(Y=f(S));w&&(C[j]=Y)}return Y};var O=()=>C={};I(t);const F=function(M){const V=ze(A(M));return h&&V[h]?V[h]():V};return F.classes=function(M){if(M!=null){if(Le(M)==="array")u=M,s=[M[0],M[M.length-1]];else{const V=ze.analyze(s);M===0?u=[V.min,V.max]:u=ze.limits(V,"e",M)}return F}return u},F.domain=function(M){if(!arguments.length)return s;y=M[0],g=M[M.length-1],a=[];const V=f.length;if(M.length===V&&y!==g)for(let Y of Array.from(M))a.push((Y-y)/(g-y));else{for(let Y=0;Y<V;Y++)a.push(Y/(V-1));if(M.length>2){const Y=M.map((j,W)=>W/(M.length-1)),S=M.map(j=>(j-y)/(g-y));S.every((j,W)=>Y[W]===j)||(B=j=>{if(j<=0||j>=1)return j;let W=0;for(;j>=S[W+1];)W++;const X=(j-S[W])/(S[W+1]-S[W]);return Y[W]+X*(Y[W+1]-Y[W])})}}return s=[y,g],F},F.mode=function(M){return arguments.length?(e=M,O(),F):e},F.range=function(M,V){return I(M),F},F.out=function(M){return h=M,F},F.spread=function(M){return arguments.length?(r=M,F):r},F.correctLightness=function(M){return M==null&&(M=!0),v=M,O(),v?L=function(V){const Y=A(0,!0).lab()[0],S=A(1,!0).lab()[0],j=Y>S;let W=A(V,!0).lab()[0];const X=Y+(S-Y)*V;let ae=W-X,ce=0,de=1,fe=20;for(;Math.abs(ae)>.01&&fe-- >0;)(function(){return j&&(ae*=-1),ae<0?(ce=V,V+=(de-V)*.5):(de=V,V+=(ce-V)*.5),W=A(V,!0).lab()[0],ae=W-X})();return V}:L=V=>V,F},F.padding=function(M){return M!=null?(Le(M)==="number"&&(M=[M,M]),c=M,F):c},F.colors=function(M,V){arguments.length<2&&(V="hex");let Y=[];if(arguments.length===0)Y=f.slice(0);else if(M===1)Y=[F(.5)];else if(M>1){const S=s[0],j=s[1]-S;Y=SA(0,M).map(W=>F(S+W/(M-1)*j))}else{t=[];let S=[];if(u&&u.length>2)for(let j=1,W=u.length,X=1<=W;X?j<W:j>W;X?j++:j--)S.push((u[j-1]+u[j])*.5);else S=s;Y=S.map(j=>F(j))}return ze[V]&&(Y=Y.map(S=>S[V]())),Y},F.cache=function(M){return M!=null?(w=M,F):w},F.gamma=function(M){return M!=null?(_=M,F):_},F.nodata=function(M){return M!=null?(n=ze(M),F):n},F}function SA(t,e,n){let r=[],s=t<e,a=e;for(let c=t;s?c<a:c>a;s?c++:c--)r.push(c);return r}const _A=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let s=1;s<=e.length;s++)r[s]=(e[s]||0)+e[s-1];e=r}return e},CA=function(t){let e,n,r,s;if(t=t.map(a=>new Z(a)),t.length===2)[n,r]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>n[u]+a*(r[u]-n[u]));return new Z(c,"lab")};else if(t.length===3)[n,r,s]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>(1-a)*(1-a)*n[u]+2*(1-a)*a*r[u]+a*a*s[u]);return new Z(c,"lab")};else if(t.length===4){let a;[n,r,s,a]=t.map(c=>c.lab()),e=function(c){const u=[0,1,2].map(f=>(1-c)*(1-c)*(1-c)*n[f]+3*(1-c)*(1-c)*c*r[f]+3*(1-c)*c*c*s[f]+c*c*c*a[f]);return new Z(u,"lab")}}else if(t.length>=5){let a,c,u;a=t.map(f=>f.lab()),u=t.length-1,c=_A(u),e=function(f){const h=1-f,y=[0,1,2].map(g=>a.reduce((v,C,w)=>v+c[w]*h**(u-w)*f**w*C[g],0));return new Z(y,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},wA=t=>{const e=CA(t);return e.scale=()=>Ju(e),e},{round:b2}=Math;Z.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(b2)};Z.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:b2(e):e)};const xA=(...t)=>new Z(...t,"rgb");Object.assign(ze,{rgb:xA});Ie.format.rgb=(...t)=>{const e=Ae(t,"rgba");return e[3]===void 0&&(e[3]=1),e};Ie.autodetect.push({p:3,test:(...t)=>{if(t=Ae(t,"rgba"),Le(t)==="array"&&(t.length===3||t.length===4&&Le(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const Ir=(t,e,n)=>{if(!Ir[n])throw new Error("unknown blend mode "+n);return Ir[n](t,e)},uo=t=>(e,n)=>{const r=ze(n).rgb(),s=ze(e).rgb();return ze.rgb(t(r,s))},fo=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},IA=t=>t,kA=(t,e)=>t*e/255,TA=(t,e)=>t>e?e:t,RA=(t,e)=>t>e?t:e,EA=(t,e)=>255*(1-(1-t/255)*(1-e/255)),AA=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),PA=(t,e)=>255*(1-(1-e/255)/(t/255)),OA=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);Ir.normal=uo(fo(IA));Ir.multiply=uo(fo(kA));Ir.screen=uo(fo(EA));Ir.overlay=uo(fo(AA));Ir.darken=uo(fo(TA));Ir.lighten=uo(fo(RA));Ir.dodge=uo(fo(OA));Ir.burn=uo(fo(PA));const{pow:MA,sin:DA,cos:NA}=Math;function BA(t=300,e=-1.5,n=1,r=1,s=[0,1]){let a=0,c;Le(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const u=function(f){const h=gi*((t+120)/360+e*f),y=MA(s[0]+c*f,r),v=(a!==0?n[0]+f*a:n)*y*(1-y)/2,C=NA(h),w=DA(h),_=y+v*(-.14861*C+1.78277*w),I=y+v*(-.29227*C-.90649*w),P=y+v*(1.97294*C);return ze(Pm([_*255,I*255,P*255,1]))};return u.start=function(f){return f==null?t:(t=f,u)},u.rotations=function(f){return f==null?e:(e=f,u)},u.gamma=function(f){return f==null?r:(r=f,u)},u.hue=function(f){return f==null?n:(n=f,Le(n)==="array"?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,u)},u.lightness=function(f){return f==null?s:(Le(f)==="array"?(s=f,c=f[1]-f[0]):(s=[f,f],c=0),u)},u.scale=()=>ze.scale(u),u.hue(n),u}const LA="0123456789abcdef",{floor:FA,random:$A}=Math,zA=()=>{let t="#";for(let e=0;e<6;e++)t+=LA.charAt(FA($A()*16));return new Z(t,"hex")},{log:Kv,pow:jA,floor:UA,abs:VA}=Math;function S2(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Le(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&Le(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,s)=>_2(n,r,s),n}function _2(t,e="equal",n=7){Le(t)=="array"&&(t=S2(t));const{min:r,max:s}=t,a=t.values.sort((u,f)=>u-f);if(n===1)return[r,s];const c=[];if(e.substr(0,1)==="c"&&(c.push(r),c.push(s)),e.substr(0,1)==="e"){c.push(r);for(let u=1;u<n;u++)c.push(r+u/n*(s-r));c.push(s)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const u=Math.LOG10E*Kv(r),f=Math.LOG10E*Kv(s);c.push(r);for(let h=1;h<n;h++)c.push(jA(10,u+h/n*(f-u)));c.push(s)}else if(e.substr(0,1)==="q"){c.push(r);for(let u=1;u<n;u++){const f=(a.length-1)*u/n,h=UA(f);if(h===f)c.push(a[h]);else{const y=f-h;c.push(a[h]*(1-y)+a[h+1]*y)}}c.push(s)}else if(e.substr(0,1)==="k"){let u;const f=a.length,h=new Array(f),y=new Array(n);let g=!0,v=0,C=null;C=[],C.push(r);for(let I=1;I<n;I++)C.push(r+I/n*(s-r));for(C.push(s);g;){for(let P=0;P<n;P++)y[P]=0;for(let P=0;P<f;P++){const L=a[P];let B=Number.MAX_VALUE,A;for(let O=0;O<n;O++){const F=VA(C[O]-L);F<B&&(B=F,A=O),y[A]++,h[P]=A}}const I=new Array(n);for(let P=0;P<n;P++)I[P]=null;for(let P=0;P<f;P++)u=h[P],I[u]===null?I[u]=a[P]:I[u]+=a[P];for(let P=0;P<n;P++)I[P]*=1/y[P];g=!1;for(let P=0;P<n;P++)if(I[P]!==C[P]){g=!0;break}C=I,v++,v>200&&(g=!1)}const w={};for(let I=0;I<n;I++)w[I]=[];for(let I=0;I<f;I++)u=h[I],w[u].push(a[I]);let _=[];for(let I=0;I<n;I++)_.push(w[I][0]),_.push(w[I][w[I].length-1]);_=_.sort((I,P)=>I-P),c.push(_[0]);for(let I=1;I<_.length;I+=2){const P=_[I];!isNaN(P)&&c.indexOf(P)===-1&&c.push(P)}}return c}const WA=(t,e)=>{t=new Z(t),e=new Z(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)};/**
|
111
|
+
export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},spacing:s,palette:a={},transitions:c={},typography:u={},shape:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(io(20));const y=Am(a),g=md(t);let v=on(g,{mixins:HR(g.breakpoints,r),palette:y,shadows:XR.slice(),typography:i2(y,u),transitions:eE(c),zIndex:{...tE}});return v=on(v,h),v=e.reduce((C,w)=>on(C,w),v),v.unstable_sxConfig={...El,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(w){return oo({sx:w,theme:this})},v.toRuntimeSource=o2,v}function mh(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const rE=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=mh(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function s2(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function a2(t){return t==="dark"?rE:[]}function iE(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...s}=t,a=Am(e);return{palette:a,opacity:{...s2(a.mode),...n},overlays:r||a2(a.mode),...s}}function oE(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const sE=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],aE=t=>(e,n)=>{const r=t.rootSelector||":root",s=t.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const c={};return sE(t.cssVarPrefix).forEach(u=>{c[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:c}}:a?{[a.replace("%s",e)]:c,[`${r}, ${a.replace("%s",e)}`]:n}:{[r]:{...n,...c}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(a)return a.replace("%s",String(e))}return r};function lE(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function H(t,e,n){!t[e]&&n&&(t[e]=n)}function Ka(t){return typeof t!="string"||!t.startsWith("hsl")?t:QS(t)}function ui(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Ya(Ka(t[e])))}function cE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Or=t=>{try{return t()}catch{}},uE=(t="mui")=>xR(t);function Dp(t,e,n,r){if(!e)return;e=e===!0?{}:e;const s=r==="dark"?"dark":"light";if(!n){t[r]=iE({...e,palette:{mode:s,...e==null?void 0:e.palette}});return}const{palette:a,...c}=hh({...n,palette:{mode:s,...e==null?void 0:e.palette}});return t[r]={...e,palette:a,opacity:{...s2(s),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||a2(s)},c}function dE(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:c=oE,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...h}=t,y=Object.keys(n)[0],g=r||(n.light&&y!=="light"?"light":y),v=uE(a),{[g]:C,light:w,dark:_,...I}=n,P={...I};let L=C;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(L=!0),!L)throw new Error(io(21,g));const N=Dp(P,L,h,g);w&&!P.light&&Dp(P,w,void 0,"light"),_&&!P.dark&&Dp(P,_,void 0,"dark");let E={defaultColorScheme:g,...N,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:v,colorSchemes:P,font:{...WR(N.typography),...N.font},spacing:cE(h.spacing)};Object.keys(E.colorSchemes).forEach(Y=>{const S=E.colorSchemes[Y].palette,j=W=>{const X=W.split("-"),ae=X[1],ce=X[2];return v(W,S[ae][ce])};if(S.mode==="light"&&(H(S.common,"background","#fff"),H(S.common,"onBackground","#000")),S.mode==="dark"&&(H(S.common,"background","#000"),H(S.common,"onBackground","#fff")),lE(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){H(S.Alert,"errorColor",at(S.error.light,.6)),H(S.Alert,"infoColor",at(S.info.light,.6)),H(S.Alert,"successColor",at(S.success.light,.6)),H(S.Alert,"warningColor",at(S.warning.light,.6)),H(S.Alert,"errorFilledBg",j("palette-error-main")),H(S.Alert,"infoFilledBg",j("palette-info-main")),H(S.Alert,"successFilledBg",j("palette-success-main")),H(S.Alert,"warningFilledBg",j("palette-warning-main")),H(S.Alert,"errorFilledColor",Or(()=>S.getContrastText(S.error.main))),H(S.Alert,"infoFilledColor",Or(()=>S.getContrastText(S.info.main))),H(S.Alert,"successFilledColor",Or(()=>S.getContrastText(S.success.main))),H(S.Alert,"warningFilledColor",Or(()=>S.getContrastText(S.warning.main))),H(S.Alert,"errorStandardBg",lt(S.error.light,.9)),H(S.Alert,"infoStandardBg",lt(S.info.light,.9)),H(S.Alert,"successStandardBg",lt(S.success.light,.9)),H(S.Alert,"warningStandardBg",lt(S.warning.light,.9)),H(S.Alert,"errorIconColor",j("palette-error-main")),H(S.Alert,"infoIconColor",j("palette-info-main")),H(S.Alert,"successIconColor",j("palette-success-main")),H(S.Alert,"warningIconColor",j("palette-warning-main")),H(S.AppBar,"defaultBg",j("palette-grey-100")),H(S.Avatar,"defaultBg",j("palette-grey-400")),H(S.Button,"inheritContainedBg",j("palette-grey-300")),H(S.Button,"inheritContainedHoverBg",j("palette-grey-A100")),H(S.Chip,"defaultBorder",j("palette-grey-400")),H(S.Chip,"defaultAvatarColor",j("palette-grey-700")),H(S.Chip,"defaultIconColor",j("palette-grey-700")),H(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(S.LinearProgress,"primaryBg",lt(S.primary.main,.62)),H(S.LinearProgress,"secondaryBg",lt(S.secondary.main,.62)),H(S.LinearProgress,"errorBg",lt(S.error.main,.62)),H(S.LinearProgress,"infoBg",lt(S.info.main,.62)),H(S.LinearProgress,"successBg",lt(S.success.main,.62)),H(S.LinearProgress,"warningBg",lt(S.warning.main,.62)),H(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),H(S.Slider,"primaryTrack",lt(S.primary.main,.62)),H(S.Slider,"secondaryTrack",lt(S.secondary.main,.62)),H(S.Slider,"errorTrack",lt(S.error.main,.62)),H(S.Slider,"infoTrack",lt(S.info.main,.62)),H(S.Slider,"successTrack",lt(S.success.main,.62)),H(S.Slider,"warningTrack",lt(S.warning.main,.62));const W=Gc(S.background.default,.8);H(S.SnackbarContent,"bg",W),H(S.SnackbarContent,"color",Or(()=>S.getContrastText(W))),H(S.SpeedDialAction,"fabHoverBg",Gc(S.background.paper,.15)),H(S.StepConnector,"border",j("palette-grey-400")),H(S.StepContent,"border",j("palette-grey-400")),H(S.Switch,"defaultColor",j("palette-common-white")),H(S.Switch,"defaultDisabledColor",j("palette-grey-100")),H(S.Switch,"primaryDisabledColor",lt(S.primary.main,.62)),H(S.Switch,"secondaryDisabledColor",lt(S.secondary.main,.62)),H(S.Switch,"errorDisabledColor",lt(S.error.main,.62)),H(S.Switch,"infoDisabledColor",lt(S.info.main,.62)),H(S.Switch,"successDisabledColor",lt(S.success.main,.62)),H(S.Switch,"warningDisabledColor",lt(S.warning.main,.62)),H(S.TableCell,"border",lt(Hc(S.divider,1),.88)),H(S.Tooltip,"bg",Hc(S.grey[700],.92))}if(S.mode==="dark"){H(S.Alert,"errorColor",lt(S.error.light,.6)),H(S.Alert,"infoColor",lt(S.info.light,.6)),H(S.Alert,"successColor",lt(S.success.light,.6)),H(S.Alert,"warningColor",lt(S.warning.light,.6)),H(S.Alert,"errorFilledBg",j("palette-error-dark")),H(S.Alert,"infoFilledBg",j("palette-info-dark")),H(S.Alert,"successFilledBg",j("palette-success-dark")),H(S.Alert,"warningFilledBg",j("palette-warning-dark")),H(S.Alert,"errorFilledColor",Or(()=>S.getContrastText(S.error.dark))),H(S.Alert,"infoFilledColor",Or(()=>S.getContrastText(S.info.dark))),H(S.Alert,"successFilledColor",Or(()=>S.getContrastText(S.success.dark))),H(S.Alert,"warningFilledColor",Or(()=>S.getContrastText(S.warning.dark))),H(S.Alert,"errorStandardBg",at(S.error.light,.9)),H(S.Alert,"infoStandardBg",at(S.info.light,.9)),H(S.Alert,"successStandardBg",at(S.success.light,.9)),H(S.Alert,"warningStandardBg",at(S.warning.light,.9)),H(S.Alert,"errorIconColor",j("palette-error-main")),H(S.Alert,"infoIconColor",j("palette-info-main")),H(S.Alert,"successIconColor",j("palette-success-main")),H(S.Alert,"warningIconColor",j("palette-warning-main")),H(S.AppBar,"defaultBg",j("palette-grey-900")),H(S.AppBar,"darkBg",j("palette-background-paper")),H(S.AppBar,"darkColor",j("palette-text-primary")),H(S.Avatar,"defaultBg",j("palette-grey-600")),H(S.Button,"inheritContainedBg",j("palette-grey-800")),H(S.Button,"inheritContainedHoverBg",j("palette-grey-700")),H(S.Chip,"defaultBorder",j("palette-grey-700")),H(S.Chip,"defaultAvatarColor",j("palette-grey-300")),H(S.Chip,"defaultIconColor",j("palette-grey-300")),H(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(S.LinearProgress,"primaryBg",at(S.primary.main,.5)),H(S.LinearProgress,"secondaryBg",at(S.secondary.main,.5)),H(S.LinearProgress,"errorBg",at(S.error.main,.5)),H(S.LinearProgress,"infoBg",at(S.info.main,.5)),H(S.LinearProgress,"successBg",at(S.success.main,.5)),H(S.LinearProgress,"warningBg",at(S.warning.main,.5)),H(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),H(S.Slider,"primaryTrack",at(S.primary.main,.5)),H(S.Slider,"secondaryTrack",at(S.secondary.main,.5)),H(S.Slider,"errorTrack",at(S.error.main,.5)),H(S.Slider,"infoTrack",at(S.info.main,.5)),H(S.Slider,"successTrack",at(S.success.main,.5)),H(S.Slider,"warningTrack",at(S.warning.main,.5));const W=Gc(S.background.default,.98);H(S.SnackbarContent,"bg",W),H(S.SnackbarContent,"color",Or(()=>S.getContrastText(W))),H(S.SpeedDialAction,"fabHoverBg",Gc(S.background.paper,.15)),H(S.StepConnector,"border",j("palette-grey-600")),H(S.StepContent,"border",j("palette-grey-600")),H(S.Switch,"defaultColor",j("palette-grey-300")),H(S.Switch,"defaultDisabledColor",j("palette-grey-600")),H(S.Switch,"primaryDisabledColor",at(S.primary.main,.55)),H(S.Switch,"secondaryDisabledColor",at(S.secondary.main,.55)),H(S.Switch,"errorDisabledColor",at(S.error.main,.55)),H(S.Switch,"infoDisabledColor",at(S.info.main,.55)),H(S.Switch,"successDisabledColor",at(S.success.main,.55)),H(S.Switch,"warningDisabledColor",at(S.warning.main,.55)),H(S.TableCell,"border",at(Hc(S.divider,1),.68)),H(S.Tooltip,"bg",Hc(S.grey[700],.92))}ui(S.background,"default"),ui(S.background,"paper"),ui(S.common,"background"),ui(S.common,"onBackground"),ui(S,"divider"),Object.keys(S).forEach(W=>{const X=S[W];W!=="tonalOffset"&&X&&typeof X=="object"&&(X.main&&H(S[W],"mainChannel",Ya(Ka(X.main))),X.light&&H(S[W],"lightChannel",Ya(Ka(X.light))),X.dark&&H(S[W],"darkChannel",Ya(Ka(X.dark))),X.contrastText&&H(S[W],"contrastTextChannel",Ya(Ka(X.contrastText))),W==="text"&&(ui(S[W],"primary"),ui(S[W],"secondary")),W==="action"&&(X.active&&ui(S[W],"active"),X.selected&&ui(S[W],"selected")))})}),E=e.reduce((Y,S)=>on(Y,S),E);const O={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:aE(E)},{vars:z,generateThemeVars:M,generateStyleSheets:V}=TR(E,O);return E.vars=z,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([Y,S])=>{E[Y]=S}),E.generateThemeVars=M,E.generateStyleSheets=V,E.generateSpacing=function(){return $S(h.spacing,cd(this))},E.getColorSchemeSelector=RR(u),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=c,E.unstable_sxConfig={...El,...h==null?void 0:h.unstable_sxConfig},E.unstable_sx=function(S){return oo({sx:S,theme:this})},E.toRuntimeSource=o2,E}function Gv(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Am({...n===!0?{}:n.palette,mode:e})})}function vd(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...c}=t,u=a||"light",f=s==null?void 0:s[u],h={...s,...n?{[u]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return hh(t,...e);let y=n;"palette"in t||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const g=hh({...t,palette:y},...e);return g.defaultColorScheme=u,g.colorSchemes=h,g.palette.mode==="light"&&(g.colorSchemes.light={...h.light!==!0&&h.light,palette:g.palette},Gv(g,"dark",h.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:g.palette},Gv(g,"light",h.light)),g}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),dE({...c,colorSchemes:h,defaultColorScheme:u,...typeof r!="boolean"&&r},...e)}const Pm=vd();function l2(){const t=yd(Pm);return t[Cr]||t}function fE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Al=t=>fE(t)&&t!=="classes",Fe=HS({themeId:Cr,defaultTheme:Pm,rootShouldForwardProp:Al});function Np({theme:t,...e}){const n=Cr in t?t[Cr]:void 0;return $.jsx(e2,{...e,themeId:n?Cr:void 0,theme:n||t})}const Yc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:pE}=wR({themeId:Cr,theme:()=>vd({cssVariables:!0}),colorSchemeStorageKey:Yc.colorSchemeStorageKey,modeStorageKey:Yc.modeStorageKey,defaultColorScheme:{light:Yc.defaultLightColorScheme,dark:Yc.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:i2(t.palette,t.typography)};return e.unstable_sx=function(r){return oo({sx:r,theme:this})},e}}),hE=pE;function mE({theme:t,...e}){if(typeof t=="function")return $.jsx(Np,{theme:t,...e});const n=Cr in t?t[Cr]:t;return"colorSchemes"in n?$.jsx(hE,{theme:t,...e}):"vars"in n?$.jsx(Np,{theme:t,...e}):$.jsx(Np,{theme:{...t,vars:null},...e})}const{min:yE,max:gE}=Math,$o=(t,e=0,n=1)=>yE(gE(e,t),n),Om=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=$o(t[e],0,255)):e===3&&(t[e]=$o(t[e],0,1));return t},c2={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])c2[`[object ${t}]`]=t.toLowerCase();function Le(t){return c2[Object.prototype.toString.call(t)]||"object"}const Ae=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):Le(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0].slice(0),Zs=t=>{if(t.length<2)return null;const e=t.length-1;return Le(t[e])=="string"?t[e].toLowerCase():null},{PI:bd,min:u2,max:d2}=Math,sr=t=>Math.round(t*100)/100,yh=t=>Math.round(t*100)/100,gi=bd*2,Bp=bd/3,vE=bd/180,bE=180/bd;function f2(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}const Ie={format:{},autodetect:[]};class Z{constructor(...e){const n=this;if(Le(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Zs(e),s=!1;if(!r){s=!0,Ie.sorted||(Ie.autodetect=Ie.autodetect.sort((a,c)=>c.p-a.p),Ie.sorted=!0);for(let a of Ie.autodetect)if(r=a.test(...e),r)break}if(Ie.format[r]){const a=Ie.format[r].apply(null,s?e:e.slice(0,-1));n._rgb=Om(a)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return Le(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const SE="3.1.2",ze=(...t)=>new Z(...t);ze.version=SE;const Ks={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_E=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,CE=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,p2=t=>{if(t.match(_E)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,s=e&255;return[n,r,s,1]}if(t.match(CE)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,s=e>>8&255,a=Math.round((e&255)/255*100)/100;return[n,r,s,a]}throw new Error(`unknown hex color: ${t}`)},{round:Kc}=Math,h2=(...t)=>{let[e,n,r,s]=Ae(t,"rgba"),a=Zs(t)||"auto";s===void 0&&(s=1),a==="auto"&&(a=s<1?"rgba":"rgb"),e=Kc(e),n=Kc(n),r=Kc(r);let u="000000"+(e<<16|n<<8|r).toString(16);u=u.substr(u.length-6);let f="0"+Kc(s*255).toString(16);switch(f=f.substr(f.length-2),a.toLowerCase()){case"rgba":return`#${u}${f}`;case"argb":return`#${f}${u}`;default:return`#${u}`}};Z.prototype.name=function(){const t=h2(this._rgb,"rgb");for(let e of Object.keys(Ks))if(Ks[e]===t)return e.toLowerCase();return t};Ie.format.named=t=>{if(t=t.toLowerCase(),Ks[t])return p2(Ks[t]);throw new Error("unknown color name: "+t)};Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&Ks[t.toLowerCase()])return"named"}});Z.prototype.alpha=function(t,e=!1){return t!==void 0&&Le(t)==="number"?e?(this._rgb[3]=t,this):new Z([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};Z.prototype.clipped=function(){return this._rgb._clipped||!1};const Qr={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},wE=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function _i(t){const e=wE.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Qr.labWhitePoint=t,Qr.Xn=e[0],Qr.Zn=e[1]}function yl(){return Qr.labWhitePoint}const Mm=(...t)=>{t=Ae(t,"lab");const[e,n,r]=t,[s,a,c]=xE(e,n,r),[u,f,h]=m2(s,a,c);return[u,f,h,t.length>3?t[3]:1]},xE=(t,e,n)=>{const{kE:r,kK:s,kKE:a,Xn:c,Yn:u,Zn:f}=Qr,h=(t+16)/116,y=.002*e+h,g=h-.005*n,v=y*y*y,C=g*g*g,w=v>r?v:(116*y-16)/s,_=t>a?Math.pow((t+16)/116,3):t/s,I=C>r?C:(116*g-16)/s,P=w*c,L=_*u,N=I*f;return[P,L,N]},Lp=t=>{const e=Math.sign(t);return t=Math.abs(t),(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*e},m2=(t,e,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:s,MtxXYZ2RGB:a,RefWhiteRGB:c,Xn:u,Yn:f,Zn:h}=Qr,y=u*r.m00+f*r.m10+h*r.m20,g=u*r.m01+f*r.m11+h*r.m21,v=u*r.m02+f*r.m12+h*r.m22,C=c.X*r.m00+c.Y*r.m10+c.Z*r.m20,w=c.X*r.m01+c.Y*r.m11+c.Z*r.m21,_=c.X*r.m02+c.Y*r.m12+c.Z*r.m22,I=(t*r.m00+e*r.m10+n*r.m20)*(C/y),P=(t*r.m01+e*r.m11+n*r.m21)*(w/g),L=(t*r.m02+e*r.m12+n*r.m22)*(_/v),N=I*s.m00+P*s.m10+L*s.m20,E=I*s.m01+P*s.m11+L*s.m21,O=I*s.m02+P*s.m12+L*s.m22,z=Lp(N*a.m00+E*a.m10+O*a.m20),M=Lp(N*a.m01+E*a.m11+O*a.m21),V=Lp(N*a.m02+E*a.m12+O*a.m22);return[z*255,M*255,V*255]},Dm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=y2(e,n,r),[f,h,y]=IE(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function IE(t,e,n){const{Xn:r,Yn:s,Zn:a,kE:c,kK:u}=Qr,f=t/r,h=e/s,y=n/a,g=f>c?Math.pow(f,1/3):(u*f+16)/116,v=h>c?Math.pow(h,1/3):(u*h+16)/116,C=y>c?Math.pow(y,1/3):(u*y+16)/116;return[116*v-16,500*(g-v),200*(v-C)]}function Fp(t){const e=Math.sign(t);return t=Math.abs(t),(t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}const y2=(t,e,n)=>{t=Fp(t/255),e=Fp(e/255),n=Fp(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:s,MtxAdaptMaI:a,Xn:c,Yn:u,Zn:f,As:h,Bs:y,Cs:g}=Qr;let v=t*r.m00+e*r.m10+n*r.m20,C=t*r.m01+e*r.m11+n*r.m21,w=t*r.m02+e*r.m12+n*r.m22;const _=c*s.m00+u*s.m10+f*s.m20,I=c*s.m01+u*s.m11+f*s.m21,P=c*s.m02+u*s.m12+f*s.m22;let L=v*s.m00+C*s.m10+w*s.m20,N=v*s.m01+C*s.m11+w*s.m21,E=v*s.m02+C*s.m12+w*s.m22;return L*=_/h,N*=I/y,E*=P/g,v=L*a.m00+N*a.m10+E*a.m20,C=L*a.m01+N*a.m11+E*a.m21,w=L*a.m02+N*a.m12+E*a.m22,[v,C,w]};Z.prototype.lab=function(){return Dm(this._rgb)};const kE=(...t)=>new Z(...t,"lab");Object.assign(ze,{lab:kE,getLabWhitePoint:yl,setLabWhitePoint:_i});Ie.format.lab=Mm;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"lab"),Le(t)==="array"&&t.length===3)return"lab"}});Z.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Qr.Kn*t,new Z(n,"lab").alpha(e.alpha(),!0)};Z.prototype.brighten=function(t=1){return this.darken(-t)};Z.prototype.darker=Z.prototype.darken;Z.prototype.brighter=Z.prototype.brighten;Z.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const s=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(s>-1)return r[s];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:TE}=Math,RE=1e-7,EE=20;Z.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&Le(t)==="number"){if(t===0)return new Z([0,0,0,this._rgb[3]],"rgb");if(t===1)return new Z([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=EE;const s=(c,u)=>{const f=c.interpolate(u,.5,e),h=f.luminance();return Math.abs(t-h)<RE||!r--?f:h>t?s(c,f):s(f,u)},a=(n>t?s(new Z([0,0,0]),this):s(this,new Z([255,255,255]))).rgb();return new Z([...a,this._rgb[3]])}return AE(...this._rgb.slice(0,3))};const AE=(t,e,n)=>(t=$p(t),e=$p(e),n=$p(n),.2126*t+.7152*e+.0722*n),$p=t=>(t/=255,t<=.03928?t/12.92:TE((t+.055)/1.055,2.4)),rn={},Qs=(t,e,n=.5,...r)=>{let s=r[0]||"lrgb";if(!rn[s]&&!r.length&&(s=Object.keys(rn)[0]),!rn[s])throw new Error(`interpolation mode ${s} is not defined`);return Le(t)!=="object"&&(t=new Z(t)),Le(e)!=="object"&&(e=new Z(e)),rn[s](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};Z.prototype.mix=Z.prototype.interpolate=function(t,e=.5,...n){return Qs(this,t,e,...n)};Z.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new Z([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};const{sin:PE,cos:OE}=Math,g2=(...t)=>{let[e,n,r]=Ae(t,"lch");return isNaN(r)&&(r=0),r=r*vE,[e,OE(r)*n,PE(r)*n]},Nm=(...t)=>{t=Ae(t,"lch");const[e,n,r]=t,[s,a,c]=g2(e,n,r),[u,f,h]=Mm(s,a,c);return[u,f,h,t.length>3?t[3]:1]},ME=(...t)=>{const e=f2(Ae(t,"hcl"));return Nm(...e)},{sqrt:DE,atan2:NE,round:BE}=Math,v2=(...t)=>{const[e,n,r]=Ae(t,"lab"),s=DE(n*n+r*r);let a=(NE(r,n)*bE+360)%360;return BE(s*1e4)===0&&(a=Number.NaN),[e,s,a]},Bm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=Dm(e,n,r),[f,h,y]=v2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};Z.prototype.lch=function(){return Bm(this._rgb)};Z.prototype.hcl=function(){return f2(Bm(this._rgb))};const LE=(...t)=>new Z(...t,"lch"),FE=(...t)=>new Z(...t,"hcl");Object.assign(ze,{lch:LE,hcl:FE});Ie.format.lch=Nm;Ie.format.hcl=ME;["lch","hcl"].forEach(t=>Ie.autodetect.push({p:2,test:(...e)=>{if(e=Ae(e,t),Le(e)==="array"&&e.length===3)return t}}));Z.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Qr.Kn*t,n[1]<0&&(n[1]=0),new Z(n,"lch").alpha(e.alpha(),!0)};Z.prototype.desaturate=function(t=1){return this.saturate(-t)};Z.prototype.set=function(t,e,n=!1){const[r,s]=t.split("."),a=this[r]();if(s){const c=r.indexOf(s)-(r.substr(0,2)==="ok"?2:0);if(c>-1){if(Le(e)=="string")switch(e.charAt(0)){case"+":a[c]+=+e;break;case"-":a[c]+=+e;break;case"*":a[c]*=+e.substr(1);break;case"/":a[c]/=+e.substr(1);break;default:a[c]=+e}else if(Le(e)==="number")a[c]=e;else throw new Error("unsupported value for Color.set");const u=new Z(a,r);return n?(this._rgb=u._rgb,this):u}throw new Error(`unknown channel ${s} in mode ${r}`)}else return a};Z.prototype.tint=function(t=.5,...e){return Qs(this,"white",t,...e)};Z.prototype.shade=function(t=.5,...e){return Qs(this,"black",t,...e)};const $E=(t,e,n)=>{const r=t._rgb,s=e._rgb;return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"rgb")};rn.rgb=$E;const{sqrt:zp,pow:Ss}=Math,zE=(t,e,n)=>{const[r,s,a]=t._rgb,[c,u,f]=e._rgb;return new Z(zp(Ss(r,2)*(1-n)+Ss(c,2)*n),zp(Ss(s,2)*(1-n)+Ss(u,2)*n),zp(Ss(a,2)*(1-n)+Ss(f,2)*n),"rgb")};rn.lrgb=zE;const jE=(t,e,n)=>{const r=t.lab(),s=e.lab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"lab")};rn.lab=jE;const ea=(t,e,n,r)=>{let s,a;r==="hsl"?(s=t.hsl(),a=e.hsl()):r==="hsv"?(s=t.hsv(),a=e.hsv()):r==="hcg"?(s=t.hcg(),a=e.hcg()):r==="hsi"?(s=t.hsi(),a=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",s=t.hcl(),a=e.hcl()):r==="oklch"&&(s=t.oklch().reverse(),a=e.oklch().reverse());let c,u,f,h,y,g;(r.substr(0,1)==="h"||r==="oklch")&&([c,f,y]=s,[u,h,g]=a);let v,C,w,_;return!isNaN(c)&&!isNaN(u)?(u>c&&u-c>180?_=u-(c+360):u<c&&c-u>180?_=u+360-c:_=u-c,C=c+n*_):isNaN(c)?isNaN(u)?C=Number.NaN:(C=u,(y==1||y==0)&&r!="hsv"&&(v=h)):(C=c,(g==1||g==0)&&r!="hsv"&&(v=f)),v===void 0&&(v=f+n*(h-f)),w=y+n*(g-y),r==="oklch"?new Z([w,v,C],r):new Z([C,v,w],r)},b2=(t,e,n)=>ea(t,e,n,"lch");rn.lch=b2;rn.hcl=b2;const UE=t=>{if(Le(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},VE=(...t)=>{const[e,n,r]=Ae(t,"rgb");return(e<<16)+(n<<8)+r};Z.prototype.num=function(){return VE(this._rgb)};const WE=(...t)=>new Z(...t,"num");Object.assign(ze,{num:WE});Ie.format.num=UE;Ie.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&Le(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const HE=(t,e,n)=>{const r=t.num(),s=e.num();return new Z(r+n*(s-r),"num")};rn.num=HE;const{floor:GE}=Math,YE=(...t)=>{t=Ae(t,"hcg");let[e,n,r]=t,s,a,c;r=r*255;const u=n*255;if(n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const f=GE(e),h=e-f,y=r*(1-n),g=y+u*(1-h),v=y+u*h,C=y+u;switch(f){case 0:[s,a,c]=[C,v,y];break;case 1:[s,a,c]=[g,C,y];break;case 2:[s,a,c]=[y,C,v];break;case 3:[s,a,c]=[y,g,C];break;case 4:[s,a,c]=[v,y,C];break;case 5:[s,a,c]=[C,y,g];break}}return[s,a,c,t.length>3?t[3]:1]},KE=(...t)=>{const[e,n,r]=Ae(t,"rgb"),s=u2(e,n,r),a=d2(e,n,r),c=a-s,u=c*100/255,f=s/(255-c)*100;let h;return c===0?h=Number.NaN:(e===a&&(h=(n-r)/c),n===a&&(h=2+(r-e)/c),r===a&&(h=4+(e-n)/c),h*=60,h<0&&(h+=360)),[h,u,f]};Z.prototype.hcg=function(){return KE(this._rgb)};const QE=(...t)=>new Z(...t,"hcg");ze.hcg=QE;Ie.format.hcg=YE;Ie.autodetect.push({p:1,test:(...t)=>{if(t=Ae(t,"hcg"),Le(t)==="array"&&t.length===3)return"hcg"}});const XE=(t,e,n)=>ea(t,e,n,"hcg");rn.hcg=XE;const{cos:_s}=Math,JE=(...t)=>{t=Ae(t,"hsi");let[e,n,r]=t,s,a,c;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(c=(1-n)/3,s=(1+n*_s(gi*e)/_s(Bp-gi*e))/3,a=1-(c+s)):e<2/3?(e-=1/3,s=(1-n)/3,a=(1+n*_s(gi*e)/_s(Bp-gi*e))/3,c=1-(s+a)):(e-=2/3,a=(1-n)/3,c=(1+n*_s(gi*e)/_s(Bp-gi*e))/3,s=1-(a+c)),s=$o(r*s*3),a=$o(r*a*3),c=$o(r*c*3),[s*255,a*255,c*255,t.length>3?t[3]:1]},{min:qE,sqrt:ZE,acos:eA}=Math,tA=(...t)=>{let[e,n,r]=Ae(t,"rgb");e/=255,n/=255,r/=255;let s;const a=qE(e,n,r),c=(e+n+r)/3,u=c>0?1-a/c:0;return u===0?s=NaN:(s=(e-n+(e-r))/2,s/=ZE((e-n)*(e-n)+(e-r)*(n-r)),s=eA(s),r>n&&(s=gi-s),s/=gi),[s*360,u,c]};Z.prototype.hsi=function(){return tA(this._rgb)};const nA=(...t)=>new Z(...t,"hsi");ze.hsi=nA;Ie.format.hsi=JE;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsi"),Le(t)==="array"&&t.length===3)return"hsi"}});const rA=(t,e,n)=>ea(t,e,n,"hsi");rn.hsi=rA;const gh=(...t)=>{t=Ae(t,"hsl");const[e,n,r]=t;let s,a,c;if(n===0)s=a=c=r*255;else{const u=[0,0,0],f=[0,0,0],h=r<.5?r*(1+n):r+n-r*n,y=2*r-h,g=e/360;u[0]=g+1/3,u[1]=g,u[2]=g-1/3;for(let v=0;v<3;v++)u[v]<0&&(u[v]+=1),u[v]>1&&(u[v]-=1),6*u[v]<1?f[v]=y+(h-y)*6*u[v]:2*u[v]<1?f[v]=h:3*u[v]<2?f[v]=y+(h-y)*(2/3-u[v])*6:f[v]=y;[s,a,c]=[f[0]*255,f[1]*255,f[2]*255]}return t.length>3?[s,a,c,t[3]]:[s,a,c,1]},S2=(...t)=>{t=Ae(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const s=u2(e,n,r),a=d2(e,n,r),c=(a+s)/2;let u,f;return a===s?(u=0,f=Number.NaN):u=c<.5?(a-s)/(a+s):(a-s)/(2-a-s),e==a?f=(n-r)/(a-s):n==a?f=2+(r-e)/(a-s):r==a&&(f=4+(e-n)/(a-s)),f*=60,f<0&&(f+=360),t.length>3&&t[3]!==void 0?[f,u,c,t[3]]:[f,u,c]};Z.prototype.hsl=function(){return S2(this._rgb)};const iA=(...t)=>new Z(...t,"hsl");ze.hsl=iA;Ie.format.hsl=gh;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsl"),Le(t)==="array"&&t.length===3)return"hsl"}});const oA=(t,e,n)=>ea(t,e,n,"hsl");rn.hsl=oA;const{floor:sA}=Math,aA=(...t)=>{t=Ae(t,"hsv");let[e,n,r]=t,s,a,c;if(r*=255,n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const u=sA(e),f=e-u,h=r*(1-n),y=r*(1-n*f),g=r*(1-n*(1-f));switch(u){case 0:[s,a,c]=[r,g,h];break;case 1:[s,a,c]=[y,r,h];break;case 2:[s,a,c]=[h,r,g];break;case 3:[s,a,c]=[h,y,r];break;case 4:[s,a,c]=[g,h,r];break;case 5:[s,a,c]=[r,h,y];break}}return[s,a,c,t.length>3?t[3]:1]},{min:lA,max:cA}=Math,uA=(...t)=>{t=Ae(t,"rgb");let[e,n,r]=t;const s=lA(e,n,r),a=cA(e,n,r),c=a-s;let u,f,h;return h=a/255,a===0?(u=Number.NaN,f=0):(f=c/a,e===a&&(u=(n-r)/c),n===a&&(u=2+(r-e)/c),r===a&&(u=4+(e-n)/c),u*=60,u<0&&(u+=360)),[u,f,h]};Z.prototype.hsv=function(){return uA(this._rgb)};const dA=(...t)=>new Z(...t,"hsv");ze.hsv=dA;Ie.format.hsv=aA;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsv"),Le(t)==="array"&&t.length===3)return"hsv"}});const fA=(t,e,n)=>ea(t,e,n,"hsv");rn.hsv=fA;function Qu(t,e){let n=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map(c=>[c]));let r=e[0].length,s=e[0].map((c,u)=>e.map(f=>f[u])),a=t.map(c=>s.map(u=>Array.isArray(c)?c.reduce((f,h,y)=>f+h*(u[y]||0),0):u.reduce((f,h)=>f+h*c,0)));return n===1&&(a=a[0]),r===1?a.map(c=>c[0]):a}const Lm=(...t)=>{t=Ae(t,"lab");const[e,n,r,...s]=t,[a,c,u]=pA([e,n,r]),[f,h,y]=m2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function pA(t){var e=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],r=Qu(n,t);return Qu(e,r.map(s=>s**3))}const Fm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),a=y2(e,n,r);return[...hA(a),...s.length>0&&s[0]<1?[s[0]]:[]]};function hA(t){const e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],r=Qu(e,t);return Qu(n,r.map(s=>Math.cbrt(s)))}Z.prototype.oklab=function(){return Fm(this._rgb)};const mA=(...t)=>new Z(...t,"oklab");Object.assign(ze,{oklab:mA});Ie.format.oklab=Lm;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklab"),Le(t)==="array"&&t.length===3)return"oklab"}});const yA=(t,e,n)=>{const r=t.oklab(),s=e.oklab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"oklab")};rn.oklab=yA;const gA=(t,e,n)=>ea(t,e,n,"oklch");rn.oklch=gA;const{pow:jp,sqrt:Up,PI:Vp,cos:Yv,sin:Kv,atan2:vA}=Math,bA=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const s=r/n.reduce(function(g,v){return g+v});if(n.forEach((g,v)=>{n[v]*=s}),t=t.map(g=>new Z(g)),e==="lrgb")return SA(t,n);const a=t.shift(),c=a.get(e),u=[];let f=0,h=0;for(let g=0;g<c.length;g++)if(c[g]=(c[g]||0)*n[0],u.push(isNaN(c[g])?0:n[0]),e.charAt(g)==="h"&&!isNaN(c[g])){const v=c[g]/180*Vp;f+=Yv(v)*n[0],h+=Kv(v)*n[0]}let y=a.alpha()*n[0];t.forEach((g,v)=>{const C=g.get(e);y+=g.alpha()*n[v+1];for(let w=0;w<c.length;w++)if(!isNaN(C[w]))if(u[w]+=n[v+1],e.charAt(w)==="h"){const _=C[w]/180*Vp;f+=Yv(_)*n[v+1],h+=Kv(_)*n[v+1]}else c[w]+=C[w]*n[v+1]});for(let g=0;g<c.length;g++)if(e.charAt(g)==="h"){let v=vA(h/u[g],f/u[g])/Vp*180;for(;v<0;)v+=360;for(;v>=360;)v-=360;c[g]=v}else c[g]=c[g]/u[g];return y/=r,new Z(c,e).alpha(y>.99999?1:y,!0)},SA=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let s=0;s<t.length;s++){const a=t[s],c=e[s]/n,u=a._rgb;r[0]+=jp(u[0],2)*c,r[1]+=jp(u[1],2)*c,r[2]+=jp(u[2],2)*c,r[3]+=u[3]*c}return r[0]=Up(r[0]),r[1]=Up(r[1]),r[2]=Up(r[2]),r[3]>.9999999&&(r[3]=1),new Z(Om(r))},{pow:_A}=Math;function Xu(t){let e="rgb",n=ze("#ccc"),r=0,s=[0,1],a=[],c=[0,0],u=!1,f=[],h=!1,y=0,g=1,v=!1,C={},w=!0,_=1;const I=function(M){if(M=M||["#fff","#000"],M&&Le(M)==="string"&&ze.brewer&&ze.brewer[M.toLowerCase()]&&(M=ze.brewer[M.toLowerCase()]),Le(M)==="array"){M.length===1&&(M=[M[0],M[0]]),M=M.slice(0);for(let V=0;V<M.length;V++)M[V]=ze(M[V]);a.length=0;for(let V=0;V<M.length;V++)a.push(V/(M.length-1))}return O(),f=M},P=function(M){if(u!=null){const V=u.length-1;let Y=0;for(;Y<V&&M>=u[Y];)Y++;return Y-1}return 0};let L=M=>M,N=M=>M;const E=function(M,V){let Y,S;if(V==null&&(V=!1),isNaN(M)||M===null)return n;V?S=M:u&&u.length>2?S=P(M)/(u.length-2):g!==y?S=(M-y)/(g-y):S=1,S=N(S),V||(S=L(S)),_!==1&&(S=_A(S,_)),S=c[0]+S*(1-c[0]-c[1]),S=$o(S,0,1);const j=Math.floor(S*1e4);if(w&&C[j])Y=C[j];else{if(Le(f)==="array")for(let W=0;W<a.length;W++){const X=a[W];if(S<=X){Y=f[W];break}if(S>=X&&W===a.length-1){Y=f[W];break}if(S>X&&S<a[W+1]){S=(S-X)/(a[W+1]-X),Y=ze.interpolate(f[W],f[W+1],S,e);break}}else Le(f)==="function"&&(Y=f(S));w&&(C[j]=Y)}return Y};var O=()=>C={};I(t);const z=function(M){const V=ze(E(M));return h&&V[h]?V[h]():V};return z.classes=function(M){if(M!=null){if(Le(M)==="array")u=M,s=[M[0],M[M.length-1]];else{const V=ze.analyze(s);M===0?u=[V.min,V.max]:u=ze.limits(V,"e",M)}return z}return u},z.domain=function(M){if(!arguments.length)return s;y=M[0],g=M[M.length-1],a=[];const V=f.length;if(M.length===V&&y!==g)for(let Y of Array.from(M))a.push((Y-y)/(g-y));else{for(let Y=0;Y<V;Y++)a.push(Y/(V-1));if(M.length>2){const Y=M.map((j,W)=>W/(M.length-1)),S=M.map(j=>(j-y)/(g-y));S.every((j,W)=>Y[W]===j)||(N=j=>{if(j<=0||j>=1)return j;let W=0;for(;j>=S[W+1];)W++;const X=(j-S[W])/(S[W+1]-S[W]);return Y[W]+X*(Y[W+1]-Y[W])})}}return s=[y,g],z},z.mode=function(M){return arguments.length?(e=M,O(),z):e},z.range=function(M,V){return I(M),z},z.out=function(M){return h=M,z},z.spread=function(M){return arguments.length?(r=M,z):r},z.correctLightness=function(M){return M==null&&(M=!0),v=M,O(),v?L=function(V){const Y=E(0,!0).lab()[0],S=E(1,!0).lab()[0],j=Y>S;let W=E(V,!0).lab()[0];const X=Y+(S-Y)*V;let ae=W-X,ce=0,de=1,fe=20;for(;Math.abs(ae)>.01&&fe-- >0;)(function(){return j&&(ae*=-1),ae<0?(ce=V,V+=(de-V)*.5):(de=V,V+=(ce-V)*.5),W=E(V,!0).lab()[0],ae=W-X})();return V}:L=V=>V,z},z.padding=function(M){return M!=null?(Le(M)==="number"&&(M=[M,M]),c=M,z):c},z.colors=function(M,V){arguments.length<2&&(V="hex");let Y=[];if(arguments.length===0)Y=f.slice(0);else if(M===1)Y=[z(.5)];else if(M>1){const S=s[0],j=s[1]-S;Y=CA(0,M).map(W=>z(S+W/(M-1)*j))}else{t=[];let S=[];if(u&&u.length>2)for(let j=1,W=u.length,X=1<=W;X?j<W:j>W;X?j++:j--)S.push((u[j-1]+u[j])*.5);else S=s;Y=S.map(j=>z(j))}return ze[V]&&(Y=Y.map(S=>S[V]())),Y},z.cache=function(M){return M!=null?(w=M,z):w},z.gamma=function(M){return M!=null?(_=M,z):_},z.nodata=function(M){return M!=null?(n=ze(M),z):n},z}function CA(t,e,n){let r=[],s=t<e,a=e;for(let c=t;s?c<a:c>a;s?c++:c--)r.push(c);return r}const wA=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let s=1;s<=e.length;s++)r[s]=(e[s]||0)+e[s-1];e=r}return e},xA=function(t){let e,n,r,s;if(t=t.map(a=>new Z(a)),t.length===2)[n,r]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>n[u]+a*(r[u]-n[u]));return new Z(c,"lab")};else if(t.length===3)[n,r,s]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>(1-a)*(1-a)*n[u]+2*(1-a)*a*r[u]+a*a*s[u]);return new Z(c,"lab")};else if(t.length===4){let a;[n,r,s,a]=t.map(c=>c.lab()),e=function(c){const u=[0,1,2].map(f=>(1-c)*(1-c)*(1-c)*n[f]+3*(1-c)*(1-c)*c*r[f]+3*(1-c)*c*c*s[f]+c*c*c*a[f]);return new Z(u,"lab")}}else if(t.length>=5){let a,c,u;a=t.map(f=>f.lab()),u=t.length-1,c=wA(u),e=function(f){const h=1-f,y=[0,1,2].map(g=>a.reduce((v,C,w)=>v+c[w]*h**(u-w)*f**w*C[g],0));return new Z(y,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},IA=t=>{const e=xA(t);return e.scale=()=>Xu(e),e},{round:_2}=Math;Z.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(_2)};Z.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:_2(e):e)};const kA=(...t)=>new Z(...t,"rgb");Object.assign(ze,{rgb:kA});Ie.format.rgb=(...t)=>{const e=Ae(t,"rgba");return e[3]===void 0&&(e[3]=1),e};Ie.autodetect.push({p:3,test:(...t)=>{if(t=Ae(t,"rgba"),Le(t)==="array"&&(t.length===3||t.length===4&&Le(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const Ir=(t,e,n)=>{if(!Ir[n])throw new Error("unknown blend mode "+n);return Ir[n](t,e)},uo=t=>(e,n)=>{const r=ze(n).rgb(),s=ze(e).rgb();return ze.rgb(t(r,s))},fo=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},TA=t=>t,RA=(t,e)=>t*e/255,EA=(t,e)=>t>e?e:t,AA=(t,e)=>t>e?t:e,PA=(t,e)=>255*(1-(1-t/255)*(1-e/255)),OA=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),MA=(t,e)=>255*(1-(1-e/255)/(t/255)),DA=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);Ir.normal=uo(fo(TA));Ir.multiply=uo(fo(RA));Ir.screen=uo(fo(PA));Ir.overlay=uo(fo(OA));Ir.darken=uo(fo(EA));Ir.lighten=uo(fo(AA));Ir.dodge=uo(fo(DA));Ir.burn=uo(fo(MA));const{pow:NA,sin:BA,cos:LA}=Math;function FA(t=300,e=-1.5,n=1,r=1,s=[0,1]){let a=0,c;Le(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const u=function(f){const h=gi*((t+120)/360+e*f),y=NA(s[0]+c*f,r),v=(a!==0?n[0]+f*a:n)*y*(1-y)/2,C=LA(h),w=BA(h),_=y+v*(-.14861*C+1.78277*w),I=y+v*(-.29227*C-.90649*w),P=y+v*(1.97294*C);return ze(Om([_*255,I*255,P*255,1]))};return u.start=function(f){return f==null?t:(t=f,u)},u.rotations=function(f){return f==null?e:(e=f,u)},u.gamma=function(f){return f==null?r:(r=f,u)},u.hue=function(f){return f==null?n:(n=f,Le(n)==="array"?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,u)},u.lightness=function(f){return f==null?s:(Le(f)==="array"?(s=f,c=f[1]-f[0]):(s=[f,f],c=0),u)},u.scale=()=>ze.scale(u),u.hue(n),u}const $A="0123456789abcdef",{floor:zA,random:jA}=Math,UA=()=>{let t="#";for(let e=0;e<6;e++)t+=$A.charAt(zA(jA()*16));return new Z(t,"hex")},{log:Qv,pow:VA,floor:WA,abs:HA}=Math;function C2(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Le(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&Le(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,s)=>w2(n,r,s),n}function w2(t,e="equal",n=7){Le(t)=="array"&&(t=C2(t));const{min:r,max:s}=t,a=t.values.sort((u,f)=>u-f);if(n===1)return[r,s];const c=[];if(e.substr(0,1)==="c"&&(c.push(r),c.push(s)),e.substr(0,1)==="e"){c.push(r);for(let u=1;u<n;u++)c.push(r+u/n*(s-r));c.push(s)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const u=Math.LOG10E*Qv(r),f=Math.LOG10E*Qv(s);c.push(r);for(let h=1;h<n;h++)c.push(VA(10,u+h/n*(f-u)));c.push(s)}else if(e.substr(0,1)==="q"){c.push(r);for(let u=1;u<n;u++){const f=(a.length-1)*u/n,h=WA(f);if(h===f)c.push(a[h]);else{const y=f-h;c.push(a[h]*(1-y)+a[h+1]*y)}}c.push(s)}else if(e.substr(0,1)==="k"){let u;const f=a.length,h=new Array(f),y=new Array(n);let g=!0,v=0,C=null;C=[],C.push(r);for(let I=1;I<n;I++)C.push(r+I/n*(s-r));for(C.push(s);g;){for(let P=0;P<n;P++)y[P]=0;for(let P=0;P<f;P++){const L=a[P];let N=Number.MAX_VALUE,E;for(let O=0;O<n;O++){const z=HA(C[O]-L);z<N&&(N=z,E=O),y[E]++,h[P]=E}}const I=new Array(n);for(let P=0;P<n;P++)I[P]=null;for(let P=0;P<f;P++)u=h[P],I[u]===null?I[u]=a[P]:I[u]+=a[P];for(let P=0;P<n;P++)I[P]*=1/y[P];g=!1;for(let P=0;P<n;P++)if(I[P]!==C[P]){g=!0;break}C=I,v++,v>200&&(g=!1)}const w={};for(let I=0;I<n;I++)w[I]=[];for(let I=0;I<f;I++)u=h[I],w[u].push(a[I]);let _=[];for(let I=0;I<n;I++)_.push(w[I][0]),_.push(w[I][w[I].length-1]);_=_.sort((I,P)=>I-P),c.push(_[0]);for(let I=1;I<_.length;I+=2){const P=_[I];!isNaN(P)&&c.indexOf(P)===-1&&c.push(P)}}return c}const GA=(t,e)=>{t=new Z(t),e=new Z(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)};/**
|
112
112
|
* @license
|
113
113
|
*
|
114
114
|
* The APCA contrast prediction algorithm is based of the formulas published
|
@@ -120,7 +120,7 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
120
120
|
*
|
121
121
|
* You can read more about the APCA Readability Criterion at
|
122
122
|
* https://readtech.org/ARC/
|
123
|
-
*/const Qv=.027,HA=5e-4,GA=.1,Xv=1.14,Qc=.022,Jv=1.414,YA=(t,e)=>{t=new Z(t),e=new Z(e),t.alpha()<1&&(t=Qs(e,t,t.alpha(),"rgb"));const n=qv(...t.rgb()),r=qv(...e.rgb()),s=n>=Qc?n:n+Math.pow(Qc-n,Jv),a=r>=Qc?r:r+Math.pow(Qc-r,Jv),c=Math.pow(a,.56)-Math.pow(s,.57),u=Math.pow(a,.65)-Math.pow(s,.62),f=Math.abs(a-s)<HA?0:s<a?c*Xv:u*Xv;return(Math.abs(f)<GA?0:f>0?f-Qv:f+Qv)*100};function qv(t,e,n){return .2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:di,pow:Ot,min:KA,max:QA,atan2:Zv,abs:e1,cos:Xc,sin:t1,exp:XA,PI:n1}=Math;function JA(t,e,n=1,r=1,s=1){var a=function(ue){return 360*ue/(2*n1)},c=function(ue){return 2*n1*ue/360};t=new Z(t),e=new Z(e);const[u,f,h]=Array.from(t.lab()),[y,g,v]=Array.from(e.lab()),C=(u+y)/2,w=di(Ot(f,2)+Ot(h,2)),_=di(Ot(g,2)+Ot(v,2)),I=(w+_)/2,P=.5*(1-di(Ot(I,7)/(Ot(I,7)+Ot(25,7)))),L=f*(1+P),B=g*(1+P),A=di(Ot(L,2)+Ot(h,2)),O=di(Ot(B,2)+Ot(v,2)),F=(A+O)/2,M=a(Zv(h,L)),V=a(Zv(v,B)),Y=M>=0?M:M+360,S=V>=0?V:V+360,j=e1(Y-S)>180?(Y+S+360)/2:(Y+S)/2,W=1-.17*Xc(c(j-30))+.24*Xc(c(2*j))+.32*Xc(c(3*j+6))-.2*Xc(c(4*j-63));let X=S-Y;X=e1(X)<=180?X:S<=Y?X+360:X-360,X=2*di(A*O)*t1(c(X)/2);const ae=y-u,ce=O-A,de=1+.015*Ot(C-50,2)/di(20+Ot(C-50,2)),fe=1+.045*F,q=1+.015*F*W,te=30*XA(-Ot((j-275)/25,2)),T=-(2*di(Ot(F,7)/(Ot(F,7)+Ot(25,7))))*t1(2*c(te)),G=di(Ot(ae/(n*de),2)+Ot(ce/(r*fe),2)+Ot(X/(s*q),2)+T*(ce/(r*fe))*(X/(s*q)));return QA(0,KA(100,G))}function qA(t,e,n="lab"){t=new Z(t),e=new Z(e);const r=t.get(n),s=e.get(n);let a=0;for(let c in r){const u=(r[c]||0)-(s[c]||0);a+=u*u}return Math.sqrt(a)}const ZA=(...t)=>{try{return new Z(...t),!0}catch{return!1}},eP={cool(){return Ju([ze.hsl(180,1,.9),ze.hsl(250,.7,.4)])},hot(){return Ju(["#000","#f00","#ff0","#fff"]).mode("rgb")}},vh={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},C2=Object.keys(vh),r1=new Map(C2.map(t=>[t.toLowerCase(),t])),tP=typeof Proxy=="function"?new Proxy(vh,{get(t,e){const n=e.toLowerCase();if(r1.has(n))return t[r1.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(C2)}}):vh,nP=(...t)=>{t=Ae(t,"cmyk");const[e,n,r,s]=t,a=t.length>4?t[4]:1;return s===1?[0,0,0,a]:[e>=1?0:255*(1-e)*(1-s),n>=1?0:255*(1-n)*(1-s),r>=1?0:255*(1-r)*(1-s),a]},{max:i1}=Math,rP=(...t)=>{let[e,n,r]=Ae(t,"rgb");e=e/255,n=n/255,r=r/255;const s=1-i1(e,i1(n,r)),a=s<1?1/(1-s):0,c=(1-e-s)*a,u=(1-n-s)*a,f=(1-r-s)*a;return[c,u,f,s]};Z.prototype.cmyk=function(){return rP(this._rgb)};const iP=(...t)=>new Z(...t,"cmyk");Object.assign(ze,{cmyk:iP});Ie.format.cmyk=nP;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"cmyk"),Le(t)==="array"&&t.length===4)return"cmyk"}});const oP=(...t)=>{const e=Ae(t,"hsla");let n=Zs(t)||"lsa";return e[0]=sr(e[0]||0)+"deg",e[1]=sr(e[1]*100)+"%",e[2]=sr(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),n="hsla"):e.length=3,`${n.substr(0,3)}(${e.join(" ")})`},sP=(...t)=>{const e=Ae(t,"lab");let n=Zs(t)||"lab";return e[0]=sr(e[0])+"%",e[1]=sr(e[1]),e[2]=sr(e[2]),n==="laba"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},aP=(...t)=>{const e=Ae(t,"lch");let n=Zs(t)||"lab";return e[0]=sr(e[0])+"%",e[1]=sr(e[1]),e[2]=isNaN(e[2])?"none":sr(e[2])+"deg",n==="lcha"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},lP=(...t)=>{const e=Ae(t,"lab");return e[0]=sr(e[0]*100)+"%",e[1]=yh(e[1]),e[2]=yh(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},w2=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=Lm(e,n,r),[f,h,y]=y2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},cP=(...t)=>{const e=Ae(t,"lch");return e[0]=sr(e[0]*100)+"%",e[1]=yh(e[1]),e[2]=isNaN(e[2])?"none":sr(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},{round:Hp}=Math,uP=(...t)=>{const e=Ae(t,"rgba");let n=Zs(t)||"rgb";if(n.substr(0,3)==="hsl")return oP(v2(e),n);if(n.substr(0,3)==="lab"){const r=yl();_i("d50");const s=sP(Mm(e),n);return _i(r),s}if(n.substr(0,3)==="lch"){const r=yl();_i("d50");const s=aP(Nm(e),n);return _i(r),s}return n.substr(0,5)==="oklab"?lP(Lm(e)):n.substr(0,5)==="oklch"?cP(w2(e)):(e[0]=Hp(e[0]),e[1]=Hp(e[1]),e[2]=Hp(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),n="rgba"),`${n.substr(0,3)}(${e.slice(0,n==="rgb"?3:4).join(" ")})`)},x2=(...t)=>{t=Ae(t,"lch");const[e,n,r,...s]=t,[a,c,u]=m2(e,n,r),[f,h,y]=Bm(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},xi=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,wr=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,qu=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,lr=/\s*/.source,ta=/\s+/.source,Fm=/\s*,\s*/.source,_d=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,na=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,I2=new RegExp("^rgba?\\("+lr+[xi,xi,xi].join(ta)+na+"\\)$"),k2=new RegExp("^rgb\\("+lr+[xi,xi,xi].join(Fm)+lr+"\\)$"),T2=new RegExp("^rgba\\("+lr+[xi,xi,xi,wr].join(Fm)+lr+"\\)$"),R2=new RegExp("^hsla?\\("+lr+[_d,qu,qu].join(ta)+na+"\\)$"),E2=new RegExp("^hsl?\\("+lr+[_d,qu,qu].join(Fm)+lr+"\\)$"),A2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,P2=new RegExp("^lab\\("+lr+[wr,wr,wr].join(ta)+na+"\\)$"),O2=new RegExp("^lch\\("+lr+[wr,wr,_d].join(ta)+na+"\\)$"),M2=new RegExp("^oklab\\("+lr+[wr,wr,wr].join(ta)+na+"\\)$"),D2=new RegExp("^oklch\\("+lr+[wr,wr,_d].join(ta)+na+"\\)$"),{round:N2}=Math,Cs=t=>t.map((e,n)=>n<=2?$o(N2(e),0,255):e),Mt=(t,e=0,n=100,r=!1)=>(typeof t=="string"&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,r?t=e+(t+1)*.5*(n-e):t=e+t*(n-e)),+t),dn=(t,e)=>t==="none"?e:t,$m=t=>{if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e;if(Ie.format.named)try{return Ie.format.named(t)}catch{}if((e=t.match(I2))||(e=t.match(k2))){let n=e.slice(1,4);for(let s=0;s<3;s++)n[s]=+Mt(dn(n[s],0),0,255);n=Cs(n);const r=e[4]!==void 0?+Mt(e[4],0,1):1;return n[3]=r,n}if(e=t.match(T2)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+Mt(n[r],0,255);return n}if((e=t.match(R2))||(e=t.match(E2))){const n=e.slice(1,4);n[0]=+dn(n[0].replace("deg",""),0),n[1]=+Mt(dn(n[1],0),0,100)*.01,n[2]=+Mt(dn(n[2],0),0,100)*.01;const r=Cs(gh(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(A2)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=gh(n);for(let s=0;s<3;s++)r[s]=N2(r[s]);return r[3]=+e[4],r}if(e=t.match(P2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,100),n[1]=Mt(dn(n[1],0),-125,125,!0),n[2]=Mt(dn(n[2],0),-125,125,!0);const r=yl();_i("d50");const s=Cs(Om(n));_i(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(O2)){const n=e.slice(1,4);n[0]=Mt(n[0],0,100),n[1]=Mt(dn(n[1],0),0,150,!1),n[2]=+dn(n[2].replace("deg",""),0);const r=yl();_i("d50");const s=Cs(Dm(n));_i(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(M2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,1),n[1]=Mt(dn(n[1],0),-.4,.4,!0),n[2]=Mt(dn(n[2],0),-.4,.4,!0);const r=Cs(Bm(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(D2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,1),n[1]=Mt(dn(n[1],0),0,.4,!1),n[2]=+dn(n[2].replace("deg",""),0);const r=Cs(x2(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}};$m.test=t=>I2.test(t)||R2.test(t)||P2.test(t)||O2.test(t)||M2.test(t)||D2.test(t)||k2.test(t)||T2.test(t)||E2.test(t)||A2.test(t)||t==="transparent";Z.prototype.css=function(t){return uP(this._rgb,t)};const dP=(...t)=>new Z(...t,"css");ze.css=dP;Ie.format.css=$m;Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&$m.test(t))return"css"}});Ie.format.gl=(...t)=>{const e=Ae(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};const fP=(...t)=>new Z(...t,"gl");ze.gl=fP;Z.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};Z.prototype.hex=function(t){return f2(this._rgb,t)};const pP=(...t)=>new Z(...t,"hex");ze.hex=pP;Ie.format.hex=d2;Ie.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{log:Jc}=Math,B2=t=>{const e=t/100;let n,r,s;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*Jc(r),s=e<20?0:-254.76935184120902+.8274096064007395*(s=e-10)+115.67994401066147*Jc(s)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*Jc(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*Jc(r),s=255),[n,r,s,1]},{round:hP}=Math,mP=(...t)=>{const e=Ae(t,"rgb"),n=e[0],r=e[2];let s=1e3,a=4e4;const c=.4;let u;for(;a-s>c;){u=(a+s)*.5;const f=B2(u);f[2]/f[0]>=r/n?a=u:s=u}return hP(u)};Z.prototype.temp=Z.prototype.kelvin=Z.prototype.temperature=function(){return mP(this._rgb)};const Gp=(...t)=>new Z(...t,"temp");Object.assign(ze,{temp:Gp,kelvin:Gp,temperature:Gp});Ie.format.temp=Ie.format.kelvin=Ie.format.temperature=B2;Z.prototype.oklch=function(){return w2(this._rgb)};const yP=(...t)=>new Z(...t,"oklch");Object.assign(ze,{oklch:yP});Ie.format.oklch=x2;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklch"),Le(t)==="array"&&t.length===3)return"oklch"}});Object.assign(ze,{analyze:S2,average:gA,bezier:wA,blend:Ir,brewer:tP,Color:Z,colors:Ks,contrast:WA,contrastAPCA:YA,cubehelix:BA,deltaE:JA,distance:qA,input:Ie,interpolate:Qs,limits:_2,mix:Qs,random:zA,scale:Ju,scales:eP,valid:ZA});function gP(t){const{theme:e}=dm(),n=JSON.stringify(e),r=Kt.useMemo(()=>{const s=JSON.parse(n);if(s==null)return;const a=ze.scale([s.textColor,s.backgroundColor]).mode("lab");return bd({palette:{mode:s.base==="dark"?"dark":"light",primary:{main:s.primaryColor},background:{default:s.backgroundColor,paper:s.secondaryBackgroundColor},text:{primary:s.textColor,secondary:a(.1).hex(),disabled:a(.5).hex()}},typography:{fontFamily:s.font}})},[n]);return r==null?z.jsx(z.Fragment,{children:t.children}):z.jsx(pE,{theme:r,children:t.children})}function vP(t){return z.jsx(w3,{...t,defaultTheme:Am,themeId:Cr})}function zm(t){return function(n){return z.jsx(vP,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function sn(t){return fR(t)}const bh=typeof zm({})=="function",bP=(t,e)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...e&&!t.vars&&{colorScheme:t.palette.mode}}),SP=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),L2=(t,e=!1)=>{var a,c;const n={};e&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([u,f])=>{var y,g;const h=t.getColorSchemeSelector(u);h.startsWith("@")?n[h]={":root":{colorScheme:(y=f.palette)==null?void 0:y.mode}}:n[h.replace(/\s*&/,"")]={colorScheme:(g=f.palette)==null?void 0:g.mode}});let r={html:bP(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...SP(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...n};const s=(c=(a=t.components)==null?void 0:a.MuiCssBaseline)==null?void 0:c.styleOverrides;return s&&(r=[r,s]),r},uu="mui-ecs",_P=t=>{const e=L2(t,!1),n=Array.isArray(e)?e[0]:e;return!t.vars&&n&&(n.html[`:root:has(${uu})`]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,s])=>{var c,u;const a=t.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${uu}))`]:{colorScheme:(c=s.palette)==null?void 0:c.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${uu}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),e},CP=zm(bh?({theme:t,enableColorScheme:e})=>L2(t,e):({theme:t})=>_P(t));function wP(t){const e=sn({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=e;return z.jsxs(R.Fragment,{children:[bh&&z.jsx(CP,{enableColorScheme:r}),!bh&&!r&&z.jsx("span",{className:uu,style:{display:"none"}}),n]})}const F2=Kt.createContext(void 0),Pl=t=>{const e=R.useContext(F2);return e==null?null:e[t]};function xP(t){const e=dm(),{start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}=e.args.translations||{},h=R.useMemo(()=>({start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}),[n,r,s,a,c,u,f]);return z.jsx(F2.Provider,{value:h,children:t.children})}const IP=Kt.memo(xP),kP=mn("MuiBox",["root"]),TP=bd(),Ls=k3({themeId:Cr,defaultTheme:TP,defaultClassName:kP.root,generateClassName:$S.generate}),On=pR;function ws(t,e){const{className:n,elementType:r,ownerState:s,externalForwardedProps:a,internalForwardedProps:c,shouldForwardComponentProp:u=!1,...f}=e,{component:h,slots:y={[t]:void 0},slotProps:g={[t]:void 0},...v}=a,C=y[t]||r,w=rR(g[t],s),{props:{component:_,...I},internalRef:P}=nR({className:n,...f,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:w}),L=hl(P,w==null?void 0:w.ref,e.ref),B=t==="root"?_||h:_,A=eR(C,{...t==="root"&&!h&&!y[t]&&c,...t!=="root"&&!y[t]&&c,...I,...B&&!u&&{as:B},...B&&u&&{component:B},ref:L},s);return[C,A]}function RP(t){return typeof t.main=="string"}function EP(t,e=[]){if(!RP(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Ii(t=[]){return([,e])=>e&&EP(e,t)}function AP(t){return hn("MuiPaper",t)}mn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PP=t=>{const{square:e,elevation:n,variant:r,classes:s}=t,a={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return yn(a,AP,s)},OP=Fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(On(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Cd=R.forwardRef(function(e,n){var C;const r=sn({props:e,name:"MuiPaper"}),s=s2(),{className:a,component:c="div",elevation:u=1,square:f=!1,variant:h="elevation",...y}=r,g={...r,component:c,elevation:u,square:f,variant:h},v=PP(g);return z.jsx(OP,{as:c,ownerState:g,className:ot(v.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(C=s.vars.overlays)==null?void 0:C[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Hr("#fff",mh(u))}, ${Hr("#fff",mh(u))})`}},...y.style}})});function MP(t){return hn("MuiAlert",t)}const o1=mn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function DP(t){return hn("MuiSvgIcon",t)}mn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const NP=t=>{const{color:e,fontSize:n,classes:r}=t,s={root:["root",e!=="inherit"&&`color${Oe(e)}`,`fontSize${Oe(n)}`]};return yn(s,DP,r)},BP=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Oe(n.color)}`],e[`fontSize${Oe(n.fontSize)}`]]}})(On(({theme:t})=>{var e,n,r,s,a,c,u,f,h,y,g,v,C,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(e=t.transitions)==null?void 0:e.create)==null?void 0:s.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,_])=>_&&_.main).map(([_])=>{var I,P;return{props:{color:_},style:{color:(P=(I=(t.vars??t).palette)==null?void 0:I[_])==null?void 0:P.main}}}),{props:{color:"action"},style:{color:(v=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(w=(C=(t.vars??t).palette)==null?void 0:C.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Sh=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiSvgIcon"}),{children:s,className:a,color:c="inherit",component:u="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:g,viewBox:v="0 0 24 24",...C}=r,w=R.isValidElement(s)&&s.type==="svg",_={...r,color:c,component:u,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:w},I={};y||(I.viewBox=v);const P=NP(_);return z.jsxs(BP,{as:u,className:ot(P.root,a),focusable:"false",color:h,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...I,...C,...w&&s.props,ownerState:_,children:[w?s.props.children:s,g?z.jsx("title",{children:g}):null]})});Sh.muiName="SvgIcon";function po(t,e){function n(r,s){return z.jsx(Sh,{"data-testid":`${e}Icon`,ref:s,...r,children:t})}return n.muiName=Sh.muiName,R.memo(R.forwardRef(n))}class Zu{constructor(){$a(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Zu}static use(){const e=QS(Zu.create).current,[n,r]=R.useState(!1);return e.shouldMount=n,e.setShouldMount=r,R.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=FP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function LP(){return Zu.use()}function FP(){let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n}function $P(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_h(t,e)}function zP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_h(t,e)}const s1=Kt.createContext(null);function jP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jm(t,e){var n=function(a){return e&&R.isValidElement(a)?e(a):a},r=Object.create(null);return t&&R.Children.map(t,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function UP(t,e){t=t||{},e=e||{};function n(y){return y in e?e[y]:t[y]}var r=Object.create(null),s=[];for(var a in t)a in e?s.length&&(r[a]=s,s=[]):s.push(a);var c,u={};for(var f in e){if(r[f])for(c=0;c<r[f].length;c++){var h=r[f][c];u[r[f][c]]=n(h)}u[f]=n(f)}for(c=0;c<s.length;c++)u[s[c]]=n(s[c]);return u}function Bo(t,e,n){return n[e]!=null?n[e]:t.props[e]}function VP(t,e){return jm(t.children,function(n){return R.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Bo(n,"appear",t),enter:Bo(n,"enter",t),exit:Bo(n,"exit",t)})})}function WP(t,e,n){var r=jm(t.children),s=UP(e,r);return Object.keys(s).forEach(function(a){var c=s[a];if(R.isValidElement(c)){var u=a in e,f=a in r,h=e[a],y=R.isValidElement(h)&&!h.props.in;f&&(!u||y)?s[a]=R.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:Bo(c,"exit",t),enter:Bo(c,"enter",t)}):!f&&u&&!y?s[a]=R.cloneElement(c,{in:!1}):f&&u&&R.isValidElement(h)&&(s[a]=R.cloneElement(c,{onExited:n.bind(null,c),in:h.props.in,exit:Bo(c,"exit",t),enter:Bo(c,"enter",t)}))}}),s}var HP=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},GP={component:"div",childFactory:function(e){return e}},Um=function(t){zP(e,t);function e(r,s){var a;a=t.call(this,r,s)||this;var c=a.handleExited.bind(jP(a));return a.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,a){var c=a.children,u=a.handleExited,f=a.firstRender;return{children:f?VP(s,u):WP(s,c,u),firstRender:!1}},n.handleExited=function(s,a){var c=jm(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(u){var f=Yu({},u.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,c=s.childFactory,u=$P(s,["component","childFactory"]),f=this.state.contextValue,h=HP(this.state.children).map(c);return delete u.appear,delete u.enter,delete u.exit,a===null?Kt.createElement(s1.Provider,{value:f},h):Kt.createElement(s1.Provider,{value:f},Kt.createElement(a,u,h))},e}(Kt.Component);Um.propTypes={};Um.defaultProps=GP;function YP(t){const{className:e,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:c,in:u,onExited:f,timeout:h}=t,[y,g]=R.useState(!1),v=ot(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),C={width:c,height:c,top:-(c/2)+a,left:-(c/2)+s},w=ot(n.child,y&&n.childLeaving,r&&n.childPulsate);return!u&&!y&&g(!0),R.useEffect(()=>{if(!u&&f!=null){const _=setTimeout(f,h);return()=>{clearTimeout(_)}}},[f,u,h]),z.jsx("span",{className:v,style:C,children:z.jsx("span",{className:w})})}const nr=mn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ch=550,KP=80,QP=Tl`
|
123
|
+
*/const Xv=.027,YA=5e-4,KA=.1,Jv=1.14,Qc=.022,qv=1.414,QA=(t,e)=>{t=new Z(t),e=new Z(e),t.alpha()<1&&(t=Qs(e,t,t.alpha(),"rgb"));const n=Zv(...t.rgb()),r=Zv(...e.rgb()),s=n>=Qc?n:n+Math.pow(Qc-n,qv),a=r>=Qc?r:r+Math.pow(Qc-r,qv),c=Math.pow(a,.56)-Math.pow(s,.57),u=Math.pow(a,.65)-Math.pow(s,.62),f=Math.abs(a-s)<YA?0:s<a?c*Jv:u*Jv;return(Math.abs(f)<KA?0:f>0?f-Xv:f+Xv)*100};function Zv(t,e,n){return .2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:di,pow:Ot,min:XA,max:JA,atan2:e1,abs:t1,cos:Xc,sin:n1,exp:qA,PI:r1}=Math;function ZA(t,e,n=1,r=1,s=1){var a=function(ue){return 360*ue/(2*r1)},c=function(ue){return 2*r1*ue/360};t=new Z(t),e=new Z(e);const[u,f,h]=Array.from(t.lab()),[y,g,v]=Array.from(e.lab()),C=(u+y)/2,w=di(Ot(f,2)+Ot(h,2)),_=di(Ot(g,2)+Ot(v,2)),I=(w+_)/2,P=.5*(1-di(Ot(I,7)/(Ot(I,7)+Ot(25,7)))),L=f*(1+P),N=g*(1+P),E=di(Ot(L,2)+Ot(h,2)),O=di(Ot(N,2)+Ot(v,2)),z=(E+O)/2,M=a(e1(h,L)),V=a(e1(v,N)),Y=M>=0?M:M+360,S=V>=0?V:V+360,j=t1(Y-S)>180?(Y+S+360)/2:(Y+S)/2,W=1-.17*Xc(c(j-30))+.24*Xc(c(2*j))+.32*Xc(c(3*j+6))-.2*Xc(c(4*j-63));let X=S-Y;X=t1(X)<=180?X:S<=Y?X+360:X-360,X=2*di(E*O)*n1(c(X)/2);const ae=y-u,ce=O-E,de=1+.015*Ot(C-50,2)/di(20+Ot(C-50,2)),fe=1+.045*z,q=1+.015*z*W,te=30*qA(-Ot((j-275)/25,2)),R=-(2*di(Ot(z,7)/(Ot(z,7)+Ot(25,7))))*n1(2*c(te)),G=di(Ot(ae/(n*de),2)+Ot(ce/(r*fe),2)+Ot(X/(s*q),2)+R*(ce/(r*fe))*(X/(s*q)));return JA(0,XA(100,G))}function eP(t,e,n="lab"){t=new Z(t),e=new Z(e);const r=t.get(n),s=e.get(n);let a=0;for(let c in r){const u=(r[c]||0)-(s[c]||0);a+=u*u}return Math.sqrt(a)}const tP=(...t)=>{try{return new Z(...t),!0}catch{return!1}},nP={cool(){return Xu([ze.hsl(180,1,.9),ze.hsl(250,.7,.4)])},hot(){return Xu(["#000","#f00","#ff0","#fff"]).mode("rgb")}},vh={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},x2=Object.keys(vh),i1=new Map(x2.map(t=>[t.toLowerCase(),t])),rP=typeof Proxy=="function"?new Proxy(vh,{get(t,e){const n=e.toLowerCase();if(i1.has(n))return t[i1.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(x2)}}):vh,iP=(...t)=>{t=Ae(t,"cmyk");const[e,n,r,s]=t,a=t.length>4?t[4]:1;return s===1?[0,0,0,a]:[e>=1?0:255*(1-e)*(1-s),n>=1?0:255*(1-n)*(1-s),r>=1?0:255*(1-r)*(1-s),a]},{max:o1}=Math,oP=(...t)=>{let[e,n,r]=Ae(t,"rgb");e=e/255,n=n/255,r=r/255;const s=1-o1(e,o1(n,r)),a=s<1?1/(1-s):0,c=(1-e-s)*a,u=(1-n-s)*a,f=(1-r-s)*a;return[c,u,f,s]};Z.prototype.cmyk=function(){return oP(this._rgb)};const sP=(...t)=>new Z(...t,"cmyk");Object.assign(ze,{cmyk:sP});Ie.format.cmyk=iP;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"cmyk"),Le(t)==="array"&&t.length===4)return"cmyk"}});const aP=(...t)=>{const e=Ae(t,"hsla");let n=Zs(t)||"lsa";return e[0]=sr(e[0]||0)+"deg",e[1]=sr(e[1]*100)+"%",e[2]=sr(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),n="hsla"):e.length=3,`${n.substr(0,3)}(${e.join(" ")})`},lP=(...t)=>{const e=Ae(t,"lab");let n=Zs(t)||"lab";return e[0]=sr(e[0])+"%",e[1]=sr(e[1]),e[2]=sr(e[2]),n==="laba"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},cP=(...t)=>{const e=Ae(t,"lch");let n=Zs(t)||"lab";return e[0]=sr(e[0])+"%",e[1]=sr(e[1]),e[2]=isNaN(e[2])?"none":sr(e[2])+"deg",n==="lcha"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},uP=(...t)=>{const e=Ae(t,"lab");return e[0]=sr(e[0]*100)+"%",e[1]=yh(e[1]),e[2]=yh(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},I2=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=Fm(e,n,r),[f,h,y]=v2(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},dP=(...t)=>{const e=Ae(t,"lch");return e[0]=sr(e[0]*100)+"%",e[1]=yh(e[1]),e[2]=isNaN(e[2])?"none":sr(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},{round:Wp}=Math,fP=(...t)=>{const e=Ae(t,"rgba");let n=Zs(t)||"rgb";if(n.substr(0,3)==="hsl")return aP(S2(e),n);if(n.substr(0,3)==="lab"){const r=yl();_i("d50");const s=lP(Dm(e),n);return _i(r),s}if(n.substr(0,3)==="lch"){const r=yl();_i("d50");const s=cP(Bm(e),n);return _i(r),s}return n.substr(0,5)==="oklab"?uP(Fm(e)):n.substr(0,5)==="oklch"?dP(I2(e)):(e[0]=Wp(e[0]),e[1]=Wp(e[1]),e[2]=Wp(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),n="rgba"),`${n.substr(0,3)}(${e.slice(0,n==="rgb"?3:4).join(" ")})`)},k2=(...t)=>{t=Ae(t,"lch");const[e,n,r,...s]=t,[a,c,u]=g2(e,n,r),[f,h,y]=Lm(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},xi=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,wr=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Ju=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,lr=/\s*/.source,ta=/\s+/.source,$m=/\s*,\s*/.source,Sd=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,na=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,T2=new RegExp("^rgba?\\("+lr+[xi,xi,xi].join(ta)+na+"\\)$"),R2=new RegExp("^rgb\\("+lr+[xi,xi,xi].join($m)+lr+"\\)$"),E2=new RegExp("^rgba\\("+lr+[xi,xi,xi,wr].join($m)+lr+"\\)$"),A2=new RegExp("^hsla?\\("+lr+[Sd,Ju,Ju].join(ta)+na+"\\)$"),P2=new RegExp("^hsl?\\("+lr+[Sd,Ju,Ju].join($m)+lr+"\\)$"),O2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,M2=new RegExp("^lab\\("+lr+[wr,wr,wr].join(ta)+na+"\\)$"),D2=new RegExp("^lch\\("+lr+[wr,wr,Sd].join(ta)+na+"\\)$"),N2=new RegExp("^oklab\\("+lr+[wr,wr,wr].join(ta)+na+"\\)$"),B2=new RegExp("^oklch\\("+lr+[wr,wr,Sd].join(ta)+na+"\\)$"),{round:L2}=Math,Cs=t=>t.map((e,n)=>n<=2?$o(L2(e),0,255):e),Mt=(t,e=0,n=100,r=!1)=>(typeof t=="string"&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,r?t=e+(t+1)*.5*(n-e):t=e+t*(n-e)),+t),dn=(t,e)=>t==="none"?e:t,zm=t=>{if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e;if(Ie.format.named)try{return Ie.format.named(t)}catch{}if((e=t.match(T2))||(e=t.match(R2))){let n=e.slice(1,4);for(let s=0;s<3;s++)n[s]=+Mt(dn(n[s],0),0,255);n=Cs(n);const r=e[4]!==void 0?+Mt(e[4],0,1):1;return n[3]=r,n}if(e=t.match(E2)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+Mt(n[r],0,255);return n}if((e=t.match(A2))||(e=t.match(P2))){const n=e.slice(1,4);n[0]=+dn(n[0].replace("deg",""),0),n[1]=+Mt(dn(n[1],0),0,100)*.01,n[2]=+Mt(dn(n[2],0),0,100)*.01;const r=Cs(gh(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(O2)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=gh(n);for(let s=0;s<3;s++)r[s]=L2(r[s]);return r[3]=+e[4],r}if(e=t.match(M2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,100),n[1]=Mt(dn(n[1],0),-125,125,!0),n[2]=Mt(dn(n[2],0),-125,125,!0);const r=yl();_i("d50");const s=Cs(Mm(n));_i(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(D2)){const n=e.slice(1,4);n[0]=Mt(n[0],0,100),n[1]=Mt(dn(n[1],0),0,150,!1),n[2]=+dn(n[2].replace("deg",""),0);const r=yl();_i("d50");const s=Cs(Nm(n));_i(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(N2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,1),n[1]=Mt(dn(n[1],0),-.4,.4,!0),n[2]=Mt(dn(n[2],0),-.4,.4,!0);const r=Cs(Lm(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(B2)){const n=e.slice(1,4);n[0]=Mt(dn(n[0],0),0,1),n[1]=Mt(dn(n[1],0),0,.4,!1),n[2]=+dn(n[2].replace("deg",""),0);const r=Cs(k2(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}};zm.test=t=>T2.test(t)||A2.test(t)||M2.test(t)||D2.test(t)||N2.test(t)||B2.test(t)||R2.test(t)||E2.test(t)||P2.test(t)||O2.test(t)||t==="transparent";Z.prototype.css=function(t){return fP(this._rgb,t)};const pP=(...t)=>new Z(...t,"css");ze.css=pP;Ie.format.css=zm;Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&zm.test(t))return"css"}});Ie.format.gl=(...t)=>{const e=Ae(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};const hP=(...t)=>new Z(...t,"gl");ze.gl=hP;Z.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};Z.prototype.hex=function(t){return h2(this._rgb,t)};const mP=(...t)=>new Z(...t,"hex");ze.hex=mP;Ie.format.hex=p2;Ie.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{log:Jc}=Math,F2=t=>{const e=t/100;let n,r,s;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*Jc(r),s=e<20?0:-254.76935184120902+.8274096064007395*(s=e-10)+115.67994401066147*Jc(s)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*Jc(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*Jc(r),s=255),[n,r,s,1]},{round:yP}=Math,gP=(...t)=>{const e=Ae(t,"rgb"),n=e[0],r=e[2];let s=1e3,a=4e4;const c=.4;let u;for(;a-s>c;){u=(a+s)*.5;const f=F2(u);f[2]/f[0]>=r/n?a=u:s=u}return yP(u)};Z.prototype.temp=Z.prototype.kelvin=Z.prototype.temperature=function(){return gP(this._rgb)};const Hp=(...t)=>new Z(...t,"temp");Object.assign(ze,{temp:Hp,kelvin:Hp,temperature:Hp});Ie.format.temp=Ie.format.kelvin=Ie.format.temperature=F2;Z.prototype.oklch=function(){return I2(this._rgb)};const vP=(...t)=>new Z(...t,"oklch");Object.assign(ze,{oklch:vP});Ie.format.oklch=k2;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklch"),Le(t)==="array"&&t.length===3)return"oklch"}});Object.assign(ze,{analyze:C2,average:bA,bezier:IA,blend:Ir,brewer:rP,Color:Z,colors:Ks,contrast:GA,contrastAPCA:QA,cubehelix:FA,deltaE:ZA,distance:eP,input:Ie,interpolate:Qs,limits:w2,mix:Qs,random:UA,scale:Xu,scales:nP,valid:tP});function bP(t){const{theme:e}=fm(),n=JSON.stringify(e),r=Kt.useMemo(()=>{const s=JSON.parse(n);if(s==null)return;const a=ze.scale([s.textColor,s.backgroundColor]).mode("lab");return vd({palette:{mode:s.base==="dark"?"dark":"light",primary:{main:s.primaryColor},background:{default:s.backgroundColor,paper:s.secondaryBackgroundColor},text:{primary:s.textColor,secondary:a(.1).hex(),disabled:a(.5).hex()}},typography:{fontFamily:s.font}})},[n]);return r==null?$.jsx($.Fragment,{children:t.children}):$.jsx(mE,{theme:r,children:t.children})}function SP(t){return $.jsx(I3,{...t,defaultTheme:Pm,themeId:Cr})}function jm(t){return function(n){return $.jsx(SP,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function sn(t){return hR(t)}const bh=typeof jm({})=="function",_P=(t,e)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...e&&!t.vars&&{colorScheme:t.palette.mode}}),CP=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),$2=(t,e=!1)=>{var a,c;const n={};e&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([u,f])=>{var y,g;const h=t.getColorSchemeSelector(u);h.startsWith("@")?n[h]={":root":{colorScheme:(y=f.palette)==null?void 0:y.mode}}:n[h.replace(/\s*&/,"")]={colorScheme:(g=f.palette)==null?void 0:g.mode}});let r={html:_P(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...CP(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...n};const s=(c=(a=t.components)==null?void 0:a.MuiCssBaseline)==null?void 0:c.styleOverrides;return s&&(r=[r,s]),r},uu="mui-ecs",wP=t=>{const e=$2(t,!1),n=Array.isArray(e)?e[0]:e;return!t.vars&&n&&(n.html[`:root:has(${uu})`]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,s])=>{var c,u;const a=t.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${uu}))`]:{colorScheme:(c=s.palette)==null?void 0:c.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${uu}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),e},xP=jm(bh?({theme:t,enableColorScheme:e})=>$2(t,e):({theme:t})=>wP(t));function IP(t){const e=sn({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=e;return $.jsxs(T.Fragment,{children:[bh&&$.jsx(xP,{enableColorScheme:r}),!bh&&!r&&$.jsx("span",{className:uu,style:{display:"none"}}),n]})}const z2=Kt.createContext(void 0),Pl=t=>{const e=T.useContext(z2);return e==null?null:e[t]};function kP(t){const e=fm(),{start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}=e.args.translations||{},h=T.useMemo(()=>({start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}),[n,r,s,a,c,u,f]);return $.jsx(z2.Provider,{value:h,children:t.children})}const TP=Kt.memo(kP),RP=mn("MuiBox",["root"]),EP=vd(),Ls=R3({themeId:Cr,defaultTheme:EP,defaultClassName:RP.root,generateClassName:jS.generate}),On=mR;function ws(t,e){const{className:n,elementType:r,ownerState:s,externalForwardedProps:a,internalForwardedProps:c,shouldForwardComponentProp:u=!1,...f}=e,{component:h,slots:y={[t]:void 0},slotProps:g={[t]:void 0},...v}=a,C=y[t]||r,w=oR(g[t],s),{props:{component:_,...I},internalRef:P}=iR({className:n,...f,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:w}),L=hl(P,w==null?void 0:w.ref,e.ref),N=t==="root"?_||h:_,E=nR(C,{...t==="root"&&!h&&!y[t]&&c,...t!=="root"&&!y[t]&&c,...I,...N&&!u&&{as:N},...N&&u&&{component:N},ref:L},s);return[C,E]}function AP(t){return typeof t.main=="string"}function PP(t,e=[]){if(!AP(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Ii(t=[]){return([,e])=>e&&PP(e,t)}function OP(t){return hn("MuiPaper",t)}mn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MP=t=>{const{square:e,elevation:n,variant:r,classes:s}=t,a={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return yn(a,OP,s)},DP=Fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(On(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),_d=T.forwardRef(function(e,n){var C;const r=sn({props:e,name:"MuiPaper"}),s=l2(),{className:a,component:c="div",elevation:u=1,square:f=!1,variant:h="elevation",...y}=r,g={...r,component:c,elevation:u,square:f,variant:h},v=MP(g);return $.jsx(DP,{as:c,ownerState:g,className:ot(v.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(C=s.vars.overlays)==null?void 0:C[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Hr("#fff",mh(u))}, ${Hr("#fff",mh(u))})`}},...y.style}})});function NP(t){return hn("MuiAlert",t)}const s1=mn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function BP(t){return hn("MuiSvgIcon",t)}mn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const LP=t=>{const{color:e,fontSize:n,classes:r}=t,s={root:["root",e!=="inherit"&&`color${Oe(e)}`,`fontSize${Oe(n)}`]};return yn(s,BP,r)},FP=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Oe(n.color)}`],e[`fontSize${Oe(n.fontSize)}`]]}})(On(({theme:t})=>{var e,n,r,s,a,c,u,f,h,y,g,v,C,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(e=t.transitions)==null?void 0:e.create)==null?void 0:s.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,_])=>_&&_.main).map(([_])=>{var I,P;return{props:{color:_},style:{color:(P=(I=(t.vars??t).palette)==null?void 0:I[_])==null?void 0:P.main}}}),{props:{color:"action"},style:{color:(v=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(w=(C=(t.vars??t).palette)==null?void 0:C.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Sh=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiSvgIcon"}),{children:s,className:a,color:c="inherit",component:u="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:g,viewBox:v="0 0 24 24",...C}=r,w=T.isValidElement(s)&&s.type==="svg",_={...r,color:c,component:u,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:w},I={};y||(I.viewBox=v);const P=LP(_);return $.jsxs(FP,{as:u,className:ot(P.root,a),focusable:"false",color:h,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...I,...C,...w&&s.props,ownerState:_,children:[w?s.props.children:s,g?$.jsx("title",{children:g}):null]})});Sh.muiName="SvgIcon";function po(t,e){function n(r,s){return $.jsx(Sh,{"data-testid":`${e}Icon`,ref:s,...r,children:t})}return n.muiName=Sh.muiName,T.memo(T.forwardRef(n))}class qu{constructor(){$a(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new qu}static use(){const e=JS(qu.create).current,[n,r]=T.useState(!1);return e.shouldMount=n,e.setShouldMount=r,T.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=zP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function $P(){return qu.use()}function zP(){let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n}function _h(){return _h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_h.apply(null,arguments)}function jP(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ch(t,e){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ch(t,e)}function UP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ch(t,e)}const a1=Kt.createContext(null);function VP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Um(t,e){var n=function(a){return e&&T.isValidElement(a)?e(a):a},r=Object.create(null);return t&&T.Children.map(t,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function WP(t,e){t=t||{},e=e||{};function n(y){return y in e?e[y]:t[y]}var r=Object.create(null),s=[];for(var a in t)a in e?s.length&&(r[a]=s,s=[]):s.push(a);var c,u={};for(var f in e){if(r[f])for(c=0;c<r[f].length;c++){var h=r[f][c];u[r[f][c]]=n(h)}u[f]=n(f)}for(c=0;c<s.length;c++)u[s[c]]=n(s[c]);return u}function Bo(t,e,n){return n[e]!=null?n[e]:t.props[e]}function HP(t,e){return Um(t.children,function(n){return T.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Bo(n,"appear",t),enter:Bo(n,"enter",t),exit:Bo(n,"exit",t)})})}function GP(t,e,n){var r=Um(t.children),s=WP(e,r);return Object.keys(s).forEach(function(a){var c=s[a];if(T.isValidElement(c)){var u=a in e,f=a in r,h=e[a],y=T.isValidElement(h)&&!h.props.in;f&&(!u||y)?s[a]=T.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:Bo(c,"exit",t),enter:Bo(c,"enter",t)}):!f&&u&&!y?s[a]=T.cloneElement(c,{in:!1}):f&&u&&T.isValidElement(h)&&(s[a]=T.cloneElement(c,{onExited:n.bind(null,c),in:h.props.in,exit:Bo(c,"exit",t),enter:Bo(c,"enter",t)}))}}),s}var YP=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},KP={component:"div",childFactory:function(e){return e}},Vm=function(t){UP(e,t);function e(r,s){var a;a=t.call(this,r,s)||this;var c=a.handleExited.bind(VP(a));return a.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,a){var c=a.children,u=a.handleExited,f=a.firstRender;return{children:f?HP(s,u):GP(s,c,u),firstRender:!1}},n.handleExited=function(s,a){var c=Um(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(u){var f=_h({},u.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,c=s.childFactory,u=jP(s,["component","childFactory"]),f=this.state.contextValue,h=YP(this.state.children).map(c);return delete u.appear,delete u.enter,delete u.exit,a===null?Kt.createElement(a1.Provider,{value:f},h):Kt.createElement(a1.Provider,{value:f},Kt.createElement(a,u,h))},e}(Kt.Component);Vm.propTypes={};Vm.defaultProps=KP;function QP(t){const{className:e,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:c,in:u,onExited:f,timeout:h}=t,[y,g]=T.useState(!1),v=ot(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),C={width:c,height:c,top:-(c/2)+a,left:-(c/2)+s},w=ot(n.child,y&&n.childLeaving,r&&n.childPulsate);return!u&&!y&&g(!0),T.useEffect(()=>{if(!u&&f!=null){const _=setTimeout(f,h);return()=>{clearTimeout(_)}}},[f,u,h]),$.jsx("span",{className:v,style:C,children:$.jsx("span",{className:w})})}const nr=mn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wh=550,XP=80,JP=Tl`
|
124
124
|
0% {
|
125
125
|
transform: scale(0);
|
126
126
|
opacity: 0.1;
|
@@ -130,7 +130,7 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
130
130
|
transform: scale(1);
|
131
131
|
opacity: 0.3;
|
132
132
|
}
|
133
|
-
`,
|
133
|
+
`,qP=Tl`
|
134
134
|
0% {
|
135
135
|
opacity: 1;
|
136
136
|
}
|
@@ -138,7 +138,7 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
138
138
|
100% {
|
139
139
|
opacity: 0;
|
140
140
|
}
|
141
|
-
`,
|
141
|
+
`,ZP=Tl`
|
142
142
|
0% {
|
143
143
|
transform: scale(1);
|
144
144
|
}
|
@@ -150,15 +150,15 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
150
150
|
100% {
|
151
151
|
transform: scale(1);
|
152
152
|
}
|
153
|
-
`,
|
153
|
+
`,e5=Fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),t5=Fe(QP,{name:"MuiTouchRipple",slot:"Ripple"})`
|
154
154
|
opacity: 0;
|
155
155
|
position: absolute;
|
156
156
|
|
157
157
|
&.${nr.rippleVisible} {
|
158
158
|
opacity: 0.3;
|
159
159
|
transform: scale(1);
|
160
|
-
animation-name: ${
|
161
|
-
animation-duration: ${
|
160
|
+
animation-name: ${JP};
|
161
|
+
animation-duration: ${wh}ms;
|
162
162
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
163
163
|
}
|
164
164
|
|
@@ -177,8 +177,8 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
177
177
|
|
178
178
|
& .${nr.childLeaving} {
|
179
179
|
opacity: 0;
|
180
|
-
animation-name: ${
|
181
|
-
animation-duration: ${
|
180
|
+
animation-name: ${qP};
|
181
|
+
animation-duration: ${wh}ms;
|
182
182
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
183
183
|
}
|
184
184
|
|
@@ -187,13 +187,13 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
187
187
|
/* @noflip */
|
188
188
|
left: 0px;
|
189
189
|
top: 0;
|
190
|
-
animation-name: ${
|
190
|
+
animation-name: ${ZP};
|
191
191
|
animation-duration: 2500ms;
|
192
192
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
193
193
|
animation-iteration-count: infinite;
|
194
194
|
animation-delay: 200ms;
|
195
195
|
}
|
196
|
-
`,
|
196
|
+
`,n5=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:c,...u}=r,[f,h]=T.useState([]),y=T.useRef(0),g=T.useRef(null);T.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const v=T.useRef(!1),C=eR(),w=T.useRef(null),_=T.useRef(null),I=T.useCallback(E=>{const{pulsate:O,rippleX:z,rippleY:M,rippleSize:V,cb:Y}=E;h(S=>[...S,$.jsx(t5,{classes:{ripple:ot(a.ripple,nr.ripple),rippleVisible:ot(a.rippleVisible,nr.rippleVisible),ripplePulsate:ot(a.ripplePulsate,nr.ripplePulsate),child:ot(a.child,nr.child),childLeaving:ot(a.childLeaving,nr.childLeaving),childPulsate:ot(a.childPulsate,nr.childPulsate)},timeout:wh,pulsate:O,rippleX:z,rippleY:M,rippleSize:V},y.current)]),y.current+=1,g.current=Y},[a]),P=T.useCallback((E={},O={},z=()=>{})=>{const{pulsate:M=!1,center:V=s||O.pulsate,fakeElement:Y=!1}=O;if((E==null?void 0:E.type)==="mousedown"&&v.current){v.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(v.current=!0);const S=Y?null:_.current,j=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,X,ae;if(V||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)W=Math.round(j.width/2),X=Math.round(j.height/2);else{const{clientX:ce,clientY:de}=E.touches&&E.touches.length>0?E.touches[0]:E;W=Math.round(ce-j.left),X=Math.round(de-j.top)}if(V)ae=Math.sqrt((2*j.width**2+j.height**2)/3),ae%2===0&&(ae+=1);else{const ce=Math.max(Math.abs((S?S.clientWidth:0)-W),W)*2+2,de=Math.max(Math.abs((S?S.clientHeight:0)-X),X)*2+2;ae=Math.sqrt(ce**2+de**2)}E!=null&&E.touches?w.current===null&&(w.current=()=>{I({pulsate:M,rippleX:W,rippleY:X,rippleSize:ae,cb:z})},C.start(XP,()=>{w.current&&(w.current(),w.current=null)})):I({pulsate:M,rippleX:W,rippleY:X,rippleSize:ae,cb:z})},[s,I,C]),L=T.useCallback(()=>{P({},{pulsate:!0})},[P]),N=T.useCallback((E,O)=>{if(C.clear(),(E==null?void 0:E.type)==="touchend"&&w.current){w.current(),w.current=null,C.start(0,()=>{N(E,O)});return}w.current=null,h(z=>z.length>0?z.slice(1):z),g.current=O},[C]);return T.useImperativeHandle(n,()=>({pulsate:L,start:P,stop:N}),[L,P,N]),$.jsx(e5,{className:ot(nr.root,a.root,c),ref:_,...u,children:$.jsx(Vm,{component:null,exit:!0,children:f})})});function r5(t){return hn("MuiButtonBase",t)}const i5=mn("MuiButtonBase",["root","disabled","focusVisible"]),o5=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:s}=t,c=yn({root:["root",e&&"disabled",n&&"focusVisible"]},r5,s);return n&&r&&(c.root+=` ${r}`),c},s5=Fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),j2=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:c,className:u,component:f="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:w="a",onBlur:_,onClick:I,onContextMenu:P,onDragLeave:L,onFocus:N,onFocusVisible:E,onKeyDown:O,onKeyUp:z,onMouseDown:M,onMouseLeave:V,onMouseUp:Y,onTouchEnd:S,onTouchMove:j,onTouchStart:W,tabIndex:X=0,TouchRippleProps:ae,touchRippleRef:ce,type:de,...fe}=r,q=T.useRef(null),te=$P(),ne=hl(te.ref,ce),[R,G]=T.useState(!1);h&&R&&G(!1),T.useImperativeHandle(s,()=>({focusVisible:()=>{G(!0),q.current.focus()}}),[]);const ue=te.shouldMount&&!y&&!h;T.useEffect(()=>{R&&v&&!y&&te.pulsate()},[y,v,R,te]);const ge=fi(te,"start",M,g),De=fi(te,"stop",P,g),xe=fi(te,"stop",L,g),$e=fi(te,"stop",Y,g),Ne=fi(te,"stop",me=>{R&&me.preventDefault(),V&&V(me)},g),je=fi(te,"start",W,g),Bt=fi(te,"stop",S,g),ur=fi(te,"stop",j,g),dr=fi(te,"stop",me=>{Dv(me.target)||G(!1),_&&_(me)},!1),Dn=Za(me=>{q.current||(q.current=me.currentTarget),Dv(me.target)&&(G(!0),E&&E(me)),N&&N(me)}),Je=()=>{const me=q.current;return f&&f!=="button"&&!(me.tagName==="A"&&me.href)},jt=Za(me=>{v&&!me.repeat&&R&&me.key===" "&&te.stop(me,()=>{te.start(me)}),me.target===me.currentTarget&&Je()&&me.key===" "&&me.preventDefault(),O&&O(me),me.target===me.currentTarget&&Je()&&me.key==="Enter"&&!h&&(me.preventDefault(),I&&I(me))}),fr=Za(me=>{v&&me.key===" "&&R&&!me.defaultPrevented&&te.stop(me,()=>{te.pulsate(me)}),z&&z(me),I&&me.target===me.currentTarget&&Je()&&me.key===" "&&!me.defaultPrevented&&I(me)});let Qt=f;Qt==="button"&&(fe.href||fe.to)&&(Qt=w);const st={};Qt==="button"?(st.type=de===void 0?"button":de,st.disabled=h):(!fe.href&&!fe.to&&(st.role="button"),h&&(st["aria-disabled"]=h));const Nn=hl(n,q),Xt={...r,centerRipple:a,component:f,disabled:h,disableRipple:y,disableTouchRipple:g,focusRipple:v,tabIndex:X,focusVisible:R},Yn=o5(Xt);return $.jsxs(s5,{as:Qt,className:ot(Yn.root,u),ownerState:Xt,onBlur:dr,onClick:I,onContextMenu:De,onFocus:Dn,onKeyDown:jt,onKeyUp:fr,onMouseDown:ge,onMouseLeave:Ne,onMouseUp:$e,onDragLeave:xe,onTouchEnd:Bt,onTouchMove:ur,onTouchStart:je,ref:Nn,tabIndex:h?-1:X,type:de,...st,...fe,children:[c,ue?$.jsx(n5,{ref:ne,center:a,...ae}):null]})});function fi(t,e,n,r=!1){return Za(s=>(n&&n(s),r||t[e](s),!0))}function a5(t){return hn("MuiCircularProgress",t)}mn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qi=44,xh=Tl`
|
197
197
|
0% {
|
198
198
|
transform: rotate(0deg);
|
199
199
|
}
|
@@ -201,7 +201,7 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
201
201
|
100% {
|
202
202
|
transform: rotate(360deg);
|
203
203
|
}
|
204
|
-
`,
|
204
|
+
`,Ih=Tl`
|
205
205
|
0% {
|
206
206
|
stroke-dasharray: 1px, 200px;
|
207
207
|
stroke-dashoffset: 0;
|
@@ -216,12 +216,12 @@ export default theme;`}function hh(t={},...e){const{breakpoints:n,mixins:r={},sp
|
|
216
216
|
stroke-dasharray: 1px, 200px;
|
217
217
|
stroke-dashoffset: -126px;
|
218
218
|
}
|
219
|
-
`,
|
220
|
-
animation: ${
|
221
|
-
`:null,
|
222
|
-
animation: ${
|
223
|
-
`:null,l5=t=>{const{classes:e,variant:n,color:r,disableShrink:s}=t,a={root:["root",n,`color${Oe(r)}`],svg:["svg"],circle:["circle",`circle${Oe(n)}`,s&&"circleDisableShrink"]};return yn(a,o5,e)},c5=Fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Oe(n.color)}`]]}})(On(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:s5||{animation:`${wh} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),u5=Fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),d5=Fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Oe(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(On(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:a5||{animation:`${xh} 1.4s ease-in-out infinite`}}]}))),Vm=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:c=!1,size:u=40,style:f,thickness:h=3.6,value:y=0,variant:g="indeterminate",...v}=r,C={...r,color:a,disableShrink:c,size:u,thickness:h,value:y,variant:g},w=l5(C),_={},I={},P={};if(g==="determinate"){const L=2*Math.PI*((Qi-h)/2);_.strokeDasharray=L.toFixed(3),P["aria-valuenow"]=Math.round(y),_.strokeDashoffset=`${((100-y)/100*L).toFixed(3)}px`,I.transform="rotate(-90deg)"}return z.jsx(c5,{className:ot(w.root,s),style:{width:u,height:u,...I,...f},ownerState:C,ref:n,role:"progressbar",...P,...v,children:z.jsx(u5,{className:w.svg,ownerState:C,viewBox:`${Qi/2} ${Qi/2} ${Qi} ${Qi}`,children:z.jsx(d5,{className:w.circle,style:_,ownerState:C,cx:Qi,cy:Qi,r:(Qi-h)/2,fill:"none",strokeWidth:h})})})});function f5(t){return hn("MuiIconButton",t)}const a1=mn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),p5=t=>{const{classes:e,disabled:n,color:r,edge:s,size:a,loading:c}=t,u={root:["root",c&&"loading",n&&"disabled",r!=="default"&&`color${Oe(r)}`,s&&`edge${Oe(s)}`,`size${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return yn(u,f5,e)},h5=Fe($2,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Oe(n.color)}`],n.edge&&e[`edge${Oe(n.edge)}`],e[`size${Oe(n.size)}`]]}})(On(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),On(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${a1.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${a1.loading}`]:{color:"transparent"}}))),m5=Fe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),y5=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiIconButton"}),{edge:s=!1,children:a,className:c,color:u="default",disabled:f=!1,disableFocusRipple:h=!1,size:y="medium",id:g,loading:v=null,loadingIndicator:C,...w}=r,_=KS(g),I=C??z.jsx(Vm,{"aria-labelledby":_,color:"inherit",size:16}),P={...r,edge:s,color:u,disabled:f,disableFocusRipple:h,loading:v,loadingIndicator:I,size:y},L=p5(P);return z.jsxs(h5,{id:v?_:g,className:ot(L.root,c),centerRipple:!0,focusRipple:!h,disabled:f||v,ref:n,...w,ownerState:P,children:[typeof v=="boolean"&&z.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:z.jsx(m5,{className:L.loadingIndicator,ownerState:P,children:v&&I})}),a]})}),g5=po(z.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),v5=po(z.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b5=po(z.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S5=po(z.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),_5=po(z.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),C5=t=>{const{variant:e,color:n,severity:r,classes:s}=t,a={root:["root",`color${Oe(n||r)}`,`${e}${Oe(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return yn(a,MP,s)},w5=Fe(Cd,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color||n.severity)}`]]}})(On(({theme:t})=>{const e=t.palette.mode==="light"?fl:pl,n=t.palette.mode==="light"?pl:fl;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Ii(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${o1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ii(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${o1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ii(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),x5=Fe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),I5=Fe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),k5=Fe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),l1={success:z.jsx(g5,{fontSize:"inherit"}),warning:z.jsx(v5,{fontSize:"inherit"}),error:z.jsx(b5,{fontSize:"inherit"}),info:z.jsx(S5,{fontSize:"inherit"})},z2=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiAlert"}),{action:s,children:a,className:c,closeText:u="Close",color:f,components:h={},componentsProps:y={},icon:g,iconMapping:v=l1,onClose:C,role:w="alert",severity:_="success",slotProps:I={},slots:P={},variant:L="standard",...B}=r,A={...r,color:f,severity:_,variant:L,colorSeverity:f||_},O=C5(A),F={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...P},slotProps:{...y,...I}},[M,V]=ws("root",{ref:n,shouldForwardComponentProp:!0,className:ot(O.root,c),elementType:w5,externalForwardedProps:{...F,...B},ownerState:A,additionalProps:{role:w,elevation:0}}),[Y,S]=ws("icon",{className:O.icon,elementType:x5,externalForwardedProps:F,ownerState:A}),[j,W]=ws("message",{className:O.message,elementType:I5,externalForwardedProps:F,ownerState:A}),[X,ae]=ws("action",{className:O.action,elementType:k5,externalForwardedProps:F,ownerState:A}),[ce,de]=ws("closeButton",{elementType:y5,externalForwardedProps:F,ownerState:A}),[fe,q]=ws("closeIcon",{elementType:_5,externalForwardedProps:F,ownerState:A});return z.jsxs(M,{...V,children:[g!==!1?z.jsx(Y,{...S,children:g||v[_]||l1[_]}):null,z.jsx(j,{...W,children:a}),s!=null?z.jsx(X,{...ae,children:s}):null,s==null&&C?z.jsx(X,{...ae,children:z.jsx(ce,{size:"small","aria-label":u,title:u,color:"inherit",onClick:C,...de,children:z.jsx(fe,{fontSize:"small",...q})})}):null]})});function T5(t){return hn("MuiButton",t)}const Eo=mn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),R5=R.createContext({}),E5=R.createContext(void 0),A5=t=>{const{color:e,disableElevation:n,fullWidth:r,size:s,variant:a,loading:c,loadingPosition:u,classes:f}=t,h={root:["root",c&&"loading",a,`${a}${Oe(e)}`,`size${Oe(s)}`,`${a}Size${Oe(s)}`,`color${Oe(e)}`,n&&"disableElevation",r&&"fullWidth",c&&`loadingPosition${Oe(u)}`],startIcon:["icon","startIcon",`iconSize${Oe(s)}`],endIcon:["icon","endIcon",`iconSize${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=yn(h,T5,f);return{...f,...y}},j2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],P5=Fe($2,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color)}`],e[`size${Oe(n.size)}`],e[`${n.variant}Size${Oe(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(On(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Eo.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Eo.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Eo.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Eo.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ii()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:Hr(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Eo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Eo.loading}`]:{color:"transparent"}}}]}})),O5=Fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...j2]})),M5=Fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...j2]})),D5=Fe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),c1=Fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),U2=R.forwardRef(function(e,n){const r=R.useContext(R5),s=R.useContext(E5),a=dl(r,e),c=sn({props:a,name:"MuiButton"}),{children:u,color:f="primary",component:h="button",className:y,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:w,focusVisibleClassName:_,fullWidth:I=!1,id:P,loading:L=null,loadingIndicator:B,loadingPosition:A="center",size:O="medium",startIcon:F,type:M,variant:V="text",...Y}=c,S=KS(P),j=B??z.jsx(Vm,{"aria-labelledby":S,color:"inherit",size:16}),W={...c,color:f,component:h,disabled:g,disableElevation:v,disableFocusRipple:C,fullWidth:I,loading:L,loadingIndicator:j,loadingPosition:A,size:O,type:M,variant:V},X=A5(W),ae=(F||L&&A==="start")&&z.jsx(O5,{className:X.startIcon,ownerState:W,children:F||z.jsx(c1,{className:X.loadingIconPlaceholder,ownerState:W})}),ce=(w||L&&A==="end")&&z.jsx(M5,{className:X.endIcon,ownerState:W,children:w||z.jsx(c1,{className:X.loadingIconPlaceholder,ownerState:W})}),de=s||"",fe=typeof L=="boolean"?z.jsx("span",{className:X.loadingWrapper,style:{display:"contents"},children:L&&z.jsx(D5,{className:X.loadingIndicator,ownerState:W,children:j})}):null;return z.jsxs(P5,{ownerState:W,className:ot(r.className,X.root,y,de),component:h,disabled:g||L,focusRipple:!C,focusVisibleClassName:ot(X.focusVisible,_),ref:n,type:M,id:L?S:P,...Y,classes:X,children:[ae,A!=="end"&&fe,u,A==="end"&&fe,ce]})}),Wm=MR({createStyledComponent:Fe("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>sn({props:t,name:"MuiStack"})});function V2(t){return hn("MuiNativeSelect",t)}const Hm=mn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),N5=t=>{const{classes:e,variant:n,disabled:r,multiple:s,open:a,error:c}=t,u={select:["select",n,r&&"disabled",s&&"multiple",c&&"error"],icon:["icon",`icon${Oe(n)}`,a&&"iconOpen",r&&"disabled"]};return yn(u,V2,e)},B5=Fe("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),L5=Fe(B5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Al,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${Hm.multiple}`]:e.multiple}]}})({}),F5=Fe("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Hm.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),$5=Fe(F5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Oe(n.variant)}`],n.open&&e.iconOpen]}})({}),z5=R.forwardRef(function(e,n){const{className:r,disabled:s,error:a,IconComponent:c,inputRef:u,variant:f="standard",...h}=e,y={...e,disabled:s,variant:f,error:a},g=N5(y);return z.jsxs(R.Fragment,{children:[z.jsx(L5,{ownerState:y,className:ot(g.select,r),disabled:s,ref:u||n,...h}),e.multiple?null:z.jsx($5,{as:c,ownerState:y,className:g.icon})]})});function wd({props:t,states:e,muiFormControl:n}){return e.reduce((r,s)=>(r[s]=t[s],n&&typeof t[s]>"u"&&(r[s]=n[s]),r),{})}const Gm=R.createContext(void 0);function xd(){return R.useContext(Gm)}const j5=po(z.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function qc(t){return parseInt(t,10)||0}const U5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function V5(t){for(const e in t)return!1;return!0}function u1(t){return V5(t)||t.outerHeightStyle===0&&!t.overflowing}const W5=R.forwardRef(function(e,n){const{onChange:r,maxRows:s,minRows:a=1,style:c,value:u,...f}=e,{current:h}=R.useRef(u!=null),y=R.useRef(null),g=hl(n,y),v=R.useRef(null),C=R.useRef(null),w=R.useCallback(()=>{const B=y.current,A=C.current;if(!B||!A)return;const F=Ev(B).getComputedStyle(B);if(F.width==="0px")return{outerHeightStyle:0,overflowing:!1};A.style.width=F.width,A.value=B.value||e.placeholder||"x",A.value.slice(-1)===`
|
224
|
-
`&&(A.value+=" ");const M=F.boxSizing,V=qc(F.paddingBottom)+qc(F.paddingTop),Y=qc(F.borderBottomWidth)+qc(F.borderTopWidth),S=A.scrollHeight;A.value="x";const j=A.scrollHeight;let W=S;a&&(W=Math.max(Number(a)*j,W)),s&&(W=Math.min(Number(s)*j,W)),W=Math.max(W,j);const X=W+(M==="border-box"?V+Y:0),ae=Math.abs(W-S)<=1;return{outerHeightStyle:X,overflowing:ae}},[s,a,e.placeholder]),_=Za(()=>{const B=y.current,A=w();if(!B||!A||u1(A))return!1;const O=A.outerHeightStyle;return v.current!=null&&v.current!==O}),I=R.useCallback(()=>{const B=y.current,A=w();if(!B||!A||u1(A))return;const O=A.outerHeightStyle;v.current!==O&&(v.current=O,B.style.height=`${O}px`),B.style.overflow=A.overflowing?"hidden":""},[w]),P=R.useRef(-1);Ys(()=>{const B=H3(I),A=y==null?void 0:y.current;if(!A)return;const O=Ev(A);O.addEventListener("resize",B);let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(()=>{_()&&(F.unobserve(A),cancelAnimationFrame(P.current),I(),P.current=requestAnimationFrame(()=>{F.observe(A)}))}),F.observe(A)),()=>{B.clear(),cancelAnimationFrame(P.current),O.removeEventListener("resize",B),F&&F.disconnect()}},[w,I,_]),Ys(()=>{I()});const L=B=>{h||I(),r&&r(B)};return z.jsxs(R.Fragment,{children:[z.jsx("textarea",{value:u,onChange:L,ref:g,rows:a,style:c,...f}),z.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:{...U5.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function d1(t){return typeof t=="string"}function f1(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Ih(t,e=!1){return t&&(f1(t.value)&&t.value!==""||e&&f1(t.defaultValue)&&t.defaultValue!=="")}function H5(t){return t.startAdornment}function G5(t){return hn("MuiInputBase",t)}const ed=mn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var p1;const W2=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Oe(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},H2=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Y5=t=>{const{classes:e,color:n,disabled:r,error:s,endAdornment:a,focused:c,formControl:u,fullWidth:f,hiddenLabel:h,multiline:y,readOnly:g,size:v,startAdornment:C,type:w}=t,_={root:["root",`color${Oe(n)}`,r&&"disabled",s&&"error",f&&"fullWidth",c&&"focused",u&&"formControl",v&&v!=="medium"&&`size${Oe(v)}`,y&&"multiline",C&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",w==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",C&&"inputAdornedStart",a&&"inputAdornedEnd",g&&"readOnly"]};return yn(_,G5,e)},G2=Fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:W2})(On(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ed.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Y2=Fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:H2})(On(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ed.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${ed.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),h1=zm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),K5=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:c,className:u,color:f,components:h={},componentsProps:y={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:C,endAdornment:w,error:_,fullWidth:I=!1,id:P,inputComponent:L="input",inputProps:B={},inputRef:A,margin:O,maxRows:F,minRows:M,multiline:V=!1,name:Y,onBlur:S,onChange:j,onClick:W,onFocus:X,onKeyDown:ae,onKeyUp:ce,placeholder:de,readOnly:fe,renderSuffix:q,rows:te,size:ne,slotProps:T={},slots:G={},startAdornment:ue,type:ge="text",value:De,...xe}=r,$e=B.value!=null?B.value:De,{current:Ne}=R.useRef($e!=null),je=R.useRef(),Bt=R.useCallback(He=>{},[]),ur=hl(je,A,B.ref,Bt),[dr,Dn]=R.useState(!1),Je=xd(),jt=wd({props:r,muiFormControl:Je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});jt.focused=Je?Je.focused:dr,R.useEffect(()=>{!Je&&v&&dr&&(Dn(!1),S&&S())},[Je,v,dr,S]);const fr=Je&&Je.onFilled,Qt=Je&&Je.onEmpty,st=R.useCallback(He=>{Ih(He)?fr&&fr():Qt&&Qt()},[fr,Qt]);Ys(()=>{Ne&&st({value:$e})},[$e,st,Ne]);const Nn=He=>{X&&X(He),B.onFocus&&B.onFocus(He),Je&&Je.onFocus?Je.onFocus(He):Dn(!0)},Xt=He=>{S&&S(He),B.onBlur&&B.onBlur(He),Je&&Je.onBlur?Je.onBlur(He):Dn(!1)},Yn=(He,...Jt)=>{if(!Ne){const ln=He.target||je.current;if(ln==null)throw new Error(io(1));st({value:ln.value})}B.onChange&&B.onChange(He,...Jt),j&&j(He,...Jt)};R.useEffect(()=>{st(je.current)},[]);const me=He=>{je.current&&He.currentTarget===He.target&&je.current.focus(),W&&W(He)};let Zr=L,an=B;V&&Zr==="input"&&(te?an={type:void 0,minRows:te,maxRows:te,...an}:an={type:void 0,maxRows:F,minRows:M,...an},Zr=W5);const ho=He=>{st(He.animationName==="mui-auto-fill-cancel"?je.current:{value:"x"})};R.useEffect(()=>{Je&&Je.setAdornedStart(!!ue)},[Je,ue]);const ei={...r,color:jt.color||"primary",disabled:jt.disabled,endAdornment:w,error:jt.error,focused:jt.focused,formControl:Je,fullWidth:I,hiddenLabel:jt.hiddenLabel,multiline:V,size:jt.size,startAdornment:ue,type:ge},ti=Y5(ei),vt=G.root||h.Root||G2,Tt=T.root||y.root||{},wt=G.input||h.Input||Y2;return an={...an,...T.input??y.input},z.jsxs(R.Fragment,{children:[!C&&typeof h1=="function"&&(p1||(p1=z.jsx(h1,{}))),z.jsxs(vt,{...Tt,ref:n,onClick:me,...xe,...!d1(vt)&&{ownerState:{...ei,...Tt.ownerState}},className:ot(ti.root,Tt.className,u,fe&&"MuiInputBase-readOnly"),children:[ue,z.jsx(Gm.Provider,{value:null,children:z.jsx(wt,{"aria-invalid":jt.error,"aria-describedby":s,autoComplete:a,autoFocus:c,defaultValue:g,disabled:jt.disabled,id:P,onAnimationStart:ho,name:Y,placeholder:de,readOnly:fe,required:jt.required,rows:te,value:$e,onKeyDown:ae,onKeyUp:ce,type:ge,...an,...!d1(wt)&&{as:Zr,ownerState:{...ei,...an.ownerState}},ref:ur,className:ot(ti.input,an.className,fe&&"MuiInputBase-readOnly"),onBlur:Xt,onChange:Yn,onFocus:Nn})}),w,q?q({...jt,startAdornment:ue}):null]})]})});function Q5(t){return hn("MuiInput",t)}const Wa={...ed,...mn("MuiInput",["root","underline","input"])},X5=t=>{const{classes:e,disableUnderline:n}=t,s=yn({root:["root",!n&&"underline"],input:["input"]},Q5,e);return{...e,...s}},J5=Fe(G2,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...W2(t,e),!n.disableUnderline&&e.underline]}})(On(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wa.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wa.disabled}, .${Wa.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Ii()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),q5=Fe(Y2,{name:"MuiInput",slot:"Input",overridesResolver:H2})({}),K2=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:y,slots:g={},type:v="text",...C}=r,w=X5(r),I={root:{ownerState:{disableUnderline:s}}},P=y??c?on(y??c,I):I,L=g.root??a.Root??J5,B=g.input??a.Input??q5;return z.jsx(K5,{slots:{root:L,input:B},slotProps:P,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:v,...C,classes:w})});K2.muiName="Input";const Z5=t=>{const{classes:e}=t;return yn({root:["root"]},V2,e)},e4=z.jsx(K2,{}),kh=R.forwardRef(function(e,n){const r=sn({name:"MuiNativeSelect",props:e}),{className:s,children:a,classes:c={},IconComponent:u=j5,input:f=e4,inputProps:h,variant:y,...g}=r,v=xd(),C=wd({props:r,muiFormControl:v,states:["variant"]}),w={...r,classes:c},_=Z5(w),{root:I,...P}=c;return z.jsx(R.Fragment,{children:R.cloneElement(f,{inputComponent:z5,inputProps:{children:a,classes:P,IconComponent:u,variant:C.variant,type:void 0,...h,...f?f.props.inputProps:{}},ref:n,...g,className:ot(_.root,f.props.className,s)})})});kh.muiName="Select";function t4(t){return hn("MuiFormLabel",t)}const el=mn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),n4=t=>{const{classes:e,color:n,focused:r,disabled:s,error:a,filled:c,required:u}=t,f={root:["root",`color${Oe(n)}`,s&&"disabled",a&&"error",c&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return yn(f,t4,e)},r4=Fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(On(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{[`&.${el.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${el.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${el.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),i4=Fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(On(({theme:t})=>({[`&.${el.error}`]:{color:(t.vars||t).palette.error.main}}))),o4=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiFormLabel"}),{children:s,className:a,color:c,component:u="label",disabled:f,error:h,filled:y,focused:g,required:v,...C}=r,w=xd(),_=wd({props:r,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),I={...r,color:_.color||"primary",component:u,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required},P=n4(I);return z.jsxs(r4,{as:u,ownerState:I,className:ot(P.root,a),ref:n,...C,children:[s,_.required&&z.jsxs(i4,{ownerState:I,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]})});function s4(t){return hn("MuiInputLabel",t)}mn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const a4=t=>{const{classes:e,formControl:n,size:r,shrink:s,disableAnimation:a,variant:c,required:u}=t,f={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",r&&r!=="normal"&&`size${Oe(r)}`,c],asterisk:[u&&"asterisk"]},h=yn(f,s4,e);return{...e,...h}},l4=Fe(o4,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${el.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(On(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),m1=R.forwardRef(function(e,n){const r=sn({name:"MuiInputLabel",props:e}),{disableAnimation:s=!1,margin:a,shrink:c,variant:u,className:f,...h}=r,y=xd();let g=c;typeof g>"u"&&y&&(g=y.filled||y.focused||y.adornedStart);const v=wd({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),C={...r,disableAnimation:s,formControl:y,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},w=a4(C);return z.jsx(l4,{"data-shrink":g,ref:n,className:ot(w.root,f),...h,ownerState:C,classes:w})});function c4(t){return hn("MuiFormControl",t)}mn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const u4=t=>{const{classes:e,margin:n,fullWidth:r}=t,s={root:["root",n!=="none"&&`margin${Oe(n)}`,r&&"fullWidth"]};return yn(s,c4,e)},d4=Fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Oe(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),y1=R.forwardRef(function(e,n){const r=sn({props:e,name:"MuiFormControl"}),{children:s,className:a,color:c="primary",component:u="div",disabled:f=!1,error:h=!1,focused:y,fullWidth:g=!1,hiddenLabel:v=!1,margin:C="none",required:w=!1,size:_="medium",variant:I="outlined",...P}=r,L={...r,color:c,component:u,disabled:f,error:h,fullWidth:g,hiddenLabel:v,margin:C,required:w,size:_,variant:I},B=u4(L),[A,O]=R.useState(()=>{let ce=!1;return s&&R.Children.forEach(s,de=>{if(!Op(de,["Input","Select"]))return;const fe=Op(de,["Select"])?de.props.input:de;fe&&H5(fe.props)&&(ce=!0)}),ce}),[F,M]=R.useState(()=>{let ce=!1;return s&&R.Children.forEach(s,de=>{Op(de,["Input","Select"])&&(Ih(de.props,!0)||Ih(de.props.inputProps,!0))&&(ce=!0)}),ce}),[V,Y]=R.useState(!1);f&&V&&Y(!1);const S=y!==void 0&&!f?y:V;let j;R.useRef(!1);const W=R.useCallback(()=>{M(!0)},[]),X=R.useCallback(()=>{M(!1)},[]),ae=R.useMemo(()=>({adornedStart:A,setAdornedStart:O,color:c,disabled:f,error:h,filled:F,focused:S,fullWidth:g,hiddenLabel:v,size:_,onBlur:()=>{Y(!1)},onFocus:()=>{Y(!0)},onEmpty:X,onFilled:W,registerEffect:j,required:w,variant:I}),[A,c,f,h,F,S,g,v,j,X,W,w,_,I]);return z.jsx(Gm.Provider,{value:ae,children:z.jsx(d4,{as:u,ownerState:L,className:ot(B.root,a),ref:n,...P,children:s})})}),f4=GS({themeId:Cr});function p4(t){const e=s2(),n=f4(e.breakpoints.down("sm"));return R.useEffect(()=>{Tn.setFrameHeight()},[n]),z.jsx(Wm,{direction:n?"column":"row",spacing:2,children:t.children})}const h4=Fe(Ls)(({theme:t})=>({position:"relative",[t.breakpoints.down("sm")]:{width:"100%"},width:t.spacing(24),height:t.spacing(16),maxHeight:t.spacing(16),display:"flex",justifyContent:"center",alignItems:"center"})),m4=h4,y4=Fe(Cd)(({theme:t})=>({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",padding:t.spacing(2),boxSizing:"border-box"})),Ol=y4;function g4(){return z.jsx(Ol,{children:Pl("media_api_not_available")||"Media API not available"})}function v4(){return z.jsx(Ol,{children:Pl("device_ask_permission")||"Please allow the app to use your media devices"})}function b4(t){return z.jsxs(Ol,{children:[Pl("device_access_denied")||"Access denied"," (",t.error.message,")"]})}function S4(t){return z.jsxs(Ol,{children:[Pl("device_not_available")||"Device not available"," (",t.error.message,")"]})}const _4=po(z.jsx("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73z"}),"VideocamOff"),C4=Fe(Cd)({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"});function w4(){return z.jsx(C4,{children:z.jsx(_4,{fontSize:"large"})})}const x4=Kt.memo(w4),I4=Fe(Ls,{shouldForwardProp:t=>t!=="$transparent"})(({theme:t,$transparent:e})=>({margin:0,padding:0,position:"relative","&:before":{position:"absolute",content:'""',width:"100%",height:"100%",opacity:e?0:1,backgroundColor:t.palette.background.default,transition:"opacity 0.3s"}}));function k4(t){const[e,n]=R.useState(!1);return R.useEffect(()=>{const r=setTimeout(()=>{n(!0)},t.time);return()=>clearTimeout(r)},[t.time]),z.jsx(I4,{$transparent:e,children:t.children})}const T4=Fe("video")({maxWidth:"100%",maxHeight:"100%"}),R4=T4;function Th(t){t.getVideoTracks().forEach(e=>e.stop()),t.getAudioTracks().forEach(e=>e.stop())}function E4(t){const e=R.useRef(null);return R.useEffect(()=>{if(t.deviceId==null)return;let n=null,r=!1;return navigator.mediaDevices.getUserMedia({video:{deviceId:t.deviceId},audio:!1}).then(s=>{if(n=s,r){Th(n);return}e.current&&(e.current.srcObject=n)}),()=>{r=!0,n&&Th(n)}},[t.deviceId]),z.jsx(R4,{ref:e,autoPlay:!0,muted:!0})}const A4=Kt.memo(E4);function g1(t,e){const n=t.map(r=>r.deviceId);if(e&&n.includes(e))return e;if(n.length>0)return n[0]}const P4=(t,e)=>{switch(e.type){case"SET_UNAVAILABLE":return{unavailable:!0,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:void 0,selectedAudioInputDeviceId:void 0};case"UPDATE_DEVICES":{const n=e.devices,r=n.filter(f=>f.kind==="videoinput"),s=n.filter(f=>f.kind==="audioinput"),a=n.filter(f=>f.kind==="audiooutput"),c=g1(r,t.selectedVideoInputDeviceId),u=g1(s,t.selectedAudioInputDeviceId);return{...t,videoInputs:r,audioInputs:s,audioOutputs:a,selectedVideoInputDeviceId:c,selectedAudioInputDeviceId:u}}case"UPDATE_SELECTED_DEVICE_ID":return{...t,...e.payload}}};function O4(t){const{video:e,audio:n,defaultVideoDeviceId:r,defaultAudioDeviceId:s,onSelect:a}=t,[c,u]=R.useState("WAITING"),[{unavailable:f,videoInputs:h,selectedVideoInputDeviceId:y,audioInputs:g,selectedAudioInputDeviceId:v},C]=R.useReducer(P4,{unavailable:!1,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:r,selectedAudioInputDeviceId:s}),w=R.useCallback(()=>{var L;if(typeof((L=navigator==null?void 0:navigator.mediaDevices)==null?void 0:L.enumerateDevices)!="function"){C({type:"SET_UNAVAILABLE"});return}return navigator.mediaDevices.enumerateDevices().then(B=>{C({type:"UPDATE_DEVICES",devices:B})})},[]),_=R.useRef({video:r,audio:s});_.current={video:r,audio:s},R.useEffect(()=>{var A;if(typeof((A=navigator==null?void 0:navigator.mediaDevices)==null?void 0:A.getUserMedia)!="function"){C({type:"SET_UNAVAILABLE"});return}u("WAITING");const{video:L,audio:B}=_.current;navigator.mediaDevices.getUserMedia({video:e&&L?{deviceId:L}:e,audio:n&&B?{deviceId:B}:n}).then(async O=>{Th(O),await w(),u("ALLOWED")}).catch(O=>{u(O)})},[e,n,w]),R.useEffect(()=>{const L=()=>w();return navigator.mediaDevices.ondevicechange=L,()=>{navigator.mediaDevices.ondevicechange===L&&(navigator.mediaDevices.ondevicechange=null)}},[w]);const I=R.useCallback(L=>{C({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedVideoInputDeviceId:L.target.value}})},[]),P=R.useCallback(L=>{C({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedAudioInputDeviceId:L.target.value}})},[]);if(R.useEffect(()=>{const L=e?h.find(A=>A.deviceId===y):null,B=n?g.find(A=>A.deviceId===v):null;a({video:L==null?void 0:L.deviceId,audio:B==null?void 0:B.deviceId})},[e,n,a,h,g,y,v]),R.useEffect(()=>{setTimeout(()=>Tn.setFrameHeight())}),f)return z.jsx(g4,{});if(c==="WAITING")return z.jsx(k4,{time:1e3,children:z.jsx(v4,{})});if(c instanceof Error){const L=c;return L instanceof DOMException&&(L.name==="NotReadableError"||L.name==="NotFoundError")?z.jsx(S4,{error:L}):L instanceof DOMException&&L.name==="NotAllowedError"?z.jsx(b4,{error:L}):z.jsx(Ol,{children:z.jsxs(z2,{severity:"error",children:[L.name,": ",L.message]})})}return z.jsxs(p4,{children:[z.jsx(m4,{children:e&&y?z.jsx(A4,{deviceId:y}):z.jsx(x4,{})}),z.jsxs(Wm,{spacing:2,justifyContent:"center",children:[e&&y&&z.jsxs(y1,{fullWidth:!0,children:[z.jsx(m1,{htmlFor:"device-select-video-input",children:"Video Input"}),z.jsx(kh,{inputProps:{name:"video-input",id:"device-select-video-input"},value:y,onChange:I,children:h.map(L=>z.jsx("option",{value:L.deviceId,children:L.label},L.deviceId))})]}),n&&v&&z.jsxs(y1,{fullWidth:!0,children:[z.jsx(m1,{htmlFor:"device-select-audio-input",children:"Audio Input"}),z.jsx(kh,{inputProps:{name:"audio-input",id:"device-select-audio-input"},value:v,onChange:P,children:g.map(L=>z.jsx("option",{value:L.deviceId,children:L.label},L.deviceId))})]})]})]})}function M4({onClose:t,...e}){return z.jsxs(Wm,{spacing:2,children:[z.jsx(O4,{...e}),z.jsx(Ls,{children:z.jsx(U2,{variant:"contained",color:"primary",onClick:t,children:"Done"})})]})}function D4(t){var s,a,c,u,f,h,y,g,v,C,w,_,I,P,L,B,A,O,F,M,V,Y,S,j,W,X,ae;R.useEffect(()=>{Tn.setFrameHeight()});const e=t.stream.getVideoTracks().length>0,n=R.useCallback(ce=>{ce&&(ce.srcObject=t.stream)},[t.stream]),r=R.useCallback(()=>Tn.setFrameHeight(),[]);if(e){const ce={hidden:(s=t.userDefinedVideoAttrs)==null?void 0:s.hidden,style:(a=t.userDefinedVideoAttrs)==null?void 0:a.style,autoPlay:(c=t.userDefinedVideoAttrs)==null?void 0:c.autoPlay,controls:(u=t.userDefinedVideoAttrs)==null?void 0:u.controls,controlsList:(f=t.userDefinedVideoAttrs)==null?void 0:f.controlsList,crossOrigin:(h=t.userDefinedVideoAttrs)==null?void 0:h.crossOrigin,loop:(y=t.userDefinedVideoAttrs)==null?void 0:y.loop,mediaGroup:(g=t.userDefinedVideoAttrs)==null?void 0:g.mediaGroup,muted:(v=t.userDefinedVideoAttrs)==null?void 0:v.muted,playsInline:(C=t.userDefinedVideoAttrs)==null?void 0:C.playsInline,preload:(w=t.userDefinedVideoAttrs)==null?void 0:w.preload,height:(_=t.userDefinedVideoAttrs)==null?void 0:_.height,poster:(I=t.userDefinedVideoAttrs)==null?void 0:I.poster,width:(P=t.userDefinedVideoAttrs)==null?void 0:P.width,disablePictureInPicture:(L=t.userDefinedVideoAttrs)==null?void 0:L.disablePictureInPicture,disableRemotePlayback:(B=t.userDefinedVideoAttrs)==null?void 0:B.disableRemotePlayback};return z.jsx("video",{...ce,ref:n,onCanPlay:r})}else{const ce={hidden:(A=t.userDefinedAudioAttrs)==null?void 0:A.hidden,style:(O=t.userDefinedAudioAttrs)==null?void 0:O.style,autoPlay:(F=t.userDefinedAudioAttrs)==null?void 0:F.autoPlay,controls:(M=t.userDefinedAudioAttrs)==null?void 0:M.controls,controlsList:(V=t.userDefinedAudioAttrs)==null?void 0:V.controlsList,crossOrigin:(Y=t.userDefinedAudioAttrs)==null?void 0:Y.crossOrigin,loop:(S=t.userDefinedAudioAttrs)==null?void 0:S.loop,mediaGroup:(j=t.userDefinedAudioAttrs)==null?void 0:j.mediaGroup,muted:(W=t.userDefinedAudioAttrs)==null?void 0:W.muted,playsInline:(X=t.userDefinedAudioAttrs)==null?void 0:X.playsInline,preload:(ae=t.userDefinedAudioAttrs)==null?void 0:ae.preload};return z.jsx("audio",{ref:n,...ce})}}const N4=Kt.memo(D4),B4=po(z.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H3V5h18z"}),"VideoLabel"),L4=Fe(Cd)(({theme:t})=>({padding:t.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}));function F4(t){return R.useEffect(()=>{Tn.setFrameHeight()}),z.jsx(L4,{elevation:0,children:t.loading?z.jsx(Vm,{}):z.jsx(B4,{fontSize:"large"})})}const $4=Kt.memo(F4);function z4(t,e,n){const r=t||{};return e&&(r.video===!0?r.video={deviceId:e}:(typeof r.video=="object"||r.video==null)&&(r.video={...r.video,deviceId:e})),n&&(r.audio===!0?r.audio={deviceId:n}:(typeof r.audio=="object"||r.audio==null)&&(r.audio={...r.audio,deviceId:n})),r}function j4(t){const e=t?!!t.video:!0,n=t?!!t.audio:!0;return{videoEnabled:e,audioEnabled:n}}const U4={webRtcState:"STOPPED",sdpOffer:null,signallingTimedOut:!1,stream:null,error:null},V4=(t,e)=>{switch(e.type){case"SIGNALLING_START":return{...t,webRtcState:"SIGNALLING",stream:null,error:null,signallingTimedOut:!1};case"SIGNALLING_TIMEOUT":return{...t,signallingTimedOut:!0};case"SET_STREAM":return{...t,stream:e.stream};case"SET_OFFER":return{...t,sdpOffer:e.offer};case"STOPPING":return{...t,webRtcState:"STOPPING",sdpOffer:null};case"STOPPED":return{...t,webRtcState:"STOPPED",sdpOffer:null,stream:null};case"START_PLAYING":return{...t,webRtcState:"PLAYING",sdpOffer:null};case"PROCESS_ANSWER_ERROR":return{...t,error:e.error};case"ERROR":return{...t,webRtcState:"STOPPED",sdpOffer:null,error:e.error}}},W4=t=>(n,r)=>{const s=V4(n,r),a=s.webRtcState==="PLAYING",c=n.webRtcState==="PLAYING",u=a!==c,f=s.sdpOffer,h=n.sdpOffer;return(u||f!==h)&&(h&&console.log("Send SDP offer",h),t({playing:a,sdpOffer:f?f.toJSON():""})),s},Rh=t=>t==="RECVONLY"||t==="SENDONLY"||t==="SENDRECV",H4=t=>t==="SENDRECV"||t==="RECVONLY",G4=t=>t==="SENDRECV"||t==="SENDONLY",Y4=t=>t.createOffer().then(e=>(console.log("Created offer:",e),t.setLocalDescription(e))).then(()=>(console.log("Wait for ICE gethering..."),new Promise(e=>{if(t.iceGatheringState==="complete")e();else{const n=()=>{t.iceGatheringState==="complete"&&(t.removeEventListener("icegatheringstatechange",n),e())};t.addEventListener("icegatheringstatechange",n)}}))).then(()=>t.localDescription).catch(e=>{throw console.error(e),e}),K4=3*1e3,Q4=(t,e,n,r,s)=>{R.useEffect(()=>r({playing:!1,sdpOffer:""}),[]);const a=R.useRef(),c=R.useRef(),u=R.useMemo(()=>W4(r),[r]),[f,h]=R.useReducer(u,U4),y=R.useCallback(()=>{(async()=>{if(f.webRtcState==="STOPPING")return;const w=c.current;if(c.current=void 0,h({type:"STOPPING"}),w!=null)return w.getTransceivers&&w.getTransceivers().forEach(function(_){_.stop&&_.stop()}),w.getSenders().forEach(function(_){var I;(I=_.track)==null||I.stop()}),new Promise(_=>{setTimeout(()=>{w.close(),_()},500)})})().catch(w=>h({type:"ERROR",error:w})).finally(()=>{h({type:"STOPPED"})})},[f.webRtcState]),g=R.useRef(y);g.current=y;const v=R.useCallback(()=>{if(f.webRtcState!=="STOPPED")return;(async()=>{h({type:"SIGNALLING_START"}),a.current=setTimeout(()=>{h({type:"SIGNALLING_TIMEOUT"})},K4);const w=t.mode,_=t.rtcConfiguration||{};console.log("RTCConfiguration:",_);const I=new RTCPeerConnection(_);if((w==="SENDRECV"||w==="RECVONLY")&&I.addEventListener("track",P=>{const L=P.streams[0];h({type:"SET_STREAM",stream:L})}),w==="SENDRECV"||w==="SENDONLY"){const P=z4(t.mediaStreamConstraints,e,n);if(console.log("MediaStreamConstraints:",P),P.audio||P.video){if(navigator.mediaDevices==null)throw new Error("navigator.mediaDevices is undefined. It seems the current document is not loaded securely.");if(navigator.mediaDevices.getUserMedia==null)throw new Error("getUserMedia is not implemented in this browser");const L={},B=await navigator.mediaDevices.getUserMedia(P);B.getTracks().forEach(A=>{I.addTrack(A,B);const O=A.kind;if(O!=="video"&&O!=="audio")return;const F=A.getSettings().deviceId;F!=null&&(L[O]=F)}),Object.keys(L).length>0&&s(L)}if(w==="SENDONLY")for(const L of I.getTransceivers())L.direction="sendonly"}else w==="RECVONLY"&&(I.addTransceiver("video",{direction:"recvonly"}),I.addTransceiver("audio",{direction:"recvonly"}));console.log("transceivers",I.getTransceivers()),I.addEventListener("iceconnectionstatechange",()=>{console.log("iceconnectionstatechange",I.iceConnectionState),(I.iceConnectionState==="disconnected"||I.iceConnectionState==="failed"||I.iceConnectionState==="closed")&&g.current()}),c.current=I,await Y4(I).then(P=>{if(P==null)throw new Error("Failed to create an offer SDP");h({type:"SET_OFFER",offer:P})})})().catch(w=>h({type:"ERROR",error:w}))},[n,e,t.mediaStreamConstraints,t.mode,t.rtcConfiguration,f.webRtcState,s]);return R.useEffect(()=>{const C=c.current;if(C==null)return;const w=t.sdpAnswerJson;if(C.remoteDescription==null&&w&&f.webRtcState==="SIGNALLING"){const _=JSON.parse(w);console.log("Receive answer sdpOffer",_),C.setRemoteDescription(_).then(()=>{console.log("Remote description is set"),a.current&&clearTimeout(a.current),h({type:"START_PLAYING"})}).catch(I=>{h({type:"PROCESS_ANSWER_ERROR",error:I}),y()})}},[t.sdpAnswerJson,f.webRtcState,y]),R.useEffect(()=>{const C=t.desiredPlayingState;C!=null&&(C===!0&&f.webRtcState==="STOPPED"?v():C===!1&&(f.webRtcState==="SIGNALLING"||f.webRtcState==="PLAYING")&&y())},[t.desiredPlayingState,v,f.webRtcState,y]),{start:v,stop:y,state:f}};function X4(t){return Tn.setComponentValue(t)}function Yp({translationKey:t,defaultText:e,...n}){return z.jsx(U2,{...n,children:Pl(t)||e})}let Q2=!0,X2=!0;function du(t,e,n){const r=t.match(e);return r&&r.length>=n&&parseInt(r[n],10)}function Vo(t,e,n){if(!t.RTCPeerConnection)return;const r=t.RTCPeerConnection.prototype,s=r.addEventListener;r.addEventListener=function(c,u){if(c!==e)return s.apply(this,arguments);const f=h=>{const y=n(h);y&&(u.handleEvent?u.handleEvent(y):u(y))};return this._eventMap=this._eventMap||{},this._eventMap[e]||(this._eventMap[e]=new Map),this._eventMap[e].set(u,f),s.apply(this,[c,f])};const a=r.removeEventListener;r.removeEventListener=function(c,u){if(c!==e||!this._eventMap||!this._eventMap[e])return a.apply(this,arguments);if(!this._eventMap[e].has(u))return a.apply(this,arguments);const f=this._eventMap[e].get(u);return this._eventMap[e].delete(u),this._eventMap[e].size===0&&delete this._eventMap[e],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[c,f])},Object.defineProperty(r,"on"+e,{get(){return this["_on"+e]},set(c){this["_on"+e]&&(this.removeEventListener(e,this["_on"+e]),delete this["_on"+e]),c&&this.addEventListener(e,this["_on"+e]=c)},enumerable:!0,configurable:!0})}function J4(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(Q2=t,t?"adapter.js logging disabled":"adapter.js logging enabled")}function q4(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(X2=!t,"adapter.js deprecation warnings "+(t?"disabled":"enabled"))}function J2(){if(typeof window=="object"){if(Q2)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Ym(t,e){X2&&console.warn(t+" is deprecated, please use "+e+" instead.")}function Z4(t){const e={browser:null,version:null};if(typeof t>"u"||!t.navigator||!t.navigator.userAgent)return e.browser="Not a browser.",e;const{navigator:n}=t;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(s=>s.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)e.browser="firefox",e.version=du(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||t.isSecureContext===!1&&t.webkitRTCPeerConnection)e.browser="chrome",e.version=du(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))e.browser="safari",e.version=du(n.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype;else return e.browser="Not a supported browser.",e;return e}function v1(t){return Object.prototype.toString.call(t)==="[object Object]"}function q2(t){return v1(t)?Object.keys(t).reduce(function(e,n){const r=v1(t[n]),s=r?q2(t[n]):t[n],a=r&&!Object.keys(s).length;return s===void 0||a?e:Object.assign(e,{[n]:s})},{}):t}function Eh(t,e,n){!e||n.has(e.id)||(n.set(e.id,e),Object.keys(e).forEach(r=>{r.endsWith("Id")?Eh(t,t.get(e[r]),n):r.endsWith("Ids")&&e[r].forEach(s=>{Eh(t,t.get(s),n)})}))}function b1(t,e,n){const r=n?"outbound-rtp":"inbound-rtp",s=new Map;if(e===null)return s;const a=[];return t.forEach(c=>{c.type==="track"&&c.trackIdentifier===e.id&&a.push(c)}),a.forEach(c=>{t.forEach(u=>{u.type===r&&u.trackId===c.id&&Eh(t,u,s)})}),s}const S1=J2;function Z2(t,e){const n=t&&t.navigator;if(!n.mediaDevices)return;const r=function(u){if(typeof u!="object"||u.mandatory||u.optional)return u;const f={};return Object.keys(u).forEach(h=>{if(h==="require"||h==="advanced"||h==="mediaSource")return;const y=typeof u[h]=="object"?u[h]:{ideal:u[h]};y.exact!==void 0&&typeof y.exact=="number"&&(y.min=y.max=y.exact);const g=function(v,C){return v?v+C.charAt(0).toUpperCase()+C.slice(1):C==="deviceId"?"sourceId":C};if(y.ideal!==void 0){f.optional=f.optional||[];let v={};typeof y.ideal=="number"?(v[g("min",h)]=y.ideal,f.optional.push(v),v={},v[g("max",h)]=y.ideal,f.optional.push(v)):(v[g("",h)]=y.ideal,f.optional.push(v))}y.exact!==void 0&&typeof y.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[g("",h)]=y.exact):["min","max"].forEach(v=>{y[v]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[g(v,h)]=y[v])})}),u.advanced&&(f.optional=(f.optional||[]).concat(u.advanced)),f},s=function(u,f){if(e.version>=61)return f(u);if(u=JSON.parse(JSON.stringify(u)),u&&typeof u.audio=="object"){const h=function(y,g,v){g in y&&!(v in y)&&(y[v]=y[g],delete y[g])};u=JSON.parse(JSON.stringify(u)),h(u.audio,"autoGainControl","googAutoGainControl"),h(u.audio,"noiseSuppression","googNoiseSuppression"),u.audio=r(u.audio)}if(u&&typeof u.video=="object"){let h=u.video.facingMode;h=h&&(typeof h=="object"?h:{ideal:h});const y=e.version<66;if(h&&(h.exact==="user"||h.exact==="environment"||h.ideal==="user"||h.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!y)){delete u.video.facingMode;let g;if(h.exact==="environment"||h.ideal==="environment"?g=["back","rear"]:(h.exact==="user"||h.ideal==="user")&&(g=["front"]),g)return n.mediaDevices.enumerateDevices().then(v=>{v=v.filter(w=>w.kind==="videoinput");let C=v.find(w=>g.some(_=>w.label.toLowerCase().includes(_)));return!C&&v.length&&g.includes("back")&&(C=v[v.length-1]),C&&(u.video.deviceId=h.exact?{exact:C.deviceId}:{ideal:C.deviceId}),u.video=r(u.video),S1("chrome: "+JSON.stringify(u)),f(u)})}u.video=r(u.video)}return S1("chrome: "+JSON.stringify(u)),f(u)},a=function(u){return e.version>=64?u:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[u.name]||u.name,message:u.message,constraint:u.constraint||u.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},c=function(u,f,h){s(u,y=>{n.webkitGetUserMedia(y,f,g=>{h&&h(a(g))})})};if(n.getUserMedia=c.bind(n),n.mediaDevices.getUserMedia){const u=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(f){return s(f,h=>u(h).then(y=>{if(h.audio&&!y.getAudioTracks().length||h.video&&!y.getVideoTracks().length)throw y.getTracks().forEach(g=>{g.stop()}),new DOMException("","NotFoundError");return y},y=>Promise.reject(a(y))))}}}function e_(t){t.MediaStream=t.MediaStream||t.webkitMediaStream}function t_(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("ontrack"in t.RTCPeerConnection.prototype)){Object.defineProperty(t.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.track.id):a={track:s.track};const c=new Event("track");c.track=s.track,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)}),r.stream.getTracks().forEach(s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.id):a={track:s};const c=new Event("track");c.track=s,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)})},this.addEventListener("addstream",this._ontrackpoly)),e.apply(this,arguments)}}else Vo(t,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function n_(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("getSenders"in t.RTCPeerConnection.prototype)&&"createDTMFSender"in t.RTCPeerConnection.prototype){const e=function(s,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=s.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:s}};if(!t.RTCPeerConnection.prototype.getSenders){t.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const s=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(u,f){let h=s.apply(this,arguments);return h||(h=e(this,u),this._senders.push(h)),h};const a=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(u){a.apply(this,arguments);const f=this._senders.indexOf(u);f!==-1&&this._senders.splice(f,1)}}const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(c=>{this._senders.push(e(this,c))})};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(c=>{const u=this._senders.find(f=>f.track===c);u&&this._senders.splice(this._senders.indexOf(u),1)})}}else if(typeof t=="object"&&t.RTCPeerConnection&&"getSenders"in t.RTCPeerConnection.prototype&&"createDTMFSender"in t.RTCPeerConnection.prototype&&t.RTCRtpSender&&!("dtmf"in t.RTCRtpSender.prototype)){const e=t.RTCPeerConnection.prototype.getSenders;t.RTCPeerConnection.prototype.getSenders=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r},Object.defineProperty(t.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function r_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender&&t.RTCRtpReceiver))return;if(!("getStats"in t.RTCRtpSender.prototype)){const n=t.RTCPeerConnection.prototype.getSenders;n&&(t.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(c=>c._pc=this),a});const r=t.RTCPeerConnection.prototype.addTrack;r&&(t.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),t.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(c=>b1(c,a.track,!0))}}if(!("getStats"in t.RTCRtpReceiver.prototype)){const n=t.RTCPeerConnection.prototype.getReceivers;n&&(t.RTCPeerConnection.prototype.getReceivers=function(){const s=n.apply(this,[]);return s.forEach(a=>a._pc=this),s}),Vo(t,"track",r=>(r.receiver._pc=r.srcElement,r)),t.RTCRtpReceiver.prototype.getStats=function(){const s=this;return this._pc.getStats().then(a=>b1(a,s.track,!1))}}if(!("getStats"in t.RTCRtpSender.prototype&&"getStats"in t.RTCRtpReceiver.prototype))return;const e=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof t.MediaStreamTrack){const r=arguments[0];let s,a,c;return this.getSenders().forEach(u=>{u.track===r&&(s?c=!0:s=u)}),this.getReceivers().forEach(u=>(u.track===r&&(a?c=!0:a=u),u.track===r)),c||s&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):s?s.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return e.apply(this,arguments)}}function i_(t){t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(c=>this._shimmedLocalStreams[c][0])};const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(c,u){if(!u)return e.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const f=e.apply(this,arguments);return this._shimmedLocalStreams[u.id]?this._shimmedLocalStreams[u.id].indexOf(f)===-1&&this._shimmedLocalStreams[u.id].push(f):this._shimmedLocalStreams[u.id]=[u,f],f};const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(c){this._shimmedLocalStreams=this._shimmedLocalStreams||{},c.getTracks().forEach(h=>{if(this.getSenders().find(g=>g.track===h))throw new DOMException("Track already exists.","InvalidAccessError")});const u=this.getSenders();n.apply(this,arguments);const f=this.getSenders().filter(h=>u.indexOf(h)===-1);this._shimmedLocalStreams[c.id]=[c].concat(f)};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[c.id],r.apply(this,arguments)};const s=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},c&&Object.keys(this._shimmedLocalStreams).forEach(u=>{const f=this._shimmedLocalStreams[u].indexOf(c);f!==-1&&this._shimmedLocalStreams[u].splice(f,1),this._shimmedLocalStreams[u].length===1&&delete this._shimmedLocalStreams[u]}),s.apply(this,arguments)}}function o_(t,e){if(!t.RTCPeerConnection)return;if(t.RTCPeerConnection.prototype.addTrack&&e.version>=65)return i_(t);const n=t.RTCPeerConnection.prototype.getLocalStreams;t.RTCPeerConnection.prototype.getLocalStreams=function(){const y=n.apply(this);return this._reverseStreams=this._reverseStreams||{},y.map(g=>this._reverseStreams[g.id])};const r=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(y){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},y.getTracks().forEach(g=>{if(this.getSenders().find(C=>C.track===g))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[y.id]){const g=new t.MediaStream(y.getTracks());this._streams[y.id]=g,this._reverseStreams[g.id]=y,y=g}r.apply(this,[y])};const s=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(y){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},s.apply(this,[this._streams[y.id]||y]),delete this._reverseStreams[this._streams[y.id]?this._streams[y.id].id:y.id],delete this._streams[y.id]},t.RTCPeerConnection.prototype.addTrack=function(y,g){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const v=[].slice.call(arguments,1);if(v.length!==1||!v[0].getTracks().find(_=>_===y))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(_=>_.track===y))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const w=this._streams[g.id];if(w)w.addTrack(y),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const _=new t.MediaStream([y]);this._streams[g.id]=_,this._reverseStreams[_.id]=g,this.addStream(_)}return this.getSenders().find(_=>_.track===y)};function a(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const C=h._reverseStreams[v],w=h._streams[C.id];g=g.replace(new RegExp(w.id,"g"),C.id)}),new RTCSessionDescription({type:y.type,sdp:g})}function c(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const C=h._reverseStreams[v],w=h._streams[C.id];g=g.replace(new RegExp(C.id,"g"),w.id)}),new RTCSessionDescription({type:y.type,sdp:g})}["createOffer","createAnswer"].forEach(function(h){const y=t.RTCPeerConnection.prototype[h],g={[h](){const v=arguments;return arguments.length&&typeof arguments[0]=="function"?y.apply(this,[w=>{const _=a(this,w);v[0].apply(null,[_])},w=>{v[1]&&v[1].apply(null,w)},arguments[2]]):y.apply(this,arguments).then(w=>a(this,w))}};t.RTCPeerConnection.prototype[h]=g[h]});const u=t.RTCPeerConnection.prototype.setLocalDescription;t.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?u.apply(this,arguments):(arguments[0]=c(this,arguments[0]),u.apply(this,arguments))};const f=Object.getOwnPropertyDescriptor(t.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(t.RTCPeerConnection.prototype,"localDescription",{get(){const h=f.get.apply(this);return h.type===""?h:a(this,h)}}),t.RTCPeerConnection.prototype.removeTrack=function(y){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!y._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(y._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let v;Object.keys(this._streams).forEach(C=>{this._streams[C].getTracks().find(_=>y.track===_)&&(v=this._streams[C])}),v&&(v.getTracks().length===1?this.removeStream(this._reverseStreams[v.id]):v.removeTrack(y.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Ah(t,e){!t.RTCPeerConnection&&t.webkitRTCPeerConnection&&(t.RTCPeerConnection=t.webkitRTCPeerConnection),t.RTCPeerConnection&&e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=t.RTCPeerConnection.prototype[n],s={[n](){return arguments[0]=new(n==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};t.RTCPeerConnection.prototype[n]=s[n]})}function s_(t,e){Vo(t,"negotiationneeded",n=>{const r=n.target;if(!((e.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const _1=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:s_,shimAddTrackRemoveTrack:o_,shimAddTrackRemoveTrackWithNative:i_,shimGetSendersWithDtmf:n_,shimGetUserMedia:Z2,shimMediaStream:e_,shimOnTrack:t_,shimPeerConnection:Ah,shimSenderReceiverGetStats:r_},Symbol.toStringTag,{value:"Module"}));function a_(t,e){const n=t&&t.navigator,r=t&&t.MediaStreamTrack;if(n.getUserMedia=function(s,a,c){Ym("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(s).then(a,c)},!(e.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const s=function(c,u,f){u in c&&!(f in c)&&(c[f]=c[u],delete c[u])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(c){return typeof c=="object"&&typeof c.audio=="object"&&(c=JSON.parse(JSON.stringify(c)),s(c.audio,"autoGainControl","mozAutoGainControl"),s(c.audio,"noiseSuppression","mozNoiseSuppression")),a(c)},r&&r.prototype.getSettings){const c=r.prototype.getSettings;r.prototype.getSettings=function(){const u=c.apply(this,arguments);return s(u,"mozAutoGainControl","autoGainControl"),s(u,"mozNoiseSuppression","noiseSuppression"),u}}if(r&&r.prototype.applyConstraints){const c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(u){return this.kind==="audio"&&typeof u=="object"&&(u=JSON.parse(JSON.stringify(u)),s(u,"autoGainControl","mozAutoGainControl"),s(u,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[u])}}}}function eO(t,e){t.navigator.mediaDevices&&"getDisplayMedia"in t.navigator.mediaDevices||t.navigator.mediaDevices&&(t.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const s=new DOMException("getDisplayMedia without video constraints is undefined");return s.name="NotFoundError",s.code=8,Promise.reject(s)}return r.video===!0?r.video={mediaSource:e}:r.video.mediaSource=e,t.navigator.mediaDevices.getUserMedia(r)})}function l_(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ph(t,e){if(typeof t!="object"||!(t.RTCPeerConnection||t.mozRTCPeerConnection))return;!t.RTCPeerConnection&&t.mozRTCPeerConnection&&(t.RTCPeerConnection=t.mozRTCPeerConnection),e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(s){const a=t.RTCPeerConnection.prototype[s],c={[s](){return arguments[0]=new(s==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};t.RTCPeerConnection.prototype[s]=c[s]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){const[a,c,u]=arguments;return r.apply(this,[a||null]).then(f=>{if(e.version<53&&!c)try{f.forEach(h=>{h.type=n[h.type]||h.type})}catch(h){if(h.name!=="TypeError")throw h;f.forEach((y,g)=>{f.set(g,Object.assign({},y,{type:n[y.type]||y.type}))})}return f}).then(c,u)}}function c_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpSender.prototype)return;const e=t.RTCPeerConnection.prototype.getSenders;e&&(t.RTCPeerConnection.prototype.getSenders=function(){const s=e.apply(this,[]);return s.forEach(a=>a._pc=this),s});const n=t.RTCPeerConnection.prototype.addTrack;n&&(t.RTCPeerConnection.prototype.addTrack=function(){const s=n.apply(this,arguments);return s._pc=this,s}),t.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function u_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpReceiver.prototype)return;const e=t.RTCPeerConnection.prototype.getReceivers;e&&(t.RTCPeerConnection.prototype.getReceivers=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r}),Vo(t,"track",n=>(n.receiver._pc=n.srcElement,n)),t.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function d_(t){!t.RTCPeerConnection||"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){Ym("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function f_(t){t.DataChannel&&!t.RTCDataChannel&&(t.RTCDataChannel=t.DataChannel)}function p_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.addTransceiver;e&&(t.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const s=r.length>0;s&&r.forEach(c=>{if("rid"in c&&!/^[a-z0-9]{0,16}$/i.test(c.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in c&&!(parseFloat(c.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in c&&!(parseFloat(c.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=e.apply(this,arguments);if(s){const{sender:c}=a,u=c.getParameters();(!("encodings"in u)||u.encodings.length===1&&Object.keys(u.encodings[0]).length===0)&&(u.encodings=r,c.sendEncodings=r,this.setParametersPromises.push(c.setParameters(u).then(()=>{delete c.sendEncodings}).catch(()=>{delete c.sendEncodings})))}return a})}function h_(t){if(!(typeof t=="object"&&t.RTCRtpSender))return;const e=t.RTCRtpSender.prototype.getParameters;e&&(t.RTCRtpSender.prototype.getParameters=function(){const r=e.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function m_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}function y_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createAnswer;t.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}const C1=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:p_,shimCreateAnswer:y_,shimCreateOffer:m_,shimGetDisplayMedia:eO,shimGetParameters:h_,shimGetUserMedia:a_,shimOnTrack:l_,shimPeerConnection:Ph,shimRTCDataChannel:f_,shimReceiverGetStats:u_,shimRemoveStream:d_,shimSenderGetStats:c_},Symbol.toStringTag,{value:"Module"}));function g_(t){if(!(typeof t!="object"||!t.RTCPeerConnection)){if("getLocalStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in t.RTCPeerConnection.prototype)){const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(s=>e.call(this,s,r)),r.getVideoTracks().forEach(s=>e.call(this,s,r))},t.RTCPeerConnection.prototype.addTrack=function(r,...s){return s&&s.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),e.apply(this,arguments)}}"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const s=n.getTracks();this.getSenders().forEach(a=>{s.includes(a.track)&&this.removeTrack(a)})})}}function v_(t){if(!(typeof t!="object"||!t.RTCPeerConnection)&&("getRemoteStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in t.RTCPeerConnection.prototype))){Object.defineProperty(t.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(s=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(s))return;this._remoteStreams.push(s);const a=new Event("addstream");a.stream=s,this.dispatchEvent(a)})})}});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(s){s.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const c=new Event("addstream");c.stream=a,r.dispatchEvent(c)})}),e.apply(r,arguments)}}}function b_(t){if(typeof t!="object"||!t.RTCPeerConnection)return;const e=t.RTCPeerConnection.prototype,n=e.createOffer,r=e.createAnswer,s=e.setLocalDescription,a=e.setRemoteDescription,c=e.addIceCandidate;e.createOffer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=n.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v},e.createAnswer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=r.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v};let u=function(f,h,y){const g=s.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g};e.setLocalDescription=u,u=function(f,h,y){const g=a.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.setRemoteDescription=u,u=function(f,h,y){const g=c.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.addIceCandidate=u}function S_(t){const e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){const n=e.mediaDevices,r=n.getUserMedia.bind(n);e.mediaDevices.getUserMedia=s=>r(__(s))}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=(function(r,s,a){e.mediaDevices.getUserMedia(r).then(s,a)}).bind(e))}function __(t){return t&&t.video!==void 0?Object.assign({},t,{video:q2(t.video)}):t}function C_(t){if(!t.RTCPeerConnection)return;const e=t.RTCPeerConnection;t.RTCPeerConnection=function(r,s){if(r&&r.iceServers){const a=[];for(let c=0;c<r.iceServers.length;c++){let u=r.iceServers[c];u.urls===void 0&&u.url?(Ym("RTCIceServer.url","RTCIceServer.urls"),u=JSON.parse(JSON.stringify(u)),u.urls=u.url,delete u.url,a.push(u)):a.push(r.iceServers[c])}r.iceServers=a}return new e(r,s)},t.RTCPeerConnection.prototype=e.prototype,"generateCertificate"in e&&Object.defineProperty(t.RTCPeerConnection,"generateCertificate",{get(){return e.generateCertificate}})}function w_(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function x_(t){const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const s=this.getTransceivers().find(c=>c.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveAudio===!0&&!s&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(c=>c.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return e.apply(this,arguments)}}function I_(t){typeof t!="object"||t.AudioContext||(t.AudioContext=t.webkitAudioContext)}const w1=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:I_,shimCallbacksAPI:b_,shimConstraints:__,shimCreateOfferLegacy:x_,shimGetUserMedia:S_,shimLocalStreamsAPI:g_,shimRTCIceServerUrls:C_,shimRemoteStreamsAPI:v_,shimTrackEventTransceiver:w_},Symbol.toStringTag,{value:"Module"}));var Kp={exports:{}},x1;function tO(){return x1||(x1=1,function(t){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(n){return n.trim().split(`
|
219
|
+
`,l5=typeof xh!="string"?Sm`
|
220
|
+
animation: ${xh} 1.4s linear infinite;
|
221
|
+
`:null,c5=typeof Ih!="string"?Sm`
|
222
|
+
animation: ${Ih} 1.4s ease-in-out infinite;
|
223
|
+
`:null,u5=t=>{const{classes:e,variant:n,color:r,disableShrink:s}=t,a={root:["root",n,`color${Oe(r)}`],svg:["svg"],circle:["circle",`circle${Oe(n)}`,s&&"circleDisableShrink"]};return yn(a,a5,e)},d5=Fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Oe(n.color)}`]]}})(On(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:l5||{animation:`${xh} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),f5=Fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),p5=Fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Oe(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(On(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:c5||{animation:`${Ih} 1.4s ease-in-out infinite`}}]}))),Wm=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:c=!1,size:u=40,style:f,thickness:h=3.6,value:y=0,variant:g="indeterminate",...v}=r,C={...r,color:a,disableShrink:c,size:u,thickness:h,value:y,variant:g},w=u5(C),_={},I={},P={};if(g==="determinate"){const L=2*Math.PI*((Qi-h)/2);_.strokeDasharray=L.toFixed(3),P["aria-valuenow"]=Math.round(y),_.strokeDashoffset=`${((100-y)/100*L).toFixed(3)}px`,I.transform="rotate(-90deg)"}return $.jsx(d5,{className:ot(w.root,s),style:{width:u,height:u,...I,...f},ownerState:C,ref:n,role:"progressbar",...P,...v,children:$.jsx(f5,{className:w.svg,ownerState:C,viewBox:`${Qi/2} ${Qi/2} ${Qi} ${Qi}`,children:$.jsx(p5,{className:w.circle,style:_,ownerState:C,cx:Qi,cy:Qi,r:(Qi-h)/2,fill:"none",strokeWidth:h})})})});function h5(t){return hn("MuiIconButton",t)}const l1=mn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),m5=t=>{const{classes:e,disabled:n,color:r,edge:s,size:a,loading:c}=t,u={root:["root",c&&"loading",n&&"disabled",r!=="default"&&`color${Oe(r)}`,s&&`edge${Oe(s)}`,`size${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return yn(u,h5,e)},y5=Fe(j2,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Oe(n.color)}`],n.edge&&e[`edge${Oe(n.edge)}`],e[`size${Oe(n.size)}`]]}})(On(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),On(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${l1.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${l1.loading}`]:{color:"transparent"}}))),g5=Fe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),v5=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiIconButton"}),{edge:s=!1,children:a,className:c,color:u="default",disabled:f=!1,disableFocusRipple:h=!1,size:y="medium",id:g,loading:v=null,loadingIndicator:C,...w}=r,_=XS(g),I=C??$.jsx(Wm,{"aria-labelledby":_,color:"inherit",size:16}),P={...r,edge:s,color:u,disabled:f,disableFocusRipple:h,loading:v,loadingIndicator:I,size:y},L=m5(P);return $.jsxs(y5,{id:v?_:g,className:ot(L.root,c),centerRipple:!0,focusRipple:!h,disabled:f||v,ref:n,...w,ownerState:P,children:[typeof v=="boolean"&&$.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:$.jsx(g5,{className:L.loadingIndicator,ownerState:P,children:v&&I})}),a]})}),b5=po($.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),S5=po($.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),_5=po($.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),C5=po($.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),w5=po($.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),x5=t=>{const{variant:e,color:n,severity:r,classes:s}=t,a={root:["root",`color${Oe(n||r)}`,`${e}${Oe(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return yn(a,NP,s)},I5=Fe(_d,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color||n.severity)}`]]}})(On(({theme:t})=>{const e=t.palette.mode==="light"?fl:pl,n=t.palette.mode==="light"?pl:fl;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Ii(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${s1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ii(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${s1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ii(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),k5=Fe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),T5=Fe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),R5=Fe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),c1={success:$.jsx(b5,{fontSize:"inherit"}),warning:$.jsx(S5,{fontSize:"inherit"}),error:$.jsx(_5,{fontSize:"inherit"}),info:$.jsx(C5,{fontSize:"inherit"})},U2=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiAlert"}),{action:s,children:a,className:c,closeText:u="Close",color:f,components:h={},componentsProps:y={},icon:g,iconMapping:v=c1,onClose:C,role:w="alert",severity:_="success",slotProps:I={},slots:P={},variant:L="standard",...N}=r,E={...r,color:f,severity:_,variant:L,colorSeverity:f||_},O=x5(E),z={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...P},slotProps:{...y,...I}},[M,V]=ws("root",{ref:n,shouldForwardComponentProp:!0,className:ot(O.root,c),elementType:I5,externalForwardedProps:{...z,...N},ownerState:E,additionalProps:{role:w,elevation:0}}),[Y,S]=ws("icon",{className:O.icon,elementType:k5,externalForwardedProps:z,ownerState:E}),[j,W]=ws("message",{className:O.message,elementType:T5,externalForwardedProps:z,ownerState:E}),[X,ae]=ws("action",{className:O.action,elementType:R5,externalForwardedProps:z,ownerState:E}),[ce,de]=ws("closeButton",{elementType:v5,externalForwardedProps:z,ownerState:E}),[fe,q]=ws("closeIcon",{elementType:w5,externalForwardedProps:z,ownerState:E});return $.jsxs(M,{...V,children:[g!==!1?$.jsx(Y,{...S,children:g||v[_]||c1[_]}):null,$.jsx(j,{...W,children:a}),s!=null?$.jsx(X,{...ae,children:s}):null,s==null&&C?$.jsx(X,{...ae,children:$.jsx(ce,{size:"small","aria-label":u,title:u,color:"inherit",onClick:C,...de,children:$.jsx(fe,{fontSize:"small",...q})})}):null]})});function E5(t){return hn("MuiButton",t)}const Eo=mn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),A5=T.createContext({}),P5=T.createContext(void 0),O5=t=>{const{color:e,disableElevation:n,fullWidth:r,size:s,variant:a,loading:c,loadingPosition:u,classes:f}=t,h={root:["root",c&&"loading",a,`${a}${Oe(e)}`,`size${Oe(s)}`,`${a}Size${Oe(s)}`,`color${Oe(e)}`,n&&"disableElevation",r&&"fullWidth",c&&`loadingPosition${Oe(u)}`],startIcon:["icon","startIcon",`iconSize${Oe(s)}`],endIcon:["icon","endIcon",`iconSize${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=yn(h,E5,f);return{...f,...y}},V2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],M5=Fe(j2,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color)}`],e[`size${Oe(n.size)}`],e[`${n.variant}Size${Oe(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(On(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Eo.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Eo.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Eo.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Eo.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ii()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:Hr(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Hr(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Eo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Eo.loading}`]:{color:"transparent"}}}]}})),D5=Fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...V2]})),N5=Fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...V2]})),B5=Fe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),u1=Fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),W2=T.forwardRef(function(e,n){const r=T.useContext(A5),s=T.useContext(P5),a=dl(r,e),c=sn({props:a,name:"MuiButton"}),{children:u,color:f="primary",component:h="button",className:y,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:w,focusVisibleClassName:_,fullWidth:I=!1,id:P,loading:L=null,loadingIndicator:N,loadingPosition:E="center",size:O="medium",startIcon:z,type:M,variant:V="text",...Y}=c,S=XS(P),j=N??$.jsx(Wm,{"aria-labelledby":S,color:"inherit",size:16}),W={...c,color:f,component:h,disabled:g,disableElevation:v,disableFocusRipple:C,fullWidth:I,loading:L,loadingIndicator:j,loadingPosition:E,size:O,type:M,variant:V},X=O5(W),ae=(z||L&&E==="start")&&$.jsx(D5,{className:X.startIcon,ownerState:W,children:z||$.jsx(u1,{className:X.loadingIconPlaceholder,ownerState:W})}),ce=(w||L&&E==="end")&&$.jsx(N5,{className:X.endIcon,ownerState:W,children:w||$.jsx(u1,{className:X.loadingIconPlaceholder,ownerState:W})}),de=s||"",fe=typeof L=="boolean"?$.jsx("span",{className:X.loadingWrapper,style:{display:"contents"},children:L&&$.jsx(B5,{className:X.loadingIndicator,ownerState:W,children:j})}):null;return $.jsxs(M5,{ownerState:W,className:ot(r.className,X.root,y,de),component:h,disabled:g||L,focusRipple:!C,focusVisibleClassName:ot(X.focusVisible,_),ref:n,type:M,id:L?S:P,...Y,classes:X,children:[ae,E!=="end"&&fe,u,E==="end"&&fe,ce]})}),Hm=NR({createStyledComponent:Fe("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>sn({props:t,name:"MuiStack"})});function H2(t){return hn("MuiNativeSelect",t)}const Gm=mn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),L5=t=>{const{classes:e,variant:n,disabled:r,multiple:s,open:a,error:c}=t,u={select:["select",n,r&&"disabled",s&&"multiple",c&&"error"],icon:["icon",`icon${Oe(n)}`,a&&"iconOpen",r&&"disabled"]};return yn(u,H2,e)},F5=Fe("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),$5=Fe(F5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Al,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${Gm.multiple}`]:e.multiple}]}})({}),z5=Fe("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gm.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),j5=Fe(z5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Oe(n.variant)}`],n.open&&e.iconOpen]}})({}),U5=T.forwardRef(function(e,n){const{className:r,disabled:s,error:a,IconComponent:c,inputRef:u,variant:f="standard",...h}=e,y={...e,disabled:s,variant:f,error:a},g=L5(y);return $.jsxs(T.Fragment,{children:[$.jsx($5,{ownerState:y,className:ot(g.select,r),disabled:s,ref:u||n,...h}),e.multiple?null:$.jsx(j5,{as:c,ownerState:y,className:g.icon})]})});function Cd({props:t,states:e,muiFormControl:n}){return e.reduce((r,s)=>(r[s]=t[s],n&&typeof t[s]>"u"&&(r[s]=n[s]),r),{})}const Ym=T.createContext(void 0);function wd(){return T.useContext(Ym)}const V5=po($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function qc(t){return parseInt(t,10)||0}const W5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function H5(t){for(const e in t)return!1;return!0}function d1(t){return H5(t)||t.outerHeightStyle===0&&!t.overflowing}const G5=T.forwardRef(function(e,n){const{onChange:r,maxRows:s,minRows:a=1,style:c,value:u,...f}=e,{current:h}=T.useRef(u!=null),y=T.useRef(null),g=hl(n,y),v=T.useRef(null),C=T.useRef(null),w=T.useCallback(()=>{const N=y.current,E=C.current;if(!N||!E)return;const z=Av(N).getComputedStyle(N);if(z.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=z.width,E.value=N.value||e.placeholder||"x",E.value.slice(-1)===`
|
224
|
+
`&&(E.value+=" ");const M=z.boxSizing,V=qc(z.paddingBottom)+qc(z.paddingTop),Y=qc(z.borderBottomWidth)+qc(z.borderTopWidth),S=E.scrollHeight;E.value="x";const j=E.scrollHeight;let W=S;a&&(W=Math.max(Number(a)*j,W)),s&&(W=Math.min(Number(s)*j,W)),W=Math.max(W,j);const X=W+(M==="border-box"?V+Y:0),ae=Math.abs(W-S)<=1;return{outerHeightStyle:X,overflowing:ae}},[s,a,e.placeholder]),_=Za(()=>{const N=y.current,E=w();if(!N||!E||d1(E))return!1;const O=E.outerHeightStyle;return v.current!=null&&v.current!==O}),I=T.useCallback(()=>{const N=y.current,E=w();if(!N||!E||d1(E))return;const O=E.outerHeightStyle;v.current!==O&&(v.current=O,N.style.height=`${O}px`),N.style.overflow=E.overflowing?"hidden":""},[w]),P=T.useRef(-1);Ys(()=>{const N=Y3(I),E=y==null?void 0:y.current;if(!E)return;const O=Av(E);O.addEventListener("resize",N);let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(()=>{_()&&(z.unobserve(E),cancelAnimationFrame(P.current),I(),P.current=requestAnimationFrame(()=>{z.observe(E)}))}),z.observe(E)),()=>{N.clear(),cancelAnimationFrame(P.current),O.removeEventListener("resize",N),z&&z.disconnect()}},[w,I,_]),Ys(()=>{I()});const L=N=>{h||I(),r&&r(N)};return $.jsxs(T.Fragment,{children:[$.jsx("textarea",{value:u,onChange:L,ref:g,rows:a,style:c,...f}),$.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:{...W5.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function f1(t){return typeof t=="string"}function p1(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function kh(t,e=!1){return t&&(p1(t.value)&&t.value!==""||e&&p1(t.defaultValue)&&t.defaultValue!=="")}function Y5(t){return t.startAdornment}function K5(t){return hn("MuiInputBase",t)}const Zu=mn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var h1;const G2=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Oe(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Y2=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Q5=t=>{const{classes:e,color:n,disabled:r,error:s,endAdornment:a,focused:c,formControl:u,fullWidth:f,hiddenLabel:h,multiline:y,readOnly:g,size:v,startAdornment:C,type:w}=t,_={root:["root",`color${Oe(n)}`,r&&"disabled",s&&"error",f&&"fullWidth",c&&"focused",u&&"formControl",v&&v!=="medium"&&`size${Oe(v)}`,y&&"multiline",C&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",w==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",C&&"inputAdornedStart",a&&"inputAdornedEnd",g&&"readOnly"]};return yn(_,K5,e)},K2=Fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G2})(On(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Zu.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Q2=Fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Y2})(On(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Zu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Zu.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),m1=jm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),X5=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:c,className:u,color:f,components:h={},componentsProps:y={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:C,endAdornment:w,error:_,fullWidth:I=!1,id:P,inputComponent:L="input",inputProps:N={},inputRef:E,margin:O,maxRows:z,minRows:M,multiline:V=!1,name:Y,onBlur:S,onChange:j,onClick:W,onFocus:X,onKeyDown:ae,onKeyUp:ce,placeholder:de,readOnly:fe,renderSuffix:q,rows:te,size:ne,slotProps:R={},slots:G={},startAdornment:ue,type:ge="text",value:De,...xe}=r,$e=N.value!=null?N.value:De,{current:Ne}=T.useRef($e!=null),je=T.useRef(),Bt=T.useCallback(He=>{},[]),ur=hl(je,E,N.ref,Bt),[dr,Dn]=T.useState(!1),Je=wd(),jt=Cd({props:r,muiFormControl:Je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});jt.focused=Je?Je.focused:dr,T.useEffect(()=>{!Je&&v&&dr&&(Dn(!1),S&&S())},[Je,v,dr,S]);const fr=Je&&Je.onFilled,Qt=Je&&Je.onEmpty,st=T.useCallback(He=>{kh(He)?fr&&fr():Qt&&Qt()},[fr,Qt]);Ys(()=>{Ne&&st({value:$e})},[$e,st,Ne]);const Nn=He=>{X&&X(He),N.onFocus&&N.onFocus(He),Je&&Je.onFocus?Je.onFocus(He):Dn(!0)},Xt=He=>{S&&S(He),N.onBlur&&N.onBlur(He),Je&&Je.onBlur?Je.onBlur(He):Dn(!1)},Yn=(He,...Jt)=>{if(!Ne){const ln=He.target||je.current;if(ln==null)throw new Error(io(1));st({value:ln.value})}N.onChange&&N.onChange(He,...Jt),j&&j(He,...Jt)};T.useEffect(()=>{st(je.current)},[]);const me=He=>{je.current&&He.currentTarget===He.target&&je.current.focus(),W&&W(He)};let Zr=L,an=N;V&&Zr==="input"&&(te?an={type:void 0,minRows:te,maxRows:te,...an}:an={type:void 0,maxRows:z,minRows:M,...an},Zr=G5);const ho=He=>{st(He.animationName==="mui-auto-fill-cancel"?je.current:{value:"x"})};T.useEffect(()=>{Je&&Je.setAdornedStart(!!ue)},[Je,ue]);const ei={...r,color:jt.color||"primary",disabled:jt.disabled,endAdornment:w,error:jt.error,focused:jt.focused,formControl:Je,fullWidth:I,hiddenLabel:jt.hiddenLabel,multiline:V,size:jt.size,startAdornment:ue,type:ge},ti=Q5(ei),vt=G.root||h.Root||K2,Tt=R.root||y.root||{},wt=G.input||h.Input||Q2;return an={...an,...R.input??y.input},$.jsxs(T.Fragment,{children:[!C&&typeof m1=="function"&&(h1||(h1=$.jsx(m1,{}))),$.jsxs(vt,{...Tt,ref:n,onClick:me,...xe,...!f1(vt)&&{ownerState:{...ei,...Tt.ownerState}},className:ot(ti.root,Tt.className,u,fe&&"MuiInputBase-readOnly"),children:[ue,$.jsx(Ym.Provider,{value:null,children:$.jsx(wt,{"aria-invalid":jt.error,"aria-describedby":s,autoComplete:a,autoFocus:c,defaultValue:g,disabled:jt.disabled,id:P,onAnimationStart:ho,name:Y,placeholder:de,readOnly:fe,required:jt.required,rows:te,value:$e,onKeyDown:ae,onKeyUp:ce,type:ge,...an,...!f1(wt)&&{as:Zr,ownerState:{...ei,...an.ownerState}},ref:ur,className:ot(ti.input,an.className,fe&&"MuiInputBase-readOnly"),onBlur:Xt,onChange:Yn,onFocus:Nn})}),w,q?q({...jt,startAdornment:ue}):null]})]})});function J5(t){return hn("MuiInput",t)}const Wa={...Zu,...mn("MuiInput",["root","underline","input"])},q5=t=>{const{classes:e,disableUnderline:n}=t,s=yn({root:["root",!n&&"underline"],input:["input"]},J5,e);return{...e,...s}},Z5=Fe(K2,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...G2(t,e),!n.disableUnderline&&e.underline]}})(On(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wa.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wa.disabled}, .${Wa.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Ii()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),e4=Fe(Q2,{name:"MuiInput",slot:"Input",overridesResolver:Y2})({}),X2=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:y,slots:g={},type:v="text",...C}=r,w=q5(r),I={root:{ownerState:{disableUnderline:s}}},P=y??c?on(y??c,I):I,L=g.root??a.Root??Z5,N=g.input??a.Input??e4;return $.jsx(X5,{slots:{root:L,input:N},slotProps:P,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:v,...C,classes:w})});X2.muiName="Input";const t4=t=>{const{classes:e}=t;return yn({root:["root"]},H2,e)},n4=$.jsx(X2,{}),Th=T.forwardRef(function(e,n){const r=sn({name:"MuiNativeSelect",props:e}),{className:s,children:a,classes:c={},IconComponent:u=V5,input:f=n4,inputProps:h,variant:y,...g}=r,v=wd(),C=Cd({props:r,muiFormControl:v,states:["variant"]}),w={...r,classes:c},_=t4(w),{root:I,...P}=c;return $.jsx(T.Fragment,{children:T.cloneElement(f,{inputComponent:U5,inputProps:{children:a,classes:P,IconComponent:u,variant:C.variant,type:void 0,...h,...f?f.props.inputProps:{}},ref:n,...g,className:ot(_.root,f.props.className,s)})})});Th.muiName="Select";function r4(t){return hn("MuiFormLabel",t)}const el=mn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),i4=t=>{const{classes:e,color:n,focused:r,disabled:s,error:a,filled:c,required:u}=t,f={root:["root",`color${Oe(n)}`,s&&"disabled",a&&"error",c&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return yn(f,r4,e)},o4=Fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(On(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Ii()).map(([e])=>({props:{color:e},style:{[`&.${el.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${el.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${el.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),s4=Fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(On(({theme:t})=>({[`&.${el.error}`]:{color:(t.vars||t).palette.error.main}}))),a4=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiFormLabel"}),{children:s,className:a,color:c,component:u="label",disabled:f,error:h,filled:y,focused:g,required:v,...C}=r,w=wd(),_=Cd({props:r,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),I={...r,color:_.color||"primary",component:u,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required},P=i4(I);return $.jsxs(o4,{as:u,ownerState:I,className:ot(P.root,a),ref:n,...C,children:[s,_.required&&$.jsxs(s4,{ownerState:I,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]})});function l4(t){return hn("MuiInputLabel",t)}mn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const c4=t=>{const{classes:e,formControl:n,size:r,shrink:s,disableAnimation:a,variant:c,required:u}=t,f={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",r&&r!=="normal"&&`size${Oe(r)}`,c],asterisk:[u&&"asterisk"]},h=yn(f,l4,e);return{...e,...h}},u4=Fe(a4,{shouldForwardProp:t=>Al(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${el.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(On(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),y1=T.forwardRef(function(e,n){const r=sn({name:"MuiInputLabel",props:e}),{disableAnimation:s=!1,margin:a,shrink:c,variant:u,className:f,...h}=r,y=wd();let g=c;typeof g>"u"&&y&&(g=y.filled||y.focused||y.adornedStart);const v=Cd({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),C={...r,disableAnimation:s,formControl:y,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},w=c4(C);return $.jsx(u4,{"data-shrink":g,ref:n,className:ot(w.root,f),...h,ownerState:C,classes:w})});function d4(t){return hn("MuiFormControl",t)}mn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const f4=t=>{const{classes:e,margin:n,fullWidth:r}=t,s={root:["root",n!=="none"&&`margin${Oe(n)}`,r&&"fullWidth"]};return yn(s,d4,e)},p4=Fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Oe(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),g1=T.forwardRef(function(e,n){const r=sn({props:e,name:"MuiFormControl"}),{children:s,className:a,color:c="primary",component:u="div",disabled:f=!1,error:h=!1,focused:y,fullWidth:g=!1,hiddenLabel:v=!1,margin:C="none",required:w=!1,size:_="medium",variant:I="outlined",...P}=r,L={...r,color:c,component:u,disabled:f,error:h,fullWidth:g,hiddenLabel:v,margin:C,required:w,size:_,variant:I},N=f4(L),[E,O]=T.useState(()=>{let ce=!1;return s&&T.Children.forEach(s,de=>{if(!Pp(de,["Input","Select"]))return;const fe=Pp(de,["Select"])?de.props.input:de;fe&&Y5(fe.props)&&(ce=!0)}),ce}),[z,M]=T.useState(()=>{let ce=!1;return s&&T.Children.forEach(s,de=>{Pp(de,["Input","Select"])&&(kh(de.props,!0)||kh(de.props.inputProps,!0))&&(ce=!0)}),ce}),[V,Y]=T.useState(!1);f&&V&&Y(!1);const S=y!==void 0&&!f?y:V;let j;T.useRef(!1);const W=T.useCallback(()=>{M(!0)},[]),X=T.useCallback(()=>{M(!1)},[]),ae=T.useMemo(()=>({adornedStart:E,setAdornedStart:O,color:c,disabled:f,error:h,filled:z,focused:S,fullWidth:g,hiddenLabel:v,size:_,onBlur:()=>{Y(!1)},onFocus:()=>{Y(!0)},onEmpty:X,onFilled:W,registerEffect:j,required:w,variant:I}),[E,c,f,h,z,S,g,v,j,X,W,w,_,I]);return $.jsx(Ym.Provider,{value:ae,children:$.jsx(p4,{as:u,ownerState:L,className:ot(N.root,a),ref:n,...P,children:s})})}),h4=KS({themeId:Cr});function m4(t){const e=l2(),n=h4(e.breakpoints.down("sm"));return T.useEffect(()=>{Tn.setFrameHeight()},[n]),$.jsx(Hm,{direction:n?"column":"row",spacing:2,children:t.children})}const y4=Fe(Ls)(({theme:t})=>({position:"relative",[t.breakpoints.down("sm")]:{width:"100%"},width:t.spacing(24),height:t.spacing(16),maxHeight:t.spacing(16),display:"flex",justifyContent:"center",alignItems:"center"})),g4=y4,v4=Fe(_d)(({theme:t})=>({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",padding:t.spacing(2),boxSizing:"border-box"})),Ol=v4;function b4(){return $.jsx(Ol,{children:Pl("media_api_not_available")||"Media API not available"})}function S4(){return $.jsx(Ol,{children:Pl("device_ask_permission")||"Please allow the app to use your media devices"})}function _4(t){return $.jsxs(Ol,{children:[Pl("device_access_denied")||"Access denied"," (",t.error.message,")"]})}function C4(t){return $.jsxs(Ol,{children:[Pl("device_not_available")||"Device not available"," (",t.error.message,")"]})}const w4=po($.jsx("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73z"}),"VideocamOff"),x4=Fe(_d)({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"});function I4(){return $.jsx(x4,{children:$.jsx(w4,{fontSize:"large"})})}const k4=Kt.memo(I4),T4=Fe(Ls,{shouldForwardProp:t=>t!=="$transparent"})(({theme:t,$transparent:e})=>({margin:0,padding:0,position:"relative","&:before":{position:"absolute",content:'""',width:"100%",height:"100%",opacity:e?0:1,backgroundColor:t.palette.background.default,transition:"opacity 0.3s"}}));function R4(t){const[e,n]=T.useState(!1);return T.useEffect(()=>{const r=setTimeout(()=>{n(!0)},t.time);return()=>clearTimeout(r)},[t.time]),$.jsx(T4,{$transparent:e,children:t.children})}const E4=Fe("video")({maxWidth:"100%",maxHeight:"100%"}),A4=E4;function Rh(t){t.getVideoTracks().forEach(e=>e.stop()),t.getAudioTracks().forEach(e=>e.stop())}function P4(t){const e=T.useRef(null);return T.useEffect(()=>{if(t.deviceId==null)return;let n=null,r=!1;return navigator.mediaDevices.getUserMedia({video:{deviceId:t.deviceId},audio:!1}).then(s=>{if(n=s,r){Rh(n);return}e.current&&(e.current.srcObject=n)}),()=>{r=!0,n&&Rh(n)}},[t.deviceId]),$.jsx(A4,{ref:e,autoPlay:!0,muted:!0})}const O4=Kt.memo(P4);function v1(t,e){const n=t.map(r=>r.deviceId);if(e&&n.includes(e))return e;if(n.length>0)return n[0]}const M4=(t,e)=>{switch(e.type){case"SET_UNAVAILABLE":return{unavailable:!0,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:void 0,selectedAudioInputDeviceId:void 0};case"UPDATE_DEVICES":{const n=e.devices,r=n.filter(f=>f.kind==="videoinput"),s=n.filter(f=>f.kind==="audioinput"),a=n.filter(f=>f.kind==="audiooutput"),c=v1(r,t.selectedVideoInputDeviceId),u=v1(s,t.selectedAudioInputDeviceId);return{...t,videoInputs:r,audioInputs:s,audioOutputs:a,selectedVideoInputDeviceId:c,selectedAudioInputDeviceId:u}}case"UPDATE_SELECTED_DEVICE_ID":return{...t,...e.payload}}};function D4(t){const{video:e,audio:n,defaultVideoDeviceId:r,defaultAudioDeviceId:s,onSelect:a}=t,[c,u]=T.useState("WAITING"),[{unavailable:f,videoInputs:h,selectedVideoInputDeviceId:y,audioInputs:g,selectedAudioInputDeviceId:v},C]=T.useReducer(M4,{unavailable:!1,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:r,selectedAudioInputDeviceId:s}),w=T.useCallback(()=>{var L;if(typeof((L=navigator==null?void 0:navigator.mediaDevices)==null?void 0:L.enumerateDevices)!="function"){C({type:"SET_UNAVAILABLE"});return}return navigator.mediaDevices.enumerateDevices().then(N=>{C({type:"UPDATE_DEVICES",devices:N})})},[]),_=T.useRef({video:r,audio:s});_.current={video:r,audio:s},T.useEffect(()=>{var E;if(typeof((E=navigator==null?void 0:navigator.mediaDevices)==null?void 0:E.getUserMedia)!="function"){C({type:"SET_UNAVAILABLE"});return}u("WAITING");const{video:L,audio:N}=_.current;navigator.mediaDevices.getUserMedia({video:e&&L?{deviceId:L}:e,audio:n&&N?{deviceId:N}:n}).then(async O=>{Rh(O),await w(),u("ALLOWED")}).catch(O=>{u(O)})},[e,n,w]),T.useEffect(()=>{const L=()=>w();return navigator.mediaDevices.ondevicechange=L,()=>{navigator.mediaDevices.ondevicechange===L&&(navigator.mediaDevices.ondevicechange=null)}},[w]);const I=T.useCallback(L=>{C({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedVideoInputDeviceId:L.target.value}})},[]),P=T.useCallback(L=>{C({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedAudioInputDeviceId:L.target.value}})},[]);if(T.useEffect(()=>{const L=e?h.find(E=>E.deviceId===y):null,N=n?g.find(E=>E.deviceId===v):null;a({video:L==null?void 0:L.deviceId,audio:N==null?void 0:N.deviceId})},[e,n,a,h,g,y,v]),T.useEffect(()=>{setTimeout(()=>Tn.setFrameHeight())}),f)return $.jsx(b4,{});if(c==="WAITING")return $.jsx(R4,{time:1e3,children:$.jsx(S4,{})});if(c instanceof Error){const L=c;return L instanceof DOMException&&(L.name==="NotReadableError"||L.name==="NotFoundError")?$.jsx(C4,{error:L}):L instanceof DOMException&&L.name==="NotAllowedError"?$.jsx(_4,{error:L}):$.jsx(Ol,{children:$.jsxs(U2,{severity:"error",children:[L.name,": ",L.message]})})}return $.jsxs(m4,{children:[$.jsx(g4,{children:e&&y?$.jsx(O4,{deviceId:y}):$.jsx(k4,{})}),$.jsxs(Hm,{spacing:2,justifyContent:"center",children:[e&&y&&$.jsxs(g1,{fullWidth:!0,children:[$.jsx(y1,{htmlFor:"device-select-video-input",children:"Video Input"}),$.jsx(Th,{inputProps:{name:"video-input",id:"device-select-video-input"},value:y,onChange:I,children:h.map(L=>$.jsx("option",{value:L.deviceId,children:L.label},L.deviceId))})]}),n&&v&&$.jsxs(g1,{fullWidth:!0,children:[$.jsx(y1,{htmlFor:"device-select-audio-input",children:"Audio Input"}),$.jsx(Th,{inputProps:{name:"audio-input",id:"device-select-audio-input"},value:v,onChange:P,children:g.map(L=>$.jsx("option",{value:L.deviceId,children:L.label},L.deviceId))})]})]})]})}function N4({onClose:t,...e}){return $.jsxs(Hm,{spacing:2,children:[$.jsx(D4,{...e}),$.jsx(Ls,{children:$.jsx(W2,{variant:"contained",color:"primary",onClick:t,children:"Done"})})]})}function B4(t){var s,a,c,u,f,h,y,g,v,C,w,_,I,P,L,N,E,O,z,M,V,Y,S,j,W,X,ae;T.useEffect(()=>{Tn.setFrameHeight()});const e=t.stream.getVideoTracks().length>0,n=T.useCallback(ce=>{ce&&(ce.srcObject=t.stream)},[t.stream]),r=T.useCallback(()=>Tn.setFrameHeight(),[]);if(e){const ce={hidden:(s=t.userDefinedVideoAttrs)==null?void 0:s.hidden,style:(a=t.userDefinedVideoAttrs)==null?void 0:a.style,autoPlay:(c=t.userDefinedVideoAttrs)==null?void 0:c.autoPlay,controls:(u=t.userDefinedVideoAttrs)==null?void 0:u.controls,controlsList:(f=t.userDefinedVideoAttrs)==null?void 0:f.controlsList,crossOrigin:(h=t.userDefinedVideoAttrs)==null?void 0:h.crossOrigin,loop:(y=t.userDefinedVideoAttrs)==null?void 0:y.loop,mediaGroup:(g=t.userDefinedVideoAttrs)==null?void 0:g.mediaGroup,muted:(v=t.userDefinedVideoAttrs)==null?void 0:v.muted,playsInline:(C=t.userDefinedVideoAttrs)==null?void 0:C.playsInline,preload:(w=t.userDefinedVideoAttrs)==null?void 0:w.preload,height:(_=t.userDefinedVideoAttrs)==null?void 0:_.height,poster:(I=t.userDefinedVideoAttrs)==null?void 0:I.poster,width:(P=t.userDefinedVideoAttrs)==null?void 0:P.width,disablePictureInPicture:(L=t.userDefinedVideoAttrs)==null?void 0:L.disablePictureInPicture,disableRemotePlayback:(N=t.userDefinedVideoAttrs)==null?void 0:N.disableRemotePlayback};return $.jsx("video",{...ce,ref:n,onCanPlay:r})}else{const ce={hidden:(E=t.userDefinedAudioAttrs)==null?void 0:E.hidden,style:(O=t.userDefinedAudioAttrs)==null?void 0:O.style,autoPlay:(z=t.userDefinedAudioAttrs)==null?void 0:z.autoPlay,controls:(M=t.userDefinedAudioAttrs)==null?void 0:M.controls,controlsList:(V=t.userDefinedAudioAttrs)==null?void 0:V.controlsList,crossOrigin:(Y=t.userDefinedAudioAttrs)==null?void 0:Y.crossOrigin,loop:(S=t.userDefinedAudioAttrs)==null?void 0:S.loop,mediaGroup:(j=t.userDefinedAudioAttrs)==null?void 0:j.mediaGroup,muted:(W=t.userDefinedAudioAttrs)==null?void 0:W.muted,playsInline:(X=t.userDefinedAudioAttrs)==null?void 0:X.playsInline,preload:(ae=t.userDefinedAudioAttrs)==null?void 0:ae.preload};return $.jsx("audio",{ref:n,...ce})}}const L4=Kt.memo(B4),F4=po($.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H3V5h18z"}),"VideoLabel"),$4=Fe(_d)(({theme:t})=>({padding:t.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}));function z4(t){return T.useEffect(()=>{Tn.setFrameHeight()}),$.jsx($4,{elevation:0,children:t.loading?$.jsx(Wm,{}):$.jsx(F4,{fontSize:"large"})})}const j4=Kt.memo(z4);function U4(t,e,n){const r=t||{};return e&&(r.video===!0?r.video={deviceId:e}:(typeof r.video=="object"||r.video==null)&&(r.video={...r.video,deviceId:e})),n&&(r.audio===!0?r.audio={deviceId:n}:(typeof r.audio=="object"||r.audio==null)&&(r.audio={...r.audio,deviceId:n})),r}function V4(t){const e=t?!!t.video:!0,n=t?!!t.audio:!0;return{videoEnabled:e,audioEnabled:n}}const W4={webRtcState:"STOPPED",sdpOffer:null,iceCandidates:{},stream:null,error:null},b1=new Set;function H4(){let t;do t=Math.random().toString(36).substring(2,15);while(b1.has(t));return b1.add(t),t}const G4=(t,e)=>{switch(e.type){case"SIGNALLING_START":return{...t,webRtcState:"SIGNALLING",stream:null,error:null};case"SET_STREAM":return{...t,stream:e.stream};case"SET_OFFER":return{...t,sdpOffer:e.offer};case"ADD_ICE_CANDIDATE":{const n=H4();return{...t,iceCandidates:{...t.iceCandidates,[n]:e.candidate}}}case"STOPPING":return{...t,webRtcState:"STOPPING",sdpOffer:null,iceCandidates:{}};case"STOPPED":return{...t,webRtcState:"STOPPED",sdpOffer:null,iceCandidates:{},stream:null};case"START_PLAYING":return{...t,webRtcState:"PLAYING",sdpOffer:null,iceCandidates:{}};case"SET_OFFER_ERROR":return{...t,webRtcState:"STOPPED",sdpOffer:null,iceCandidates:{},error:e.error};case"PROCESS_ANSWER_ERROR":return{...t,webRtcState:"STOPPED",sdpOffer:null,iceCandidates:{},error:e.error};case"ERROR":return{...t,webRtcState:"STOPPED",sdpOffer:null,iceCandidates:{},error:e.error}}},Y4=t=>(n,r)=>{const s=G4(n,r),a=s.webRtcState==="PLAYING",c=n.webRtcState==="PLAYING",u=a!==c,f=s.sdpOffer,h=n.sdpOffer,y=f!==h,g=s.iceCandidates,v=n.iceCandidates,C=Object.keys(g).length!==Object.keys(v).length;if(u||y||C){const w=Object.fromEntries(Object.entries(g).map(([I,P])=>[I,P.toJSON()])),_={playing:a,sdpOffer:f?f.toJSON():"",iceCandidates:w};console.debug("set component value",_),t(_)}return s},Eh=t=>t==="RECVONLY"||t==="SENDONLY"||t==="SENDRECV",K4=t=>t==="SENDRECV"||t==="RECVONLY",Q4=t=>t==="SENDRECV"||t==="SENDONLY",X4=(t,e,n,r,s)=>{T.useEffect(()=>r({playing:!1,sdpOffer:"",iceCandidates:{}}),[]);const a=T.useRef(),c=T.useMemo(()=>Y4(r),[r]),[u,f]=T.useReducer(c,W4),h=T.useCallback(()=>{(async()=>{if(u.webRtcState==="STOPPING")return;const C=a.current;if(a.current=void 0,f({type:"STOPPING"}),C!=null)return C.getTransceivers&&C.getTransceivers().forEach(function(w){w.stop&&w.stop()}),C.getSenders().forEach(function(w){var _;(_=w.track)==null||_.stop()}),new Promise(w=>{setTimeout(()=>{C.close(),w()},500)})})().catch(C=>f({type:"ERROR",error:C})).finally(()=>{f({type:"STOPPED"})})},[u.webRtcState]),y=T.useRef(h);y.current=h;const g=T.useCallback(()=>u.webRtcState!=="STOPPED"?Promise.reject(new Error("WebRTC is already started")):(async()=>{f({type:"SIGNALLING_START"});const C=t.mode,w=t.rtcConfiguration||{};console.debug("RTCConfiguration:",w);const _=new RTCPeerConnection(w);if((C==="SENDRECV"||C==="RECVONLY")&&_.addEventListener("track",I=>{const P=I.streams[0];f({type:"SET_STREAM",stream:P})}),C==="SENDRECV"||C==="SENDONLY"){const I=U4(t.mediaStreamConstraints,e,n);if(console.debug("MediaStreamConstraints:",I),I.audio||I.video){if(navigator.mediaDevices==null)throw new Error("navigator.mediaDevices is undefined. It seems the current document is not loaded securely.");if(navigator.mediaDevices.getUserMedia==null)throw new Error("getUserMedia is not implemented in this browser");const P={},L=await navigator.mediaDevices.getUserMedia(I);L.getTracks().forEach(N=>{_.addTrack(N,L);const E=N.kind;if(E!=="video"&&E!=="audio")return;const O=N.getSettings().deviceId;O!=null&&(P[E]=O)}),Object.keys(P).length>0&&s(P)}if(C==="SENDONLY")for(const P of _.getTransceivers())P.direction="sendonly"}else C==="RECVONLY"&&(_.addTransceiver("video",{direction:"recvonly"}),_.addTransceiver("audio",{direction:"recvonly"}));console.debug("transceivers",_.getTransceivers()),_.addEventListener("iceconnectionstatechange",()=>{console.debug("iceconnectionstatechange",_.iceConnectionState),(_.iceConnectionState==="disconnected"||_.iceConnectionState==="failed"||_.iceConnectionState==="closed")&&y.current()}),_.addEventListener("connectionstatechange",()=>{console.debug("connectionstatechange",_.connectionState),_.connectionState==="connected"?f({type:"START_PLAYING"}):(_.connectionState==="disconnected"||_.connectionState==="closed"||_.connectionState==="failed")&&y.current()}),a.current=_,_.addEventListener("icecandidate",I=>{I.candidate&&(console.debug("icecandidate",I.candidate),f({type:"ADD_ICE_CANDIDATE",candidate:I.candidate}))}),_.createOffer().then(I=>_.setLocalDescription(I).then(()=>{const P=_.localDescription;if(P==null)throw new Error("Failed to create an offer SDP");f({type:"SET_OFFER",offer:P})})).catch(I=>{f({type:"SET_OFFER_ERROR",error:I})})})().catch(C=>f({type:"ERROR",error:C})),[n,e,t.mediaStreamConstraints,t.mode,t.rtcConfiguration,u.webRtcState,s]);return T.useEffect(()=>{const v=a.current;if(v==null)return;const C=t.sdpAnswerJson;if(v.remoteDescription==null&&C&&u.webRtcState==="SIGNALLING"){const w=JSON.parse(C);console.debug("Receive answer SDP",w),v.setRemoteDescription(w).catch(_=>{f({type:"PROCESS_ANSWER_ERROR",error:_}),h()})}},[t.sdpAnswerJson,u.webRtcState,h]),T.useEffect(()=>{const v=t.desiredPlayingState;v!=null&&(v===!0&&u.webRtcState==="STOPPED"?g():v===!1&&(u.webRtcState==="SIGNALLING"||u.webRtcState==="PLAYING")&&h())},[t.desiredPlayingState,g,u.webRtcState,h]),{start:g,stop:h,state:u}};function J4(){const[t,e]=T.useState(!1),n=T.useRef(void 0),r=T.useCallback(a=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(!0)},a)},[]),s=T.useCallback(()=>{n.current&&clearTimeout(n.current),e(!1)},[]);return T.useEffect(()=>()=>{s()},[s]),{start:r,clear:s,isTimedOut:t}}function q4(t){return Tn.setComponentValue(t)}function Gp({translationKey:t,defaultText:e,...n}){return $.jsx(W2,{...n,children:Pl(t)||e})}let J2=!0,q2=!0;function du(t,e,n){const r=t.match(e);return r&&r.length>=n&&parseInt(r[n],10)}function Vo(t,e,n){if(!t.RTCPeerConnection)return;const r=t.RTCPeerConnection.prototype,s=r.addEventListener;r.addEventListener=function(c,u){if(c!==e)return s.apply(this,arguments);const f=h=>{const y=n(h);y&&(u.handleEvent?u.handleEvent(y):u(y))};return this._eventMap=this._eventMap||{},this._eventMap[e]||(this._eventMap[e]=new Map),this._eventMap[e].set(u,f),s.apply(this,[c,f])};const a=r.removeEventListener;r.removeEventListener=function(c,u){if(c!==e||!this._eventMap||!this._eventMap[e])return a.apply(this,arguments);if(!this._eventMap[e].has(u))return a.apply(this,arguments);const f=this._eventMap[e].get(u);return this._eventMap[e].delete(u),this._eventMap[e].size===0&&delete this._eventMap[e],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[c,f])},Object.defineProperty(r,"on"+e,{get(){return this["_on"+e]},set(c){this["_on"+e]&&(this.removeEventListener(e,this["_on"+e]),delete this["_on"+e]),c&&this.addEventListener(e,this["_on"+e]=c)},enumerable:!0,configurable:!0})}function Z4(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(J2=t,t?"adapter.js logging disabled":"adapter.js logging enabled")}function eO(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(q2=!t,"adapter.js deprecation warnings "+(t?"disabled":"enabled"))}function Z2(){if(typeof window=="object"){if(J2)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Km(t,e){q2&&console.warn(t+" is deprecated, please use "+e+" instead.")}function tO(t){const e={browser:null,version:null};if(typeof t>"u"||!t.navigator||!t.navigator.userAgent)return e.browser="Not a browser.",e;const{navigator:n}=t;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(s=>s.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)e.browser="firefox",e.version=du(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||t.isSecureContext===!1&&t.webkitRTCPeerConnection)e.browser="chrome",e.version=du(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))e.browser="safari",e.version=du(n.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype;else return e.browser="Not a supported browser.",e;return e}function S1(t){return Object.prototype.toString.call(t)==="[object Object]"}function e_(t){return S1(t)?Object.keys(t).reduce(function(e,n){const r=S1(t[n]),s=r?e_(t[n]):t[n],a=r&&!Object.keys(s).length;return s===void 0||a?e:Object.assign(e,{[n]:s})},{}):t}function Ah(t,e,n){!e||n.has(e.id)||(n.set(e.id,e),Object.keys(e).forEach(r=>{r.endsWith("Id")?Ah(t,t.get(e[r]),n):r.endsWith("Ids")&&e[r].forEach(s=>{Ah(t,t.get(s),n)})}))}function _1(t,e,n){const r=n?"outbound-rtp":"inbound-rtp",s=new Map;if(e===null)return s;const a=[];return t.forEach(c=>{c.type==="track"&&c.trackIdentifier===e.id&&a.push(c)}),a.forEach(c=>{t.forEach(u=>{u.type===r&&u.trackId===c.id&&Ah(t,u,s)})}),s}const C1=Z2;function t_(t,e){const n=t&&t.navigator;if(!n.mediaDevices)return;const r=function(u){if(typeof u!="object"||u.mandatory||u.optional)return u;const f={};return Object.keys(u).forEach(h=>{if(h==="require"||h==="advanced"||h==="mediaSource")return;const y=typeof u[h]=="object"?u[h]:{ideal:u[h]};y.exact!==void 0&&typeof y.exact=="number"&&(y.min=y.max=y.exact);const g=function(v,C){return v?v+C.charAt(0).toUpperCase()+C.slice(1):C==="deviceId"?"sourceId":C};if(y.ideal!==void 0){f.optional=f.optional||[];let v={};typeof y.ideal=="number"?(v[g("min",h)]=y.ideal,f.optional.push(v),v={},v[g("max",h)]=y.ideal,f.optional.push(v)):(v[g("",h)]=y.ideal,f.optional.push(v))}y.exact!==void 0&&typeof y.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[g("",h)]=y.exact):["min","max"].forEach(v=>{y[v]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[g(v,h)]=y[v])})}),u.advanced&&(f.optional=(f.optional||[]).concat(u.advanced)),f},s=function(u,f){if(e.version>=61)return f(u);if(u=JSON.parse(JSON.stringify(u)),u&&typeof u.audio=="object"){const h=function(y,g,v){g in y&&!(v in y)&&(y[v]=y[g],delete y[g])};u=JSON.parse(JSON.stringify(u)),h(u.audio,"autoGainControl","googAutoGainControl"),h(u.audio,"noiseSuppression","googNoiseSuppression"),u.audio=r(u.audio)}if(u&&typeof u.video=="object"){let h=u.video.facingMode;h=h&&(typeof h=="object"?h:{ideal:h});const y=e.version<66;if(h&&(h.exact==="user"||h.exact==="environment"||h.ideal==="user"||h.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!y)){delete u.video.facingMode;let g;if(h.exact==="environment"||h.ideal==="environment"?g=["back","rear"]:(h.exact==="user"||h.ideal==="user")&&(g=["front"]),g)return n.mediaDevices.enumerateDevices().then(v=>{v=v.filter(w=>w.kind==="videoinput");let C=v.find(w=>g.some(_=>w.label.toLowerCase().includes(_)));return!C&&v.length&&g.includes("back")&&(C=v[v.length-1]),C&&(u.video.deviceId=h.exact?{exact:C.deviceId}:{ideal:C.deviceId}),u.video=r(u.video),C1("chrome: "+JSON.stringify(u)),f(u)})}u.video=r(u.video)}return C1("chrome: "+JSON.stringify(u)),f(u)},a=function(u){return e.version>=64?u:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[u.name]||u.name,message:u.message,constraint:u.constraint||u.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},c=function(u,f,h){s(u,y=>{n.webkitGetUserMedia(y,f,g=>{h&&h(a(g))})})};if(n.getUserMedia=c.bind(n),n.mediaDevices.getUserMedia){const u=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(f){return s(f,h=>u(h).then(y=>{if(h.audio&&!y.getAudioTracks().length||h.video&&!y.getVideoTracks().length)throw y.getTracks().forEach(g=>{g.stop()}),new DOMException("","NotFoundError");return y},y=>Promise.reject(a(y))))}}}function n_(t){t.MediaStream=t.MediaStream||t.webkitMediaStream}function r_(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("ontrack"in t.RTCPeerConnection.prototype)){Object.defineProperty(t.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.track.id):a={track:s.track};const c=new Event("track");c.track=s.track,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)}),r.stream.getTracks().forEach(s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.id):a={track:s};const c=new Event("track");c.track=s,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)})},this.addEventListener("addstream",this._ontrackpoly)),e.apply(this,arguments)}}else Vo(t,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function i_(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("getSenders"in t.RTCPeerConnection.prototype)&&"createDTMFSender"in t.RTCPeerConnection.prototype){const e=function(s,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=s.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:s}};if(!t.RTCPeerConnection.prototype.getSenders){t.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const s=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(u,f){let h=s.apply(this,arguments);return h||(h=e(this,u),this._senders.push(h)),h};const a=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(u){a.apply(this,arguments);const f=this._senders.indexOf(u);f!==-1&&this._senders.splice(f,1)}}const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(c=>{this._senders.push(e(this,c))})};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(c=>{const u=this._senders.find(f=>f.track===c);u&&this._senders.splice(this._senders.indexOf(u),1)})}}else if(typeof t=="object"&&t.RTCPeerConnection&&"getSenders"in t.RTCPeerConnection.prototype&&"createDTMFSender"in t.RTCPeerConnection.prototype&&t.RTCRtpSender&&!("dtmf"in t.RTCRtpSender.prototype)){const e=t.RTCPeerConnection.prototype.getSenders;t.RTCPeerConnection.prototype.getSenders=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r},Object.defineProperty(t.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function o_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender&&t.RTCRtpReceiver))return;if(!("getStats"in t.RTCRtpSender.prototype)){const n=t.RTCPeerConnection.prototype.getSenders;n&&(t.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(c=>c._pc=this),a});const r=t.RTCPeerConnection.prototype.addTrack;r&&(t.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),t.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(c=>_1(c,a.track,!0))}}if(!("getStats"in t.RTCRtpReceiver.prototype)){const n=t.RTCPeerConnection.prototype.getReceivers;n&&(t.RTCPeerConnection.prototype.getReceivers=function(){const s=n.apply(this,[]);return s.forEach(a=>a._pc=this),s}),Vo(t,"track",r=>(r.receiver._pc=r.srcElement,r)),t.RTCRtpReceiver.prototype.getStats=function(){const s=this;return this._pc.getStats().then(a=>_1(a,s.track,!1))}}if(!("getStats"in t.RTCRtpSender.prototype&&"getStats"in t.RTCRtpReceiver.prototype))return;const e=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof t.MediaStreamTrack){const r=arguments[0];let s,a,c;return this.getSenders().forEach(u=>{u.track===r&&(s?c=!0:s=u)}),this.getReceivers().forEach(u=>(u.track===r&&(a?c=!0:a=u),u.track===r)),c||s&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):s?s.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return e.apply(this,arguments)}}function s_(t){t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(c=>this._shimmedLocalStreams[c][0])};const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(c,u){if(!u)return e.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const f=e.apply(this,arguments);return this._shimmedLocalStreams[u.id]?this._shimmedLocalStreams[u.id].indexOf(f)===-1&&this._shimmedLocalStreams[u.id].push(f):this._shimmedLocalStreams[u.id]=[u,f],f};const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(c){this._shimmedLocalStreams=this._shimmedLocalStreams||{},c.getTracks().forEach(h=>{if(this.getSenders().find(g=>g.track===h))throw new DOMException("Track already exists.","InvalidAccessError")});const u=this.getSenders();n.apply(this,arguments);const f=this.getSenders().filter(h=>u.indexOf(h)===-1);this._shimmedLocalStreams[c.id]=[c].concat(f)};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[c.id],r.apply(this,arguments)};const s=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},c&&Object.keys(this._shimmedLocalStreams).forEach(u=>{const f=this._shimmedLocalStreams[u].indexOf(c);f!==-1&&this._shimmedLocalStreams[u].splice(f,1),this._shimmedLocalStreams[u].length===1&&delete this._shimmedLocalStreams[u]}),s.apply(this,arguments)}}function a_(t,e){if(!t.RTCPeerConnection)return;if(t.RTCPeerConnection.prototype.addTrack&&e.version>=65)return s_(t);const n=t.RTCPeerConnection.prototype.getLocalStreams;t.RTCPeerConnection.prototype.getLocalStreams=function(){const y=n.apply(this);return this._reverseStreams=this._reverseStreams||{},y.map(g=>this._reverseStreams[g.id])};const r=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(y){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},y.getTracks().forEach(g=>{if(this.getSenders().find(C=>C.track===g))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[y.id]){const g=new t.MediaStream(y.getTracks());this._streams[y.id]=g,this._reverseStreams[g.id]=y,y=g}r.apply(this,[y])};const s=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(y){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},s.apply(this,[this._streams[y.id]||y]),delete this._reverseStreams[this._streams[y.id]?this._streams[y.id].id:y.id],delete this._streams[y.id]},t.RTCPeerConnection.prototype.addTrack=function(y,g){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const v=[].slice.call(arguments,1);if(v.length!==1||!v[0].getTracks().find(_=>_===y))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(_=>_.track===y))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const w=this._streams[g.id];if(w)w.addTrack(y),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const _=new t.MediaStream([y]);this._streams[g.id]=_,this._reverseStreams[_.id]=g,this.addStream(_)}return this.getSenders().find(_=>_.track===y)};function a(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const C=h._reverseStreams[v],w=h._streams[C.id];g=g.replace(new RegExp(w.id,"g"),C.id)}),new RTCSessionDescription({type:y.type,sdp:g})}function c(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const C=h._reverseStreams[v],w=h._streams[C.id];g=g.replace(new RegExp(C.id,"g"),w.id)}),new RTCSessionDescription({type:y.type,sdp:g})}["createOffer","createAnswer"].forEach(function(h){const y=t.RTCPeerConnection.prototype[h],g={[h](){const v=arguments;return arguments.length&&typeof arguments[0]=="function"?y.apply(this,[w=>{const _=a(this,w);v[0].apply(null,[_])},w=>{v[1]&&v[1].apply(null,w)},arguments[2]]):y.apply(this,arguments).then(w=>a(this,w))}};t.RTCPeerConnection.prototype[h]=g[h]});const u=t.RTCPeerConnection.prototype.setLocalDescription;t.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?u.apply(this,arguments):(arguments[0]=c(this,arguments[0]),u.apply(this,arguments))};const f=Object.getOwnPropertyDescriptor(t.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(t.RTCPeerConnection.prototype,"localDescription",{get(){const h=f.get.apply(this);return h.type===""?h:a(this,h)}}),t.RTCPeerConnection.prototype.removeTrack=function(y){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!y._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(y._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let v;Object.keys(this._streams).forEach(C=>{this._streams[C].getTracks().find(_=>y.track===_)&&(v=this._streams[C])}),v&&(v.getTracks().length===1?this.removeStream(this._reverseStreams[v.id]):v.removeTrack(y.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Ph(t,e){!t.RTCPeerConnection&&t.webkitRTCPeerConnection&&(t.RTCPeerConnection=t.webkitRTCPeerConnection),t.RTCPeerConnection&&e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=t.RTCPeerConnection.prototype[n],s={[n](){return arguments[0]=new(n==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};t.RTCPeerConnection.prototype[n]=s[n]})}function l_(t,e){Vo(t,"negotiationneeded",n=>{const r=n.target;if(!((e.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const w1=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:l_,shimAddTrackRemoveTrack:a_,shimAddTrackRemoveTrackWithNative:s_,shimGetSendersWithDtmf:i_,shimGetUserMedia:t_,shimMediaStream:n_,shimOnTrack:r_,shimPeerConnection:Ph,shimSenderReceiverGetStats:o_},Symbol.toStringTag,{value:"Module"}));function c_(t,e){const n=t&&t.navigator,r=t&&t.MediaStreamTrack;if(n.getUserMedia=function(s,a,c){Km("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(s).then(a,c)},!(e.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const s=function(c,u,f){u in c&&!(f in c)&&(c[f]=c[u],delete c[u])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(c){return typeof c=="object"&&typeof c.audio=="object"&&(c=JSON.parse(JSON.stringify(c)),s(c.audio,"autoGainControl","mozAutoGainControl"),s(c.audio,"noiseSuppression","mozNoiseSuppression")),a(c)},r&&r.prototype.getSettings){const c=r.prototype.getSettings;r.prototype.getSettings=function(){const u=c.apply(this,arguments);return s(u,"mozAutoGainControl","autoGainControl"),s(u,"mozNoiseSuppression","noiseSuppression"),u}}if(r&&r.prototype.applyConstraints){const c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(u){return this.kind==="audio"&&typeof u=="object"&&(u=JSON.parse(JSON.stringify(u)),s(u,"autoGainControl","mozAutoGainControl"),s(u,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[u])}}}}function nO(t,e){t.navigator.mediaDevices&&"getDisplayMedia"in t.navigator.mediaDevices||t.navigator.mediaDevices&&(t.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const s=new DOMException("getDisplayMedia without video constraints is undefined");return s.name="NotFoundError",s.code=8,Promise.reject(s)}return r.video===!0?r.video={mediaSource:e}:r.video.mediaSource=e,t.navigator.mediaDevices.getUserMedia(r)})}function u_(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Oh(t,e){if(typeof t!="object"||!(t.RTCPeerConnection||t.mozRTCPeerConnection))return;!t.RTCPeerConnection&&t.mozRTCPeerConnection&&(t.RTCPeerConnection=t.mozRTCPeerConnection),e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(s){const a=t.RTCPeerConnection.prototype[s],c={[s](){return arguments[0]=new(s==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};t.RTCPeerConnection.prototype[s]=c[s]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){const[a,c,u]=arguments;return r.apply(this,[a||null]).then(f=>{if(e.version<53&&!c)try{f.forEach(h=>{h.type=n[h.type]||h.type})}catch(h){if(h.name!=="TypeError")throw h;f.forEach((y,g)=>{f.set(g,Object.assign({},y,{type:n[y.type]||y.type}))})}return f}).then(c,u)}}function d_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpSender.prototype)return;const e=t.RTCPeerConnection.prototype.getSenders;e&&(t.RTCPeerConnection.prototype.getSenders=function(){const s=e.apply(this,[]);return s.forEach(a=>a._pc=this),s});const n=t.RTCPeerConnection.prototype.addTrack;n&&(t.RTCPeerConnection.prototype.addTrack=function(){const s=n.apply(this,arguments);return s._pc=this,s}),t.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function f_(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpReceiver.prototype)return;const e=t.RTCPeerConnection.prototype.getReceivers;e&&(t.RTCPeerConnection.prototype.getReceivers=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r}),Vo(t,"track",n=>(n.receiver._pc=n.srcElement,n)),t.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function p_(t){!t.RTCPeerConnection||"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){Km("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function h_(t){t.DataChannel&&!t.RTCDataChannel&&(t.RTCDataChannel=t.DataChannel)}function m_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.addTransceiver;e&&(t.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const s=r.length>0;s&&r.forEach(c=>{if("rid"in c&&!/^[a-z0-9]{0,16}$/i.test(c.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in c&&!(parseFloat(c.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in c&&!(parseFloat(c.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=e.apply(this,arguments);if(s){const{sender:c}=a,u=c.getParameters();(!("encodings"in u)||u.encodings.length===1&&Object.keys(u.encodings[0]).length===0)&&(u.encodings=r,c.sendEncodings=r,this.setParametersPromises.push(c.setParameters(u).then(()=>{delete c.sendEncodings}).catch(()=>{delete c.sendEncodings})))}return a})}function y_(t){if(!(typeof t=="object"&&t.RTCRtpSender))return;const e=t.RTCRtpSender.prototype.getParameters;e&&(t.RTCRtpSender.prototype.getParameters=function(){const r=e.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function g_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}function v_(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createAnswer;t.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}const x1=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:m_,shimCreateAnswer:v_,shimCreateOffer:g_,shimGetDisplayMedia:nO,shimGetParameters:y_,shimGetUserMedia:c_,shimOnTrack:u_,shimPeerConnection:Oh,shimRTCDataChannel:h_,shimReceiverGetStats:f_,shimRemoveStream:p_,shimSenderGetStats:d_},Symbol.toStringTag,{value:"Module"}));function b_(t){if(!(typeof t!="object"||!t.RTCPeerConnection)){if("getLocalStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in t.RTCPeerConnection.prototype)){const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(s=>e.call(this,s,r)),r.getVideoTracks().forEach(s=>e.call(this,s,r))},t.RTCPeerConnection.prototype.addTrack=function(r,...s){return s&&s.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),e.apply(this,arguments)}}"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const s=n.getTracks();this.getSenders().forEach(a=>{s.includes(a.track)&&this.removeTrack(a)})})}}function S_(t){if(!(typeof t!="object"||!t.RTCPeerConnection)&&("getRemoteStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in t.RTCPeerConnection.prototype))){Object.defineProperty(t.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(s=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(s))return;this._remoteStreams.push(s);const a=new Event("addstream");a.stream=s,this.dispatchEvent(a)})})}});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(s){s.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const c=new Event("addstream");c.stream=a,r.dispatchEvent(c)})}),e.apply(r,arguments)}}}function __(t){if(typeof t!="object"||!t.RTCPeerConnection)return;const e=t.RTCPeerConnection.prototype,n=e.createOffer,r=e.createAnswer,s=e.setLocalDescription,a=e.setRemoteDescription,c=e.addIceCandidate;e.createOffer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=n.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v},e.createAnswer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=r.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v};let u=function(f,h,y){const g=s.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g};e.setLocalDescription=u,u=function(f,h,y){const g=a.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.setRemoteDescription=u,u=function(f,h,y){const g=c.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.addIceCandidate=u}function C_(t){const e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){const n=e.mediaDevices,r=n.getUserMedia.bind(n);e.mediaDevices.getUserMedia=s=>r(w_(s))}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=(function(r,s,a){e.mediaDevices.getUserMedia(r).then(s,a)}).bind(e))}function w_(t){return t&&t.video!==void 0?Object.assign({},t,{video:e_(t.video)}):t}function x_(t){if(!t.RTCPeerConnection)return;const e=t.RTCPeerConnection;t.RTCPeerConnection=function(r,s){if(r&&r.iceServers){const a=[];for(let c=0;c<r.iceServers.length;c++){let u=r.iceServers[c];u.urls===void 0&&u.url?(Km("RTCIceServer.url","RTCIceServer.urls"),u=JSON.parse(JSON.stringify(u)),u.urls=u.url,delete u.url,a.push(u)):a.push(r.iceServers[c])}r.iceServers=a}return new e(r,s)},t.RTCPeerConnection.prototype=e.prototype,"generateCertificate"in e&&Object.defineProperty(t.RTCPeerConnection,"generateCertificate",{get(){return e.generateCertificate}})}function I_(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function k_(t){const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const s=this.getTransceivers().find(c=>c.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveAudio===!0&&!s&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(c=>c.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return e.apply(this,arguments)}}function T_(t){typeof t!="object"||t.AudioContext||(t.AudioContext=t.webkitAudioContext)}const I1=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:T_,shimCallbacksAPI:__,shimConstraints:w_,shimCreateOfferLegacy:k_,shimGetUserMedia:C_,shimLocalStreamsAPI:b_,shimRTCIceServerUrls:x_,shimRemoteStreamsAPI:S_,shimTrackEventTransceiver:I_},Symbol.toStringTag,{value:"Module"}));var Yp={exports:{}},k1;function rO(){return k1||(k1=1,function(t){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(n){return n.trim().split(`
|
225
225
|
`).map(r=>r.trim())},e.splitSections=function(n){return n.split(`
|
226
226
|
m=`).map((s,a)=>(a>0?"m="+s:s).trim()+`\r
|
227
227
|
`)},e.getDescription=function(n){const r=e.splitSections(n);return r&&r[0]},e.getMediaSections=function(n){const r=e.splitSections(n);return r.shift(),r},e.matchPrefix=function(n,r){return e.splitLines(n).filter(s=>s.indexOf(r)===0)},e.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const s={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let a=8;a<r.length;a+=2)switch(r[a]){case"raddr":s.relatedAddress=r[a+1];break;case"rport":s.relatedPort=parseInt(r[a+1],10);break;case"tcptype":s.tcpType=r[a+1];break;case"ufrag":s.ufrag=r[a+1],s.usernameFragment=r[a+1];break;default:s[r[a]]===void 0&&(s[r[a]]=r[a+1]);break}return s},e.writeCandidate=function(n){const r=[];r.push(n.foundation);const s=n.component;s==="rtp"?r.push(1):s==="rtcp"?r.push(2):r.push(s),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const a=n.type;return r.push("typ"),r.push(a),a!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},e.parseIceOptions=function(n){return n.substring(14).split(" ")},e.parseRtpMap=function(n){let r=n.substring(9).split(" ");const s={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),s.name=r[0],s.clockRate=parseInt(r[1],10),s.channels=r.length===3?parseInt(r[2],10):1,s.numChannels=s.channels,s},e.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const s=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(s!==1?"/"+s:"")+`\r
|
@@ -252,7 +252,7 @@ a=ice-pwd:`+n.password+`\r
|
|
252
252
|
o=`+(s||"thisisadapterortc")+" "+a+" "+c+` IN IP4 127.0.0.1\r
|
253
253
|
s=-\r
|
254
254
|
t=0 0\r
|
255
|
-
`},e.getDirection=function(n,r){const s=e.splitLines(n);for(let a=0;a<s.length;a++)switch(s[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return s[a].substring(2)}return r?e.getDirection(r):"sendrecv"},e.getKind=function(n){return e.splitLines(n)[0].split(" ")[0].substring(2)},e.isRejected=function(n){return n.split(" ",2)[1]==="0"},e.parseMLine=function(n){const s=e.splitLines(n)[0].substring(2).split(" ");return{kind:s[0],port:parseInt(s[1],10),protocol:s[2],fmt:s.slice(3).join(" ")}},e.parseOLine=function(n){const s=e.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:s[0],sessionId:s[1],sessionVersion:parseInt(s[2],10),netType:s[3],addressType:s[4],address:s[5]}},e.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=e.splitLines(n);for(let s=0;s<r.length;s++)if(r[s].length<2||r[s].charAt(1)!=="=")return!1;return!0},t.exports=e}(
|
255
|
+
`},e.getDirection=function(n,r){const s=e.splitLines(n);for(let a=0;a<s.length;a++)switch(s[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return s[a].substring(2)}return r?e.getDirection(r):"sendrecv"},e.getKind=function(n){return e.splitLines(n)[0].split(" ")[0].substring(2)},e.isRejected=function(n){return n.split(" ",2)[1]==="0"},e.parseMLine=function(n){const s=e.splitLines(n)[0].substring(2).split(" ");return{kind:s[0],port:parseInt(s[1],10),protocol:s[2],fmt:s.slice(3).join(" ")}},e.parseOLine=function(n){const s=e.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:s[0],sessionId:s[1],sessionVersion:parseInt(s[2],10),netType:s[3],addressType:s[4],address:s[5]}},e.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=e.splitLines(n);for(let s=0;s<r.length;s++)if(r[s].length<2||r[s].charAt(1)!=="=")return!1;return!0},t.exports=e}(Yp)),Yp.exports}var R_=rO();const Fs=R1(R_),iO=T1({__proto__:null,default:Fs},[R_]);function fu(t){if(!t.RTCIceCandidate||t.RTCIceCandidate&&"foundation"in t.RTCIceCandidate.prototype)return;const e=t.RTCIceCandidate;t.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const s=new e(r),a=Fs.parseCandidate(r.candidate);for(const c in a)c in s||Object.defineProperty(s,c,{value:a[c]});return s.toJSON=function(){return{candidate:s.candidate,sdpMid:s.sdpMid,sdpMLineIndex:s.sdpMLineIndex,usernameFragment:s.usernameFragment}},s}return new e(r)},t.RTCIceCandidate.prototype=e.prototype,Vo(t,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new t.RTCIceCandidate(n.candidate),writable:"false"}),n))}function Mh(t){!t.RTCIceCandidate||t.RTCIceCandidate&&"relayProtocol"in t.RTCIceCandidate.prototype||Vo(t,"icecandidate",e=>{if(e.candidate){const n=Fs.parseCandidate(e.candidate.candidate);n.type==="relay"&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return e})}function pu(t,e){if(!t.RTCPeerConnection)return;"sctp"in t.RTCPeerConnection.prototype||Object.defineProperty(t.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(u){if(!u||!u.sdp)return!1;const f=Fs.splitSections(u.sdp);return f.shift(),f.some(h=>{const y=Fs.parseMLine(h);return y&&y.kind==="application"&&y.protocol.indexOf("SCTP")!==-1})},r=function(u){const f=u.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(f===null||f.length<2)return-1;const h=parseInt(f[1],10);return h!==h?-1:h},s=function(u){let f=65536;return e.browser==="firefox"&&(e.version<57?u===-1?f=16384:f=2147483637:e.version<60?f=e.version===57?65535:65536:f=2147483637),f},a=function(u,f){let h=65536;e.browser==="firefox"&&e.version===57&&(h=65535);const y=Fs.matchPrefix(u.sdp,"a=max-message-size:");return y.length>0?h=parseInt(y[0].substring(19),10):e.browser==="firefox"&&f!==-1&&(h=2147483637),h},c=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,e.browser==="chrome"&&e.version>=76){const{sdpSemantics:f}=this.getConfiguration();f==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const f=r(arguments[0]),h=s(f),y=a(arguments[0],f);let g;h===0&&y===0?g=Number.POSITIVE_INFINITY:h===0||y===0?g=Math.max(h,y):g=Math.min(h,y);const v={};Object.defineProperty(v,"maxMessageSize",{get(){return g}}),this._sctp=v}return c.apply(this,arguments)}}function hu(t){if(!(t.RTCPeerConnection&&"createDataChannel"in t.RTCPeerConnection.prototype))return;function e(r,s){const a=r.send;r.send=function(){const u=arguments[0],f=u.length||u.size||u.byteLength;if(r.readyState==="open"&&s.sctp&&f>s.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+s.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=t.RTCPeerConnection.prototype.createDataChannel;t.RTCPeerConnection.prototype.createDataChannel=function(){const s=n.apply(this,arguments);return e(s,this),s},Vo(t,"datachannel",r=>(e(r.channel,r.target),r))}function Dh(t){if(!t.RTCPeerConnection||"connectionState"in t.RTCPeerConnection.prototype)return;const e=t.RTCPeerConnection.prototype;Object.defineProperty(e,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=e[n];e[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=s=>{const a=s.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const c=new Event("connectionstatechange",s);a.dispatchEvent(c)}return s},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function Nh(t,e){if(!t.RTCPeerConnection||e.browser==="chrome"&&e.version>=71||e.browser==="safari"&&e.version>=605)return;const n=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(s){if(s&&s.sdp&&s.sdp.indexOf(`
|
256
256
|
a=extmap-allow-mixed`)!==-1){const a=s.sdp.split(`
|
257
257
|
`).filter(c=>c.trim()!=="a=extmap-allow-mixed").join(`
|
258
|
-
`);t.RTCSessionDescription&&s instanceof t.RTCSessionDescription?arguments[0]=new t.RTCSessionDescription({type:s.type,sdp:a}):s.sdp=a}return n.apply(this,arguments)}}function mu(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(t.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(e.browser==="chrome"&&e.version<78||e.browser==="firefox"&&e.version<68||e.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function yu(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(t.RTCPeerConnection.prototype.setLocalDescription=function(){let s=arguments[0]||{};if(typeof s!="object"||s.type&&s.sdp)return n.apply(this,arguments);if(s={type:s.type,sdp:s.sdp},!s.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":s.type="offer";break;default:s.type="answer";break}return s.sdp||s.type!=="offer"&&s.type!=="answer"?n.apply(this,[s]):(s.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(c=>n.apply(this,[c]))})}const
|
258
|
+
`);t.RTCSessionDescription&&s instanceof t.RTCSessionDescription?arguments[0]=new t.RTCSessionDescription({type:s.type,sdp:a}):s.sdp=a}return n.apply(this,arguments)}}function mu(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(t.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(e.browser==="chrome"&&e.version<78||e.browser==="firefox"&&e.version<68||e.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function yu(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(t.RTCPeerConnection.prototype.setLocalDescription=function(){let s=arguments[0]||{};if(typeof s!="object"||s.type&&s.sdp)return n.apply(this,arguments);if(s={type:s.type,sdp:s.sdp},!s.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":s.type="offer";break;default:s.type="answer";break}return s.sdp||s.type!=="offer"&&s.type!=="answer"?n.apply(this,[s]):(s.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(c=>n.apply(this,[c]))})}const oO=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:Nh,shimAddIceCandidateNullOrEmpty:mu,shimConnectionState:Dh,shimMaxMessageSize:pu,shimParameterlessSetLocalDescription:yu,shimRTCIceCandidate:fu,shimRTCIceCandidateRelayProtocol:Mh,shimSendThrowTypeError:hu},Symbol.toStringTag,{value:"Module"}));function sO({window:t}={},e={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Z2,r=tO(t),s={browserDetails:r,commonShim:oO,extractVersion:du,disableLog:Z4,disableWarnings:eO,sdp:iO};switch(r.browser){case"chrome":if(!w1||!Ph||!e.shimChrome)return n("Chrome shim is not included in this adapter release."),s;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),s;n("adapter.js shimming chrome."),s.browserShim=w1,mu(t,r),yu(t),t_(t,r),n_(t),Ph(t,r),r_(t),a_(t,r),i_(t),o_(t),l_(t,r),fu(t),Mh(t),Dh(t),pu(t,r),hu(t),Nh(t,r);break;case"firefox":if(!x1||!Oh||!e.shimFirefox)return n("Firefox shim is not included in this adapter release."),s;n("adapter.js shimming firefox."),s.browserShim=x1,mu(t,r),yu(t),c_(t,r),Oh(t,r),u_(t),p_(t),d_(t),f_(t),h_(t),m_(t),y_(t),g_(t),v_(t),fu(t),Dh(t),pu(t,r),hu(t);break;case"safari":if(!I1||!e.shimSafari)return n("Safari shim is not included in this adapter release."),s;n("adapter.js shimming safari."),s.browserShim=I1,mu(t,r),yu(t),x_(t),k_(t),__(t),b_(t),S_(t),I_(t),C_(t),T_(t),fu(t),Mh(t),pu(t,r),hu(t),Nh(t,r);break;default:n("Unsupported browser!");break}return s}sO({window:typeof window>"u"?void 0:window});const aO=5*1e3+300;function lO(t){const[e,n]=T.useState({video:void 0,audio:void 0}),{state:r,start:s,stop:a}=X4(t,e.video,e.audio,t.onComponentValueChange,n),{start:c,clear:u,isTimedOut:f}=J4(),h=T.useCallback(()=>{u(),s().then(()=>{c(aO)})},[s,c,u]),y=T.useCallback(()=>{u(),a()},[a,u]),g=t.mode,v=t.disabled||r.webRtcState==="STOPPING"||t.desiredPlayingState!=null,C=Eh(g)&&K4(g),w=Eh(g)&&Q4(g),{videoEnabled:_,audioEnabled:I}=V4(t.mediaStreamConstraints),[P,L]=T.useState(!1),N=T.useCallback(()=>{L(!0)},[]),E=T.useCallback(()=>{L(!1)},[]);return P?$.jsx(N4,{video:_,audio:I,defaultVideoDeviceId:e.video,defaultAudioDeviceId:e.audio,onSelect:n,onClose:E}):$.jsxs(Ls,{children:[r.error&&$.jsxs(U2,{severity:"error",children:[r.error.name,": ",r.error.message]}),$.jsx(Ls,{py:1,display:"flex",children:r.stream?$.jsx(L4,{stream:r.stream,userDefinedVideoAttrs:t.videoHtmlAttrs,userDefinedAudioAttrs:t.audioHtmlAttrs}):C&&$.jsx(j4,{loading:r.webRtcState==="SIGNALLING"})}),$.jsxs(Ls,{display:"flex",justifyContent:"space-between",children:[r.webRtcState==="PLAYING"||r.webRtcState==="SIGNALLING"?$.jsx(Gp,{variant:r.webRtcState==="SIGNALLING"&&!f?"outlined":"contained",onClick:y,disabled:v,translationKey:"stop",defaultText:"Stop"}):$.jsx(Gp,{variant:"contained",color:"primary",onClick:h,disabled:v,translationKey:"start",defaultText:"Start"}),w&&r.webRtcState==="STOPPED"&&$.jsx(Gp,{color:"inherit",onClick:N,translationKey:"select_device",defaultText:"Select Device"})]})]})}function cO(){const t=fm(),e=t.args.mode,n=t.args.desired_playing_state,r=t.args.sdp_answer_json,s=t.args.rtc_configuration,a=t.args.media_stream_constraints,c=t.args.video_html_attrs,u=t.args.audio_html_attrs;if(!Eh(e))throw new Error(`Invalid mode ${e}`);return $.jsx(lO,{disabled:t.disabled,mode:e,desiredPlayingState:n,sdpAnswerJson:r,rtcConfiguration:s,mediaStreamConstraints:a,videoHtmlAttrs:c,audioHtmlAttrs:u,onComponentValueChange:q4})}const E_=document.getElementById("root");if(!E_)throw new Error("Failed to find the root element");const uO=Nw.createRoot(E_);uO.render($.jsx(Kt.StrictMode,{children:$.jsx(Rk,{children:$.jsx(TP,{children:$.jsxs(bP,{children:[$.jsx(IP,{}),$.jsx(cO,{})]})})})}));
|