(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function Wf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Af={exports:{}},zs={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sp;function y1(){if(Sp)return zs;Sp=1;var l=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var p in o)p!=="key"&&(f[p]=o[p])}else f=o;return o=f.ref,{$$typeof:l,type:r,key:h,ref:o!==void 0?o:null,props:f}}return zs.Fragment=t,zs.jsx=i,zs.jsxs=i,zs}var Ap;function p1(){return Ap||(Ap=1,Af.exports=y1()),Af.exports}var Vi=p1(),wf={exports:{}},xs={},Of={exports:{}},Tf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wp;function m1(){return wp||(wp=1,function(l){function t(E,I){var X=E.length;E.push(I);t:for(;0<X;){var Rt=X-1>>>1,g=E[Rt];if(0<o(g,I))E[Rt]=I,E[X]=g,X=Rt;else break t}}function i(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var I=E[0],X=E.pop();if(X!==I){E[0]=X;t:for(var Rt=0,g=E.length,R=g>>>1;Rt<R;){var j=2*(Rt+1)-1,C=E[j],Y=j+1,mt=E[Y];if(0>o(C,X))Y<g&&0>o(mt,C)?(E[Rt]=mt,E[Y]=X,Rt=Y):(E[Rt]=C,E[j]=X,Rt=j);else if(Y<g&&0>o(mt,X))E[Rt]=mt,E[Y]=X,Rt=Y;else break t}}return I}function o(E,I){var X=E.sortIndex-I.sortIndex;return X!==0?X:E.id-I.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var m=[],v=[],w=1,z=null,L=3,F=!1,G=!1,Ut=!1,jt=!1,Xt=typeof setTimeout=="function"?setTimeout:null,ae=typeof clearTimeout=="function"?clearTimeout:null,pt=typeof setImmediate<"u"?setImmediate:null;function ce(E){for(var I=i(v);I!==null;){if(I.callback===null)r(v);else if(I.startTime<=E)r(v),I.sortIndex=I.expirationTime,t(m,I);else break;I=i(v)}}function x(E){if(Ut=!1,ce(E),!G)if(i(m)!==null)G=!0,Vt||(Vt=!0,he());else{var I=i(v);I!==null&&ye(x,I.startTime-E)}}var Vt=!1,be=-1,we=5,gn=-1;function Ea(){return jt?!0:!(l.unstable_now()-gn<we)}function Hn(){if(jt=!1,Vt){var E=l.unstable_now();gn=E;var I=!0;try{t:{G=!1,Ut&&(Ut=!1,ae(be),be=-1),F=!0;var X=L;try{e:{for(ce(E),z=i(m);z!==null&&!(z.expirationTime>E&&Ea());){var Rt=z.callback;if(typeof Rt=="function"){z.callback=null,L=z.priorityLevel;var g=Rt(z.expirationTime<=E);if(E=l.unstable_now(),typeof g=="function"){z.callback=g,ce(E),I=!0;break e}z===i(m)&&r(m),ce(E)}else r(m);z=i(m)}if(z!==null)I=!0;else{var R=i(v);R!==null&&ye(x,R.startTime-E),I=!1}}break t}finally{z=null,L=X,F=!1}I=void 0}}finally{I?he():Vt=!1}}}var he;if(typeof pt=="function")he=function(){pt(Hn)};else if(typeof MessageChannel<"u"){var Wi=new MessageChannel,Pi=Wi.port2;Wi.port1.onmessage=Hn,he=function(){Pi.postMessage(null)}}else he=function(){Xt(Hn,0)};function ye(E,I){be=Xt(function(){E(l.unstable_now())},I)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(E){E.callback=null},l.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<E?Math.floor(1e3/E):5},l.unstable_getCurrentPriorityLevel=function(){return L},l.unstable_next=function(E){switch(L){case 1:case 2:case 3:var I=3;break;default:I=L}var X=L;L=I;try{return E()}finally{L=X}},l.unstable_requestPaint=function(){jt=!0},l.unstable_runWithPriority=function(E,I){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var X=L;L=E;try{return I()}finally{L=X}},l.unstable_scheduleCallback=function(E,I,X){var Rt=l.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Rt+X:Rt):X=Rt,E){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=X+g,E={id:w++,callback:I,priorityLevel:E,startTime:X,expirationTime:g,sortIndex:-1},X>Rt?(E.sortIndex=X,t(v,E),i(m)===null&&E===i(v)&&(Ut?(ae(be),be=-1):Ut=!0,ye(x,X-Rt))):(E.sortIndex=g,t(m,E),G||F||(G=!0,Vt||(Vt=!0,he()))),E},l.unstable_shouldYield=Ea,l.unstable_wrapCallback=function(E){var I=L;return function(){var X=L;L=I;try{return E.apply(this,arguments)}finally{L=X}}}}(Tf)),Tf}var Op;function v1(){return Op||(Op=1,Of.exports=m1()),Of.exports}var Df={exports:{}},lt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Tp;function b1(){if(Tp)return lt;Tp=1;var l=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),z=Symbol.iterator;function L(g){return g===null||typeof g!="object"?null:(g=z&&g[z]||g["@@iterator"],typeof g=="function"?g:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Ut={};function jt(g,R,j){this.props=g,this.context=R,this.refs=Ut,this.updater=j||F}jt.prototype.isReactComponent={},jt.prototype.setState=function(g,R){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,R,"setState")},jt.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function Xt(){}Xt.prototype=jt.prototype;function ae(g,R,j){this.props=g,this.context=R,this.refs=Ut,this.updater=j||F}var pt=ae.prototype=new Xt;pt.constructor=ae,G(pt,jt.prototype),pt.isPureReactComponent=!0;var ce=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},Vt=Object.prototype.hasOwnProperty;function be(g,R,j,C,Y,mt){return j=mt.ref,{$$typeof:l,type:g,key:R,ref:j!==void 0?j:null,props:mt}}function we(g,R){return be(g.type,R,void 0,void 0,void 0,g.props)}function gn(g){return typeof g=="object"&&g!==null&&g.$$typeof===l}function Ea(g){var R={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(j){return R[j]})}var Hn=/\/+/g;function he(g,R){return typeof g=="object"&&g!==null&&g.key!=null?Ea(""+g.key):R.toString(36)}function Wi(){}function Pi(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Wi,Wi):(g.status="pending",g.then(function(R){g.status==="pending"&&(g.status="fulfilled",g.value=R)},function(R){g.status==="pending"&&(g.status="rejected",g.reason=R)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function ye(g,R,j,C,Y){var mt=typeof g;(mt==="undefined"||mt==="boolean")&&(g=null);var J=!1;if(g===null)J=!0;else switch(mt){case"bigint":case"string":case"number":J=!0;break;case"object":switch(g.$$typeof){case l:case t:J=!0;break;case w:return J=g._init,ye(J(g._payload),R,j,C,Y)}}if(J)return Y=Y(g),J=C===""?"."+he(g,0):C,ce(Y)?(j="",J!=null&&(j=J.replace(Hn,"$&/")+"/"),ye(Y,R,j,"",function(yi){return yi})):Y!=null&&(gn(Y)&&(Y=we(Y,j+(Y.key==null||g&&g.key===Y.key?"":(""+Y.key).replace(Hn,"$&/")+"/")+J)),R.push(Y)),1;J=0;var Ie=C===""?".":C+":";if(ce(g))for(var Ht=0;Ht<g.length;Ht++)C=g[Ht],mt=Ie+he(C,Ht),J+=ye(C,R,j,mt,Y);else if(Ht=L(g),typeof Ht=="function")for(g=Ht.call(g),Ht=0;!(C=g.next()).done;)C=C.value,mt=Ie+he(C,Ht++),J+=ye(C,R,j,mt,Y);else if(mt==="object"){if(typeof g.then=="function")return ye(Pi(g),R,j,C,Y);throw R=String(g),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return J}function E(g,R,j){if(g==null)return g;var C=[],Y=0;return ye(g,C,"","",function(mt){return R.call(j,mt,Y++)}),C}function I(g){if(g._status===-1){var R=g._result;R=R(),R.then(function(j){(g._status===0||g._status===-1)&&(g._status=1,g._result=j)},function(j){(g._status===0||g._status===-1)&&(g._status=2,g._result=j)}),g._status===-1&&(g._status=0,g._result=R)}if(g._status===1)return g._result.default;throw g._result}var X=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function Rt(){}return lt.Children={map:E,forEach:function(g,R,j){E(g,function(){R.apply(this,arguments)},j)},count:function(g){var R=0;return E(g,function(){R++}),R},toArray:function(g){return E(g,function(R){return R})||[]},only:function(g){if(!gn(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},lt.Component=jt,lt.Fragment=i,lt.Profiler=o,lt.PureComponent=ae,lt.StrictMode=r,lt.Suspense=m,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,lt.__COMPILER_RUNTIME={__proto__:null,c:function(g){return x.H.useMemoCache(g)}},lt.cache=function(g){return function(){return g.apply(null,arguments)}},lt.cloneElement=function(g,R,j){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var C=G({},g.props),Y=g.key,mt=void 0;if(R!=null)for(J in R.ref!==void 0&&(mt=void 0),R.key!==void 0&&(Y=""+R.key),R)!Vt.call(R,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&R.ref===void 0||(C[J]=R[J]);var J=arguments.length-2;if(J===1)C.children=j;else if(1<J){for(var Ie=Array(J),Ht=0;Ht<J;Ht++)Ie[Ht]=arguments[Ht+2];C.children=Ie}return be(g.type,Y,void 0,void 0,mt,C)},lt.createContext=function(g){return g={$$typeof:h,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:f,_context:g},g},lt.createElement=function(g,R,j){var C,Y={},mt=null;if(R!=null)for(C in R.key!==void 0&&(mt=""+R.key),R)Vt.call(R,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(Y[C]=R[C]);var J=arguments.length-2;if(J===1)Y.children=j;else if(1<J){for(var Ie=Array(J),Ht=0;Ht<J;Ht++)Ie[Ht]=arguments[Ht+2];Y.children=Ie}if(g&&g.defaultProps)for(C in J=g.defaultProps,J)Y[C]===void 0&&(Y[C]=J[C]);return be(g,mt,void 0,void 0,null,Y)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(g){return{$$typeof:p,render:g}},lt.isValidElement=gn,lt.lazy=function(g){return{$$typeof:w,_payload:{_status:-1,_result:g},_init:I}},lt.memo=function(g,R){return{$$typeof:v,type:g,compare:R===void 0?null:R}},lt.startTransition=function(g){var R=x.T,j={};x.T=j;try{var C=g(),Y=x.S;Y!==null&&Y(j,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(Rt,X)}catch(mt){X(mt)}finally{x.T=R}},lt.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},lt.use=function(g){return x.H.use(g)},lt.useActionState=function(g,R,j){return x.H.useActionState(g,R,j)},lt.useCallback=function(g,R){return x.H.useCallback(g,R)},lt.useContext=function(g){return x.H.useContext(g)},lt.useDebugValue=function(){},lt.useDeferredValue=function(g,R){return x.H.useDeferredValue(g,R)},lt.useEffect=function(g,R,j){var C=x.H;if(typeof j=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return C.useEffect(g,R)},lt.useId=function(){return x.H.useId()},lt.useImperativeHandle=function(g,R,j){return x.H.useImperativeHandle(g,R,j)},lt.useInsertionEffect=function(g,R){return x.H.useInsertionEffect(g,R)},lt.useLayoutEffect=function(g,R){return x.H.useLayoutEffect(g,R)},lt.useMemo=function(g,R){return x.H.useMemo(g,R)},lt.useOptimistic=function(g,R){return x.H.useOptimistic(g,R)},lt.useReducer=function(g,R,j){return x.H.useReducer(g,R,j)},lt.useRef=function(g){return x.H.useRef(g)},lt.useState=function(g){return x.H.useState(g)},lt.useSyncExternalStore=function(g,R,j){return x.H.useSyncExternalStore(g,R,j)},lt.useTransition=function(){return x.H.useTransition()},lt.version="19.1.0",lt}var Dp;function Pf(){return Dp||(Dp=1,Df.exports=b1()),Df.exports}var Bf={exports:{}},ve={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bp;function g1(){if(Bp)return ve;Bp=1;var l=Pf();function t(m){var v="https://react.dev/errors/"+m;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)v+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+m+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,v,w){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:z==null?null:""+z,children:m,containerInfo:v,implementation:w}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,v){if(m==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ve.createPortal=function(m,v){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(t(299));return f(m,v,null,w)},ve.flushSync=function(m){var v=h.T,w=r.p;try{if(h.T=null,r.p=2,m)return m()}finally{h.T=v,r.p=w,r.d.f()}},ve.preconnect=function(m,v){typeof m=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(m,v))},ve.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},ve.preinit=function(m,v){if(typeof m=="string"&&v&&typeof v.as=="string"){var w=v.as,z=p(w,v.crossOrigin),L=typeof v.integrity=="string"?v.integrity:void 0,F=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;w==="style"?r.d.S(m,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:z,integrity:L,fetchPriority:F}):w==="script"&&r.d.X(m,{crossOrigin:z,integrity:L,fetchPriority:F,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ve.preinitModule=function(m,v){if(typeof m=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var w=p(v.as,v.crossOrigin);r.d.M(m,{crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(m)},ve.preload=function(m,v){if(typeof m=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var w=v.as,z=p(w,v.crossOrigin);r.d.L(m,w,{crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ve.preloadModule=function(m,v){if(typeof m=="string")if(v){var w=p(v.as,v.crossOrigin);r.d.m(m,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(m)},ve.requestFormReset=function(m){r.d.r(m)},ve.unstable_batchedUpdates=function(m,v){return m(v)},ve.useFormState=function(m,v,w){return h.H.useFormState(m,v,w)},ve.useFormStatus=function(){return h.H.useHostTransitionStatus()},ve.version="19.1.0",ve}var Mp;function _1(){if(Mp)return Bf.exports;Mp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(t){console.error(t)}}return l(),Bf.exports=g1(),Bf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ep;function S1(){if(Ep)return xs;Ep=1;var l=v1(),t=Pf(),i=_1();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function h(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function m(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,s=n;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return p(u),e;if(c===s)return p(u),n;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var d=!1,y=u.child;y;){if(y===a){d=!0,a=u,s=c;break}if(y===s){d=!0,s=u,a=c;break}y=y.sibling}if(!d){for(y=c.child;y;){if(y===a){d=!0,a=c,s=u;break}if(y===s){d=!0,s=c,a=u;break}y=y.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var w=Object.assign,z=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),Xt=Symbol.for("react.provider"),ae=Symbol.for("react.consumer"),pt=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),gn=Symbol.for("react.activity"),Ea=Symbol.for("react.memo_cache_sentinel"),Hn=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=Hn&&e[Hn]||e["@@iterator"],typeof e=="function"?e:null)}var Wi=Symbol.for("react.client.reference");function Pi(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Wi?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case jt:return"Profiler";case Ut:return"StrictMode";case x:return"Suspense";case Vt:return"SuspenseList";case gn:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case F:return"Portal";case pt:return(e.displayName||"Context")+".Provider";case ae:return(e._context.displayName||"Context")+".Consumer";case ce:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return n=e.displayName||null,n!==null?n:Pi(e.type)||"Memo";case we:n=e._payload,e=e._init;try{return Pi(e(n))}catch{}}return null}var ye=Array.isArray,E=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},Rt=[],g=-1;function R(e){return{current:e}}function j(e){0>g||(e.current=Rt[g],Rt[g]=null,g--)}function C(e,n){g++,Rt[g]=e.current,e.current=n}var Y=R(null),mt=R(null),J=R(null),Ie=R(null);function Ht(e,n){switch(C(J,n),C(mt,e),C(Y,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?J0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=J0(n),e=$0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(Y),C(Y,e)}function yi(){j(Y),j(mt),j(J)}function lc(e){e.memoizedState!==null&&C(Ie,e);var n=Y.current,a=$0(n,e.type);n!==a&&(C(mt,e),C(Y,a))}function er(e){mt.current===e&&(j(Y),j(mt)),Ie.current===e&&(j(Ie),Ms._currentValue=X)}var sc=Object.prototype.hasOwnProperty,rc=l.unstable_scheduleCallback,uc=l.unstable_cancelCallback,Xv=l.unstable_shouldYield,Zv=l.unstable_requestPaint,_n=l.unstable_now,Kv=l.unstable_getCurrentPriorityLevel,Ed=l.unstable_ImmediatePriority,Nd=l.unstable_UserBlockingPriority,nr=l.unstable_NormalPriority,Jv=l.unstable_LowPriority,Ud=l.unstable_IdlePriority,$v=l.log,kv=l.unstable_setDisableYieldValue,Cl=null,Fe=null;function pi(e){if(typeof $v=="function"&&kv(e),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(Cl,e)}catch{}}var je=Math.clz32?Math.clz32:tb,Wv=Math.log,Pv=Math.LN2;function tb(e){return e>>>=0,e===0?32:31-(Wv(e)/Pv|0)|0}var ir=256,ar=4194304;function ta(e){var n=e&42;if(n!==0)return n;switch(e&-e){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:return 64;case 128:return 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 e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function lr(e,n,a){var s=e.pendingLanes;if(s===0)return 0;var u=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=s&134217727;return y!==0?(s=y&~c,s!==0?u=ta(s):(d&=y,d!==0?u=ta(d):a||(a=y&~e,a!==0&&(u=ta(a))))):(y=s&~c,y!==0?u=ta(y):d!==0?u=ta(d):a||(a=s&~e,a!==0&&(u=ta(a)))),u===0?0:n!==0&&n!==u&&(n&c)===0&&(c=u&-u,a=n&-n,c>=a||c===32&&(a&4194048)!==0)?n:u}function Il(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function eb(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rd(){var e=ir;return ir<<=1,(ir&4194048)===0&&(ir=256),e}function zd(){var e=ar;return ar<<=1,(ar&62914560)===0&&(ar=4194304),e}function cc(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Fl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nb(e,n,a,s,u,c){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,T=e.hiddenUpdates;for(a=d&~a;0<a;){var M=31-je(a),U=1<<M;y[M]=0,b[M]=-1;var D=T[M];if(D!==null)for(T[M]=null,M=0;M<D.length;M++){var B=D[M];B!==null&&(B.lane&=-536870913)}a&=~U}s!==0&&xd(e,s,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~n))}function xd(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-je(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function Ld(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-je(a),u=1<<s;u&n|e[s]&n&&(e[s]|=n),a&=~u}}function oc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function fc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Cd(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:pp(e.type))}function ib(e,n){var a=I.p;try{return I.p=e,n()}finally{I.p=a}}var mi=Math.random().toString(36).slice(2),pe="__reactFiber$"+mi,Oe="__reactProps$"+mi,Na="__reactContainer$"+mi,dc="__reactEvents$"+mi,ab="__reactListeners$"+mi,lb="__reactHandles$"+mi,Id="__reactResources$"+mi,jl="__reactMarker$"+mi;function hc(e){delete e[pe],delete e[Oe],delete e[dc],delete e[ab],delete e[lb]}function Ua(e){var n=e[pe];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Na]||a[pe]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=tp(e);e!==null;){if(a=e[pe])return a;e=tp(e)}return n}e=a,a=e.parentNode}return null}function Ra(e){if(e=e[pe]||e[Na]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Vl(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function za(e){var n=e[Id];return n||(n=e[Id]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function le(e){e[jl]=!0}var Fd=new Set,jd={};function ea(e,n){xa(e,n),xa(e+"Capture",n)}function xa(e,n){for(jd[e]=n,e=0;e<n.length;e++)Fd.add(n[e])}var sb=RegExp("^[: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]*$"),Vd={},Hd={};function rb(e){return sc.call(Hd,e)?!0:sc.call(Vd,e)?!1:sb.test(e)?Hd[e]=!0:(Vd[e]=!0,!1)}function sr(e,n,a){if(rb(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function rr(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Yn(e,n,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+s)}}var yc,Yd;function La(e){if(yc===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);yc=n&&n[1]||"",Yd=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yc+e+Yd}var pc=!1;function mc(e,n){if(!e||pc)return"";pc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(B){var D=B}Reflect.construct(e,[],U)}else{try{U.call()}catch(B){D=B}e.call(U.prototype)}}else{try{throw Error()}catch(B){D=B}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(B){if(B&&D&&typeof B.stack=="string")return[B.stack,D.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),d=c[0],y=c[1];if(d&&y){var b=d.split(`
`),T=y.split(`
`);for(u=s=0;s<b.length&&!b[s].includes("DetermineComponentFrameRoot");)s++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(s===b.length||u===T.length)for(s=b.length-1,u=T.length-1;1<=s&&0<=u&&b[s]!==T[u];)u--;for(;1<=s&&0<=u;s--,u--)if(b[s]!==T[u]){if(s!==1||u!==1)do if(s--,u--,0>u||b[s]!==T[u]){var M=`
`+b[s].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=s&&0<=u);break}}}finally{pc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?La(a):""}function ub(e){switch(e.tag){case 26:case 27:case 5:return La(e.type);case 16:return La("Lazy");case 13:return La("Suspense");case 19:return La("SuspenseList");case 0:case 15:return mc(e.type,!1);case 11:return mc(e.type.render,!1);case 1:return mc(e.type,!0);case 31:return La("Activity");default:return""}}function qd(e){try{var n="";do n+=ub(e),e=e.return;while(e);return n}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function We(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gd(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function cb(e){var n=Gd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(d){s=""+d,c.call(this,d)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ur(e){e._valueTracker||(e._valueTracker=cb(e))}function Qd(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=Gd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function cr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ob=/[\n"\\]/g;function Pe(e){return e.replace(ob,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function vc(e,n,a,s,u,c,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),n!=null?d==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+We(n)):e.value!==""+We(n)&&(e.value=""+We(n)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),n!=null?bc(e,d,We(n)):a!=null?bc(e,d,We(a)):s!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+We(y):e.removeAttribute("name")}function Xd(e,n,a,s,u,c,d,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),n!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||n!=null))return;a=a!=null?""+We(a):"",n=n!=null?""+We(n):a,y||n===e.value||(e.value=n),e.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=y?e.checked:!!s,e.defaultChecked=!!s,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function bc(e,n,a){n==="number"&&cr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ca(e,n,a,s){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&s&&(e[a].defaultSelected=!0)}else{for(a=""+We(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Zd(e,n,a){if(n!=null&&(n=""+We(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+We(a):""}function Kd(e,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(r(92));if(ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=We(n),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function Ia(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var fb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jd(e,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,a):typeof a!="number"||a===0||fb.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function $d(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&a[u]!==s&&Jd(e,u,s)}else for(var c in n)n.hasOwnProperty(c)&&Jd(e,c,n[c])}function gc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var db=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function or(e){return hb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var _c=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fa=null,ja=null;function kd(e){var n=Ra(e);if(n&&(e=n.stateNode)){var a=e[Oe]||null;t:switch(e=n.stateNode,n.type){case"input":if(vc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pe(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var u=s[Oe]||null;if(!u)throw Error(r(90));vc(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===e.form&&Qd(s)}break t;case"textarea":Zd(e,a.value,a.defaultValue);break t;case"select":n=a.value,n!=null&&Ca(e,!!a.multiple,n,!1)}}}var Ac=!1;function Wd(e,n,a){if(Ac)return e(n,a);Ac=!0;try{var s=e(n);return s}finally{if(Ac=!1,(Fa!==null||ja!==null)&&(Jr(),Fa&&(n=Fa,e=ja,ja=Fa=null,kd(n),e)))for(n=0;n<e.length;n++)kd(e[n])}}function Hl(e,n){var a=e.stateNode;if(a===null)return null;var s=a[Oe]||null;if(s===null)return null;a=s[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break t;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(qn)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{wc=!1}var vi=null,Oc=null,fr=null;function Pd(){if(fr)return fr;var e,n=Oc,a=n.length,s,u="value"in vi?vi.value:vi.textContent,c=u.length;for(e=0;e<a&&n[e]===u[e];e++);var d=a-e;for(s=1;s<=d&&n[a-s]===u[c-s];s++);return fr=u.slice(e,1<s?1-s:void 0)}function dr(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function hr(){return!0}function th(){return!1}function Te(e){function n(a,s,u,c,d){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?hr:th,this.isPropagationStopped=th,this}return w(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hr)},persist:function(){},isPersistent:hr}),n}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yr=Te(na),ql=w({},na,{view:0,detail:0}),yb=Te(ql),Tc,Dc,Gl,pr=w({},ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gl&&(Gl&&e.type==="mousemove"?(Tc=e.screenX-Gl.screenX,Dc=e.screenY-Gl.screenY):Dc=Tc=0,Gl=e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:Dc}}),eh=Te(pr),pb=w({},pr,{dataTransfer:0}),mb=Te(pb),vb=w({},ql,{relatedTarget:0}),Bc=Te(vb),bb=w({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),gb=Te(bb),_b=w({},na,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sb=Te(_b),Ab=w({},na,{data:0}),nh=Te(Ab),wb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ob={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"},Tb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Db(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Tb[e])?!!n[e]:!1}function Mc(){return Db}var Bb=w({},ql,{key:function(e){if(e.key){var n=wb[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ob[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(e){return e.type==="keypress"?dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mb=Te(Bb),Eb=w({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ih=Te(Eb),Nb=w({},ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),Ub=Te(Nb),Rb=w({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),zb=Te(Rb),xb=w({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lb=Te(xb),Cb=w({},na,{newState:0,oldState:0}),Ib=Te(Cb),Fb=[9,13,27,32],Ec=qn&&"CompositionEvent"in window,Ql=null;qn&&"documentMode"in document&&(Ql=document.documentMode);var jb=qn&&"TextEvent"in window&&!Ql,ah=qn&&(!Ec||Ql&&8<Ql&&11>=Ql),lh=" ",sh=!1;function rh(e,n){switch(e){case"keyup":return Fb.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Va=!1;function Vb(e,n){switch(e){case"compositionend":return uh(n);case"keypress":return n.which!==32?null:(sh=!0,lh);case"textInput":return e=n.data,e===lh&&sh?null:e;default:return null}}function Hb(e,n){if(Va)return e==="compositionend"||!Ec&&rh(e,n)?(e=Pd(),fr=Oc=vi=null,Va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ah&&n.locale!=="ko"?null:n.data;default:return null}}var Yb={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 ch(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Yb[e.type]:n==="textarea"}function oh(e,n,a,s){Fa?ja?ja.push(s):ja=[s]:Fa=s,n=eu(n,"onChange"),0<n.length&&(a=new yr("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var Xl=null,Zl=null;function qb(e){G0(e,0)}function mr(e){var n=Vl(e);if(Qd(n))return e}function fh(e,n){if(e==="change")return n}var dh=!1;if(qn){var Nc;if(qn){var Uc="oninput"in document;if(!Uc){var hh=document.createElement("div");hh.setAttribute("oninput","return;"),Uc=typeof hh.oninput=="function"}Nc=Uc}else Nc=!1;dh=Nc&&(!document.documentMode||9<document.documentMode)}function yh(){Xl&&(Xl.detachEvent("onpropertychange",ph),Zl=Xl=null)}function ph(e){if(e.propertyName==="value"&&mr(Zl)){var n=[];oh(n,Zl,e,Sc(e)),Wd(qb,n)}}function Gb(e,n,a){e==="focusin"?(yh(),Xl=n,Zl=a,Xl.attachEvent("onpropertychange",ph)):e==="focusout"&&yh()}function Qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mr(Zl)}function Xb(e,n){if(e==="click")return mr(n)}function Zb(e,n){if(e==="input"||e==="change")return mr(n)}function Kb(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ve=typeof Object.is=="function"?Object.is:Kb;function Kl(e,n){if(Ve(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!sc.call(n,u)||!Ve(e[u],n[u]))return!1}return!0}function mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vh(e,n){var a=mh(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=mh(a)}}function bh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?bh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=cr(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=cr(e.document)}return n}function Rc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Jb=qn&&"documentMode"in document&&11>=document.documentMode,Ha=null,zc=null,Jl=null,xc=!1;function _h(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xc||Ha==null||Ha!==cr(s)||(s=Ha,"selectionStart"in s&&Rc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Jl&&Kl(Jl,s)||(Jl=s,s=eu(zc,"onSelect"),0<s.length&&(n=new yr("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=Ha)))}function ia(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ya={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Lc={},Sh={};qn&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function aa(e){if(Lc[e])return Lc[e];if(!Ya[e])return e;var n=Ya[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Sh)return Lc[e]=n[a];return e}var Ah=aa("animationend"),wh=aa("animationiteration"),Oh=aa("animationstart"),$b=aa("transitionrun"),kb=aa("transitionstart"),Wb=aa("transitioncancel"),Th=aa("transitionend"),Dh=new Map,Cc="abort auxClick beforeToggle 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(" ");Cc.push("scrollEnd");function hn(e,n){Dh.set(e,n),ea(n,[e])}var Bh=new WeakMap;function tn(e,n){if(typeof e=="object"&&e!==null){var a=Bh.get(e);return a!==void 0?a:(n={value:e,source:n,stack:qd(n)},Bh.set(e,n),n)}return{value:e,source:n,stack:qd(n)}}var en=[],qa=0,Ic=0;function vr(){for(var e=qa,n=Ic=qa=0;n<e;){var a=en[n];en[n++]=null;var s=en[n];en[n++]=null;var u=en[n];en[n++]=null;var c=en[n];if(en[n++]=null,s!==null&&u!==null){var d=s.pending;d===null?u.next=u:(u.next=d.next,d.next=u),s.pending=u}c!==0&&Mh(a,u,c)}}function br(e,n,a,s){en[qa++]=e,en[qa++]=n,en[qa++]=a,en[qa++]=s,Ic|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Fc(e,n,a,s){return br(e,n,a,s),gr(e)}function Ga(e,n){return br(e,null,null,n),gr(e)}function Mh(e,n,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&n!==null&&(u=31-je(a),e=c.hiddenUpdates,s=e[u],s===null?e[u]=[n]:s.push(n),n.lane=a|536870912),c):null}function gr(e){if(50<_s)throw _s=0,Qo=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Qa={};function Pb(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(e,n,a,s){return new Pb(e,n,a,s)}function jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,n){var a=e.alternate;return a===null?(a=He(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Eh(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function _r(e,n,a,s,u,c){var d=0;if(s=e,typeof e=="function")jc(e)&&(d=1);else if(typeof e=="string")d=e1(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case gn:return e=He(31,a,n,u),e.elementType=gn,e.lanes=c,e;case G:return la(a.children,u,c,n);case Ut:d=8,u|=24;break;case jt:return e=He(12,a,n,u|2),e.elementType=jt,e.lanes=c,e;case x:return e=He(13,a,n,u),e.elementType=x,e.lanes=c,e;case Vt:return e=He(19,a,n,u),e.elementType=Vt,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xt:case pt:d=10;break t;case ae:d=9;break t;case ce:d=11;break t;case be:d=14;break t;case we:d=16,s=null;break t}d=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=He(d,a,n,u),n.elementType=e,n.type=s,n.lanes=c,n}function la(e,n,a,s){return e=He(7,e,s,n),e.lanes=a,e}function Vc(e,n,a){return e=He(6,e,null,n),e.lanes=a,e}function Hc(e,n,a){return n=He(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Xa=[],Za=0,Sr=null,Ar=0,nn=[],an=0,sa=null,Qn=1,Xn="";function ra(e,n){Xa[Za++]=Ar,Xa[Za++]=Sr,Sr=e,Ar=n}function Nh(e,n,a){nn[an++]=Qn,nn[an++]=Xn,nn[an++]=sa,sa=e;var s=Qn;e=Xn;var u=32-je(s)-1;s&=~(1<<u),a+=1;var c=32-je(n)+u;if(30<c){var d=u-u%5;c=(s&(1<<d)-1).toString(32),s>>=d,u-=d,Qn=1<<32-je(n)+u|a<<u|s,Xn=c+e}else Qn=1<<c|a<<u|s,Xn=e}function Yc(e){e.return!==null&&(ra(e,1),Nh(e,1,0))}function qc(e){for(;e===Sr;)Sr=Xa[--Za],Xa[Za]=null,Ar=Xa[--Za],Xa[Za]=null;for(;e===sa;)sa=nn[--an],nn[an]=null,Xn=nn[--an],nn[an]=null,Qn=nn[--an],nn[an]=null}var ge=null,Zt=null,bt=!1,ua=null,Sn=!1,Gc=Error(r(519));function ca(e){var n=Error(r(418,""));throw Wl(tn(n,e)),Gc}function Uh(e){var n=e.stateNode,a=e.type,s=e.memoizedProps;switch(n[pe]=e,n[Oe]=s,a){case"dialog":ft("cancel",n),ft("close",n);break;case"iframe":case"object":case"embed":ft("load",n);break;case"video":case"audio":for(a=0;a<As.length;a++)ft(As[a],n);break;case"source":ft("error",n);break;case"img":case"image":case"link":ft("error",n),ft("load",n);break;case"details":ft("toggle",n);break;case"input":ft("invalid",n),Xd(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ur(n);break;case"select":ft("invalid",n);break;case"textarea":ft("invalid",n),Kd(n,s.value,s.defaultValue,s.children),ur(n)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||K0(n.textContent,a)?(s.popover!=null&&(ft("beforetoggle",n),ft("toggle",n)),s.onScroll!=null&&ft("scroll",n),s.onScrollEnd!=null&&ft("scrollend",n),s.onClick!=null&&(n.onclick=nu),n=!0):n=!1,n||ca(e)}function Rh(e){for(ge=e.return;ge;)switch(ge.tag){case 5:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:ge=ge.return}}function $l(e){if(e!==ge)return!1;if(!bt)return Rh(e),bt=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||uf(e.type,e.memoizedProps)),a=!a),a&&Zt&&ca(e),Rh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));t:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){Zt=pn(e.nextSibling);break t}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}Zt=null}}else n===27?(n=Zt,zi(e.type)?(e=df,df=null,Zt=e):Zt=n):Zt=ge?pn(e.stateNode.nextSibling):null;return!0}function kl(){Zt=ge=null,bt=!1}function zh(){var e=ua;return e!==null&&(Me===null?Me=e:Me.push.apply(Me,e),ua=null),e}function Wl(e){ua===null?ua=[e]:ua.push(e)}var Qc=R(null),oa=null,Zn=null;function bi(e,n,a){C(Qc,n._currentValue),n._currentValue=a}function Kn(e){e._currentValue=Qc.current,j(Qc)}function Xc(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function Zc(e,n,a,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var d=u.child;c=c.firstContext;t:for(;c!==null;){var y=c;c=u;for(var b=0;b<n.length;b++)if(y.context===n[b]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Xc(c.return,a,e),s||(d=null);break t}c=y.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),Xc(d,a,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Pl(e,n,a,s){e=null;for(var u=n,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=u.type;Ve(u.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(u===Ie.current){if(d=u.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ms):e=[Ms])}u=u.return}e!==null&&Zc(n,e,a,s),n.flags|=262144}function wr(e){for(e=e.firstContext;e!==null;){if(!Ve(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fa(e){oa=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function me(e){return xh(oa,e)}function Or(e,n){return oa===null&&fa(e),xh(e,n)}function xh(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Zn===null){if(e===null)throw Error(r(308));Zn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Zn=Zn.next=n;return a}var tg=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},eg=l.unstable_scheduleCallback,ng=l.unstable_NormalPriority,te={$$typeof:pt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new tg,data:new Map,refCount:0}}function ts(e){e.refCount--,e.refCount===0&&eg(ng,function(){e.controller.abort()})}var es=null,Jc=0,Ka=0,Ja=null;function ig(e,n){if(es===null){var a=es=[];Jc=0,Ka=Wo(),Ja={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Jc++,n.then(Lh,Lh),n}function Lh(){if(--Jc===0&&es!==null){Ja!==null&&(Ja.status="fulfilled");var e=es;es=null,Ka=0,Ja=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function ag(e,n){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var Ch=E.S;E.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&ig(e,n),Ch!==null&&Ch(e,n)};var da=R(null);function $c(){var e=da.current;return e!==null?e:Ct.pooledCache}function Tr(e,n){n===null?C(da,da.current):C(da,n.pool)}function Ih(){var e=$c();return e===null?null:{parent:te._currentValue,pool:e}}var ns=Error(r(460)),Fh=Error(r(474)),Dr=Error(r(542)),kc={then:function(){}};function jh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Br(){}function Vh(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Br,Br),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Yh(e),e;default:if(typeof n.status=="string")n.then(Br,Br);else{if(e=Ct,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Yh(e),e}throw is=n,ns}}var is=null;function Hh(){if(is===null)throw Error(r(459));var e=is;return is=null,e}function Yh(e){if(e===ns||e===Dr)throw Error(r(483))}var gi=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _i(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Si(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Tt&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=gr(e),Mh(e,null,a),n}return br(e,s,n,a),gr(e)}function as(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,Ld(e,a)}}function to(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?u=c=n:c=c.next=n}else u=c=n;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var eo=!1;function ls(){if(eo){var e=Ja;if(e!==null)throw e}}function ss(e,n,a,s){eo=!1;var u=e.updateQueue;gi=!1;var c=u.firstBaseUpdate,d=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,T=b.next;b.next=null,d===null?c=T:d.next=T,d=b;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==d&&(y===null?M.firstBaseUpdate=T:y.next=T,M.lastBaseUpdate=b))}if(c!==null){var U=u.baseState;d=0,M=T=b=null,y=c;do{var D=y.lane&-536870913,B=D!==y.lane;if(B?(yt&D)===D:(s&D)===D){D!==0&&D===Ka&&(eo=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var Z=e,q=y;D=n;var Nt=a;switch(q.tag){case 1:if(Z=q.payload,typeof Z=="function"){U=Z.call(Nt,U,D);break t}U=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=q.payload,D=typeof Z=="function"?Z.call(Nt,U,D):Z,D==null)break t;U=w({},U,D);break t;case 2:gi=!0}}D=y.callback,D!==null&&(e.flags|=64,B&&(e.flags|=8192),B=u.callbacks,B===null?u.callbacks=[D]:B.push(D))}else B={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(T=M=B,b=U):M=M.next=B,d|=D;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;B=y,y=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);M===null&&(b=U),u.baseState=b,u.firstBaseUpdate=T,u.lastBaseUpdate=M,c===null&&(u.shared.lanes=0),Ei|=d,e.lanes=d,e.memoizedState=U}}function qh(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Gh(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qh(a[e],n)}var $a=R(null),Mr=R(0);function Qh(e,n){e=ei,C(Mr,e),C($a,n),ei=e|n.baseLanes}function no(){C(Mr,ei),C($a,$a.current)}function io(){ei=Mr.current,j($a),j(Mr)}var Ai=0,ut=null,Mt=null,kt=null,Er=!1,ka=!1,ha=!1,Nr=0,rs=0,Wa=null,lg=0;function Jt(){throw Error(r(321))}function ao(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Ve(e[a],n[a]))return!1;return!0}function lo(e,n,a,s,u,c){return Ai=c,ut=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,E.H=e===null||e.memoizedState===null?My:Ey,ha=!1,c=a(s,u),ha=!1,ka&&(c=Zh(n,a,s,u)),Xh(e),c}function Xh(e){E.H=Cr;var n=Mt!==null&&Mt.next!==null;if(Ai=0,kt=Mt=ut=null,Er=!1,rs=0,Wa=null,n)throw Error(r(300));e===null||se||(e=e.dependencies,e!==null&&wr(e)&&(se=!0))}function Zh(e,n,a,s){ut=e;var u=0;do{if(ka&&(Wa=null),rs=0,ka=!1,25<=u)throw Error(r(301));if(u+=1,kt=Mt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}E.H=dg,c=n(a,s)}while(ka);return c}function sg(){var e=E.H,n=e.useState()[0];return n=typeof n.then=="function"?us(n):n,e=e.useState()[0],(Mt!==null?Mt.memoizedState:null)!==e&&(ut.flags|=1024),n}function so(){var e=Nr!==0;return Nr=0,e}function ro(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function uo(e){if(Er){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Er=!1}Ai=0,kt=Mt=ut=null,ka=!1,rs=Nr=0,Wa=null}function De(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ut.memoizedState=kt=e:kt=kt.next=e,kt}function Wt(){if(Mt===null){var e=ut.alternate;e=e!==null?e.memoizedState:null}else e=Mt.next;var n=kt===null?ut.memoizedState:kt.next;if(n!==null)kt=n,Mt=e;else{if(e===null)throw ut.alternate===null?Error(r(467)):Error(r(310));Mt=e,e={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},kt===null?ut.memoizedState=kt=e:kt=kt.next=e}return kt}function co(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var n=rs;return rs+=1,Wa===null&&(Wa=[]),e=Vh(Wa,e,n),n=ut,(kt===null?n.memoizedState:kt.next)===null&&(n=n.alternate,E.H=n===null||n.memoizedState===null?My:Ey),e}function Ur(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return us(e);if(e.$$typeof===pt)return me(e)}throw Error(r(438,String(e)))}function oo(e){var n=null,a=ut.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=ut.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=co(),ut.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),s=0;s<e;s++)a[s]=Ea;return n.index++,a}function Jn(e,n){return typeof n=="function"?n(e):n}function Rr(e){var n=Wt();return fo(n,Mt,e)}function fo(e,n,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=e.baseQueue,c=s.pending;if(c!==null){if(u!==null){var d=u.next;u.next=c.next,c.next=d}n.baseQueue=u=c,s.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{n=u.next;var y=d=null,b=null,T=n,M=!1;do{var U=T.lane&-536870913;if(U!==T.lane?(yt&U)===U:(Ai&U)===U){var D=T.revertLane;if(D===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),U===Ka&&(M=!0);else if((Ai&D)===D){T=T.next,D===Ka&&(M=!0);continue}else U={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(y=b=U,d=c):b=b.next=U,ut.lanes|=D,Ei|=D;U=T.action,ha&&a(c,U),c=T.hasEagerState?T.eagerState:a(c,U)}else D={lane:U,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(y=b=D,d=c):b=b.next=D,ut.lanes|=U,Ei|=U;T=T.next}while(T!==null&&T!==n);if(b===null?d=c:b.next=y,!Ve(c,e.memoizedState)&&(se=!0,M&&(a=Ja,a!==null)))throw a;e.memoizedState=c,e.baseState=d,e.baseQueue=b,s.lastRenderedState=c}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function ho(e){var n=Wt(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,u=a.pending,c=n.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do c=e(c,d.action),d=d.next;while(d!==u);Ve(c,n.memoizedState)||(se=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),a.lastRenderedState=c}return[c,s]}function Kh(e,n,a){var s=ut,u=Wt(),c=bt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=n();var d=!Ve((Mt||u).memoizedState,a);d&&(u.memoizedState=a,se=!0),u=u.queue;var y=kh.bind(null,s,u,e);if(cs(2048,8,y,[e]),u.getSnapshot!==n||d||kt!==null&&kt.memoizedState.tag&1){if(s.flags|=2048,Pa(9,zr(),$h.bind(null,s,u,a,n),null),Ct===null)throw Error(r(349));c||(Ai&124)!==0||Jh(s,n,a)}return a}function Jh(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ut.updateQueue,n===null?(n=co(),ut.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function $h(e,n,a,s){n.value=a,n.getSnapshot=s,Wh(n)&&Ph(e)}function kh(e,n,a){return a(function(){Wh(n)&&Ph(e)})}function Wh(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Ve(e,a)}catch{return!0}}function Ph(e){var n=Ga(e,2);n!==null&&Xe(n,e,2)}function yo(e){var n=De();if(typeof e=="function"){var a=e;if(e=a(),ha){pi(!0);try{a()}finally{pi(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},n}function ty(e,n,a,s){return e.baseState=a,fo(e,Mt,typeof s=="function"?s:Jn)}function rg(e,n,a,s,u){if(Lr(e))throw Error(r(485));if(e=n.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};E.T!==null?a(!0):c.isTransition=!1,s(c),a=n.pending,a===null?(c.next=n.pending=c,ey(n,c)):(c.next=a.next,n.pending=a.next=c)}}function ey(e,n){var a=n.action,s=n.payload,u=e.state;if(n.isTransition){var c=E.T,d={};E.T=d;try{var y=a(u,s),b=E.S;b!==null&&b(d,y),ny(e,n,y)}catch(T){po(e,n,T)}finally{E.T=c}}else try{c=a(u,s),ny(e,n,c)}catch(T){po(e,n,T)}}function ny(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){iy(e,n,s)},function(s){return po(e,n,s)}):iy(e,n,a)}function iy(e,n,a){n.status="fulfilled",n.value=a,ay(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,ey(e,a)))}function po(e,n,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,ay(n),n=n.next;while(n!==s)}e.action=null}function ay(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ly(e,n){return n}function sy(e,n){if(bt){var a=Ct.formState;if(a!==null){t:{var s=ut;if(bt){if(Zt){e:{for(var u=Zt,c=Sn;u.nodeType!==8;){if(!c){u=null;break e}if(u=pn(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Zt=pn(u.nextSibling),s=u.data==="F!";break t}}ca(s)}s=!1}s&&(n=a[0])}}return a=De(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ly,lastRenderedState:n},a.queue=s,a=Ty.bind(null,ut,s),s.dispatch=a,s=yo(!1),c=_o.bind(null,ut,!1,s.queue),s=De(),u={state:n,dispatch:null,action:e,pending:null},s.queue=u,a=rg.bind(null,ut,u,c,a),u.dispatch=a,s.memoizedState=e,[n,a,!1]}function ry(e){var n=Wt();return uy(n,Mt,e)}function uy(e,n,a){if(n=fo(e,n,ly)[0],e=Rr(Jn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=us(n)}catch(d){throw d===ns?Dr:d}else s=n;n=Wt();var u=n.queue,c=u.dispatch;return a!==n.memoizedState&&(ut.flags|=2048,Pa(9,zr(),ug.bind(null,u,a),null)),[s,c,e]}function ug(e,n){e.action=n}function cy(e){var n=Wt(),a=Mt;if(a!==null)return uy(n,a,e);Wt(),n=n.memoizedState,a=Wt();var s=a.queue.dispatch;return a.memoizedState=e,[n,s,!1]}function Pa(e,n,a,s){return e={tag:e,create:a,deps:s,inst:n,next:null},n=ut.updateQueue,n===null&&(n=co(),ut.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e),e}function zr(){return{destroy:void 0,resource:void 0}}function oy(){return Wt().memoizedState}function xr(e,n,a,s){var u=De();s=s===void 0?null:s,ut.flags|=e,u.memoizedState=Pa(1|n,zr(),a,s)}function cs(e,n,a,s){var u=Wt();s=s===void 0?null:s;var c=u.memoizedState.inst;Mt!==null&&s!==null&&ao(s,Mt.memoizedState.deps)?u.memoizedState=Pa(n,c,a,s):(ut.flags|=e,u.memoizedState=Pa(1|n,c,a,s))}function fy(e,n){xr(8390656,8,e,n)}function dy(e,n){cs(2048,8,e,n)}function hy(e,n){return cs(4,2,e,n)}function yy(e,n){return cs(4,4,e,n)}function py(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function my(e,n,a){a=a!=null?a.concat([e]):null,cs(4,4,py.bind(null,n,e),a)}function mo(){}function vy(e,n){var a=Wt();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&ao(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function by(e,n){var a=Wt();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&ao(n,s[1]))return s[0];if(s=e(),ha){pi(!0);try{e()}finally{pi(!1)}}return a.memoizedState=[s,n],s}function vo(e,n,a){return a===void 0||(Ai&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=S0(),ut.lanes|=e,Ei|=e,a)}function gy(e,n,a,s){return Ve(a,n)?a:$a.current!==null?(e=vo(e,a,s),Ve(e,n)||(se=!0),e):(Ai&42)===0?(se=!0,e.memoizedState=a):(e=S0(),ut.lanes|=e,Ei|=e,n)}function _y(e,n,a,s,u){var c=I.p;I.p=c!==0&&8>c?c:8;var d=E.T,y={};E.T=y,_o(e,!1,n,a);try{var b=u(),T=E.S;if(T!==null&&T(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var M=ag(b,s);os(e,n,M,Qe(e))}else os(e,n,s,Qe(e))}catch(U){os(e,n,{then:function(){},status:"rejected",reason:U},Qe())}finally{I.p=c,E.T=d}}function cg(){}function bo(e,n,a,s){if(e.tag!==5)throw Error(r(476));var u=Sy(e).queue;_y(e,u,n,X,a===null?cg:function(){return Ay(e),a(s)})}function Sy(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:X},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Ay(e){var n=Sy(e).next.queue;os(e,n,{},Qe())}function go(){return me(Ms)}function wy(){return Wt().memoizedState}function Oy(){return Wt().memoizedState}function og(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Qe();e=_i(a);var s=Si(n,e,a);s!==null&&(Xe(s,n,a),as(s,n,a)),n={cache:Kc()},e.payload=n;return}n=n.return}}function fg(e,n,a){var s=Qe();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Lr(e)?Dy(n,a):(a=Fc(e,n,a,s),a!==null&&(Xe(a,e,s),By(a,n,s)))}function Ty(e,n,a){var s=Qe();os(e,n,a,s)}function os(e,n,a,s){var u={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Lr(e))Dy(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var d=n.lastRenderedState,y=c(d,a);if(u.hasEagerState=!0,u.eagerState=y,Ve(y,d))return br(e,n,u,0),Ct===null&&vr(),!1}catch{}finally{}if(a=Fc(e,n,u,s),a!==null)return Xe(a,e,s),By(a,n,s),!0}return!1}function _o(e,n,a,s){if(s={lane:2,revertLane:Wo(),action:s,hasEagerState:!1,eagerState:null,next:null},Lr(e)){if(n)throw Error(r(479))}else n=Fc(e,a,s,2),n!==null&&Xe(n,e,2)}function Lr(e){var n=e.alternate;return e===ut||n!==null&&n===ut}function Dy(e,n){ka=Er=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function By(e,n,a){if((a&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,Ld(e,a)}}var Cr={readContext:me,use:Ur,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt},My={readContext:me,use:Ur,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:me,useEffect:fy,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,xr(4194308,4,py.bind(null,n,e),a)},useLayoutEffect:function(e,n){return xr(4194308,4,e,n)},useInsertionEffect:function(e,n){xr(4,2,e,n)},useMemo:function(e,n){var a=De();n=n===void 0?null:n;var s=e();if(ha){pi(!0);try{e()}finally{pi(!1)}}return a.memoizedState=[s,n],s},useReducer:function(e,n,a){var s=De();if(a!==void 0){var u=a(n);if(ha){pi(!0);try{a(n)}finally{pi(!1)}}}else u=n;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=fg.bind(null,ut,e),[s.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:function(e){e=yo(e);var n=e.queue,a=Ty.bind(null,ut,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:mo,useDeferredValue:function(e,n){var a=De();return vo(a,e,n)},useTransition:function(){var e=yo(!1);return e=_y.bind(null,ut,e.queue,!0,!1),De().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var s=ut,u=De();if(bt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),Ct===null)throw Error(r(349));(yt&124)!==0||Jh(s,n,a)}u.memoizedState=a;var c={value:a,getSnapshot:n};return u.queue=c,fy(kh.bind(null,s,c,e),[e]),s.flags|=2048,Pa(9,zr(),$h.bind(null,s,c,a,n),null),a},useId:function(){var e=De(),n=Ct.identifierPrefix;if(bt){var a=Xn,s=Qn;a=(s&~(1<<32-je(s)-1)).toString(32)+a,n="«"+n+"R"+a,a=Nr++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=lg++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:go,useFormState:sy,useActionState:sy,useOptimistic:function(e){var n=De();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=_o.bind(null,ut,!0,a),a.dispatch=n,[e,n]},useMemoCache:oo,useCacheRefresh:function(){return De().memoizedState=og.bind(null,ut)}},Ey={readContext:me,use:Ur,useCallback:vy,useContext:me,useEffect:dy,useImperativeHandle:my,useInsertionEffect:hy,useLayoutEffect:yy,useMemo:by,useReducer:Rr,useRef:oy,useState:function(){return Rr(Jn)},useDebugValue:mo,useDeferredValue:function(e,n){var a=Wt();return gy(a,Mt.memoizedState,e,n)},useTransition:function(){var e=Rr(Jn)[0],n=Wt().memoizedState;return[typeof e=="boolean"?e:us(e),n]},useSyncExternalStore:Kh,useId:wy,useHostTransitionStatus:go,useFormState:ry,useActionState:ry,useOptimistic:function(e,n){var a=Wt();return ty(a,Mt,e,n)},useMemoCache:oo,useCacheRefresh:Oy},dg={readContext:me,use:Ur,useCallback:vy,useContext:me,useEffect:dy,useImperativeHandle:my,useInsertionEffect:hy,useLayoutEffect:yy,useMemo:by,useReducer:ho,useRef:oy,useState:function(){return ho(Jn)},useDebugValue:mo,useDeferredValue:function(e,n){var a=Wt();return Mt===null?vo(a,e,n):gy(a,Mt.memoizedState,e,n)},useTransition:function(){var e=ho(Jn)[0],n=Wt().memoizedState;return[typeof e=="boolean"?e:us(e),n]},useSyncExternalStore:Kh,useId:wy,useHostTransitionStatus:go,useFormState:cy,useActionState:cy,useOptimistic:function(e,n){var a=Wt();return Mt!==null?ty(a,Mt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:oo,useCacheRefresh:Oy},tl=null,fs=0;function Ir(e){var n=fs;return fs+=1,tl===null&&(tl=[]),Vh(tl,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Fr(e,n){throw n.$$typeof===z?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ny(e){var n=e._init;return n(e._payload)}function Uy(e){function n(S,_){if(e){var O=S.deletions;O===null?(S.deletions=[_],S.flags|=16):O.push(_)}}function a(S,_){if(!e)return null;for(;_!==null;)n(S,_),_=_.sibling;return null}function s(S){for(var _=new Map;S!==null;)S.key!==null?_.set(S.key,S):_.set(S.index,S),S=S.sibling;return _}function u(S,_){return S=Gn(S,_),S.index=0,S.sibling=null,S}function c(S,_,O){return S.index=O,e?(O=S.alternate,O!==null?(O=O.index,O<_?(S.flags|=67108866,_):O):(S.flags|=67108866,_)):(S.flags|=1048576,_)}function d(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function y(S,_,O,N){return _===null||_.tag!==6?(_=Vc(O,S.mode,N),_.return=S,_):(_=u(_,O),_.return=S,_)}function b(S,_,O,N){var V=O.type;return V===G?M(S,_,O.props.children,N,O.key):_!==null&&(_.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===we&&Ny(V)===_.type)?(_=u(_,O.props),ds(_,O),_.return=S,_):(_=_r(O.type,O.key,O.props,null,S.mode,N),ds(_,O),_.return=S,_)}function T(S,_,O,N){return _===null||_.tag!==4||_.stateNode.containerInfo!==O.containerInfo||_.stateNode.implementation!==O.implementation?(_=Hc(O,S.mode,N),_.return=S,_):(_=u(_,O.children||[]),_.return=S,_)}function M(S,_,O,N,V){return _===null||_.tag!==7?(_=la(O,S.mode,N,V),_.return=S,_):(_=u(_,O),_.return=S,_)}function U(S,_,O){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Vc(""+_,S.mode,O),_.return=S,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case L:return O=_r(_.type,_.key,_.props,null,S.mode,O),ds(O,_),O.return=S,O;case F:return _=Hc(_,S.mode,O),_.return=S,_;case we:var N=_._init;return _=N(_._payload),U(S,_,O)}if(ye(_)||he(_))return _=la(_,S.mode,O,null),_.return=S,_;if(typeof _.then=="function")return U(S,Ir(_),O);if(_.$$typeof===pt)return U(S,Or(S,_),O);Fr(S,_)}return null}function D(S,_,O,N){var V=_!==null?_.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return V!==null?null:y(S,_,""+O,N);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case L:return O.key===V?b(S,_,O,N):null;case F:return O.key===V?T(S,_,O,N):null;case we:return V=O._init,O=V(O._payload),D(S,_,O,N)}if(ye(O)||he(O))return V!==null?null:M(S,_,O,N,null);if(typeof O.then=="function")return D(S,_,Ir(O),N);if(O.$$typeof===pt)return D(S,_,Or(S,O),N);Fr(S,O)}return null}function B(S,_,O,N,V){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return S=S.get(O)||null,y(_,S,""+N,V);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return S=S.get(N.key===null?O:N.key)||null,b(_,S,N,V);case F:return S=S.get(N.key===null?O:N.key)||null,T(_,S,N,V);case we:var ct=N._init;return N=ct(N._payload),B(S,_,O,N,V)}if(ye(N)||he(N))return S=S.get(O)||null,M(_,S,N,V,null);if(typeof N.then=="function")return B(S,_,O,Ir(N),V);if(N.$$typeof===pt)return B(S,_,O,Or(_,N),V);Fr(_,N)}return null}function Z(S,_,O,N){for(var V=null,ct=null,H=_,Q=_=0,ue=null;H!==null&&Q<O.length;Q++){H.index>Q?(ue=H,H=null):ue=H.sibling;var vt=D(S,H,O[Q],N);if(vt===null){H===null&&(H=ue);break}e&&H&&vt.alternate===null&&n(S,H),_=c(vt,_,Q),ct===null?V=vt:ct.sibling=vt,ct=vt,H=ue}if(Q===O.length)return a(S,H),bt&&ra(S,Q),V;if(H===null){for(;Q<O.length;Q++)H=U(S,O[Q],N),H!==null&&(_=c(H,_,Q),ct===null?V=H:ct.sibling=H,ct=H);return bt&&ra(S,Q),V}for(H=s(H);Q<O.length;Q++)ue=B(H,S,Q,O[Q],N),ue!==null&&(e&&ue.alternate!==null&&H.delete(ue.key===null?Q:ue.key),_=c(ue,_,Q),ct===null?V=ue:ct.sibling=ue,ct=ue);return e&&H.forEach(function(Fi){return n(S,Fi)}),bt&&ra(S,Q),V}function q(S,_,O,N){if(O==null)throw Error(r(151));for(var V=null,ct=null,H=_,Q=_=0,ue=null,vt=O.next();H!==null&&!vt.done;Q++,vt=O.next()){H.index>Q?(ue=H,H=null):ue=H.sibling;var Fi=D(S,H,vt.value,N);if(Fi===null){H===null&&(H=ue);break}e&&H&&Fi.alternate===null&&n(S,H),_=c(Fi,_,Q),ct===null?V=Fi:ct.sibling=Fi,ct=Fi,H=ue}if(vt.done)return a(S,H),bt&&ra(S,Q),V;if(H===null){for(;!vt.done;Q++,vt=O.next())vt=U(S,vt.value,N),vt!==null&&(_=c(vt,_,Q),ct===null?V=vt:ct.sibling=vt,ct=vt);return bt&&ra(S,Q),V}for(H=s(H);!vt.done;Q++,vt=O.next())vt=B(H,S,Q,vt.value,N),vt!==null&&(e&&vt.alternate!==null&&H.delete(vt.key===null?Q:vt.key),_=c(vt,_,Q),ct===null?V=vt:ct.sibling=vt,ct=vt);return e&&H.forEach(function(h1){return n(S,h1)}),bt&&ra(S,Q),V}function Nt(S,_,O,N){if(typeof O=="object"&&O!==null&&O.type===G&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case L:t:{for(var V=O.key;_!==null;){if(_.key===V){if(V=O.type,V===G){if(_.tag===7){a(S,_.sibling),N=u(_,O.props.children),N.return=S,S=N;break t}}else if(_.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===we&&Ny(V)===_.type){a(S,_.sibling),N=u(_,O.props),ds(N,O),N.return=S,S=N;break t}a(S,_);break}else n(S,_);_=_.sibling}O.type===G?(N=la(O.props.children,S.mode,N,O.key),N.return=S,S=N):(N=_r(O.type,O.key,O.props,null,S.mode,N),ds(N,O),N.return=S,S=N)}return d(S);case F:t:{for(V=O.key;_!==null;){if(_.key===V)if(_.tag===4&&_.stateNode.containerInfo===O.containerInfo&&_.stateNode.implementation===O.implementation){a(S,_.sibling),N=u(_,O.children||[]),N.return=S,S=N;break t}else{a(S,_);break}else n(S,_);_=_.sibling}N=Hc(O,S.mode,N),N.return=S,S=N}return d(S);case we:return V=O._init,O=V(O._payload),Nt(S,_,O,N)}if(ye(O))return Z(S,_,O,N);if(he(O)){if(V=he(O),typeof V!="function")throw Error(r(150));return O=V.call(O),q(S,_,O,N)}if(typeof O.then=="function")return Nt(S,_,Ir(O),N);if(O.$$typeof===pt)return Nt(S,_,Or(S,O),N);Fr(S,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,_!==null&&_.tag===6?(a(S,_.sibling),N=u(_,O),N.return=S,S=N):(a(S,_),N=Vc(O,S.mode,N),N.return=S,S=N),d(S)):a(S,_)}return function(S,_,O,N){try{fs=0;var V=Nt(S,_,O,N);return tl=null,V}catch(H){if(H===ns||H===Dr)throw H;var ct=He(29,H,null,S.mode);return ct.lanes=N,ct.return=S,ct}finally{}}}var el=Uy(!0),Ry=Uy(!1),ln=R(null),An=null;function wi(e){var n=e.alternate;C(ee,ee.current&1),C(ln,e),An===null&&(n===null||$a.current!==null||n.memoizedState!==null)&&(An=e)}function zy(e){if(e.tag===22){if(C(ee,ee.current),C(ln,e),An===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(An=e)}}else Oi()}function Oi(){C(ee,ee.current),C(ln,ln.current)}function $n(e){j(ln),An===e&&(An=null),j(ee)}var ee=R(0);function jr(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||ff(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function So(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:w({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ao={enqueueSetState:function(e,n,a){e=e._reactInternals;var s=Qe(),u=_i(s);u.payload=n,a!=null&&(u.callback=a),n=Si(e,u,s),n!==null&&(Xe(n,e,s),as(n,e,s))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=Qe(),u=_i(s);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Si(e,u,s),n!==null&&(Xe(n,e,s),as(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Qe(),s=_i(a);s.tag=2,n!=null&&(s.callback=n),n=Si(e,s,a),n!==null&&(Xe(n,e,a),as(n,e,a))}};function xy(e,n,a,s,u,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,d):n.prototype&&n.prototype.isPureReactComponent?!Kl(a,s)||!Kl(u,c):!0}function Ly(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&Ao.enqueueReplaceState(n,n.state,null)}function ya(e,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(e=e.defaultProps){a===n&&(a=w({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Vr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Cy(e){Vr(e)}function Iy(e){console.error(e)}function Fy(e){Vr(e)}function Hr(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function jy(e,n,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wo(e,n,a){return a=_i(a),a.tag=3,a.payload={element:null},a.callback=function(){Hr(e,n)},a}function Vy(e){return e=_i(e),e.tag=3,e}function Hy(e,n,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;e.payload=function(){return u(c)},e.callback=function(){jy(n,a,s)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){jy(n,a,s),typeof u!="function"&&(Ni===null?Ni=new Set([this]):Ni.add(this));var y=s.stack;this.componentDidCatch(s.value,{componentStack:y!==null?y:""})})}function hg(e,n,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Pl(n,a,u,!0),a=ln.current,a!==null){switch(a.tag){case 13:return An===null?Zo():a.alternate===null&&Kt===0&&(Kt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===kc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Jo(e,s,u)),!1;case 22:return a.flags|=65536,s===kc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Jo(e,s,u)),!1}throw Error(r(435,a.tag))}return Jo(e,s,u),Zo(),!1}if(bt)return n=ln.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Gc&&(e=Error(r(422),{cause:s}),Wl(tn(e,a)))):(s!==Gc&&(n=Error(r(423),{cause:s}),Wl(tn(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=tn(s,a),u=wo(e.stateNode,s,u),to(e,u),Kt!==4&&(Kt=2)),!1;var c=Error(r(520),{cause:s});if(c=tn(c,a),gs===null?gs=[c]:gs.push(c),Kt!==4&&(Kt=2),n===null)return!0;s=tn(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=wo(a.stateNode,s,e),to(a,e),!1;case 1:if(n=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ni===null||!Ni.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Vy(u),Hy(u,e,a,s),to(a,u),!1}a=a.return}while(a!==null);return!1}var Yy=Error(r(461)),se=!1;function oe(e,n,a,s){n.child=e===null?Ry(n,null,a,s):el(n,e.child,a,s)}function qy(e,n,a,s,u){a=a.render;var c=n.ref;if("ref"in s){var d={};for(var y in s)y!=="ref"&&(d[y]=s[y])}else d=s;return fa(n),s=lo(e,n,a,d,c,u),y=so(),e!==null&&!se?(ro(e,n,u),kn(e,n,u)):(bt&&y&&Yc(n),n.flags|=1,oe(e,n,s,u),n.child)}function Gy(e,n,a,s,u){if(e===null){var c=a.type;return typeof c=="function"&&!jc(c)&&c.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=c,Qy(e,n,c,s,u)):(e=_r(a.type,null,s,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,!Uo(e,u)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Kl,a(d,s)&&e.ref===n.ref)return kn(e,n,u)}return n.flags|=1,e=Gn(c,s),e.ref=n.ref,e.return=n,n.child=e}function Qy(e,n,a,s,u){if(e!==null){var c=e.memoizedProps;if(Kl(c,s)&&e.ref===n.ref)if(se=!1,n.pendingProps=s=c,Uo(e,u))(e.flags&131072)!==0&&(se=!0);else return n.lanes=e.lanes,kn(e,n,u)}return Oo(e,n,a,s,u)}function Xy(e,n,a){var s=n.pendingProps,u=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=c!==null?c.baseLanes|a:a,e!==null){for(u=n.child=e.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;n.childLanes=c&~s}else n.childLanes=0,n.child=null;return Zy(e,n,s,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Tr(n,c!==null?c.cachePool:null),c!==null?Qh(n,c):no(),zy(n);else return n.lanes=n.childLanes=536870912,Zy(e,n,c!==null?c.baseLanes|a:a,a)}else c!==null?(Tr(n,c.cachePool),Qh(n,c),Oi(),n.memoizedState=null):(e!==null&&Tr(n,null),no(),Oi());return oe(e,n,u,a),n.child}function Zy(e,n,a,s){var u=$c();return u=u===null?null:{parent:te._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&Tr(n,null),no(),zy(n),e!==null&&Pl(e,n,s,!0),null}function Yr(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Oo(e,n,a,s,u){return fa(n),a=lo(e,n,a,s,void 0,u),s=so(),e!==null&&!se?(ro(e,n,u),kn(e,n,u)):(bt&&s&&Yc(n),n.flags|=1,oe(e,n,a,u),n.child)}function Ky(e,n,a,s,u,c){return fa(n),n.updateQueue=null,a=Zh(n,s,a,u),Xh(e),s=so(),e!==null&&!se?(ro(e,n,c),kn(e,n,c)):(bt&&s&&Yc(n),n.flags|=1,oe(e,n,a,c),n.child)}function Jy(e,n,a,s,u){if(fa(n),n.stateNode===null){var c=Qa,d=a.contextType;typeof d=="object"&&d!==null&&(c=me(d)),c=new a(s,c),n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ao,n.stateNode=c,c._reactInternals=n,c=n.stateNode,c.props=s,c.state=n.memoizedState,c.refs={},Wc(n),d=a.contextType,c.context=typeof d=="object"&&d!==null?me(d):Qa,c.state=n.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(So(n,a,d,s),c.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Ao.enqueueReplaceState(c,c.state,null),ss(n,s,c,u),ls(),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){c=n.stateNode;var y=n.memoizedProps,b=ya(a,y);c.props=b;var T=c.context,M=a.contextType;d=Qa,typeof M=="object"&&M!==null&&(d=me(M));var U=a.getDerivedStateFromProps;M=typeof U=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=n.pendingProps!==y,M||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||T!==d)&&Ly(n,c,s,d),gi=!1;var D=n.memoizedState;c.state=D,ss(n,s,c,u),ls(),T=n.memoizedState,y||D!==T||gi?(typeof U=="function"&&(So(n,a,U,s),T=n.memoizedState),(b=gi||xy(n,a,b,s,D,T,d))?(M||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=T),c.props=s,c.state=T,c.context=d,s=b):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{c=n.stateNode,Pc(e,n),d=n.memoizedProps,M=ya(a,d),c.props=M,U=n.pendingProps,D=c.context,T=a.contextType,b=Qa,typeof T=="object"&&T!==null&&(b=me(T)),y=a.getDerivedStateFromProps,(T=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==U||D!==b)&&Ly(n,c,s,b),gi=!1,D=n.memoizedState,c.state=D,ss(n,s,c,u),ls();var B=n.memoizedState;d!==U||D!==B||gi||e!==null&&e.dependencies!==null&&wr(e.dependencies)?(typeof y=="function"&&(So(n,a,y,s),B=n.memoizedState),(M=gi||xy(n,a,M,s,D,B,b)||e!==null&&e.dependencies!==null&&wr(e.dependencies))?(T||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,B,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,B,b)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=B),c.props=s,c.state=B,c.context=b,s=M):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),s=!1)}return c=s,Yr(e,n),s=(n.flags&128)!==0,c||s?(c=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),n.flags|=1,e!==null&&s?(n.child=el(n,e.child,null,u),n.child=el(n,null,a,u)):oe(e,n,a,u),n.memoizedState=c.state,e=n.child):e=kn(e,n,u),e}function $y(e,n,a,s){return kl(),n.flags|=256,oe(e,n,a,s),n.child}var To={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Do(e){return{baseLanes:e,cachePool:Ih()}}function Bo(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=sn),e}function ky(e,n,a){var s=n.pendingProps,u=!1,c=(n.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(ee.current&2)!==0),d&&(u=!0,n.flags&=-129),d=(n.flags&32)!==0,n.flags&=-33,e===null){if(bt){if(u?wi(n):Oi(),bt){var y=Zt,b;if(b=y){t:{for(b=y,y=Sn;b.nodeType!==8;){if(!y){y=null;break t}if(b=pn(b.nextSibling),b===null){y=null;break t}}y=b}y!==null?(n.memoizedState={dehydrated:y,treeContext:sa!==null?{id:Qn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},b=He(18,null,null,0),b.stateNode=y,b.return=n,n.child=b,ge=n,Zt=null,b=!0):b=!1}b||ca(n)}if(y=n.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return ff(y)?n.lanes=32:n.lanes=536870912,null;$n(n)}return y=s.children,s=s.fallback,u?(Oi(),u=n.mode,y=qr({mode:"hidden",children:y},u),s=la(s,u,a,null),y.return=n,s.return=n,y.sibling=s,n.child=y,u=n.child,u.memoizedState=Do(a),u.childLanes=Bo(e,d,a),n.memoizedState=To,s):(wi(n),Mo(n,y))}if(b=e.memoizedState,b!==null&&(y=b.dehydrated,y!==null)){if(c)n.flags&256?(wi(n),n.flags&=-257,n=Eo(e,n,a)):n.memoizedState!==null?(Oi(),n.child=e.child,n.flags|=128,n=null):(Oi(),u=s.fallback,y=n.mode,s=qr({mode:"visible",children:s.children},y),u=la(u,y,a,null),u.flags|=2,s.return=n,u.return=n,s.sibling=u,n.child=s,el(n,e.child,null,a),s=n.child,s.memoizedState=Do(a),s.childLanes=Bo(e,d,a),n.memoizedState=To,n=u);else if(wi(n),ff(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var T=d.dgst;d=T,s=Error(r(419)),s.stack="",s.digest=d,Wl({value:s,source:null,stack:null}),n=Eo(e,n,a)}else if(se||Pl(e,n,a,!1),d=(a&e.childLanes)!==0,se||d){if(d=Ct,d!==null&&(s=a&-a,s=(s&42)!==0?1:oc(s),s=(s&(d.suspendedLanes|a))!==0?0:s,s!==0&&s!==b.retryLane))throw b.retryLane=s,Ga(e,s),Xe(d,e,s),Yy;y.data==="$?"||Zo(),n=Eo(e,n,a)}else y.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=b.treeContext,Zt=pn(y.nextSibling),ge=n,bt=!0,ua=null,Sn=!1,e!==null&&(nn[an++]=Qn,nn[an++]=Xn,nn[an++]=sa,Qn=e.id,Xn=e.overflow,sa=n),n=Mo(n,s.children),n.flags|=4096);return n}return u?(Oi(),u=s.fallback,y=n.mode,b=e.child,T=b.sibling,s=Gn(b,{mode:"hidden",children:s.children}),s.subtreeFlags=b.subtreeFlags&65011712,T!==null?u=Gn(T,u):(u=la(u,y,a,null),u.flags|=2),u.return=n,s.return=n,s.sibling=u,n.child=s,s=u,u=n.child,y=e.child.memoizedState,y===null?y=Do(a):(b=y.cachePool,b!==null?(T=te._currentValue,b=b.parent!==T?{parent:T,pool:T}:b):b=Ih(),y={baseLanes:y.baseLanes|a,cachePool:b}),u.memoizedState=y,u.childLanes=Bo(e,d,a),n.memoizedState=To,s):(wi(n),a=e.child,e=a.sibling,a=Gn(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,e!==null&&(d=n.deletions,d===null?(n.deletions=[e],n.flags|=16):d.push(e)),n.child=a,n.memoizedState=null,a)}function Mo(e,n){return n=qr({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function qr(e,n){return e=He(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Eo(e,n,a){return el(n,e.child,null,a),e=Mo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Wy(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Xc(e.return,n,a)}function No(e,n,a,s,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u}:(c.isBackwards=n,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=a,c.tailMode=u)}function Py(e,n,a){var s=n.pendingProps,u=s.revealOrder,c=s.tail;if(oe(e,n,s.children,a),s=ee.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wy(e,a,n);else if(e.tag===19)Wy(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break t;for(;e.sibling===null;){if(e.return===null||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(C(ee,s),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&jr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),No(n,!1,u,a,c);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&jr(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}No(n,!0,a,null,c);break;case"together":No(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function kn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Ei|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Pl(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Gn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Gn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Uo(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&wr(e)))}function yg(e,n,a){switch(n.tag){case 3:Ht(n,n.stateNode.containerInfo),bi(n,te,e.memoizedState.cache),kl();break;case 27:case 5:lc(n);break;case 4:Ht(n,n.stateNode.containerInfo);break;case 10:bi(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(wi(n),n.flags|=128,null):(a&n.child.childLanes)!==0?ky(e,n,a):(wi(n),e=kn(e,n,a),e!==null?e.sibling:null);wi(n);break;case 19:var u=(e.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Pl(e,n,a,!1),s=(a&n.childLanes)!==0),u){if(s)return Py(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),C(ee,ee.current),s)break;return null;case 22:case 23:return n.lanes=0,Xy(e,n,a);case 24:bi(n,te,e.memoizedState.cache)}return kn(e,n,a)}function t0(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)se=!0;else{if(!Uo(e,a)&&(n.flags&128)===0)return se=!1,yg(e,n,a);se=(e.flags&131072)!==0}else se=!1,bt&&(n.flags&1048576)!==0&&Nh(n,Ar,n.index);switch(n.lanes=0,n.tag){case 16:t:{e=n.pendingProps;var s=n.elementType,u=s._init;if(s=u(s._payload),n.type=s,typeof s=="function")jc(s)?(e=ya(s,e),n.tag=1,n=Jy(null,n,s,e,a)):(n.tag=0,n=Oo(null,n,s,e,a));else{if(s!=null){if(u=s.$$typeof,u===ce){n.tag=11,n=qy(null,n,s,e,a);break t}else if(u===be){n.tag=14,n=Gy(null,n,s,e,a);break t}}throw n=Pi(s)||s,Error(r(306,n,""))}}return n;case 0:return Oo(e,n,n.type,n.pendingProps,a);case 1:return s=n.type,u=ya(s,n.pendingProps),Jy(e,n,s,u,a);case 3:t:{if(Ht(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var c=n.memoizedState;u=c.element,Pc(e,n),ss(n,s,null,a);var d=n.memoizedState;if(s=d.cache,bi(n,te,s),s!==c.cache&&Zc(n,[te],a,!0),ls(),s=d.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:d.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=$y(e,n,s,a);break t}else if(s!==u){u=tn(Error(r(424)),n),Wl(u),n=$y(e,n,s,a);break t}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Zt=pn(e.firstChild),ge=n,bt=!0,ua=null,Sn=!0,a=Ry(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(kl(),s===u){n=kn(e,n,a);break t}oe(e,n,s,a)}n=n.child}return n;case 26:return Yr(e,n),e===null?(a=ap(n.type,null,n.pendingProps,null))?n.memoizedState=a:bt||(a=n.type,e=n.pendingProps,s=iu(J.current).createElement(a),s[pe]=n,s[Oe]=e,de(s,a,e),le(s),n.stateNode=s):n.memoizedState=ap(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return lc(n),e===null&&bt&&(s=n.stateNode=ep(n.type,n.pendingProps,J.current),ge=n,Sn=!0,u=Zt,zi(n.type)?(df=u,Zt=pn(s.firstChild)):Zt=u),oe(e,n,n.pendingProps.children,a),Yr(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&bt&&((u=s=Zt)&&(s=Yg(s,n.type,n.pendingProps,Sn),s!==null?(n.stateNode=s,ge=n,Zt=pn(s.firstChild),Sn=!1,u=!0):u=!1),u||ca(n)),lc(n),u=n.type,c=n.pendingProps,d=e!==null?e.memoizedProps:null,s=c.children,uf(u,c)?s=null:d!==null&&uf(u,d)&&(n.flags|=32),n.memoizedState!==null&&(u=lo(e,n,sg,null,null,a),Ms._currentValue=u),Yr(e,n),oe(e,n,s,a),n.child;case 6:return e===null&&bt&&((e=a=Zt)&&(a=qg(a,n.pendingProps,Sn),a!==null?(n.stateNode=a,ge=n,Zt=null,e=!0):e=!1),e||ca(n)),null;case 13:return ky(e,n,a);case 4:return Ht(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=el(n,null,s,a):oe(e,n,s,a),n.child;case 11:return qy(e,n,n.type,n.pendingProps,a);case 7:return oe(e,n,n.pendingProps,a),n.child;case 8:return oe(e,n,n.pendingProps.children,a),n.child;case 12:return oe(e,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,bi(n,n.type,s.value),oe(e,n,s.children,a),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,fa(n),u=me(u),s=s(u),n.flags|=1,oe(e,n,s,a),n.child;case 14:return Gy(e,n,n.type,n.pendingProps,a);case 15:return Qy(e,n,n.type,n.pendingProps,a);case 19:return Py(e,n,a);case 31:return s=n.pendingProps,a=n.mode,s={mode:s.mode,children:s.children},e===null?(a=qr(s,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Gn(e.child,s),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return Xy(e,n,a);case 24:return fa(n),s=me(te),e===null?(u=$c(),u===null&&(u=Ct,c=Kc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),n.memoizedState={parent:s,cache:u},Wc(n),bi(n,te,u)):((e.lanes&a)!==0&&(Pc(e,n),ss(n,null,null,a),ls()),u=e.memoizedState,c=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),bi(n,te,s)):(s=c.cache,bi(n,te,s),s!==u.cache&&Zc(n,[te],a,!0))),oe(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function Wn(e){e.flags|=4}function e0(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cp(n)){if(n=ln.current,n!==null&&((yt&4194048)===yt?An!==null:(yt&62914560)!==yt&&(yt&536870912)===0||n!==An))throw is=kc,Fh;e.flags|=8192}}function Gr(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?zd():536870912,e.lanes|=n,ll|=n)}function hs(e,n){if(!bt)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function pg(e,n,a){var s=n.pendingProps;switch(qc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(n),null;case 1:return qt(n),null;case 3:return a=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Kn(te),yi(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($l(n)?Wn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,zh())),qt(n),null;case 26:return a=n.memoizedState,e===null?(Wn(n),a!==null?(qt(n),e0(n,a)):(qt(n),n.flags&=-16777217)):a?a!==e.memoizedState?(Wn(n),qt(n),e0(n,a)):(qt(n),n.flags&=-16777217):(e.memoizedProps!==s&&Wn(n),qt(n),n.flags&=-16777217),null;case 27:er(n),a=J.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&Wn(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return qt(n),null}e=Y.current,$l(n)?Uh(n):(e=ep(u,s,a),n.stateNode=e,Wn(n))}return qt(n),null;case 5:if(er(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&Wn(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return qt(n),null}if(e=Y.current,$l(n))Uh(n);else{switch(u=iu(J.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?u.createElement("select",{is:s.is}):u.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?u.createElement(a,{is:s.is}):u.createElement(a)}}e[pe]=n,e[Oe]=s;t:for(u=n.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)break t;for(;u.sibling===null;){if(u.return===null||u.return===n)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}n.stateNode=e;t:switch(de(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&Wn(n)}}return qt(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&Wn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=J.current,$l(n)){if(e=n.stateNode,a=n.memoizedProps,s=null,u=ge,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[pe]=n,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||K0(e.nodeValue,a)),e||ca(n)}else e=iu(e).createTextNode(s),e[pe]=n,n.stateNode=e}return qt(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=$l(n),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[pe]=n}else kl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;qt(n),u=!1}else u=zh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?($n(n),n):($n(n),null)}if($n(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool);var c=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Gr(n,n.updateQueue),qt(n),null;case 4:return yi(),e===null&&nf(n.stateNode.containerInfo),qt(n),null;case 10:return Kn(n.type),qt(n),null;case 19:if(j(ee),u=n.memoizedState,u===null)return qt(n),null;if(s=(n.flags&128)!==0,c=u.rendering,c===null)if(s)hs(u,!1);else{if(Kt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(c=jr(e),c!==null){for(n.flags|=128,hs(u,!1),e=c.updateQueue,n.updateQueue=e,Gr(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Eh(a,e),a=a.sibling;return C(ee,ee.current&1|2),n.child}e=e.sibling}u.tail!==null&&_n()>Zr&&(n.flags|=128,s=!0,hs(u,!1),n.lanes=4194304)}else{if(!s)if(e=jr(c),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,Gr(n,e),hs(u,!0),u.tail===null&&u.tailMode==="hidden"&&!c.alternate&&!bt)return qt(n),null}else 2*_n()-u.renderingStartTime>Zr&&a!==536870912&&(n.flags|=128,s=!0,hs(u,!1),n.lanes=4194304);u.isBackwards?(c.sibling=n.child,n.child=c):(e=u.last,e!==null?e.sibling=c:n.child=c,u.last=c)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=_n(),n.sibling=null,e=ee.current,C(ee,s?e&1|2:e&1),n):(qt(n),null);case 22:case 23:return $n(n),io(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(qt(n),n.subtreeFlags&6&&(n.flags|=8192)):qt(n),a=n.updateQueue,a!==null&&Gr(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),e!==null&&j(da),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Kn(te),qt(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function mg(e,n){switch(qc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Kn(te),yi(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return er(n),null;case 13:if($n(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));kl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return j(ee),null;case 4:return yi(),null;case 10:return Kn(n.type),null;case 22:case 23:return $n(n),io(),e!==null&&j(da),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Kn(te),null;case 25:return null;default:return null}}function n0(e,n){switch(qc(n),n.tag){case 3:Kn(te),yi();break;case 26:case 27:case 5:er(n);break;case 4:yi();break;case 13:$n(n);break;case 19:j(ee);break;case 10:Kn(n.type);break;case 22:case 23:$n(n),io(),e!==null&&j(da);break;case 24:Kn(te)}}function ys(e,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){s=void 0;var c=a.create,d=a.inst;s=c(),d.destroy=s}a=a.next}while(a!==u)}}catch(y){zt(n,n.return,y)}}function Ti(e,n,a){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&e)===e){var d=s.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,u=n;var b=a,T=y;try{T()}catch(M){zt(u,b,M)}}}s=s.next}while(s!==c)}}catch(M){zt(n,n.return,M)}}function i0(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Gh(n,a)}catch(s){zt(e,e.return,s)}}}function a0(e,n,a){a.props=ya(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){zt(e,n,s)}}function ps(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(u){zt(e,n,u)}}function wn(e,n){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){zt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){zt(e,n,u)}else a.current=null}function l0(e){var n=e.type,a=e.memoizedProps,s=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){zt(e,e.return,u)}}function Ro(e,n,a){try{var s=e.stateNode;Ig(s,e.type,a,n),s[Oe]=n}catch(u){zt(e,e.return,u)}}function s0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zi(e.type)||e.tag===4}function zo(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||s0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zi(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xo(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=nu));else if(s!==4&&(s===27&&zi(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(xo(e,n,a),e=e.sibling;e!==null;)xo(e,n,a),e=e.sibling}function Qr(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(s===27&&zi(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Qr(e,n,a),e=e.sibling;e!==null;)Qr(e,n,a),e=e.sibling}function r0(e){var n=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);de(n,s,a),n[pe]=e,n[Oe]=a}catch(c){zt(e,e.return,c)}}var Pn=!1,$t=!1,Lo=!1,u0=typeof WeakSet=="function"?WeakSet:Set,re=null;function vg(e,n){if(e=e.containerInfo,sf=cu,e=gh(e),Rc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else t:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var d=0,y=-1,b=-1,T=0,M=0,U=e,D=null;e:for(;;){for(var B;U!==a||u!==0&&U.nodeType!==3||(y=d+u),U!==c||s!==0&&U.nodeType!==3||(b=d+s),U.nodeType===3&&(d+=U.nodeValue.length),(B=U.firstChild)!==null;)D=U,U=B;for(;;){if(U===e)break e;if(D===a&&++T===u&&(y=d),D===c&&++M===s&&(b=d),(B=U.nextSibling)!==null)break;U=D,D=U.parentNode}U=B}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(rf={focusedElem:e,selectionRange:a},cu=!1,re=n;re!==null;)if(n=re,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,re=e;else for(;re!==null;){switch(n=re,c=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=n,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var Z=ya(a.type,u,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(Z,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(q){zt(a,a.return,q)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)of(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":of(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,re=e;break}re=n.return}}function c0(e,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Di(e,a),s&4&&ys(5,a);break;case 1:if(Di(e,a),s&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(d){zt(a,a.return,d)}else{var u=ya(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(d){zt(a,a.return,d)}}s&64&&i0(a),s&512&&ps(a,a.return);break;case 3:if(Di(e,a),s&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Gh(e,n)}catch(d){zt(a,a.return,d)}}break;case 27:n===null&&s&4&&r0(a);case 26:case 5:Di(e,a),n===null&&s&4&&l0(a),s&512&&ps(a,a.return);break;case 12:Di(e,a);break;case 13:Di(e,a),s&4&&d0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Dg.bind(null,a),Gg(e,a))));break;case 22:if(s=a.memoizedState!==null||Pn,!s){n=n!==null&&n.memoizedState!==null||$t,u=Pn;var c=$t;Pn=s,($t=n)&&!c?Bi(e,a,(a.subtreeFlags&8772)!==0):Di(e,a),Pn=u,$t=c}break;case 30:break;default:Di(e,a)}}function o0(e){var n=e.alternate;n!==null&&(e.alternate=null,o0(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&hc(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Yt=null,Be=!1;function ti(e,n,a){for(a=a.child;a!==null;)f0(e,n,a),a=a.sibling}function f0(e,n,a){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(Cl,a)}catch{}switch(a.tag){case 26:$t||wn(a,n),ti(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||wn(a,n);var s=Yt,u=Be;zi(a.type)&&(Yt=a.stateNode,Be=!1),ti(e,n,a),Os(a.stateNode),Yt=s,Be=u;break;case 5:$t||wn(a,n);case 6:if(s=Yt,u=Be,Yt=null,ti(e,n,a),Yt=s,Be=u,Yt!==null)if(Be)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(a.stateNode)}catch(c){zt(a,n,c)}else try{Yt.removeChild(a.stateNode)}catch(c){zt(a,n,c)}break;case 18:Yt!==null&&(Be?(e=Yt,P0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Rs(e)):P0(Yt,a.stateNode));break;case 4:s=Yt,u=Be,Yt=a.stateNode.containerInfo,Be=!0,ti(e,n,a),Yt=s,Be=u;break;case 0:case 11:case 14:case 15:$t||Ti(2,a,n),$t||Ti(4,a,n),ti(e,n,a);break;case 1:$t||(wn(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&a0(a,n,s)),ti(e,n,a);break;case 21:ti(e,n,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,ti(e,n,a),$t=s;break;default:ti(e,n,a)}}function d0(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Rs(e)}catch(a){zt(n,n.return,a)}}function bg(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new u0),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new u0),n;default:throw Error(r(435,e.tag))}}function Co(e,n){var a=bg(e);n.forEach(function(s){var u=Bg.bind(null,e,s);a.has(s)||(a.add(s),s.then(u,u))})}function Ye(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=e,d=n,y=d;t:for(;y!==null;){switch(y.tag){case 27:if(zi(y.type)){Yt=y.stateNode,Be=!1;break t}break;case 5:Yt=y.stateNode,Be=!1;break t;case 3:case 4:Yt=y.stateNode.containerInfo,Be=!0;break t}y=y.return}if(Yt===null)throw Error(r(160));f0(c,d,u),Yt=null,Be=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)h0(n,e),n=n.sibling}var yn=null;function h0(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ye(n,e),qe(e),s&4&&(Ti(3,e,e.return),ys(3,e),Ti(5,e,e.return));break;case 1:Ye(n,e),qe(e),s&512&&($t||a===null||wn(a,a.return)),s&64&&Pn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=yn;if(Ye(n,e),qe(e),s&512&&($t||a===null||wn(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){t:{s=e.type,a=e.memoizedProps,u=u.ownerDocument||u;e:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[jl]||c[pe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),de(c,s,a),c[pe]=e,le(c),s=c;break t;case"link":var d=rp("link","href",u).get(s+(a.href||""));if(d){for(var y=0;y<d.length;y++)if(c=d[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(y,1);break e}}c=u.createElement(s),de(c,s,a),u.head.appendChild(c);break;case"meta":if(d=rp("meta","content",u).get(s+(a.content||""))){for(y=0;y<d.length;y++)if(c=d[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(y,1);break e}}c=u.createElement(s),de(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[pe]=e,le(c),s=c}e.stateNode=s}else up(u,e.type,e.stateNode);else e.stateNode=sp(u,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?up(u,e.type,e.stateNode):sp(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Ro(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ye(n,e),qe(e),s&512&&($t||a===null||wn(a,a.return)),a!==null&&s&4&&Ro(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ye(n,e),qe(e),s&512&&($t||a===null||wn(a,a.return)),e.flags&32){u=e.stateNode;try{Ia(u,"")}catch(B){zt(e,e.return,B)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Ro(e,u,a!==null?a.memoizedProps:u)),s&1024&&(Lo=!0);break;case 6:if(Ye(n,e),qe(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(B){zt(e,e.return,B)}}break;case 3:if(su=null,u=yn,yn=au(n.containerInfo),Ye(n,e),yn=u,qe(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Rs(n.containerInfo)}catch(B){zt(e,e.return,B)}Lo&&(Lo=!1,y0(e));break;case 4:s=yn,yn=au(e.stateNode.containerInfo),Ye(n,e),qe(e),yn=s;break;case 12:Ye(n,e),qe(e);break;case 13:Ye(n,e),qe(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yo=_n()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Co(e,s)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,T=Pn,M=$t;if(Pn=T||u,$t=M||b,Ye(n,e),$t=M,Pn=T,qe(e),s&8192)t:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||b||Pn||$t||pa(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){b=a=n;try{if(c=b.stateNode,u)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=b.stateNode;var U=b.memoizedProps.style,D=U!=null&&U.hasOwnProperty("display")?U.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(B){zt(b,b.return,B)}}}else if(n.tag===6){if(a===null){b=n;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(B){zt(b,b.return,B)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Co(e,a))));break;case 19:Ye(n,e),qe(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Co(e,s)));break;case 30:break;case 21:break;default:Ye(n,e),qe(e)}}function qe(e){var n=e.flags;if(n&2){try{for(var a,s=e.return;s!==null;){if(s0(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=zo(e);Qr(e,c,u);break;case 5:var d=a.stateNode;a.flags&32&&(Ia(d,""),a.flags&=-33);var y=zo(e);Qr(e,y,d);break;case 3:case 4:var b=a.stateNode.containerInfo,T=zo(e);xo(e,T,b);break;default:throw Error(r(161))}}catch(M){zt(e,e.return,M)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function y0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;y0(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Di(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)c0(e,n.alternate,n),n=n.sibling}function pa(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ti(4,n,n.return),pa(n);break;case 1:wn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&a0(n,n.return,a),pa(n);break;case 27:Os(n.stateNode);case 26:case 5:wn(n,n.return),pa(n);break;case 22:n.memoizedState===null&&pa(n);break;case 30:pa(n);break;default:pa(n)}e=e.sibling}}function Bi(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=e,c=n,d=c.flags;switch(c.tag){case 0:case 11:case 15:Bi(u,c,a),ys(4,c);break;case 1:if(Bi(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){zt(s,s.return,T)}if(s=c,u=s.updateQueue,u!==null){var y=s.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)qh(b[u],y)}catch(T){zt(s,s.return,T)}}a&&d&64&&i0(c),ps(c,c.return);break;case 27:r0(c);case 26:case 5:Bi(u,c,a),a&&s===null&&d&4&&l0(c),ps(c,c.return);break;case 12:Bi(u,c,a);break;case 13:Bi(u,c,a),a&&d&4&&d0(u,c);break;case 22:c.memoizedState===null&&Bi(u,c,a),ps(c,c.return);break;case 30:break;default:Bi(u,c,a)}n=n.sibling}}function Io(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ts(a))}function Fo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ts(e))}function On(e,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)p0(e,n,a,s),n=n.sibling}function p0(e,n,a,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:On(e,n,a,s),u&2048&&ys(9,n);break;case 1:On(e,n,a,s);break;case 3:On(e,n,a,s),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ts(e)));break;case 12:if(u&2048){On(e,n,a,s),e=n.stateNode;try{var c=n.memoizedProps,d=c.id,y=c.onPostCommit;typeof y=="function"&&y(d,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){zt(n,n.return,b)}}else On(e,n,a,s);break;case 13:On(e,n,a,s);break;case 23:break;case 22:c=n.stateNode,d=n.alternate,n.memoizedState!==null?c._visibility&2?On(e,n,a,s):ms(e,n):c._visibility&2?On(e,n,a,s):(c._visibility|=2,nl(e,n,a,s,(n.subtreeFlags&10256)!==0)),u&2048&&Io(d,n);break;case 24:On(e,n,a,s),u&2048&&Fo(n.alternate,n);break;default:On(e,n,a,s)}}function nl(e,n,a,s,u){for(u=u&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var c=e,d=n,y=a,b=s,T=d.flags;switch(d.tag){case 0:case 11:case 15:nl(c,d,y,b,u),ys(8,d);break;case 23:break;case 22:var M=d.stateNode;d.memoizedState!==null?M._visibility&2?nl(c,d,y,b,u):ms(c,d):(M._visibility|=2,nl(c,d,y,b,u)),u&&T&2048&&Io(d.alternate,d);break;case 24:nl(c,d,y,b,u),u&&T&2048&&Fo(d.alternate,d);break;default:nl(c,d,y,b,u)}n=n.sibling}}function ms(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,s=n,u=s.flags;switch(s.tag){case 22:ms(a,s),u&2048&&Io(s.alternate,s);break;case 24:ms(a,s),u&2048&&Fo(s.alternate,s);break;default:ms(a,s)}n=n.sibling}}var vs=8192;function il(e){if(e.subtreeFlags&vs)for(e=e.child;e!==null;)m0(e),e=e.sibling}function m0(e){switch(e.tag){case 26:il(e),e.flags&vs&&e.memoizedState!==null&&i1(yn,e.memoizedState,e.memoizedProps);break;case 5:il(e);break;case 3:case 4:var n=yn;yn=au(e.stateNode.containerInfo),il(e),yn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=vs,vs=16777216,il(e),vs=n):il(e));break;default:il(e)}}function v0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function bs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];re=s,g0(s,e)}v0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)b0(e),e=e.sibling}function b0(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Ti(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Xr(e)):bs(e);break;default:bs(e)}}function Xr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];re=s,g0(s,e)}v0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ti(8,n,n.return),Xr(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Xr(n));break;default:Xr(n)}e=e.sibling}}function g0(e,n){for(;re!==null;){var a=re;switch(a.tag){case 0:case 11:case 15:Ti(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ts(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,re=s;else t:for(a=e;re!==null;){s=re;var u=s.sibling,c=s.return;if(o0(s),s===a){re=null;break t}if(u!==null){u.return=c,re=u;break t}re=c}}}var gg={getCacheForType:function(e){var n=me(te),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},_g=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ct=null,ot=null,yt=0,Dt=0,Ge=null,Mi=!1,al=!1,jo=!1,ei=0,Kt=0,Ei=0,ma=0,Vo=0,sn=0,ll=0,gs=null,Me=null,Ho=!1,Yo=0,Zr=1/0,Kr=null,Ni=null,fe=0,Ui=null,sl=null,rl=0,qo=0,Go=null,_0=null,_s=0,Qo=null;function Qe(){if((Tt&2)!==0&&yt!==0)return yt&-yt;if(E.T!==null){var e=Ka;return e!==0?e:Wo()}return Cd()}function S0(){sn===0&&(sn=(yt&536870912)===0||bt?Rd():536870912);var e=ln.current;return e!==null&&(e.flags|=32),sn}function Xe(e,n,a){(e===Ct&&(Dt===2||Dt===9)||e.cancelPendingCommit!==null)&&(ul(e,0),Ri(e,yt,sn,!1)),Fl(e,a),((Tt&2)===0||e!==Ct)&&(e===Ct&&((Tt&2)===0&&(ma|=a),Kt===4&&Ri(e,yt,sn,!1)),Tn(e))}function A0(e,n,a){if((Tt&6)!==0)throw Error(r(327));var s=!a&&(n&124)===0&&(n&e.expiredLanes)===0||Il(e,n),u=s?wg(e,n):Ko(e,n,!0),c=s;do{if(u===0){al&&!s&&Ri(e,n,0,!1);break}else{if(a=e.current.alternate,c&&!Sg(a)){u=Ko(e,n,!1),c=!1;continue}if(u===2){if(c=n,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){n=d;t:{var y=e;u=gs;var b=y.current.memoizedState.isDehydrated;if(b&&(ul(y,d).flags|=256),d=Ko(y,d,!1),d!==2){if(jo&&!b){y.errorRecoveryDisabledLanes|=c,ma|=c,u=4;break t}c=Me,Me=u,c!==null&&(Me===null?Me=c:Me.push.apply(Me,c))}u=d}if(c=!1,u!==2)continue}}if(u===1){ul(e,0),Ri(e,n,0,!0);break}t:{switch(s=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ri(s,n,sn,!Mi);break t;case 2:Me=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=Yo+300-_n(),10<u)){if(Ri(s,n,sn,!Mi),lr(s,0,!0)!==0)break t;s.timeoutHandle=k0(w0.bind(null,s,a,Me,Kr,Ho,n,sn,ma,ll,Mi,c,2,-0,0),u);break t}w0(s,a,Me,Kr,Ho,n,sn,ma,ll,Mi,c,0,-0,0)}}break}while(!0);Tn(e)}function w0(e,n,a,s,u,c,d,y,b,T,M,U,D,B){if(e.timeoutHandle=-1,U=n.subtreeFlags,(U&8192||(U&16785408)===16785408)&&(Bs={stylesheets:null,count:0,unsuspend:n1},m0(n),U=a1(),U!==null)){e.cancelPendingCommit=U(N0.bind(null,e,n,c,a,s,u,d,y,b,M,1,D,B)),Ri(e,c,d,!T);return}N0(e,n,c,a,s,u,d,y,b)}function Sg(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!Ve(c(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ri(e,n,a,s){n&=~Vo,n&=~ma,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var u=n;0<u;){var c=31-je(u),d=1<<c;s[c]=-1,u&=~d}a!==0&&xd(e,a,n)}function Jr(){return(Tt&6)===0?(Ss(0),!1):!0}function Xo(){if(ot!==null){if(Dt===0)var e=ot.return;else e=ot,Zn=oa=null,uo(e),tl=null,fs=0,e=ot;for(;e!==null;)n0(e.alternate,e),e=e.return;ot=null}}function ul(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,jg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Xo(),Ct=e,ot=a=Gn(e.current,null),yt=n,Dt=0,Ge=null,Mi=!1,al=Il(e,n),jo=!1,ll=sn=Vo=ma=Ei=Kt=0,Me=gs=null,Ho=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var u=31-je(s),c=1<<u;n|=e[u],s&=~c}return ei=n,vr(),a}function O0(e,n){ut=null,E.H=Cr,n===ns||n===Dr?(n=Hh(),Dt=3):n===Fh?(n=Hh(),Dt=4):Dt=n===Yy?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Ge=n,ot===null&&(Kt=1,Hr(e,tn(n,e.current)))}function T0(){var e=E.H;return E.H=Cr,e===null?Cr:e}function D0(){var e=E.A;return E.A=gg,e}function Zo(){Kt=4,Mi||(yt&4194048)!==yt&&ln.current!==null||(al=!0),(Ei&134217727)===0&&(ma&134217727)===0||Ct===null||Ri(Ct,yt,sn,!1)}function Ko(e,n,a){var s=Tt;Tt|=2;var u=T0(),c=D0();(Ct!==e||yt!==n)&&(Kr=null,ul(e,n)),n=!1;var d=Kt;t:do try{if(Dt!==0&&ot!==null){var y=ot,b=Ge;switch(Dt){case 8:Xo(),d=6;break t;case 3:case 2:case 9:case 6:ln.current===null&&(n=!0);var T=Dt;if(Dt=0,Ge=null,cl(e,y,b,T),a&&al){d=0;break t}break;default:T=Dt,Dt=0,Ge=null,cl(e,y,b,T)}}Ag(),d=Kt;break}catch(M){O0(e,M)}while(!0);return n&&e.shellSuspendCounter++,Zn=oa=null,Tt=s,E.H=u,E.A=c,ot===null&&(Ct=null,yt=0,vr()),d}function Ag(){for(;ot!==null;)B0(ot)}function wg(e,n){var a=Tt;Tt|=2;var s=T0(),u=D0();Ct!==e||yt!==n?(Kr=null,Zr=_n()+500,ul(e,n)):al=Il(e,n);t:do try{if(Dt!==0&&ot!==null){n=ot;var c=Ge;e:switch(Dt){case 1:Dt=0,Ge=null,cl(e,n,c,1);break;case 2:case 9:if(jh(c)){Dt=0,Ge=null,M0(n);break}n=function(){Dt!==2&&Dt!==9||Ct!==e||(Dt=7),Tn(e)},c.then(n,n);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:jh(c)?(Dt=0,Ge=null,M0(n)):(Dt=0,Ge=null,cl(e,n,c,7));break;case 5:var d=null;switch(ot.tag){case 26:d=ot.memoizedState;case 5:case 27:var y=ot;if(!d||cp(d)){Dt=0,Ge=null;var b=y.sibling;if(b!==null)ot=b;else{var T=y.return;T!==null?(ot=T,$r(T)):ot=null}break e}}Dt=0,Ge=null,cl(e,n,c,5);break;case 6:Dt=0,Ge=null,cl(e,n,c,6);break;case 8:Xo(),Kt=6;break t;default:throw Error(r(462))}}Og();break}catch(M){O0(e,M)}while(!0);return Zn=oa=null,E.H=s,E.A=u,Tt=a,ot!==null?0:(Ct=null,yt=0,vr(),Kt)}function Og(){for(;ot!==null&&!Xv();)B0(ot)}function B0(e){var n=t0(e.alternate,e,ei);e.memoizedProps=e.pendingProps,n===null?$r(e):ot=n}function M0(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Ky(a,n,n.pendingProps,n.type,void 0,yt);break;case 11:n=Ky(a,n,n.pendingProps,n.type.render,n.ref,yt);break;case 5:uo(n);default:n0(a,n),n=ot=Eh(n,ei),n=t0(a,n,ei)}e.memoizedProps=e.pendingProps,n===null?$r(e):ot=n}function cl(e,n,a,s){Zn=oa=null,uo(n),tl=null,fs=0;var u=n.return;try{if(hg(e,u,n,a,yt)){Kt=1,Hr(e,tn(a,e.current)),ot=null;return}}catch(c){if(u!==null)throw ot=u,c;Kt=1,Hr(e,tn(a,e.current)),ot=null;return}n.flags&32768?(bt||s===1?e=!0:al||(yt&536870912)!==0?e=!1:(Mi=e=!0,(s===2||s===9||s===3||s===6)&&(s=ln.current,s!==null&&s.tag===13&&(s.flags|=16384))),E0(n,e)):$r(n)}function $r(e){var n=e;do{if((n.flags&32768)!==0){E0(n,Mi);return}e=n.return;var a=pg(n.alternate,n,ei);if(a!==null){ot=a;return}if(n=n.sibling,n!==null){ot=n;return}ot=n=e}while(n!==null);Kt===0&&(Kt=5)}function E0(e,n){do{var a=mg(e.alternate,e);if(a!==null){a.flags&=32767,ot=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){ot=e;return}ot=e=a}while(e!==null);Kt=6,ot=null}function N0(e,n,a,s,u,c,d,y,b){e.cancelPendingCommit=null;do kr();while(fe!==0);if((Tt&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(c=n.lanes|n.childLanes,c|=Ic,nb(e,a,c,d,y,b),e===Ct&&(ot=Ct=null,yt=0),sl=n,Ui=e,rl=a,qo=c,Go=u,_0=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Mg(nr,function(){return L0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=E.T,E.T=null,u=I.p,I.p=2,d=Tt,Tt|=4;try{vg(e,n,a)}finally{Tt=d,I.p=u,E.T=s}}fe=1,U0(),R0(),z0()}}function U0(){if(fe===1){fe=0;var e=Ui,n=sl,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=E.T,E.T=null;var s=I.p;I.p=2;var u=Tt;Tt|=4;try{h0(n,e);var c=rf,d=gh(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(d!==y&&y&&y.ownerDocument&&bh(y.ownerDocument.documentElement,y)){if(b!==null&&Rc(y)){var T=b.start,M=b.end;if(M===void 0&&(M=T),"selectionStart"in y)y.selectionStart=T,y.selectionEnd=Math.min(M,y.value.length);else{var U=y.ownerDocument||document,D=U&&U.defaultView||window;if(D.getSelection){var B=D.getSelection(),Z=y.textContent.length,q=Math.min(b.start,Z),Nt=b.end===void 0?q:Math.min(b.end,Z);!B.extend&&q>Nt&&(d=Nt,Nt=q,q=d);var S=vh(y,q),_=vh(y,Nt);if(S&&_&&(B.rangeCount!==1||B.anchorNode!==S.node||B.anchorOffset!==S.offset||B.focusNode!==_.node||B.focusOffset!==_.offset)){var O=U.createRange();O.setStart(S.node,S.offset),B.removeAllRanges(),q>Nt?(B.addRange(O),B.extend(_.node,_.offset)):(O.setEnd(_.node,_.offset),B.addRange(O))}}}}for(U=[],B=y;B=B.parentNode;)B.nodeType===1&&U.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<U.length;y++){var N=U[y];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}cu=!!sf,rf=sf=null}finally{Tt=u,I.p=s,E.T=a}}e.current=n,fe=2}}function R0(){if(fe===2){fe=0;var e=Ui,n=sl,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=E.T,E.T=null;var s=I.p;I.p=2;var u=Tt;Tt|=4;try{c0(e,n.alternate,n)}finally{Tt=u,I.p=s,E.T=a}}fe=3}}function z0(){if(fe===4||fe===3){fe=0,Zv();var e=Ui,n=sl,a=rl,s=_0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?fe=5:(fe=0,sl=Ui=null,x0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ni=null),fc(a),n=n.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(Cl,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=E.T,u=I.p,I.p=2,E.T=null;try{for(var c=e.onRecoverableError,d=0;d<s.length;d++){var y=s[d];c(y.value,{componentStack:y.stack})}}finally{E.T=n,I.p=u}}(rl&3)!==0&&kr(),Tn(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===Qo?_s++:(_s=0,Qo=e):_s=0,Ss(0)}}function x0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ts(n)))}function kr(e){return U0(),R0(),z0(),L0()}function L0(){if(fe!==5)return!1;var e=Ui,n=qo;qo=0;var a=fc(rl),s=E.T,u=I.p;try{I.p=32>a?32:a,E.T=null,a=Go,Go=null;var c=Ui,d=rl;if(fe=0,sl=Ui=null,rl=0,(Tt&6)!==0)throw Error(r(331));var y=Tt;if(Tt|=4,b0(c.current),p0(c,c.current,d,a),Tt=y,Ss(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(Cl,c)}catch{}return!0}finally{I.p=u,E.T=s,x0(e,n)}}function C0(e,n,a){n=tn(a,n),n=wo(e.stateNode,n,2),e=Si(e,n,2),e!==null&&(Fl(e,2),Tn(e))}function zt(e,n,a){if(e.tag===3)C0(e,e,a);else for(;n!==null;){if(n.tag===3){C0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ni===null||!Ni.has(s))){e=tn(a,e),a=Vy(2),s=Si(n,a,2),s!==null&&(Hy(a,s,n,e),Fl(s,2),Tn(s));break}}n=n.return}}function Jo(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new _g;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(a)||(jo=!0,u.add(a),e=Tg.bind(null,e,n,a),n.then(e,e))}function Tg(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ct===e&&(yt&a)===a&&(Kt===4||Kt===3&&(yt&62914560)===yt&&300>_n()-Yo?(Tt&2)===0&&ul(e,0):Vo|=a,ll===yt&&(ll=0)),Tn(e)}function I0(e,n){n===0&&(n=zd()),e=Ga(e,n),e!==null&&(Fl(e,n),Tn(e))}function Dg(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),I0(e,a)}function Bg(e,n){var a=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),I0(e,a)}function Mg(e,n){return rc(e,n)}var Wr=null,ol=null,$o=!1,Pr=!1,ko=!1,va=0;function Tn(e){e!==ol&&e.next===null&&(ol===null?Wr=ol=e:ol=ol.next=e),Pr=!0,$o||($o=!0,Ng())}function Ss(e,n){if(!ko&&Pr){ko=!0;do for(var a=!1,s=Wr;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var d=s.suspendedLanes,y=s.pingedLanes;c=(1<<31-je(42|e)+1)-1,c&=u&~(d&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,H0(s,c))}else c=yt,c=lr(s,s===Ct?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Il(s,c)||(a=!0,H0(s,c));s=s.next}while(a);ko=!1}}function Eg(){F0()}function F0(){Pr=$o=!1;var e=0;va!==0&&(Fg()&&(e=va),va=0);for(var n=_n(),a=null,s=Wr;s!==null;){var u=s.next,c=j0(s,n);c===0?(s.next=null,a===null?Wr=u:a.next=u,u===null&&(ol=a)):(a=s,(e!==0||(c&3)!==0)&&(Pr=!0)),s=u}Ss(e)}function j0(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-je(c),y=1<<d,b=u[d];b===-1?((y&a)===0||(y&s)!==0)&&(u[d]=eb(y,n)):b<=n&&(e.expiredLanes|=y),c&=~y}if(n=Ct,a=yt,a=lr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===n&&(Dt===2||Dt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&uc(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Il(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(s!==null&&uc(s),fc(a)){case 2:case 8:a=Nd;break;case 32:a=nr;break;case 268435456:a=Ud;break;default:a=nr}return s=V0.bind(null,e),a=rc(a,s),e.callbackPriority=n,e.callbackNode=a,n}return s!==null&&s!==null&&uc(s),e.callbackPriority=2,e.callbackNode=null,2}function V0(e,n){if(fe!==0&&fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(kr()&&e.callbackNode!==a)return null;var s=yt;return s=lr(e,e===Ct?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(A0(e,s,n),j0(e,_n()),e.callbackNode!=null&&e.callbackNode===a?V0.bind(null,e):null)}function H0(e,n){if(kr())return null;A0(e,n,!0)}function Ng(){Vg(function(){(Tt&6)!==0?rc(Ed,Eg):F0()})}function Wo(){return va===0&&(va=Rd()),va}function Y0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:or(""+e)}function q0(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function Ug(e,n,a,s,u){if(n==="submit"&&a&&a.stateNode===u){var c=Y0((u[Oe]||null).action),d=s.submitter;d&&(n=(n=d[Oe]||null)?Y0(n.formAction):d.getAttribute("formAction"),n!==null&&(c=n,d=null));var y=new yr("action","action",null,s,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(va!==0){var b=d?q0(u,d):new FormData(u);bo(a,{pending:!0,data:b,method:u.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=d?q0(u,d):new FormData(u),bo(a,{pending:!0,data:b,method:u.method,action:c},c,b))},currentTarget:u}]})}}for(var Po=0;Po<Cc.length;Po++){var tf=Cc[Po],Rg=tf.toLowerCase(),zg=tf[0].toUpperCase()+tf.slice(1);hn(Rg,"on"+zg)}hn(Ah,"onAnimationEnd"),hn(wh,"onAnimationIteration"),hn(Oh,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn($b,"onTransitionRun"),hn(kb,"onTransitionStart"),hn(Wb,"onTransitionCancel"),hn(Th,"onTransitionEnd"),xa("onMouseEnter",["mouseout","mouseover"]),xa("onMouseLeave",["mouseout","mouseover"]),xa("onPointerEnter",["pointerout","pointerover"]),xa("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="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(" "),xg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function G0(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],u=s.event;s=s.listeners;t:{var c=void 0;if(n)for(var d=s.length-1;0<=d;d--){var y=s[d],b=y.instance,T=y.currentTarget;if(y=y.listener,b!==c&&u.isPropagationStopped())break t;c=y,u.currentTarget=T;try{c(u)}catch(M){Vr(M)}u.currentTarget=null,c=b}else for(d=0;d<s.length;d++){if(y=s[d],b=y.instance,T=y.currentTarget,y=y.listener,b!==c&&u.isPropagationStopped())break t;c=y,u.currentTarget=T;try{c(u)}catch(M){Vr(M)}u.currentTarget=null,c=b}}}}function ft(e,n){var a=n[dc];a===void 0&&(a=n[dc]=new Set);var s=e+"__bubble";a.has(s)||(Q0(n,e,2,!1),a.add(s))}function ef(e,n,a){var s=0;n&&(s|=4),Q0(a,e,s,n)}var tu="_reactListening"+Math.random().toString(36).slice(2);function nf(e){if(!e[tu]){e[tu]=!0,Fd.forEach(function(a){a!=="selectionchange"&&(xg.has(a)||ef(a,!1,e),ef(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[tu]||(n[tu]=!0,ef("selectionchange",!1,n))}}function Q0(e,n,a,s){switch(pp(n)){case 2:var u=r1;break;case 8:u=u1;break;default:u=vf}a=u.bind(null,n,a,e),u=void 0,!wc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function af(e,n,a,s,u){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)t:for(;;){if(s===null)return;var d=s.tag;if(d===3||d===4){var y=s.stateNode.containerInfo;if(y===u)break;if(d===4)for(d=s.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;y!==null;){if(d=Ua(y),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){s=c=d;continue t}y=y.parentNode}}s=s.return}Wd(function(){var T=c,M=Sc(a),U=[];t:{var D=Dh.get(e);if(D!==void 0){var B=yr,Z=e;switch(e){case"keypress":if(dr(a)===0)break t;case"keydown":case"keyup":B=Mb;break;case"focusin":Z="focus",B=Bc;break;case"focusout":Z="blur",B=Bc;break;case"beforeblur":case"afterblur":B=Bc;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=mb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Ub;break;case Ah:case wh:case Oh:B=gb;break;case Th:B=zb;break;case"scroll":case"scrollend":B=yb;break;case"wheel":B=Lb;break;case"copy":case"cut":case"paste":B=Sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=ih;break;case"toggle":case"beforetoggle":B=Ib}var q=(n&4)!==0,Nt=!q&&(e==="scroll"||e==="scrollend"),S=q?D!==null?D+"Capture":null:D;q=[];for(var _=T,O;_!==null;){var N=_;if(O=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||O===null||S===null||(N=Hl(_,S),N!=null&&q.push(ws(_,N,O))),Nt)break;_=_.return}0<q.length&&(D=new B(D,Z,null,a,M),U.push({event:D,listeners:q}))}}if((n&7)===0){t:{if(D=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",D&&a!==_c&&(Z=a.relatedTarget||a.fromElement)&&(Ua(Z)||Z[Na]))break t;if((B||D)&&(D=M.window===M?M:(D=M.ownerDocument)?D.defaultView||D.parentWindow:window,B?(Z=a.relatedTarget||a.toElement,B=T,Z=Z?Ua(Z):null,Z!==null&&(Nt=f(Z),q=Z.tag,Z!==Nt||q!==5&&q!==27&&q!==6)&&(Z=null)):(B=null,Z=T),B!==Z)){if(q=eh,N="onMouseLeave",S="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(q=ih,N="onPointerLeave",S="onPointerEnter",_="pointer"),Nt=B==null?D:Vl(B),O=Z==null?D:Vl(Z),D=new q(N,_+"leave",B,a,M),D.target=Nt,D.relatedTarget=O,N=null,Ua(M)===T&&(q=new q(S,_+"enter",Z,a,M),q.target=O,q.relatedTarget=Nt,N=q),Nt=N,B&&Z)e:{for(q=B,S=Z,_=0,O=q;O;O=fl(O))_++;for(O=0,N=S;N;N=fl(N))O++;for(;0<_-O;)q=fl(q),_--;for(;0<O-_;)S=fl(S),O--;for(;_--;){if(q===S||S!==null&&q===S.alternate)break e;q=fl(q),S=fl(S)}q=null}else q=null;B!==null&&X0(U,D,B,q,!1),Z!==null&&Nt!==null&&X0(U,Nt,Z,q,!0)}}t:{if(D=T?Vl(T):window,B=D.nodeName&&D.nodeName.toLowerCase(),B==="select"||B==="input"&&D.type==="file")var V=fh;else if(ch(D))if(dh)V=Zb;else{V=Qb;var ct=Gb}else B=D.nodeName,!B||B.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?T&&gc(T.elementType)&&(V=fh):V=Xb;if(V&&(V=V(e,T))){oh(U,V,a,M);break t}ct&&ct(e,D,T),e==="focusout"&&T&&D.type==="number"&&T.memoizedProps.value!=null&&bc(D,"number",D.value)}switch(ct=T?Vl(T):window,e){case"focusin":(ch(ct)||ct.contentEditable==="true")&&(Ha=ct,zc=T,Jl=null);break;case"focusout":Jl=zc=Ha=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,_h(U,a,M);break;case"selectionchange":if(Jb)break;case"keydown":case"keyup":_h(U,a,M)}var H;if(Ec)t:{switch(e){case"compositionstart":var Q="onCompositionStart";break t;case"compositionend":Q="onCompositionEnd";break t;case"compositionupdate":Q="onCompositionUpdate";break t}Q=void 0}else Va?rh(e,a)&&(Q="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Q="onCompositionStart");Q&&(ah&&a.locale!=="ko"&&(Va||Q!=="onCompositionStart"?Q==="onCompositionEnd"&&Va&&(H=Pd()):(vi=M,Oc="value"in vi?vi.value:vi.textContent,Va=!0)),ct=eu(T,Q),0<ct.length&&(Q=new nh(Q,e,null,a,M),U.push({event:Q,listeners:ct}),H?Q.data=H:(H=uh(a),H!==null&&(Q.data=H)))),(H=jb?Vb(e,a):Hb(e,a))&&(Q=eu(T,"onBeforeInput"),0<Q.length&&(ct=new nh("onBeforeInput","beforeinput",null,a,M),U.push({event:ct,listeners:Q}),ct.data=H)),Ug(U,e,T,a,M)}G0(U,n)})}function ws(e,n,a){return{instance:e,listener:n,currentTarget:a}}function eu(e,n){for(var a=n+"Capture",s=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Hl(e,a),u!=null&&s.unshift(ws(e,u,c)),u=Hl(e,n),u!=null&&s.push(ws(e,u,c))),e.tag===3)return s;e=e.return}return[]}function fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function X0(e,n,a,s,u){for(var c=n._reactName,d=[];a!==null&&a!==s;){var y=a,b=y.alternate,T=y.stateNode;if(y=y.tag,b!==null&&b===s)break;y!==5&&y!==26&&y!==27||T===null||(b=T,u?(T=Hl(a,c),T!=null&&d.unshift(ws(a,T,b))):u||(T=Hl(a,c),T!=null&&d.push(ws(a,T,b)))),a=a.return}d.length!==0&&e.push({event:n,listeners:d})}var Lg=/\r\n?/g,Cg=/\u0000|\uFFFD/g;function Z0(e){return(typeof e=="string"?e:""+e).replace(Lg,`
`).replace(Cg,"")}function K0(e,n){return n=Z0(n),Z0(e)===n}function nu(){}function Et(e,n,a,s,u,c){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ia(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ia(e,""+s);break;case"className":rr(e,"class",s);break;case"tabIndex":rr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":rr(e,a,s);break;case"style":$d(e,s,c);break;case"data":if(n!=="object"){rr(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=or(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(n!=="input"&&Et(e,n,"name",u.name,u,null),Et(e,n,"formEncType",u.formEncType,u,null),Et(e,n,"formMethod",u.formMethod,u,null),Et(e,n,"formTarget",u.formTarget,u,null)):(Et(e,n,"encType",u.encType,u,null),Et(e,n,"method",u.method,u,null),Et(e,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=or(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=nu);break;case"onScroll":s!=null&&ft("scroll",e);break;case"onScrollEnd":s!=null&&ft("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=or(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":ft("beforetoggle",e),ft("toggle",e),sr(e,"popover",s);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":sr(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=db.get(a)||a,sr(e,a,s))}}function lf(e,n,a,s,u,c){switch(a){case"style":$d(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Ia(e,s):(typeof s=="number"||typeof s=="bigint")&&Ia(e,""+s);break;case"onScroll":s!=null&&ft("scroll",e);break;case"onScrollEnd":s!=null&&ft("scrollend",e);break;case"onClick":s!=null&&(e.onclick=nu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),c=e[Oe]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(n,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,s,u);break t}a in e?e[a]=s:s===!0?e.setAttribute(a,""):sr(e,a,s)}}}function de(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Et(e,n,c,d,a,null)}}u&&Et(e,n,"srcSet",a.srcSet,a,null),s&&Et(e,n,"src",a.src,a,null);return;case"input":ft("invalid",e);var y=c=d=u=null,b=null,T=null;for(s in a)if(a.hasOwnProperty(s)){var M=a[s];if(M!=null)switch(s){case"name":u=M;break;case"type":d=M;break;case"checked":b=M;break;case"defaultChecked":T=M;break;case"value":c=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,n));break;default:Et(e,n,s,M,a,null)}}Xd(e,c,y,b,T,d,u,!1),ur(e);return;case"select":ft("invalid",e),s=d=c=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":c=y;break;case"defaultValue":d=y;break;case"multiple":s=y;default:Et(e,n,u,y,a,null)}n=c,a=d,e.multiple=!!s,n!=null?Ca(e,!!s,n,!1):a!=null&&Ca(e,!!s,a,!0);return;case"textarea":ft("invalid",e),c=u=s=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":s=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:Et(e,n,d,y,a,null)}Kd(e,s,u,c),ur(e);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(s=a[b],s!=null))switch(b){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Et(e,n,b,s,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(s=0;s<As.length;s++)ft(As[s],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in a)if(a.hasOwnProperty(T)&&(s=a[T],s!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Et(e,n,T,s,a,null)}return;default:if(gc(n)){for(M in a)a.hasOwnProperty(M)&&(s=a[M],s!==void 0&&lf(e,n,M,s,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(s=a[y],s!=null&&Et(e,n,y,s,a,null))}function Ig(e,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,d=null,y=null,b=null,T=null,M=null;for(B in a){var U=a[B];if(a.hasOwnProperty(B)&&U!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":b=U;default:s.hasOwnProperty(B)||Et(e,n,B,null,s,U)}}for(var D in s){var B=s[D];if(U=a[D],s.hasOwnProperty(D)&&(B!=null||U!=null))switch(D){case"type":c=B;break;case"name":u=B;break;case"checked":T=B;break;case"defaultChecked":M=B;break;case"value":d=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,n));break;default:B!==U&&Et(e,n,D,B,s,U)}}vc(e,d,y,b,T,M,c,u);return;case"select":B=d=y=D=null;for(c in a)if(b=a[c],a.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":B=b;default:s.hasOwnProperty(c)||Et(e,n,c,null,s,b)}for(u in s)if(c=s[u],b=a[u],s.hasOwnProperty(u)&&(c!=null||b!=null))switch(u){case"value":D=c;break;case"defaultValue":y=c;break;case"multiple":d=c;default:c!==b&&Et(e,n,u,c,s,b)}n=y,a=d,s=B,D!=null?Ca(e,!!a,D,!1):!!s!=!!a&&(n!=null?Ca(e,!!a,n,!0):Ca(e,!!a,a?[]:"",!1));return;case"textarea":B=D=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!s.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Et(e,n,y,null,s,u)}for(d in s)if(u=s[d],c=a[d],s.hasOwnProperty(d)&&(u!=null||c!=null))switch(d){case"value":D=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Et(e,n,d,u,s,c)}Zd(e,D,B);return;case"option":for(var Z in a)if(D=a[Z],a.hasOwnProperty(Z)&&D!=null&&!s.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:Et(e,n,Z,null,s,D)}for(b in s)if(D=s[b],B=a[b],s.hasOwnProperty(b)&&D!==B&&(D!=null||B!=null))switch(b){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Et(e,n,b,D,s,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var q in a)D=a[q],a.hasOwnProperty(q)&&D!=null&&!s.hasOwnProperty(q)&&Et(e,n,q,null,s,D);for(T in s)if(D=s[T],B=a[T],s.hasOwnProperty(T)&&D!==B&&(D!=null||B!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,n));break;default:Et(e,n,T,D,s,B)}return;default:if(gc(n)){for(var Nt in a)D=a[Nt],a.hasOwnProperty(Nt)&&D!==void 0&&!s.hasOwnProperty(Nt)&&lf(e,n,Nt,void 0,s,D);for(M in s)D=s[M],B=a[M],!s.hasOwnProperty(M)||D===B||D===void 0&&B===void 0||lf(e,n,M,D,s,B);return}}for(var S in a)D=a[S],a.hasOwnProperty(S)&&D!=null&&!s.hasOwnProperty(S)&&Et(e,n,S,null,s,D);for(U in s)D=s[U],B=a[U],!s.hasOwnProperty(U)||D===B||D==null&&B==null||Et(e,n,U,D,s,B)}var sf=null,rf=null;function iu(e){return e.nodeType===9?e:e.ownerDocument}function J0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function uf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var cf=null;function Fg(){var e=window.event;return e&&e.type==="popstate"?e===cf?!1:(cf=e,!0):(cf=null,!1)}var k0=typeof setTimeout=="function"?setTimeout:void 0,jg=typeof clearTimeout=="function"?clearTimeout:void 0,W0=typeof Promise=="function"?Promise:void 0,Vg=typeof queueMicrotask=="function"?queueMicrotask:typeof W0<"u"?function(e){return W0.resolve(null).then(e).catch(Hg)}:k0;function Hg(e){setTimeout(function(){throw e})}function zi(e){return e==="head"}function P0(e,n){var a=n,s=0,u=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<s&&8>s){a=s;var d=e.ownerDocument;if(a&1&&Os(d.documentElement),a&2&&Os(d.body),a&4)for(a=d.head,Os(a),d=a.firstChild;d;){var y=d.nextSibling,b=d.nodeName;d[jl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=y}}if(u===0){e.removeChild(c),Rs(n);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Rs(n)}function of(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":of(a),hc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Yg(e,n,a,s){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[jl])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=pn(e.nextSibling),e===null)break}return null}function qg(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=pn(e.nextSibling),e===null))return null;return e}function ff(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Gg(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function pn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var df=null;function tp(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function ep(e,n,a){switch(n=iu(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Os(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);hc(e)}var rn=new Map,np=new Set;function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=I.d;I.d={f:Qg,r:Xg,D:Zg,C:Kg,L:Jg,m:$g,X:Wg,S:kg,M:Pg};function Qg(){var e=ni.f(),n=Jr();return e||n}function Xg(e){var n=Ra(e);n!==null&&n.tag===5&&n.type==="form"?Ay(n):ni.r(e)}var dl=typeof document>"u"?null:document;function ip(e,n,a){var s=dl;if(s&&typeof n=="string"&&n){var u=Pe(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),np.has(u)||(np.add(u),e={rel:e,crossOrigin:a,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),de(n,"link",e),le(n),s.head.appendChild(n)))}}function Zg(e){ni.D(e),ip("dns-prefetch",e,null)}function Kg(e,n){ni.C(e,n),ip("preconnect",e,n)}function Jg(e,n,a){ni.L(e,n,a);var s=dl;if(s&&e&&n){var u='link[rel="preload"][as="'+Pe(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Pe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Pe(a.imageSizes)+'"]')):u+='[href="'+Pe(e)+'"]';var c=u;switch(n){case"style":c=hl(e);break;case"script":c=yl(e)}rn.has(c)||(e=w({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),rn.set(c,e),s.querySelector(u)!==null||n==="style"&&s.querySelector(Ts(c))||n==="script"&&s.querySelector(Ds(c))||(n=s.createElement("link"),de(n,"link",e),le(n),s.head.appendChild(n)))}}function $g(e,n){ni.m(e,n);var a=dl;if(a&&e){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Pe(s)+'"][href="'+Pe(e)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=yl(e)}if(!rn.has(c)&&(e=w({rel:"modulepreload",href:e},n),rn.set(c,e),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ds(c)))return}s=a.createElement("link"),de(s,"link",e),le(s),a.head.appendChild(s)}}}function kg(e,n,a){ni.S(e,n,a);var s=dl;if(s&&e){var u=za(s).hoistableStyles,c=hl(e);n=n||"default";var d=u.get(c);if(!d){var y={loading:0,preload:null};if(d=s.querySelector(Ts(c)))y.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":n},a),(a=rn.get(c))&&hf(e,a);var b=d=s.createElement("link");le(b),de(b,"link",e),b._p=new Promise(function(T,M){b.onload=T,b.onerror=M}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,lu(d,n,s)}d={type:"stylesheet",instance:d,count:1,state:y},u.set(c,d)}}}function Wg(e,n){ni.X(e,n);var a=dl;if(a&&e){var s=za(a).hoistableScripts,u=yl(e),c=s.get(u);c||(c=a.querySelector(Ds(u)),c||(e=w({src:e,async:!0},n),(n=rn.get(u))&&yf(e,n),c=a.createElement("script"),le(c),de(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function Pg(e,n){ni.M(e,n);var a=dl;if(a&&e){var s=za(a).hoistableScripts,u=yl(e),c=s.get(u);c||(c=a.querySelector(Ds(u)),c||(e=w({src:e,async:!0,type:"module"},n),(n=rn.get(u))&&yf(e,n),c=a.createElement("script"),le(c),de(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function ap(e,n,a,s){var u=(u=J.current)?au(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=hl(a.href),a=za(u).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=hl(a.href);var c=za(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Ts(e)))&&!c._p&&(d.instance=c,d.state.loading=5),rn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(e,a),c||t1(u,e,a,d.state))),n&&s===null)throw Error(r(528,""));return d}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=yl(a),a=za(u).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function hl(e){return'href="'+Pe(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function lp(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function t1(e,n,a,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),de(n,"link",a),le(n),e.head.appendChild(n))}function yl(e){return'[src="'+Pe(e)+'"]'}function Ds(e){return"script[async]"+e}function sp(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Pe(a.href)+'"]');if(s)return n.instance=s,le(s),s;var u=w({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),le(s),de(s,"style",u),lu(s,a.precedence,e),n.instance=s;case"stylesheet":u=hl(a.href);var c=e.querySelector(Ts(u));if(c)return n.state.loading|=4,n.instance=c,le(c),c;s=lp(a),(u=rn.get(u))&&hf(s,u),c=(e.ownerDocument||e).createElement("link"),le(c);var d=c;return d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),de(c,"link",s),n.state.loading|=4,lu(c,a.precedence,e),n.instance=c;case"script":return c=yl(a.src),(u=e.querySelector(Ds(c)))?(n.instance=u,le(u),u):(s=a,(u=rn.get(c))&&(s=w({},a),yf(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),le(u),de(u,"link",s),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,lu(s,a.precedence,e));return n.instance}function lu(e,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,d=0;d<s.length;d++){var y=s[d];if(y.dataset.precedence===n)c=y;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function hf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function yf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var su=null;function rp(e,n,a){if(su===null){var s=new Map,u=su=new Map;u.set(a,s)}else u=su,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[jl]||c[pe]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(n)||"";d=e+d;var y=s.get(d);y?y.push(c):s.set(d,[c])}}return s}function up(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function e1(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function cp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Bs=null;function n1(){}function i1(e,n,a){if(Bs===null)throw Error(r(475));var s=Bs;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=hl(a.href),c=e.querySelector(Ts(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ru.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=c,le(c);return}c=e.ownerDocument||e,a=lp(a),(u=rn.get(u))&&hf(a,u),c=c.createElement("link"),le(c);var d=c;d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),de(c,"link",a),n.instance=c}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=ru.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function a1(){if(Bs===null)throw Error(r(475));var e=Bs;return e.stylesheets&&e.count===0&&pf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&pf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function ru(){if(this.count--,this.count===0){if(this.stylesheets)pf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uu=null;function pf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uu=new Map,n.forEach(l1,e),uu=null,ru.call(e))}function l1(e,n){if(!(n.state.loading&4)){var a=uu.get(e);if(a)var s=a.get(null);else{a=new Map,uu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var d=u[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),s=d)}s&&a.set(null,s)}u=n.instance,d=u.getAttribute("data-precedence"),c=a.get(d)||s,c===s&&a.set(null,u),a.set(d,u),this.count++,s=ru.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Ms={$$typeof:pt,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function s1(e,n,a,s,u,c,d,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cc(0),this.hiddenUpdates=cc(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function op(e,n,a,s,u,c,d,y,b,T,M,U){return e=new s1(e,n,a,d,y,b,T,U),n=1,c===!0&&(n|=24),c=He(3,null,null,n),e.current=c,c.stateNode=e,n=Kc(),n.refCount++,e.pooledCache=n,n.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:n},Wc(c),e}function fp(e){return e?(e=Qa,e):Qa}function dp(e,n,a,s,u,c){u=fp(u),s.context===null?s.context=u:s.pendingContext=u,s=_i(n),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Si(e,s,n),a!==null&&(Xe(a,e,n),as(a,e,n))}function hp(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function mf(e,n){hp(e,n),(e=e.alternate)&&hp(e,n)}function yp(e){if(e.tag===13){var n=Ga(e,67108864);n!==null&&Xe(n,e,67108864),mf(e,67108864)}}var cu=!0;function r1(e,n,a,s){var u=E.T;E.T=null;var c=I.p;try{I.p=2,vf(e,n,a,s)}finally{I.p=c,E.T=u}}function u1(e,n,a,s){var u=E.T;E.T=null;var c=I.p;try{I.p=8,vf(e,n,a,s)}finally{I.p=c,E.T=u}}function vf(e,n,a,s){if(cu){var u=bf(s);if(u===null)af(e,n,s,ou,a),mp(e,s);else if(o1(u,e,n,a,s))s.stopPropagation();else if(mp(e,s),n&4&&-1<c1.indexOf(e)){for(;u!==null;){var c=Ra(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=ta(c.pendingLanes);if(d!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var b=1<<31-je(d);y.entanglements[1]|=b,d&=~b}Tn(c),(Tt&6)===0&&(Zr=_n()+500,Ss(0))}}break;case 13:y=Ga(c,2),y!==null&&Xe(y,c,2),Jr(),mf(c,2)}if(c=bf(s),c===null&&af(e,n,s,ou,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else af(e,n,s,null,a)}}function bf(e){return e=Sc(e),gf(e)}var ou=null;function gf(e){if(ou=null,e=Ua(e),e!==null){var n=f(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=h(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ou=e,null}function pp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kv()){case Ed:return 2;case Nd:return 8;case nr:case Jv:return 32;case Ud:return 268435456;default:return 32}default:return 32}}var _f=!1,xi=null,Li=null,Ci=null,Es=new Map,Ns=new Map,Ii=[],c1="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".split(" ");function mp(e,n){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":Es.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Us(e,n,a,s,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},n!==null&&(n=Ra(n),n!==null&&yp(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function o1(e,n,a,s,u){switch(n){case"focusin":return xi=Us(xi,e,n,a,s,u),!0;case"dragenter":return Li=Us(Li,e,n,a,s,u),!0;case"mouseover":return Ci=Us(Ci,e,n,a,s,u),!0;case"pointerover":var c=u.pointerId;return Es.set(c,Us(Es.get(c)||null,e,n,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,Ns.set(c,Us(Ns.get(c)||null,e,n,a,s,u)),!0}return!1}function vp(e){var n=Ua(e.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=h(a),n!==null){e.blockedOn=n,ib(e.priority,function(){if(a.tag===13){var s=Qe();s=oc(s);var u=Ga(a,s);u!==null&&Xe(u,a,s),mf(a,s)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=bf(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);_c=s,a.target.dispatchEvent(s),_c=null}else return n=Ra(a),n!==null&&yp(n),e.blockedOn=a,!1;n.shift()}return!0}function bp(e,n,a){fu(e)&&a.delete(n)}function f1(){_f=!1,xi!==null&&fu(xi)&&(xi=null),Li!==null&&fu(Li)&&(Li=null),Ci!==null&&fu(Ci)&&(Ci=null),Es.forEach(bp),Ns.forEach(bp)}function du(e,n){e.blockedOn===n&&(e.blockedOn=null,_f||(_f=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,f1)))}var hu=null;function gp(e){hu!==e&&(hu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var n=0;n<e.length;n+=3){var a=e[n],s=e[n+1],u=e[n+2];if(typeof s!="function"){if(gf(s||a)===null)continue;break}var c=Ra(a);c!==null&&(e.splice(n,3),n-=3,bo(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function Rs(e){function n(b){return du(b,e)}xi!==null&&du(xi,e),Li!==null&&du(Li,e),Ci!==null&&du(Ci,e),Es.forEach(n),Ns.forEach(n);for(var a=0;a<Ii.length;a++){var s=Ii[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ii.length&&(a=Ii[0],a.blockedOn===null);)vp(a),a.blockedOn===null&&Ii.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],d=u[Oe]||null;if(typeof c=="function")d||gp(a);else if(d){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,d=c[Oe]||null)y=d.formAction;else if(gf(u)!==null)continue}else y=d.action;typeof y=="function"?a[s+1]=y:(a.splice(s,3),s-=3),gp(a)}}}function Sf(e){this._internalRoot=e}yu.prototype.render=Sf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,s=Qe();dp(a,s,e,n,null,null)},yu.prototype.unmount=Sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;dp(e.current,2,null,e,null,null),Jr(),n[Na]=null}};function yu(e){this._internalRoot=e}yu.prototype.unstable_scheduleHydration=function(e){if(e){var n=Cd();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ii.length&&n!==0&&n<Ii[a].priority;a++);Ii.splice(a,0,e),a===0&&vp(e)}};var _p=t.version;if(_p!=="19.1.0")throw Error(r(527,_p,"19.1.0"));I.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var d1={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pu.isDisabled&&pu.supportsFiber)try{Cl=pu.inject(d1),Fe=pu}catch{}}return xs.createRoot=function(e,n){if(!o(e))throw Error(r(299));var a=!1,s="",u=Cy,c=Iy,d=Fy,y=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(y=n.unstable_transitionCallbacks)),n=op(e,1,!1,null,null,a,s,u,c,d,y,null),e[Na]=n.current,nf(e),new Sf(n)},xs.hydrateRoot=function(e,n,a){if(!o(e))throw Error(r(299));var s=!1,u="",c=Cy,d=Iy,y=Fy,b=null,T=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(b=a.unstable_transitionCallbacks),a.formState!==void 0&&(T=a.formState)),n=op(e,1,!0,n,a??null,s,u,c,d,y,b,T),n.context=fp(null),a=n.current,s=Qe(),s=oc(s),u=_i(s),u.callback=null,Si(a,u,s),a=s,n.current.lanes=a,Fl(n,a),Tn(n),e[Na]=n.current,nf(e),new yu(n)},xs.version="19.1.0",xs}var Np;function A1(){if(Np)return wf.exports;Np=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(t){console.error(t)}}return l(),wf.exports=S1(),wf.exports}var w1=A1();const O1=Wf(w1);var If=Pf();const ml=Wf(If);var Mf={exports:{}},St={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Up;function T1(){if(Up)return St;Up=1;var l=typeof Symbol=="function"&&Symbol.for,t=l?Symbol.for("react.element"):60103,i=l?Symbol.for("react.portal"):60106,r=l?Symbol.for("react.fragment"):60107,o=l?Symbol.for("react.strict_mode"):60108,f=l?Symbol.for("react.profiler"):60114,h=l?Symbol.for("react.provider"):60109,p=l?Symbol.for("react.context"):60110,m=l?Symbol.for("react.async_mode"):60111,v=l?Symbol.for("react.concurrent_mode"):60111,w=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,L=l?Symbol.for("react.suspense_list"):60120,F=l?Symbol.for("react.memo"):60115,G=l?Symbol.for("react.lazy"):60116,Ut=l?Symbol.for("react.block"):60121,jt=l?Symbol.for("react.fundamental"):60117,Xt=l?Symbol.for("react.responder"):60118,ae=l?Symbol.for("react.scope"):60119;function pt(x){if(typeof x=="object"&&x!==null){var Vt=x.$$typeof;switch(Vt){case t:switch(x=x.type,x){case m:case v:case r:case f:case o:case z:return x;default:switch(x=x&&x.$$typeof,x){case p:case w:case G:case F:case h:return x;default:return Vt}}case i:return Vt}}}function ce(x){return pt(x)===v}return St.AsyncMode=m,St.ConcurrentMode=v,St.ContextConsumer=p,St.ContextProvider=h,St.Element=t,St.ForwardRef=w,St.Fragment=r,St.Lazy=G,St.Memo=F,St.Portal=i,St.Profiler=f,St.StrictMode=o,St.Suspense=z,St.isAsyncMode=function(x){return ce(x)||pt(x)===m},St.isConcurrentMode=ce,St.isContextConsumer=function(x){return pt(x)===p},St.isContextProvider=function(x){return pt(x)===h},St.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},St.isForwardRef=function(x){return pt(x)===w},St.isFragment=function(x){return pt(x)===r},St.isLazy=function(x){return pt(x)===G},St.isMemo=function(x){return pt(x)===F},St.isPortal=function(x){return pt(x)===i},St.isProfiler=function(x){return pt(x)===f},St.isStrictMode=function(x){return pt(x)===o},St.isSuspense=function(x){return pt(x)===z},St.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===v||x===f||x===o||x===z||x===L||typeof x=="object"&&x!==null&&(x.$$typeof===G||x.$$typeof===F||x.$$typeof===h||x.$$typeof===p||x.$$typeof===w||x.$$typeof===jt||x.$$typeof===Xt||x.$$typeof===ae||x.$$typeof===Ut)},St.typeOf=pt,St}var Rp;function D1(){return Rp||(Rp=1,Mf.exports=T1()),Mf.exports}var Ef,zp;function B1(){if(zp)return Ef;zp=1;var l=D1(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[l.ForwardRef]=r,f[l.Memo]=o;function h(G){return l.isMemo(G)?o:f[G.$$typeof]||t}var p=Object.defineProperty,m=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,L=Object.prototype;function F(G,Ut,jt){if(typeof Ut!="string"){if(L){var Xt=z(Ut);Xt&&Xt!==L&&F(G,Xt,jt)}var ae=m(Ut);v&&(ae=ae.concat(v(Ut)));for(var pt=h(G),ce=h(Ut),x=0;x<ae.length;++x){var Vt=ae[x];if(!i[Vt]&&!(jt&&jt[Vt])&&!(ce&&ce[Vt])&&!(pt&&pt[Vt])){var be=w(Ut,Vt);try{p(G,Vt,be)}catch{}}}}return G}return Ef=F,Ef}var M1=B1();const E1=Wf(M1);function K(l,t,i,r){function o(f){return f instanceof i?f:new i(function(h){h(f)})}return new(i||(i=Promise))(function(f,h){function p(w){try{v(r.next(w))}catch(z){h(z)}}function m(w){try{v(r.throw(w))}catch(z){h(z)}}function v(w){w.done?f(w.value):o(w.value).then(p,m)}v((r=r.apply(l,t||[])).next())})}function xp(l){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&l[t],r=0;if(i)return i.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&r>=l.length&&(l=void 0),{value:l&&l[r++],done:!l}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function st(l){return this instanceof st?(this.v=l,this):new st(l)}function Cn(l,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=i.apply(l,t||[]),o,f=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),p("next"),p("throw"),p("return",h),o[Symbol.asyncIterator]=function(){return this},o;function h(F){return function(G){return Promise.resolve(G).then(F,z)}}function p(F,G){r[F]&&(o[F]=function(Ut){return new Promise(function(jt,Xt){f.push([F,Ut,jt,Xt])>1||m(F,Ut)})},G&&(o[F]=G(o[F])))}function m(F,G){try{v(r[F](G))}catch(Ut){L(f[0][3],Ut)}}function v(F){F.value instanceof st?Promise.resolve(F.value.v).then(w,z):L(f[0][2],F)}function w(F){m("next",F)}function z(F){m("throw",F)}function L(F,G){F(G),f.shift(),f.length&&m(f[0][0],f[0][1])}}function gu(l){var t,i;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,f){t[o]=l[o]?function(h){return(i=!i)?{value:st(l[o](h)),done:!1}:f?f(h):h}:f}}function Ta(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=l[Symbol.asyncIterator],i;return t?t.call(l):(l=typeof xp=="function"?xp(l):l[Symbol.iterator](),i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i);function r(f){i[f]=l[f]&&function(h){return new Promise(function(p,m){h=l[f](h),o(p,m,h.done,h.value)})}}function o(f,h,p,m){Promise.resolve(m).then(function(v){f({value:v,done:p})},h)}}const N1=new TextDecoder("utf-8"),Ff=l=>N1.decode(l),U1=new TextEncoder,td=l=>U1.encode(l),[_2,R1]=(()=>{const l=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw l()}return t.asIntN=()=>{throw l()},t.asUintN=()=>{throw l()},typeof BigInt<"u"?[BigInt,!0]:[t,!1]})(),[Ks,S2]=(()=>{const l=()=>{throw new Error("BigInt64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw l()}static from(){throw l()}constructor(){throw l()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[t,!1]})(),[Js,A2]=(()=>{const l=()=>{throw new Error("BigUint64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw l()}static from(){throw l()}constructor(){throw l()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[t,!1]})(),z1=l=>typeof l=="number",nm=l=>typeof l=="boolean",ne=l=>typeof l=="function",xe=l=>l!=null&&Object(l)===l,qi=l=>xe(l)&&ne(l.then),$s=l=>xe(l)&&ne(l[Symbol.iterator]),xl=l=>xe(l)&&ne(l[Symbol.asyncIterator]),jf=l=>xe(l)&&xe(l.schema),im=l=>xe(l)&&"done"in l&&"value"in l,am=l=>xe(l)&&ne(l.stat)&&z1(l.fd),lm=l=>xe(l)&&ed(l.body),ec=l=>"_getDOMStream"in l&&"_getNodeStream"in l,x1=l=>xe(l)&&ne(l.abort)&&ne(l.getWriter)&&!ec(l),ed=l=>xe(l)&&ne(l.cancel)&&ne(l.getReader)&&!ec(l),L1=l=>xe(l)&&ne(l.end)&&ne(l.write)&&nm(l.writable)&&!ec(l),sm=l=>xe(l)&&ne(l.read)&&ne(l.pipe)&&nm(l.readable)&&!ec(l),C1=l=>xe(l)&&ne(l.clear)&&ne(l.bytes)&&ne(l.position)&&ne(l.setPosition)&&ne(l.capacity)&&ne(l.getBufferIdentifier)&&ne(l.createLong),nd=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function I1(l){const t=l[0]?[l[0]]:[];let i,r,o,f;for(let h,p,m=0,v=0,w=l.length;++m<w;){if(h=t[v],p=l[m],!h||!p||h.buffer!==p.buffer||p.byteOffset<h.byteOffset){p&&(t[++v]=p);continue}if({byteOffset:i,byteLength:o}=h,{byteOffset:r,byteLength:f}=p,i+o<r||r+f<i){p&&(t[++v]=p);continue}t[v]=new Uint8Array(h.buffer,i,r-i+f)}return t}function Lp(l,t,i=0,r=t.byteLength){const o=l.byteLength,f=new Uint8Array(l.buffer,l.byteOffset,o),h=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,o));return f.set(h,i),l}function Fn(l,t){const i=I1(l),r=i.reduce((w,z)=>w+z.byteLength,0);let o,f,h,p=0,m=-1;const v=Math.min(t||Number.POSITIVE_INFINITY,r);for(const w=i.length;++m<w;){if(o=i[m],f=o.subarray(0,Math.min(o.length,v-p)),v<=p+f.length){f.length<o.length?i[m]=o.subarray(f.length):f.length===o.length&&m++,h?Lp(h,f,p):h=f;break}Lp(h||(h=new Uint8Array(v)),f,p),p+=f.length}return[h||new Uint8Array(0),i.slice(m),r-(h?h.byteLength:0)]}function xt(l,t){let i=im(t)?t.value:t;return i instanceof l?l===Uint8Array?new l(i.buffer,i.byteOffset,i.byteLength):i:i?(typeof i=="string"&&(i=td(i)),i instanceof ArrayBuffer?new l(i):i instanceof nd?new l(i):C1(i)?xt(l,i.bytes()):ArrayBuffer.isView(i)?i.byteLength<=0?new l(0):new l(i.buffer,i.byteOffset,i.byteLength/l.BYTES_PER_ELEMENT):l.from(i)):new l(0)}const Ls=l=>xt(Int32Array,l),gt=l=>xt(Uint8Array,l),Vf=l=>(l.next(),l);function*F1(l,t){const i=function*(o){yield o},r=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof nd?i(t):$s(t)?t:i(t);return yield*Vf(function*(o){let f=null;do f=o.next(yield xt(l,f));while(!f.done)}(r[Symbol.iterator]())),new l}const j1=l=>F1(Uint8Array,l);function rm(l,t){return Cn(this,arguments,function*(){if(qi(t))return yield st(yield st(yield*gu(Ta(rm(l,yield st(t))))));const r=function(h){return Cn(this,arguments,function*(){yield yield st(yield st(h))})},o=function(h){return Cn(this,arguments,function*(){yield st(yield*gu(Ta(Vf(function*(p){let m=null;do m=p.next(yield m==null?void 0:m.value);while(!m.done)}(h[Symbol.iterator]())))))})},f=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof nd?r(t):$s(t)?o(t):xl(t)?t:r(t);return yield st(yield*gu(Ta(Vf(function(h){return Cn(this,arguments,function*(){let p=null;do p=yield st(h.next(yield yield st(xt(l,p))));while(!p.done)})}(f[Symbol.asyncIterator]()))))),yield st(new l)})}const V1=l=>rm(Uint8Array,l);function id(l,t,i){if(l!==0){i=i.slice(0,t+1);for(let r=-1;++r<=t;)i[r]+=l}return i}function H1(l,t){let i=0;const r=l.length;if(r!==t.length)return!1;if(r>0)do if(l[i]!==t[i])return!1;while(++i<r);return!0}const cn={fromIterable(l){return mu(Y1(l))},fromAsyncIterable(l){return mu(q1(l))},fromDOMStream(l){return mu(G1(l))},fromNodeStream(l){return mu(X1(l))},toDOMStream(l,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(l,t){throw new Error('"toNodeStream" not available in this environment')}},mu=l=>(l.next(),l);function*Y1(l){let t,i=!1,r=[],o,f,h,p=0;function m(){return f==="peek"?Fn(r,h)[0]:([o,r,p]=Fn(r,h),o)}({cmd:f,size:h}=yield null);const v=j1(l)[Symbol.iterator]();try{do if({done:t,value:o}=Number.isNaN(h-p)?v.next():v.next(h-p),!t&&o.byteLength>0&&(r.push(o),p+=o.byteLength),t||h<=p)do({cmd:f,size:h}=yield m());while(h<p);while(!t)}catch(w){(i=!0)&&typeof v.throw=="function"&&v.throw(w)}finally{i===!1&&typeof v.return=="function"&&v.return(null)}return null}function q1(l){return Cn(this,arguments,function*(){let i,r=!1,o=[],f,h,p,m=0;function v(){return h==="peek"?Fn(o,p)[0]:([f,o,m]=Fn(o,p),f)}({cmd:h,size:p}=yield yield st(null));const w=V1(l)[Symbol.asyncIterator]();try{do if({done:i,value:f}=Number.isNaN(p-m)?yield st(w.next()):yield st(w.next(p-m)),!i&&f.byteLength>0&&(o.push(f),m+=f.byteLength),i||p<=m)do({cmd:h,size:p}=yield yield st(v()));while(p<m);while(!i)}catch(z){(r=!0)&&typeof w.throw=="function"&&(yield st(w.throw(z)))}finally{r===!1&&typeof w.return=="function"&&(yield st(w.return(new Uint8Array(0))))}return yield st(null)})}function G1(l){return Cn(this,arguments,function*(){let i=!1,r=!1,o=[],f,h,p,m=0;function v(){return h==="peek"?Fn(o,p)[0]:([f,o,m]=Fn(o,p),f)}({cmd:h,size:p}=yield yield st(null));const w=new Q1(l);try{do if({done:i,value:f}=Number.isNaN(p-m)?yield st(w.read()):yield st(w.read(p-m)),!i&&f.byteLength>0&&(o.push(gt(f)),m+=f.byteLength),i||p<=m)do({cmd:h,size:p}=yield yield st(v()));while(p<m);while(!i)}catch(z){(r=!0)&&(yield st(w.cancel(z)))}finally{r===!1?yield st(w.cancel()):l.locked&&w.releaseLock()}return yield st(null)})}class Q1{constructor(t){this.source=t,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(t){return K(this,void 0,void 0,function*(){const{reader:i,source:r}=this;i&&(yield i.cancel(t).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(t){return K(this,void 0,void 0,function*(){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};const i=yield this.reader.read();return!i.done&&(i.value=gt(i)),i})}}const Nf=(l,t)=>{const i=o=>r([t,o]);let r;return[t,i,new Promise(o=>(r=o)&&l.once(t,i))]};function X1(l){return Cn(this,arguments,function*(){const i=[];let r="error",o=!1,f=null,h,p,m=0,v=[],w;function z(){return h==="peek"?Fn(v,p)[0]:([w,v,m]=Fn(v,p),w)}if({cmd:h,size:p}=yield yield st(null),l.isTTY)return yield yield st(new Uint8Array(0)),yield st(null);try{i[0]=Nf(l,"end"),i[1]=Nf(l,"error");do{if(i[2]=Nf(l,"readable"),[r,f]=yield st(Promise.race(i.map(F=>F[2]))),r==="error")break;if((o=r==="end")||(Number.isFinite(p-m)?(w=gt(l.read(p-m)),w.byteLength<p-m&&(w=gt(l.read()))):w=gt(l.read()),w.byteLength>0&&(v.push(w),m+=w.byteLength)),o||p<=m)do({cmd:h,size:p}=yield yield st(z()));while(p<m)}while(!o)}finally{yield st(L(i,r==="error"?f:null))}return yield st(null);function L(F,G){return w=v=null,new Promise((Ut,jt)=>{for(const[Xt,ae]of F)l.off(Xt,ae);try{const Xt=l.destroy;Xt&&Xt.call(l,G),G=void 0}catch(Xt){G=Xt||G}finally{G!=null?jt(G):Ut()}})}})}var Je;(function(l){l[l.V1=0]="V1",l[l.V2=1]="V2",l[l.V3=2]="V3",l[l.V4=3]="V4",l[l.V5=4]="V5"})(Je||(Je={}));var $e;(function(l){l[l.Sparse=0]="Sparse",l[l.Dense=1]="Dense"})($e||($e={}));var ze;(function(l){l[l.HALF=0]="HALF",l[l.SINGLE=1]="SINGLE",l[l.DOUBLE=2]="DOUBLE"})(ze||(ze={}));var fi;(function(l){l[l.DAY=0]="DAY",l[l.MILLISECOND=1]="MILLISECOND"})(fi||(fi={}));var _t;(function(l){l[l.SECOND=0]="SECOND",l[l.MILLISECOND=1]="MILLISECOND",l[l.MICROSECOND=2]="MICROSECOND",l[l.NANOSECOND=3]="NANOSECOND"})(_t||(_t={}));var Gi;(function(l){l[l.YEAR_MONTH=0]="YEAR_MONTH",l[l.DAY_TIME=1]="DAY_TIME",l[l.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Gi||(Gi={}));var At;(function(l){l[l.NONE=0]="NONE",l[l.Schema=1]="Schema",l[l.DictionaryBatch=2]="DictionaryBatch",l[l.RecordBatch=3]="RecordBatch",l[l.Tensor=4]="Tensor",l[l.SparseTensor=5]="SparseTensor"})(At||(At={}));var A;(function(l){l[l.NONE=0]="NONE",l[l.Null=1]="Null",l[l.Int=2]="Int",l[l.Float=3]="Float",l[l.Binary=4]="Binary",l[l.Utf8=5]="Utf8",l[l.Bool=6]="Bool",l[l.Decimal=7]="Decimal",l[l.Date=8]="Date",l[l.Time=9]="Time",l[l.Timestamp=10]="Timestamp",l[l.Interval=11]="Interval",l[l.List=12]="List",l[l.Struct=13]="Struct",l[l.Union=14]="Union",l[l.FixedSizeBinary=15]="FixedSizeBinary",l[l.FixedSizeList=16]="FixedSizeList",l[l.Map=17]="Map",l[l.Dictionary=-1]="Dictionary",l[l.Int8=-2]="Int8",l[l.Int16=-3]="Int16",l[l.Int32=-4]="Int32",l[l.Int64=-5]="Int64",l[l.Uint8=-6]="Uint8",l[l.Uint16=-7]="Uint16",l[l.Uint32=-8]="Uint32",l[l.Uint64=-9]="Uint64",l[l.Float16=-10]="Float16",l[l.Float32=-11]="Float32",l[l.Float64=-12]="Float64",l[l.DateDay=-13]="DateDay",l[l.DateMillisecond=-14]="DateMillisecond",l[l.TimestampSecond=-15]="TimestampSecond",l[l.TimestampMillisecond=-16]="TimestampMillisecond",l[l.TimestampMicrosecond=-17]="TimestampMicrosecond",l[l.TimestampNanosecond=-18]="TimestampNanosecond",l[l.TimeSecond=-19]="TimeSecond",l[l.TimeMillisecond=-20]="TimeMillisecond",l[l.TimeMicrosecond=-21]="TimeMicrosecond",l[l.TimeNanosecond=-22]="TimeNanosecond",l[l.DenseUnion=-23]="DenseUnion",l[l.SparseUnion=-24]="SparseUnion",l[l.IntervalDayTime=-25]="IntervalDayTime",l[l.IntervalYearMonth=-26]="IntervalYearMonth"})(A||(A={}));var ai;(function(l){l[l.OFFSET=0]="OFFSET",l[l.DATA=1]="DATA",l[l.VALIDITY=2]="VALIDITY",l[l.TYPE=3]="TYPE"})(ai||(ai={}));const Z1=void 0;function Hs(l){if(l===null)return"null";if(l===Z1)return"undefined";switch(typeof l){case"number":return`${l}`;case"bigint":return`${l}`;case"string":return`"${l}"`}return typeof l[Symbol.toPrimitive]=="function"?l[Symbol.toPrimitive]("string"):ArrayBuffer.isView(l)?l instanceof Ks||l instanceof Js?`[${[...l].map(t=>Hs(t))}]`:`[${l}]`:ArrayBuffer.isView(l)?`[${l}]`:JSON.stringify(l,(t,i)=>typeof i=="bigint"?`${i}`:i)}const K1=Symbol.for("isArrowBigNum");function bn(l,...t){return t.length===0?Object.setPrototypeOf(xt(this.TypedArray,l),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(l,...t),this.constructor.prototype)}bn.prototype[K1]=!0;bn.prototype.toJSON=function(){return`"${Da(this)}"`};bn.prototype.valueOf=function(){return um(this)};bn.prototype.toString=function(){return Da(this)};bn.prototype[Symbol.toPrimitive]=function(l="default"){switch(l){case"number":return um(this);case"string":return Da(this);case"default":return Hf(this)}return Da(this)};function Al(...l){return bn.apply(this,l)}function wl(...l){return bn.apply(this,l)}function Ys(...l){return bn.apply(this,l)}Object.setPrototypeOf(Al.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(wl.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Ys.prototype,Object.create(Uint32Array.prototype));Object.assign(Al.prototype,bn.prototype,{constructor:Al,signed:!0,TypedArray:Int32Array,BigIntArray:Ks});Object.assign(wl.prototype,bn.prototype,{constructor:wl,signed:!1,TypedArray:Uint32Array,BigIntArray:Js});Object.assign(Ys.prototype,bn.prototype,{constructor:Ys,signed:!0,TypedArray:Uint32Array,BigIntArray:Js});function um(l){const{buffer:t,byteOffset:i,length:r,signed:o}=l,f=new Js(t,i,r),h=o&&f[f.length-1]&BigInt(1)<<BigInt(63);let p=BigInt(h?1:0),m=BigInt(0);if(h){for(const v of f)p+=~v*(BigInt(1)<<BigInt(32)*m++);p*=BigInt(-1)}else for(const v of f)p+=v*(BigInt(1)<<BigInt(32)*m++);return p}let Da,Hf;R1?(Hf=l=>l.byteLength===8?new l.BigIntArray(l.buffer,l.byteOffset,1)[0]:Uf(l),Da=l=>l.byteLength===8?`${new l.BigIntArray(l.buffer,l.byteOffset,1)[0]}`:Uf(l)):(Da=Uf,Hf=Da);function Uf(l){let t="";const i=new Uint32Array(2);let r=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2);const o=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let f=-1;const h=r.length-1;do{for(i[0]=r[f=0];f<h;)r[f++]=i[1]=i[0]/10,i[0]=(i[0]-i[1]*10<<16)+r[f];r[f]=i[1]=i[0]/10,i[0]=i[0]-i[1]*10,t=`${i[0]}${t}`}while(o[0]||o[1]||o[2]||o[3]);return t??"0"}class ad{static new(t,i){switch(i){case!0:return new Al(t);case!1:return new wl(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case Ks:return new Al(t)}return t.byteLength===16?new Ys(t):new wl(t)}static signed(t){return new Al(t)}static unsigned(t){return new wl(t)}static decimal(t){return new Ys(t)}constructor(t,i){return ad.new(t,i)}}var cm,om,fm,dm,hm,ym,pm,mm,vm,bm,gm,_m,Sm,Am,wm,Om,Tm,Dm,Bm;class ${static isNull(t){return(t==null?void 0:t.typeId)===A.Null}static isInt(t){return(t==null?void 0:t.typeId)===A.Int}static isFloat(t){return(t==null?void 0:t.typeId)===A.Float}static isBinary(t){return(t==null?void 0:t.typeId)===A.Binary}static isUtf8(t){return(t==null?void 0:t.typeId)===A.Utf8}static isBool(t){return(t==null?void 0:t.typeId)===A.Bool}static isDecimal(t){return(t==null?void 0:t.typeId)===A.Decimal}static isDate(t){return(t==null?void 0:t.typeId)===A.Date}static isTime(t){return(t==null?void 0:t.typeId)===A.Time}static isTimestamp(t){return(t==null?void 0:t.typeId)===A.Timestamp}static isInterval(t){return(t==null?void 0:t.typeId)===A.Interval}static isList(t){return(t==null?void 0:t.typeId)===A.List}static isStruct(t){return(t==null?void 0:t.typeId)===A.Struct}static isUnion(t){return(t==null?void 0:t.typeId)===A.Union}static isFixedSizeBinary(t){return(t==null?void 0:t.typeId)===A.FixedSizeBinary}static isFixedSizeList(t){return(t==null?void 0:t.typeId)===A.FixedSizeList}static isMap(t){return(t==null?void 0:t.typeId)===A.Map}static isDictionary(t){return(t==null?void 0:t.typeId)===A.Dictionary}static isDenseUnion(t){return $.isUnion(t)&&t.mode===$e.Dense}static isSparseUnion(t){return $.isUnion(t)&&t.mode===$e.Sparse}get typeId(){return A.NONE}}cm=Symbol.toStringTag;$[cm]=(l=>(l.children=null,l.ArrayType=Array,l[Symbol.toStringTag]="DataType"))($.prototype);let Qi=class extends ${toString(){return"Null"}get typeId(){return A.Null}};om=Symbol.toStringTag;Qi[om]=(l=>l[Symbol.toStringTag]="Null")(Qi.prototype);class Xi extends ${constructor(t,i){super(),this.isSigned=t,this.bitWidth=i}get typeId(){return A.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?Ks:Js}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}fm=Symbol.toStringTag;Xi[fm]=(l=>(l.isSigned=null,l.bitWidth=null,l[Symbol.toStringTag]="Int"))(Xi.prototype);class qs extends Xi{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(qs.prototype,"ArrayType",{value:Int32Array});class Gs extends ${constructor(t){super(),this.precision=t}get typeId(){return A.Float}get ArrayType(){switch(this.precision){case ze.HALF:return Uint16Array;case ze.SINGLE:return Float32Array;case ze.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}dm=Symbol.toStringTag;Gs[dm]=(l=>(l.precision=null,l[Symbol.toStringTag]="Float"))(Gs.prototype);let Du=class extends ${constructor(){super()}get typeId(){return A.Binary}toString(){return"Binary"}};hm=Symbol.toStringTag;Du[hm]=(l=>(l.ArrayType=Uint8Array,l[Symbol.toStringTag]="Binary"))(Du.prototype);let Bu=class extends ${constructor(){super()}get typeId(){return A.Utf8}toString(){return"Utf8"}};ym=Symbol.toStringTag;Bu[ym]=(l=>(l.ArrayType=Uint8Array,l[Symbol.toStringTag]="Utf8"))(Bu.prototype);let Mu=class extends ${constructor(){super()}get typeId(){return A.Bool}toString(){return"Bool"}};pm=Symbol.toStringTag;Mu[pm]=(l=>(l.ArrayType=Uint8Array,l[Symbol.toStringTag]="Bool"))(Mu.prototype);let Eu=class extends ${constructor(t,i,r=128){super(),this.scale=t,this.precision=i,this.bitWidth=r}get typeId(){return A.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};mm=Symbol.toStringTag;Eu[mm]=(l=>(l.scale=null,l.precision=null,l.ArrayType=Uint32Array,l[Symbol.toStringTag]="Decimal"))(Eu.prototype);class Nu extends ${constructor(t){super(),this.unit=t}get typeId(){return A.Date}toString(){return`Date${(this.unit+1)*32}<${fi[this.unit]}>`}}vm=Symbol.toStringTag;Nu[vm]=(l=>(l.unit=null,l.ArrayType=Int32Array,l[Symbol.toStringTag]="Date"))(Nu.prototype);class Qs extends ${constructor(t,i){super(),this.unit=t,this.bitWidth=i}get typeId(){return A.Time}toString(){return`Time${this.bitWidth}<${_t[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return Ks}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}bm=Symbol.toStringTag;Qs[bm]=(l=>(l.unit=null,l.bitWidth=null,l[Symbol.toStringTag]="Time"))(Qs.prototype);class Uu extends ${constructor(t,i){super(),this.unit=t,this.timezone=i}get typeId(){return A.Timestamp}toString(){return`Timestamp<${_t[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}gm=Symbol.toStringTag;Uu[gm]=(l=>(l.unit=null,l.timezone=null,l.ArrayType=Int32Array,l[Symbol.toStringTag]="Timestamp"))(Uu.prototype);class Ru extends ${constructor(t){super(),this.unit=t}get typeId(){return A.Interval}toString(){return`Interval<${Gi[this.unit]}>`}}_m=Symbol.toStringTag;Ru[_m]=(l=>(l.unit=null,l.ArrayType=Int32Array,l[Symbol.toStringTag]="Interval"))(Ru.prototype);let zu=class extends ${constructor(t){super(),this.children=[t]}get typeId(){return A.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}};Sm=Symbol.toStringTag;zu[Sm]=(l=>(l.children=null,l[Symbol.toStringTag]="List"))(zu.prototype);class Se extends ${constructor(t){super(),this.children=t}get typeId(){return A.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Am=Symbol.toStringTag;Se[Am]=(l=>(l.children=null,l[Symbol.toStringTag]="Struct"))(Se.prototype);class xu extends ${constructor(t,i,r){super(),this.mode=t,this.children=r,this.typeIds=i=Int32Array.from(i),this.typeIdToChildIndex=i.reduce((o,f,h)=>(o[f]=h)&&o||o,Object.create(null))}get typeId(){return A.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}wm=Symbol.toStringTag;xu[wm]=(l=>(l.mode=null,l.typeIds=null,l.children=null,l.typeIdToChildIndex=null,l.ArrayType=Int8Array,l[Symbol.toStringTag]="Union"))(xu.prototype);let Lu=class extends ${constructor(t){super(),this.byteWidth=t}get typeId(){return A.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Om=Symbol.toStringTag;Lu[Om]=(l=>(l.byteWidth=null,l.ArrayType=Uint8Array,l[Symbol.toStringTag]="FixedSizeBinary"))(Lu.prototype);let Cu=class extends ${constructor(t,i){super(),this.listSize=t,this.children=[i]}get typeId(){return A.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}>`}};Tm=Symbol.toStringTag;Cu[Tm]=(l=>(l.children=null,l.listSize=null,l[Symbol.toStringTag]="FixedSizeList"))(Cu.prototype);class Iu extends ${constructor(t,i=!1){super(),this.children=[t],this.keysSorted=i}get typeId(){return A.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(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Dm=Symbol.toStringTag;Iu[Dm]=(l=>(l.children=null,l.keysSorted=null,l[Symbol.toStringTag]="Map_"))(Iu.prototype);const J1=(l=>()=>++l)(-1);class Bl extends ${constructor(t,i,r,o){super(),this.indices=i,this.dictionary=t,this.isOrdered=o||!1,this.id=r==null?J1():typeof r=="number"?r:r.low}get typeId(){return A.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}>`}}Bm=Symbol.toStringTag;Bl[Bm]=(l=>(l.id=null,l.indices=null,l.isOrdered=null,l.dictionary=null,l[Symbol.toStringTag]="Dictionary"))(Bl.prototype);function li(l){const t=l;switch(l.typeId){case A.Decimal:return l.bitWidth/32;case A.Timestamp:return 2;case A.Date:return 1+t.unit;case A.Interval:return 1+t.unit;case A.FixedSizeList:return t.listSize;case A.FixedSizeBinary:return t.byteWidth;default:return 1}}class ht{visitMany(t,...i){return t.map((r,o)=>this.visit(r,...i.map(f=>f[o])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,i=!0){return $1(this,t,i)}getVisitFnByTypeId(t,i=!0){return vl(this,t,i)}visitNull(t,...i){return null}visitBool(t,...i){return null}visitInt(t,...i){return null}visitFloat(t,...i){return null}visitUtf8(t,...i){return null}visitBinary(t,...i){return null}visitFixedSizeBinary(t,...i){return null}visitDate(t,...i){return null}visitTimestamp(t,...i){return null}visitTime(t,...i){return null}visitDecimal(t,...i){return null}visitList(t,...i){return null}visitStruct(t,...i){return null}visitUnion(t,...i){return null}visitDictionary(t,...i){return null}visitInterval(t,...i){return null}visitFixedSizeList(t,...i){return null}visitMap(t,...i){return null}}function $1(l,t,i=!0){return typeof t=="number"?vl(l,t,i):typeof t=="string"&&t in A?vl(l,A[t],i):t&&t instanceof $?vl(l,Cp(t),i):t!=null&&t.type&&t.type instanceof $?vl(l,Cp(t.type),i):vl(l,A.NONE,i)}function vl(l,t,i=!0){let r=null;switch(t){case A.Null:r=l.visitNull;break;case A.Bool:r=l.visitBool;break;case A.Int:r=l.visitInt;break;case A.Int8:r=l.visitInt8||l.visitInt;break;case A.Int16:r=l.visitInt16||l.visitInt;break;case A.Int32:r=l.visitInt32||l.visitInt;break;case A.Int64:r=l.visitInt64||l.visitInt;break;case A.Uint8:r=l.visitUint8||l.visitInt;break;case A.Uint16:r=l.visitUint16||l.visitInt;break;case A.Uint32:r=l.visitUint32||l.visitInt;break;case A.Uint64:r=l.visitUint64||l.visitInt;break;case A.Float:r=l.visitFloat;break;case A.Float16:r=l.visitFloat16||l.visitFloat;break;case A.Float32:r=l.visitFloat32||l.visitFloat;break;case A.Float64:r=l.visitFloat64||l.visitFloat;break;case A.Utf8:r=l.visitUtf8;break;case A.Binary:r=l.visitBinary;break;case A.FixedSizeBinary:r=l.visitFixedSizeBinary;break;case A.Date:r=l.visitDate;break;case A.DateDay:r=l.visitDateDay||l.visitDate;break;case A.DateMillisecond:r=l.visitDateMillisecond||l.visitDate;break;case A.Timestamp:r=l.visitTimestamp;break;case A.TimestampSecond:r=l.visitTimestampSecond||l.visitTimestamp;break;case A.TimestampMillisecond:r=l.visitTimestampMillisecond||l.visitTimestamp;break;case A.TimestampMicrosecond:r=l.visitTimestampMicrosecond||l.visitTimestamp;break;case A.TimestampNanosecond:r=l.visitTimestampNanosecond||l.visitTimestamp;break;case A.Time:r=l.visitTime;break;case A.TimeSecond:r=l.visitTimeSecond||l.visitTime;break;case A.TimeMillisecond:r=l.visitTimeMillisecond||l.visitTime;break;case A.TimeMicrosecond:r=l.visitTimeMicrosecond||l.visitTime;break;case A.TimeNanosecond:r=l.visitTimeNanosecond||l.visitTime;break;case A.Decimal:r=l.visitDecimal;break;case A.List:r=l.visitList;break;case A.Struct:r=l.visitStruct;break;case A.Union:r=l.visitUnion;break;case A.DenseUnion:r=l.visitDenseUnion||l.visitUnion;break;case A.SparseUnion:r=l.visitSparseUnion||l.visitUnion;break;case A.Dictionary:r=l.visitDictionary;break;case A.Interval:r=l.visitInterval;break;case A.IntervalDayTime:r=l.visitIntervalDayTime||l.visitInterval;break;case A.IntervalYearMonth:r=l.visitIntervalYearMonth||l.visitInterval;break;case A.FixedSizeList:r=l.visitFixedSizeList;break;case A.Map:r=l.visitMap;break}if(typeof r=="function")return r;if(!i)return()=>null;throw new Error(`Unrecognized type '${A[t]}'`)}function Cp(l){switch(l.typeId){case A.Null:return A.Null;case A.Int:{const{bitWidth:t,isSigned:i}=l;switch(t){case 8:return i?A.Int8:A.Uint8;case 16:return i?A.Int16:A.Uint16;case 32:return i?A.Int32:A.Uint32;case 64:return i?A.Int64:A.Uint64}return A.Int}case A.Float:switch(l.precision){case ze.HALF:return A.Float16;case ze.SINGLE:return A.Float32;case ze.DOUBLE:return A.Float64}return A.Float;case A.Binary:return A.Binary;case A.Utf8:return A.Utf8;case A.Bool:return A.Bool;case A.Decimal:return A.Decimal;case A.Time:switch(l.unit){case _t.SECOND:return A.TimeSecond;case _t.MILLISECOND:return A.TimeMillisecond;case _t.MICROSECOND:return A.TimeMicrosecond;case _t.NANOSECOND:return A.TimeNanosecond}return A.Time;case A.Timestamp:switch(l.unit){case _t.SECOND:return A.TimestampSecond;case _t.MILLISECOND:return A.TimestampMillisecond;case _t.MICROSECOND:return A.TimestampMicrosecond;case _t.NANOSECOND:return A.TimestampNanosecond}return A.Timestamp;case A.Date:switch(l.unit){case fi.DAY:return A.DateDay;case fi.MILLISECOND:return A.DateMillisecond}return A.Date;case A.Interval:switch(l.unit){case Gi.DAY_TIME:return A.IntervalDayTime;case Gi.YEAR_MONTH:return A.IntervalYearMonth}return A.Interval;case A.Map:return A.Map;case A.List:return A.List;case A.Struct:return A.Struct;case A.Union:switch(l.mode){case $e.Dense:return A.DenseUnion;case $e.Sparse:return A.SparseUnion}return A.Union;case A.FixedSizeBinary:return A.FixedSizeBinary;case A.FixedSizeList:return A.FixedSizeList;case A.Dictionary:return A.Dictionary}throw new Error(`Unrecognized type '${A[l.typeId]}'`)}ht.prototype.visitInt8=null;ht.prototype.visitInt16=null;ht.prototype.visitInt32=null;ht.prototype.visitInt64=null;ht.prototype.visitUint8=null;ht.prototype.visitUint16=null;ht.prototype.visitUint32=null;ht.prototype.visitUint64=null;ht.prototype.visitFloat16=null;ht.prototype.visitFloat32=null;ht.prototype.visitFloat64=null;ht.prototype.visitDateDay=null;ht.prototype.visitDateMillisecond=null;ht.prototype.visitTimestampSecond=null;ht.prototype.visitTimestampMillisecond=null;ht.prototype.visitTimestampMicrosecond=null;ht.prototype.visitTimestampNanosecond=null;ht.prototype.visitTimeSecond=null;ht.prototype.visitTimeMillisecond=null;ht.prototype.visitTimeMicrosecond=null;ht.prototype.visitTimeNanosecond=null;ht.prototype.visitDenseUnion=null;ht.prototype.visitSparseUnion=null;ht.prototype.visitIntervalDayTime=null;ht.prototype.visitIntervalYearMonth=null;const Mm=new Float64Array(1),pl=new Uint32Array(Mm.buffer);function Em(l){const t=(l&31744)>>10,i=(l&1023)/1024,r=Math.pow(-1,(l&32768)>>15);switch(t){case 31:return r*(i?Number.NaN:1/0);case 0:return r*(i?6103515625e-14*i:0)}return r*Math.pow(2,t-15)*(1+i)}function k1(l){if(l!==l)return 32256;Mm[0]=l;const t=(pl[1]&2147483648)>>16&65535;let i=pl[1]&2146435072,r=0;return i>=1089470464?pl[0]>0?i=31744:(i=(i&2080374784)>>16,r=(pl[1]&1048575)>>10):i<=1056964608?(r=1048576+(pl[1]&1048575),r=1048576+(r<<(i>>20)-998)>>21,i=0):(i=i-1056964608>>10,r=(pl[1]&1048575)+512>>10),t|i|r&65535}class et extends ht{}function at(l){return(t,i,r)=>{if(t.setValid(i,r!=null))return l(t,i,r)}}const W1=(l,t,i)=>{l[t]=Math.trunc(i/864e5)},ld=(l,t,i)=>{l[t]=Math.trunc(i%4294967296),l[t+1]=Math.trunc(i/4294967296)},P1=(l,t,i)=>{l[t]=Math.trunc(i*1e3%4294967296),l[t+1]=Math.trunc(i*1e3/4294967296)},t_=(l,t,i)=>{l[t]=Math.trunc(i*1e6%4294967296),l[t+1]=Math.trunc(i*1e6/4294967296)},Nm=(l,t,i,r)=>{if(i+1<t.length){const{[i]:o,[i+1]:f}=t;l.set(r.subarray(0,f-o),o)}},e_=({offset:l,values:t},i,r)=>{const o=l+i;r?t[o>>3]|=1<<o%8:t[o>>3]&=~(1<<o%8)},di=({values:l},t,i)=>{l[t]=i},sd=({values:l},t,i)=>{l[t]=i},Um=({values:l},t,i)=>{l[t]=k1(i)},n_=(l,t,i)=>{switch(l.type.precision){case ze.HALF:return Um(l,t,i);case ze.SINGLE:case ze.DOUBLE:return sd(l,t,i)}},Rm=({values:l},t,i)=>{W1(l,t,i.valueOf())},zm=({values:l},t,i)=>{ld(l,t*2,i.valueOf())},i_=({stride:l,values:t},i,r)=>{t.set(r.subarray(0,l),l*i)},a_=({values:l,valueOffsets:t},i,r)=>Nm(l,t,i,r),l_=({values:l,valueOffsets:t},i,r)=>{Nm(l,t,i,td(r))},s_=(l,t,i)=>{l.type.unit===fi.DAY?Rm(l,t,i):zm(l,t,i)},xm=({values:l},t,i)=>ld(l,t*2,i/1e3),Lm=({values:l},t,i)=>ld(l,t*2,i),Cm=({values:l},t,i)=>P1(l,t*2,i),Im=({values:l},t,i)=>t_(l,t*2,i),r_=(l,t,i)=>{switch(l.type.unit){case _t.SECOND:return xm(l,t,i);case _t.MILLISECOND:return Lm(l,t,i);case _t.MICROSECOND:return Cm(l,t,i);case _t.NANOSECOND:return Im(l,t,i)}},Fm=({values:l},t,i)=>{l[t]=i},jm=({values:l},t,i)=>{l[t]=i},Vm=({values:l},t,i)=>{l[t]=i},Hm=({values:l},t,i)=>{l[t]=i},u_=(l,t,i)=>{switch(l.type.unit){case _t.SECOND:return Fm(l,t,i);case _t.MILLISECOND:return jm(l,t,i);case _t.MICROSECOND:return Vm(l,t,i);case _t.NANOSECOND:return Hm(l,t,i)}},c_=({values:l,stride:t},i,r)=>{l.set(r.subarray(0,t),t*i)},o_=(l,t,i)=>{const r=l.children[0],o=l.valueOffsets,f=dn.getVisitFn(r);if(Array.isArray(i))for(let h=-1,p=o[t],m=o[t+1];p<m;)f(r,p++,i[++h]);else for(let h=-1,p=o[t],m=o[t+1];p<m;)f(r,p++,i.get(++h))},f_=(l,t,i)=>{const r=l.children[0],{valueOffsets:o}=l,f=dn.getVisitFn(r);let{[t]:h,[t+1]:p}=o;const m=i instanceof Map?i.entries():Object.entries(i);for(const v of m)if(f(r,h,v),++h>=p)break},d_=(l,t)=>(i,r,o,f)=>r&&i(r,l,t[f]),h_=(l,t)=>(i,r,o,f)=>r&&i(r,l,t.get(f)),y_=(l,t)=>(i,r,o,f)=>r&&i(r,l,t.get(o.name)),p_=(l,t)=>(i,r,o,f)=>r&&i(r,l,t[o.name]),m_=(l,t,i)=>{const r=l.type.children.map(f=>dn.getVisitFn(f.type)),o=i instanceof Map?y_(t,i):i instanceof wt?h_(t,i):Array.isArray(i)?d_(t,i):p_(t,i);l.type.children.forEach((f,h)=>o(r[h],l.children[h],f,h))},v_=(l,t,i)=>{l.type.mode===$e.Dense?Ym(l,t,i):qm(l,t,i)},Ym=(l,t,i)=>{const r=l.type.typeIdToChildIndex[l.typeIds[t]],o=l.children[r];dn.visit(o,l.valueOffsets[t],i)},qm=(l,t,i)=>{const r=l.type.typeIdToChildIndex[l.typeIds[t]],o=l.children[r];dn.visit(o,t,i)},b_=(l,t,i)=>{var r;(r=l.dictionary)===null||r===void 0||r.set(l.values[t],i)},g_=(l,t,i)=>{l.type.unit===Gi.DAY_TIME?Gm(l,t,i):Qm(l,t,i)},Gm=({values:l},t,i)=>{l.set(i.subarray(0,2),2*t)},Qm=({values:l},t,i)=>{l[t]=i[0]*12+i[1]%12},__=(l,t,i)=>{const{stride:r}=l,o=l.children[0],f=dn.getVisitFn(o);if(Array.isArray(i))for(let h=-1,p=t*r;++h<r;)f(o,p+h,i[h]);else for(let h=-1,p=t*r;++h<r;)f(o,p+h,i.get(h))};et.prototype.visitBool=at(e_);et.prototype.visitInt=at(di);et.prototype.visitInt8=at(di);et.prototype.visitInt16=at(di);et.prototype.visitInt32=at(di);et.prototype.visitInt64=at(di);et.prototype.visitUint8=at(di);et.prototype.visitUint16=at(di);et.prototype.visitUint32=at(di);et.prototype.visitUint64=at(di);et.prototype.visitFloat=at(n_);et.prototype.visitFloat16=at(Um);et.prototype.visitFloat32=at(sd);et.prototype.visitFloat64=at(sd);et.prototype.visitUtf8=at(l_);et.prototype.visitBinary=at(a_);et.prototype.visitFixedSizeBinary=at(i_);et.prototype.visitDate=at(s_);et.prototype.visitDateDay=at(Rm);et.prototype.visitDateMillisecond=at(zm);et.prototype.visitTimestamp=at(r_);et.prototype.visitTimestampSecond=at(xm);et.prototype.visitTimestampMillisecond=at(Lm);et.prototype.visitTimestampMicrosecond=at(Cm);et.prototype.visitTimestampNanosecond=at(Im);et.prototype.visitTime=at(u_);et.prototype.visitTimeSecond=at(Fm);et.prototype.visitTimeMillisecond=at(jm);et.prototype.visitTimeMicrosecond=at(Vm);et.prototype.visitTimeNanosecond=at(Hm);et.prototype.visitDecimal=at(c_);et.prototype.visitList=at(o_);et.prototype.visitStruct=at(m_);et.prototype.visitUnion=at(v_);et.prototype.visitDenseUnion=at(Ym);et.prototype.visitSparseUnion=at(qm);et.prototype.visitDictionary=at(b_);et.prototype.visitInterval=at(g_);et.prototype.visitIntervalDayTime=at(Gm);et.prototype.visitIntervalYearMonth=at(Qm);et.prototype.visitFixedSizeList=at(__);et.prototype.visitMap=at(f_);const dn=new et,mn=Symbol.for("parent"),Ol=Symbol.for("rowIndex");class rd{constructor(t,i){return this[mn]=t,this[Ol]=i,new Proxy(this,new A_)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[Ol],i=this[mn],r=i.type.children,o={};for(let f=-1,h=r.length;++f<h;)o[r[f].name]=Le.visit(i.children[f],t);return o}toString(){return`{${[...this].map(([t,i])=>`${Hs(t)}: ${Hs(i)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new S_(this[mn],this[Ol])}}class S_{constructor(t,i){this.childIndex=0,this.children=t.children,this.rowIndex=i,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,Le.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(rd.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[mn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ol]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class A_{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[mn].type.children.map(i=>i.name)}has(t,i){return t[mn].type.children.findIndex(r=>r.name===i)!==-1}getOwnPropertyDescriptor(t,i){if(t[mn].type.children.findIndex(r=>r.name===i)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,i){if(Reflect.has(t,i))return t[i];const r=t[mn].type.children.findIndex(o=>o.name===i);if(r!==-1){const o=Le.visit(t[mn].children[r],t[Ol]);return Reflect.set(t,i,o),o}}set(t,i,r){const o=t[mn].type.children.findIndex(f=>f.name===i);return o!==-1?(dn.visit(t[mn].children[o],t[Ol],r),Reflect.set(t,i,r)):Reflect.has(t,i)||typeof i=="symbol"?Reflect.set(t,i,r):!1}}class k extends ht{}function nt(l){return(t,i)=>t.getValid(i)?l(t,i):null}const w_=(l,t)=>864e5*l[t],ud=(l,t)=>4294967296*l[t+1]+(l[t]>>>0),O_=(l,t)=>4294967296*(l[t+1]/1e3)+(l[t]>>>0)/1e3,T_=(l,t)=>4294967296*(l[t+1]/1e6)+(l[t]>>>0)/1e6,Xm=l=>new Date(l),D_=(l,t)=>Xm(w_(l,t)),B_=(l,t)=>Xm(ud(l,t)),M_=(l,t)=>null,Zm=(l,t,i)=>{if(i+1>=t.length)return null;const r=t[i],o=t[i+1];return l.subarray(r,o)},E_=({offset:l,values:t},i)=>{const r=l+i;return(t[r>>3]&1<<r%8)!==0},Km=({values:l},t)=>D_(l,t),Jm=({values:l},t)=>B_(l,t*2),Ji=({stride:l,values:t},i)=>t[l*i],N_=({stride:l,values:t},i)=>Em(t[l*i]),$m=({values:l},t)=>l[t],U_=({stride:l,values:t},i)=>t.subarray(l*i,l*(i+1)),R_=({values:l,valueOffsets:t},i)=>Zm(l,t,i),z_=({values:l,valueOffsets:t},i)=>{const r=Zm(l,t,i);return r!==null?Ff(r):null},x_=({values:l},t)=>l[t],L_=({type:l,values:t},i)=>l.precision!==ze.HALF?t[i]:Em(t[i]),C_=(l,t)=>l.type.unit===fi.DAY?Km(l,t):Jm(l,t),km=({values:l},t)=>1e3*ud(l,t*2),Wm=({values:l},t)=>ud(l,t*2),Pm=({values:l},t)=>O_(l,t*2),tv=({values:l},t)=>T_(l,t*2),I_=(l,t)=>{switch(l.type.unit){case _t.SECOND:return km(l,t);case _t.MILLISECOND:return Wm(l,t);case _t.MICROSECOND:return Pm(l,t);case _t.NANOSECOND:return tv(l,t)}},ev=({values:l},t)=>l[t],nv=({values:l},t)=>l[t],iv=({values:l},t)=>l[t],av=({values:l},t)=>l[t],F_=(l,t)=>{switch(l.type.unit){case _t.SECOND:return ev(l,t);case _t.MILLISECOND:return nv(l,t);case _t.MICROSECOND:return iv(l,t);case _t.NANOSECOND:return av(l,t)}},j_=({values:l,stride:t},i)=>ad.decimal(l.subarray(t*i,t*(i+1))),V_=(l,t)=>{const{valueOffsets:i,stride:r,children:o}=l,{[t*r]:f,[t*r+1]:h}=i,m=o[0].slice(f,h-f);return new wt([m])},H_=(l,t)=>{const{valueOffsets:i,children:r}=l,{[t]:o,[t+1]:f}=i,h=r[0];return new cd(h.slice(o,f-o))},Y_=(l,t)=>new rd(l,t),q_=(l,t)=>l.type.mode===$e.Dense?lv(l,t):sv(l,t),lv=(l,t)=>{const i=l.type.typeIdToChildIndex[l.typeIds[t]],r=l.children[i];return Le.visit(r,l.valueOffsets[t])},sv=(l,t)=>{const i=l.type.typeIdToChildIndex[l.typeIds[t]],r=l.children[i];return Le.visit(r,t)},G_=(l,t)=>{var i;return(i=l.dictionary)===null||i===void 0?void 0:i.get(l.values[t])},Q_=(l,t)=>l.type.unit===Gi.DAY_TIME?rv(l,t):uv(l,t),rv=({values:l},t)=>l.subarray(2*t,2*(t+1)),uv=({values:l},t)=>{const i=l[t],r=new Int32Array(2);return r[0]=Math.trunc(i/12),r[1]=Math.trunc(i%12),r},X_=(l,t)=>{const{stride:i,children:r}=l,f=r[0].slice(t*i,i);return new wt([f])};k.prototype.visitNull=nt(M_);k.prototype.visitBool=nt(E_);k.prototype.visitInt=nt(x_);k.prototype.visitInt8=nt(Ji);k.prototype.visitInt16=nt(Ji);k.prototype.visitInt32=nt(Ji);k.prototype.visitInt64=nt($m);k.prototype.visitUint8=nt(Ji);k.prototype.visitUint16=nt(Ji);k.prototype.visitUint32=nt(Ji);k.prototype.visitUint64=nt($m);k.prototype.visitFloat=nt(L_);k.prototype.visitFloat16=nt(N_);k.prototype.visitFloat32=nt(Ji);k.prototype.visitFloat64=nt(Ji);k.prototype.visitUtf8=nt(z_);k.prototype.visitBinary=nt(R_);k.prototype.visitFixedSizeBinary=nt(U_);k.prototype.visitDate=nt(C_);k.prototype.visitDateDay=nt(Km);k.prototype.visitDateMillisecond=nt(Jm);k.prototype.visitTimestamp=nt(I_);k.prototype.visitTimestampSecond=nt(km);k.prototype.visitTimestampMillisecond=nt(Wm);k.prototype.visitTimestampMicrosecond=nt(Pm);k.prototype.visitTimestampNanosecond=nt(tv);k.prototype.visitTime=nt(F_);k.prototype.visitTimeSecond=nt(ev);k.prototype.visitTimeMillisecond=nt(nv);k.prototype.visitTimeMicrosecond=nt(iv);k.prototype.visitTimeNanosecond=nt(av);k.prototype.visitDecimal=nt(j_);k.prototype.visitList=nt(V_);k.prototype.visitStruct=nt(Y_);k.prototype.visitUnion=nt(q_);k.prototype.visitDenseUnion=nt(lv);k.prototype.visitSparseUnion=nt(sv);k.prototype.visitDictionary=nt(G_);k.prototype.visitInterval=nt(Q_);k.prototype.visitIntervalDayTime=nt(rv);k.prototype.visitIntervalYearMonth=nt(uv);k.prototype.visitFixedSizeList=nt(X_);k.prototype.visitMap=nt(H_);const Le=new k,Nn=Symbol.for("keys"),Tl=Symbol.for("vals");class cd{constructor(t){return this[Nn]=new wt([t.children[0]]).memoize(),this[Tl]=t.children[1],new Proxy(this,new K_)}[Symbol.iterator](){return new Z_(this[Nn],this[Tl])}get size(){return this[Nn].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[Nn],i=this[Tl],r={};for(let o=-1,f=t.length;++o<f;)r[t.get(o)]=Le.visit(i,o);return r}toString(){return`{${[...this].map(([t,i])=>`${Hs(t)}: ${Hs(i)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class Z_{constructor(t,i){this.keys=t,this.vals=i,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Le.visit(this.vals,t)]})}}class K_{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Nn].toArray().map(String)}has(t,i){return t[Nn].includes(i)}getOwnPropertyDescriptor(t,i){if(t[Nn].indexOf(i)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,i){if(Reflect.has(t,i))return t[i];const r=t[Nn].indexOf(i);if(r!==-1){const o=Le.visit(Reflect.get(t,Tl),r);return Reflect.set(t,i,o),o}}set(t,i,r){const o=t[Nn].indexOf(i);return o!==-1?(dn.visit(Reflect.get(t,Tl),o,r),Reflect.set(t,i,r)):Reflect.has(t,i)?Reflect.set(t,i,r):!1}}Object.defineProperties(cd.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Nn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Tl]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Ip;function cv(l,t,i,r){const{length:o=0}=l;let f=typeof t!="number"?0:t,h=typeof i!="number"?o:i;return f<0&&(f=(f%o+o)%o),h<0&&(h=(h%o+o)%o),h<f&&(Ip=f,f=h,h=Ip),h>o&&(h=o),r?r(l,f,h):[f,h]}const Fp=l=>l!==l;function Ll(l){if(typeof l!=="object"||l===null)return Fp(l)?Fp:i=>i===l;if(l instanceof Date){const i=l.valueOf();return r=>r instanceof Date?r.valueOf()===i:!1}return ArrayBuffer.isView(l)?i=>i?H1(l,i):!1:l instanceof Map?$_(l):Array.isArray(l)?J_(l):l instanceof wt?k_(l):W_(l,!0)}function J_(l){const t=[];for(let i=-1,r=l.length;++i<r;)t[i]=Ll(l[i]);return nc(t)}function $_(l){let t=-1;const i=[];for(const r of l.values())i[++t]=Ll(r);return nc(i)}function k_(l){const t=[];for(let i=-1,r=l.length;++i<r;)t[i]=Ll(l.get(i));return nc(t)}function W_(l,t=!1){const i=Object.keys(l);if(!t&&i.length===0)return()=>!1;const r=[];for(let o=-1,f=i.length;++o<f;)r[o]=Ll(l[i[o]]);return nc(r,i)}function nc(l,t){return i=>{if(!i||typeof i!="object")return!1;switch(i.constructor){case Array:return P_(l,i);case Map:return jp(l,i,i.keys());case cd:case rd:case Object:case void 0:return jp(l,i,t||Object.keys(i))}return i instanceof wt?tS(l,i):!1}}function P_(l,t){const i=l.length;if(t.length!==i)return!1;for(let r=-1;++r<i;)if(!l[r](t[r]))return!1;return!0}function tS(l,t){const i=l.length;if(t.length!==i)return!1;for(let r=-1;++r<i;)if(!l[r](t.get(r)))return!1;return!0}function jp(l,t,i){const r=i[Symbol.iterator](),o=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),f=t instanceof Map?t.values():Object.values(t)[Symbol.iterator]();let h=0;const p=l.length;let m=f.next(),v=r.next(),w=o.next();for(;h<p&&!v.done&&!w.done&&!m.done&&!(v.value!==w.value||!l[h](m.value));++h,v=r.next(),w=o.next(),m=f.next());return h===p&&v.done&&w.done&&m.done?!0:(r.return&&r.return(),o.return&&o.return(),f.return&&f.return(),!1)}function ov(l,t,i,r){return(i&1<<r)!==0}function eS(l,t,i,r){return(i&1<<r)>>r}function od(l,t,i){const r=i.byteLength+7&-8;if(l>0||i.byteLength<r){const o=new Uint8Array(r);return o.set(l%8===0?i.subarray(l>>3):Fu(new fd(i,l,t,null,ov)).subarray(0,r)),o}return i}function Fu(l){const t=[];let i=0,r=0,o=0;for(const h of l)h&&(o|=1<<r),++r===8&&(t[i++]=o,o=r=0);(i===0||r>0)&&(t[i++]=o);const f=new Uint8Array(t.length+7&-8);return f.set(t),f}class fd{constructor(t,i,r,o,f){this.bytes=t,this.length=r,this.context=o,this.get=f,this.bit=i%8,this.byteIndex=i>>3,this.byte=t[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 Yf(l,t,i){if(i-t<=0)return 0;if(i-t<8){let f=0;for(const h of new fd(l,t,i-t,l,eS))f+=h;return f}const r=i>>3<<3,o=t+(t%8===0?0:8-t%8);return Yf(l,t,o)+Yf(l,r,i)+nS(l,o>>3,r-o>>3)}function nS(l,t,i){let r=0,o=Math.trunc(t);const f=new DataView(l.buffer,l.byteOffset,l.byteLength),h=i===void 0?l.byteLength:o+i;for(;h-o>=4;)r+=Rf(f.getUint32(o)),o+=4;for(;h-o>=2;)r+=Rf(f.getUint16(o)),o+=2;for(;h-o>=1;)r+=Rf(f.getUint8(o)),o+=1;return r}function Rf(l){let t=Math.trunc(l);return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const iS=-1;class It{constructor(t,i,r,o,f,h=[],p){this.type=t,this.children=h,this.dictionary=p,this.offset=Math.floor(Math.max(i||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(o||0,-1));let m;f instanceof It?(this.stride=f.stride,this.values=f.values,this.typeIds=f.typeIds,this.nullBitmap=f.nullBitmap,this.valueOffsets=f.valueOffsets):(this.stride=li(t),f&&((m=f[0])&&(this.valueOffsets=m),(m=f[1])&&(this.values=m),(m=f[2])&&(this.nullBitmap=m),(m=f[3])&&(this.typeIds=m))),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 t=0;const{valueOffsets:i,values:r,nullBitmap:o,typeIds:f}=this;return i&&(t+=i.byteLength),r&&(t+=r.byteLength),o&&(t+=o.byteLength),f&&(t+=f.byteLength),this.children.reduce((h,p)=>h+p.byteLength,t)}get nullCount(){let t=this._nullCount,i;return t<=iS&&(i=this.nullBitmap)&&(this._nullCount=t=this.length-Yf(i,this.offset,this.offset+this.length)),t}getValid(t){if(this.nullable&&this.nullCount>0){const i=this.offset+t;return(this.nullBitmap[i>>3]&1<<i%8)!==0}return!0}setValid(t,i){if(!this.nullable)return i;if(!this.nullBitmap||this.nullBitmap.byteLength<=t>>3){const{nullBitmap:m}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:m,_nullCount:0})}const{nullBitmap:r,offset:o}=this,f=o+t>>3,h=(o+t)%8,p=r[f]>>h&1;return i?p===0&&(r[f]|=1<<h,this._nullCount=this.nullCount+1):p===1&&(r[f]&=~(1<<h),this._nullCount=this.nullCount-1),i}clone(t=this.type,i=this.offset,r=this.length,o=this._nullCount,f=this,h=this.children){return new It(t,i,r,o,f,h,this.dictionary)}slice(t,i){const{stride:r,typeId:o,children:f}=this,h=+(this._nullCount===0)-1,p=o===16?r:1,m=this._sliceBuffers(t,i,r,o);return this.clone(this.type,this.offset+t,i,h,m,f.length===0||this.valueOffsets?f:this._sliceChildren(f,p*t,p*i))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===A.Null)return this.clone(this.type,0,t,0);const{length:i,nullCount:r}=this,o=new Uint8Array((t+63&-64)>>3).fill(255,0,i>>3);o[i>>3]=(1<<i-(i&-8))-1,r>0&&o.set(od(this.offset,i,this.nullBitmap),0);const f=this.buffers;return f[ai.VALIDITY]=o,this.clone(this.type,0,t,r+(t-i),f)}_sliceBuffers(t,i,r,o){let f;const{buffers:h}=this;return(f=h[ai.TYPE])&&(h[ai.TYPE]=f.subarray(t,t+i)),(f=h[ai.OFFSET])&&(h[ai.OFFSET]=f.subarray(t,t+i+1))||(f=h[ai.DATA])&&(h[ai.DATA]=o===6?f:f.subarray(r*t,r*(t+i))),h}_sliceChildren(t,i,r){return t.map(o=>o.slice(i,r))}}It.prototype.children=Object.freeze([]);class Fs extends ht{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{["type"]:i,["offset"]:r=0,["length"]:o=0}=t;return new It(i,r,o,0)}visitBool(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length>>3,["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitInt(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length,["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitFloat(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length,["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitUtf8(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.data),f=gt(t.nullBitmap),h=Ls(t.valueOffsets),{["length"]:p=h.length-1,["nullCount"]:m=t.nullBitmap?-1:0}=t;return new It(i,r,p,m,[h,o,f])}visitBinary(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.data),f=gt(t.nullBitmap),h=Ls(t.valueOffsets),{["length"]:p=h.length-1,["nullCount"]:m=t.nullBitmap?-1:0}=t;return new It(i,r,p,m,[h,o,f])}visitFixedSizeBinary(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitDate(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitTimestamp(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitTime(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitDecimal(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitList(t){const{["type"]:i,["offset"]:r=0,["child"]:o}=t,f=gt(t.nullBitmap),h=Ls(t.valueOffsets),{["length"]:p=h.length-1,["nullCount"]:m=t.nullBitmap?-1:0}=t;return new It(i,r,p,m,[h,void 0,f],[o])}visitStruct(t){const{["type"]:i,["offset"]:r=0,["children"]:o=[]}=t,f=gt(t.nullBitmap),{length:h=o.reduce((m,{length:v})=>Math.max(m,v),0),nullCount:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,void 0,f],o)}visitUnion(t){const{["type"]:i,["offset"]:r=0,["children"]:o=[]}=t,f=gt(t.nullBitmap),h=xt(i.ArrayType,t.typeIds),{["length"]:p=h.length,["nullCount"]:m=t.nullBitmap?-1:0}=t;if($.isSparseUnion(i))return new It(i,r,p,m,[void 0,void 0,f,h],o);const v=Ls(t.valueOffsets);return new It(i,r,p,m,[v,void 0,f,h],o)}visitDictionary(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.indices.ArrayType,t.data),{["dictionary"]:h=new wt([new Fs().visit({type:i.dictionary})])}=t,{["length"]:p=f.length,["nullCount"]:m=t.nullBitmap?-1:0}=t;return new It(i,r,p,m,[void 0,f,o],[],h)}visitInterval(t){const{["type"]:i,["offset"]:r=0}=t,o=gt(t.nullBitmap),f=xt(i.ArrayType,t.data),{["length"]:h=f.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,f,o])}visitFixedSizeList(t){const{["type"]:i,["offset"]:r=0,["child"]:o=new Fs().visit({type:i.valueType})}=t,f=gt(t.nullBitmap),{["length"]:h=o.length/li(i),["nullCount"]:p=t.nullBitmap?-1:0}=t;return new It(i,r,h,p,[void 0,void 0,f],[o])}visitMap(t){const{["type"]:i,["offset"]:r=0,["child"]:o=new Fs().visit({type:i.childType})}=t,f=gt(t.nullBitmap),h=Ls(t.valueOffsets),{["length"]:p=h.length-1,["nullCount"]:m=t.nullBitmap?-1:0}=t;return new It(i,r,p,m,[h,void 0,f],[o])}}function dt(l){return new Fs().visit(l)}class Vp{constructor(t=0,i){this.numChunks=t,this.getChunkIterator=i,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function fv(l){return l.reduce((t,i)=>t+i.nullCount,0)}function dv(l){return l.reduce((t,i,r)=>(t[r+1]=t[r]+i.length,t),new Uint32Array(l.length+1))}function hv(l,t,i,r){const o=[];for(let f=-1,h=l.length;++f<h;){const p=l[f],m=t[f],{length:v}=p;if(m>=r)break;if(i>=m+v)continue;if(m>=i&&m+v<=r){o.push(p);continue}const w=Math.max(0,i-m),z=Math.min(r-m,v);o.push(p.slice(w,z-w))}return o.length===0&&o.push(l[0].slice(0,0)),o}function dd(l,t,i,r){let o=0,f=0,h=t.length-1;do{if(o>=h-1)return i<t[h]?r(l,o,i-t[o]):null;f=o+Math.trunc((h-o)*.5),i<t[f]?h=f:o=f}while(o<h)}function hd(l,t){return l.getValid(t)}function Dl(l){function t(i,r,o){return l(i[r],o)}return function(i){const r=this.data;return dd(r,this._offsets,i,t)}}function yv(l){let t;function i(r,o,f){return l(r[o],f,t)}return function(r,o){const f=this.data;t=o;const h=dd(f,this._offsets,r,i);return t=void 0,h}}function pv(l){let t;function i(r,o,f){let h=f,p=0,m=0;for(let v=o-1,w=r.length;++v<w;){const z=r[v];if(~(p=l(z,t,h)))return m+p;h=0,m+=z.length}return-1}return function(r,o){t=r;const f=this.data,h=typeof o!="number"?i(f,0,0):dd(f,this._offsets,o,i);return t=void 0,h}}class W extends ht{}function aS(l,t){return t===null&&l.length>0?0:-1}function lS(l,t){const{nullBitmap:i}=l;if(!i||l.nullCount<=0)return-1;let r=0;for(const o of new fd(i,l.offset+(t||0),l.length,i,ov)){if(!o)return r;++r}return-1}function rt(l,t,i){if(t===void 0)return-1;if(t===null)return lS(l,i);const r=Le.getVisitFn(l),o=Ll(t);for(let f=(i||0)-1,h=l.length;++f<h;)if(o(r(l,f)))return f;return-1}function mv(l,t,i){const r=Le.getVisitFn(l),o=Ll(t);for(let f=(i||0)-1,h=l.length;++f<h;)if(o(r(l,f)))return f;return-1}W.prototype.visitNull=aS;W.prototype.visitBool=rt;W.prototype.visitInt=rt;W.prototype.visitInt8=rt;W.prototype.visitInt16=rt;W.prototype.visitInt32=rt;W.prototype.visitInt64=rt;W.prototype.visitUint8=rt;W.prototype.visitUint16=rt;W.prototype.visitUint32=rt;W.prototype.visitUint64=rt;W.prototype.visitFloat=rt;W.prototype.visitFloat16=rt;W.prototype.visitFloat32=rt;W.prototype.visitFloat64=rt;W.prototype.visitUtf8=rt;W.prototype.visitBinary=rt;W.prototype.visitFixedSizeBinary=rt;W.prototype.visitDate=rt;W.prototype.visitDateDay=rt;W.prototype.visitDateMillisecond=rt;W.prototype.visitTimestamp=rt;W.prototype.visitTimestampSecond=rt;W.prototype.visitTimestampMillisecond=rt;W.prototype.visitTimestampMicrosecond=rt;W.prototype.visitTimestampNanosecond=rt;W.prototype.visitTime=rt;W.prototype.visitTimeSecond=rt;W.prototype.visitTimeMillisecond=rt;W.prototype.visitTimeMicrosecond=rt;W.prototype.visitTimeNanosecond=rt;W.prototype.visitDecimal=rt;W.prototype.visitList=rt;W.prototype.visitStruct=rt;W.prototype.visitUnion=rt;W.prototype.visitDenseUnion=mv;W.prototype.visitSparseUnion=mv;W.prototype.visitDictionary=rt;W.prototype.visitInterval=rt;W.prototype.visitIntervalDayTime=rt;W.prototype.visitIntervalYearMonth=rt;W.prototype.visitFixedSizeList=rt;W.prototype.visitMap=rt;const ju=new W;class P extends ht{}function it(l){const{type:t}=l;if(l.nullCount===0&&l.stride===1&&(t.typeId===A.Timestamp||t instanceof Xi&&t.bitWidth!==64||t instanceof Qs&&t.bitWidth!==64||t instanceof Gs&&t.precision!==ze.HALF))return new Vp(l.data.length,r=>{const o=l.data[r];return o.values.subarray(0,o.length)[Symbol.iterator]()});let i=0;return new Vp(l.data.length,r=>{const f=l.data[r].length,h=l.slice(i,i+f);return i+=f,new sS(h)})}class sS{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}P.prototype.visitNull=it;P.prototype.visitBool=it;P.prototype.visitInt=it;P.prototype.visitInt8=it;P.prototype.visitInt16=it;P.prototype.visitInt32=it;P.prototype.visitInt64=it;P.prototype.visitUint8=it;P.prototype.visitUint16=it;P.prototype.visitUint32=it;P.prototype.visitUint64=it;P.prototype.visitFloat=it;P.prototype.visitFloat16=it;P.prototype.visitFloat32=it;P.prototype.visitFloat64=it;P.prototype.visitUtf8=it;P.prototype.visitBinary=it;P.prototype.visitFixedSizeBinary=it;P.prototype.visitDate=it;P.prototype.visitDateDay=it;P.prototype.visitDateMillisecond=it;P.prototype.visitTimestamp=it;P.prototype.visitTimestampSecond=it;P.prototype.visitTimestampMillisecond=it;P.prototype.visitTimestampMicrosecond=it;P.prototype.visitTimestampNanosecond=it;P.prototype.visitTime=it;P.prototype.visitTimeSecond=it;P.prototype.visitTimeMillisecond=it;P.prototype.visitTimeMicrosecond=it;P.prototype.visitTimeNanosecond=it;P.prototype.visitDecimal=it;P.prototype.visitList=it;P.prototype.visitStruct=it;P.prototype.visitUnion=it;P.prototype.visitDenseUnion=it;P.prototype.visitSparseUnion=it;P.prototype.visitDictionary=it;P.prototype.visitInterval=it;P.prototype.visitIntervalDayTime=it;P.prototype.visitIntervalYearMonth=it;P.prototype.visitFixedSizeList=it;P.prototype.visitMap=it;const yd=new P,rS=(l,t)=>l+t;class $i extends ht{visitNull(t,i){return 0}visitInt(t,i){return t.type.bitWidth/8}visitFloat(t,i){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,i){return 1/8}visitDecimal(t,i){return t.type.bitWidth/8}visitDate(t,i){return(t.type.unit+1)*4}visitTime(t,i){return t.type.bitWidth/8}visitTimestamp(t,i){return t.type.unit===_t.SECOND?4:8}visitInterval(t,i){return(t.type.unit+1)*4}visitStruct(t,i){return t.children.reduce((r,o)=>r+jn.visit(o,i),0)}visitFixedSizeBinary(t,i){return t.type.byteWidth}visitMap(t,i){return 8+t.children.reduce((r,o)=>r+jn.visit(o,i),0)}visitDictionary(t,i){var r;return t.type.indices.bitWidth/8+(((r=t.dictionary)===null||r===void 0?void 0:r.getByteLength(t.values[i]))||0)}}const uS=({valueOffsets:l},t)=>8+(l[t+1]-l[t]),cS=({valueOffsets:l},t)=>8+(l[t+1]-l[t]),oS=({valueOffsets:l,stride:t,children:i},r)=>{const o=i[0],{[r*t]:f}=l,{[r*t+1]:h}=l,p=jn.getVisitFn(o.type),m=o.slice(f,h-f);let v=8;for(let w=-1,z=h-f;++w<z;)v+=p(m,w);return v},fS=({stride:l,children:t},i)=>{const r=t[0],o=r.slice(i*l,l),f=jn.getVisitFn(r.type);let h=0;for(let p=-1,m=o.length;++p<m;)h+=f(o,p);return h},dS=(l,t)=>l.type.mode===$e.Dense?vv(l,t):bv(l,t),vv=({type:l,children:t,typeIds:i,valueOffsets:r},o)=>{const f=l.typeIdToChildIndex[i[o]];return 8+jn.visit(t[f],r[o])},bv=({children:l},t)=>4+jn.visitMany(l,l.map(()=>t)).reduce(rS,0);$i.prototype.visitUtf8=uS;$i.prototype.visitBinary=cS;$i.prototype.visitList=oS;$i.prototype.visitFixedSizeList=fS;$i.prototype.visitUnion=dS;$i.prototype.visitDenseUnion=vv;$i.prototype.visitSparseUnion=bv;const jn=new $i;var gv;const _v={},Sv={};class wt{constructor(t){var i,r,o;const f=t[0]instanceof wt?t.flatMap(p=>p.data):t;if(f.length===0||f.some(p=>!(p instanceof It)))throw new TypeError("Vector constructor expects an Array of Data instances.");const h=(i=f[0])===null||i===void 0?void 0:i.type;switch(f.length){case 0:this._offsets=[0];break;case 1:{const{get:p,set:m,indexOf:v,byteLength:w}=_v[h.typeId],z=f[0];this.isValid=L=>hd(z,L),this.get=L=>p(z,L),this.set=(L,F)=>m(z,L,F),this.indexOf=L=>v(z,L),this.getByteLength=L=>w(z,L),this._offsets=[0,z.length];break}default:Object.setPrototypeOf(this,Sv[h.typeId]),this._offsets=dv(f);break}this.data=f,this.type=h,this.stride=li(h),this.numChildren=(o=(r=h.children)===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((t,i)=>t+i.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=fv(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${A[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,i){}indexOf(t,i){return-1}includes(t,i){return this.indexOf(t,i)>0}getByteLength(t){return 0}[Symbol.iterator](){return yd.visit(this)}concat(...t){return new wt(this.data.concat(t.flatMap(i=>i.data).flat(Number.POSITIVE_INFINITY)))}slice(t,i){return new wt(cv(this,t,i,({data:r,_offsets:o},f,h)=>hv(r,o,f,h)))}toJSON(){return[...this]}toArray(){const{type:t,data:i,length:r,stride:o,ArrayType:f}=this;switch(t.typeId){case A.Int:case A.Float:case A.Decimal:case A.Time:case A.Timestamp:switch(i.length){case 0:return new f;case 1:return i[0].values.subarray(0,r*o);default:return i.reduce((h,{values:p,length:m})=>(h.array.set(p.subarray(0,m*o),h.offset),h.offset+=m*o,h),{array:new f(r*o),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var i;return this.getChildAt((i=this.type.children)===null||i===void 0?void 0:i.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new wt(this.data.map(({children:i})=>i[t])):null}get isMemoized(){return $.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if($.isDictionary(this.type)){const t=new Vu(this.data[0].dictionary),i=this.data.map(r=>{const o=r.clone();return o.dictionary=t,o});return new wt(i)}return new Vu(this)}unmemoize(){if($.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),i=this.data.map(r=>{const o=r.clone();return o.dictionary=t,o});return new wt(i)}return this}}gv=Symbol.toStringTag;wt[gv]=(l=>{l.type=$.prototype,l.data=[],l.length=0,l.stride=1,l.numChildren=0,l._nullCount=-1,l._byteLength=-1,l._offsets=new Uint32Array([0]),l[Symbol.isConcatSpreadable]=!0;const t=Object.keys(A).map(i=>A[i]).filter(i=>typeof i=="number"&&i!==A.NONE);for(const i of t){const r=Le.getVisitFnByTypeId(i),o=dn.getVisitFnByTypeId(i),f=ju.getVisitFnByTypeId(i),h=jn.getVisitFnByTypeId(i);_v[i]={get:r,set:o,indexOf:f,byteLength:h},Sv[i]=Object.create(l,{isValid:{value:Dl(hd)},get:{value:Dl(Le.getVisitFnByTypeId(i))},set:{value:yv(dn.getVisitFnByTypeId(i))},indexOf:{value:pv(ju.getVisitFnByTypeId(i))},getByteLength:{value:Dl(jn.getVisitFnByTypeId(i))}})}return"Vector"})(wt.prototype);class Vu extends wt{constructor(t){super(t.data);const i=this.get,r=this.set,o=this.slice,f=new Array(this.length);Object.defineProperty(this,"get",{value(h){const p=f[h];if(p!==void 0)return p;const m=i.call(this,h);return f[h]=m,m}}),Object.defineProperty(this,"set",{value(h,p){r.call(this,h,p),f[h]=p}}),Object.defineProperty(this,"slice",{value:(h,p)=>new Vu(o.call(this,h,p))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new wt(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class qf{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,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(t,i,r,o){return t.prep(8,24),t.writeInt64(o),t.pad(4),t.writeInt32(r),t.writeInt64(i),t.offset()}}const zf=2,Un=4,ri=4,Lt=4,Hi=new Int32Array(2),Hp=new Float32Array(Hi.buffer),Yp=new Float64Array(Hi.buffer),vu=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let ci=class Gf{constructor(t,i){this.low=t|0,this.high=i|0}static create(t,i){return t==0&&i==0?Gf.ZERO:new Gf(t,i)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(t){return this.low==t.low&&this.high==t.high}};ci.ZERO=new ci(0,0);var Qf;(function(l){l[l.UTF8_BYTES=1]="UTF8_BYTES",l[l.UTF16_STRING=2]="UTF16_STRING"})(Qf||(Qf={}));let Ml=class Av{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new Av(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new ci(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new ci(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return Hi[0]=this.readInt32(t),Hp[0]}readFloat64(t){return Hi[vu?0:1]=this.readInt32(t),Hi[vu?1:0]=this.readInt32(t+4),Yp[0]}writeInt8(t,i){this.bytes_[t]=i}writeUint8(t,i){this.bytes_[t]=i}writeInt16(t,i){this.bytes_[t]=i,this.bytes_[t+1]=i>>8}writeUint16(t,i){this.bytes_[t]=i,this.bytes_[t+1]=i>>8}writeInt32(t,i){this.bytes_[t]=i,this.bytes_[t+1]=i>>8,this.bytes_[t+2]=i>>16,this.bytes_[t+3]=i>>24}writeUint32(t,i){this.bytes_[t]=i,this.bytes_[t+1]=i>>8,this.bytes_[t+2]=i>>16,this.bytes_[t+3]=i>>24}writeInt64(t,i){this.writeInt32(t,i.low),this.writeInt32(t+4,i.high)}writeUint64(t,i){this.writeUint32(t,i.low),this.writeUint32(t+4,i.high)}writeFloat32(t,i){Hp[0]=i,this.writeInt32(t,Hi[0])}writeFloat64(t,i){Yp[0]=i,this.writeInt32(t,Hi[vu?0:1]),this.writeInt32(t+4,Hi[vu?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+Un+ri)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let i=0;i<ri;i++)t+=String.fromCharCode(this.readInt8(this.position_+Un+i));return t}__offset(t,i){const r=t-this.readInt32(t);return i<this.readInt16(r)?this.readInt16(r+i):0}__union(t,i){return t.bb_pos=i+this.readInt32(i),t.bb=this,t}__string(t,i){t+=this.readInt32(t);const r=this.readInt32(t);let o="",f=0;if(t+=Un,i===Qf.UTF8_BYTES)return this.bytes_.subarray(t,t+r);for(;f<r;){let h;const p=this.readUint8(t+f++);if(p<192)h=p;else{const m=this.readUint8(t+f++);if(p<224)h=(p&31)<<6|m&63;else{const v=this.readUint8(t+f++);if(p<240)h=(p&15)<<12|(m&63)<<6|v&63;else{const w=this.readUint8(t+f++);h=(p&7)<<18|(m&63)<<12|(v&63)<<6|w&63}}}h<65536?o+=String.fromCharCode(h):(h-=65536,o+=String.fromCharCode((h>>10)+55296,(h&1023)+56320))}return o}__union_with_string(t,i){return typeof t=="string"?this.__string(i):this.__union(t,i)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+Un}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=ri)throw new Error("FlatBuffers: file identifier must be length "+ri);for(let i=0;i<ri;i++)if(t.charCodeAt(i)!=this.readInt8(this.position()+Un+i))return!1;return!0}createLong(t,i){return ci.create(t,i)}createScalarList(t,i){const r=[];for(let o=0;o<i;++o)t(o)!==null&&r.push(t(o));return r}createObjList(t,i){const r=[];for(let o=0;o<i;++o){const f=t(o);f!==null&&r.push(f.unpack())}return r}},wv=class Ov{constructor(t){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 i;t?i=t:i=1024,this.bb=Ml.allocate(i),this.space=i}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(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,i){t>this.minalign&&(this.minalign=t);const r=~(this.bb.capacity()-this.space+i)+1&t-1;for(;this.space<r+t+i;){const o=this.bb.capacity();this.bb=Ov.growByteBuffer(this.bb),this.space+=this.bb.capacity()-o}this.pad(r)}pad(t){for(let i=0;i<t;i++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,i,r){(this.force_defaults||i!=r)&&(this.addInt8(i),this.slot(t))}addFieldInt16(t,i,r){(this.force_defaults||i!=r)&&(this.addInt16(i),this.slot(t))}addFieldInt32(t,i,r){(this.force_defaults||i!=r)&&(this.addInt32(i),this.slot(t))}addFieldInt64(t,i,r){(this.force_defaults||!i.equals(r))&&(this.addInt64(i),this.slot(t))}addFieldFloat32(t,i,r){(this.force_defaults||i!=r)&&(this.addFloat32(i),this.slot(t))}addFieldFloat64(t,i,r){(this.force_defaults||i!=r)&&(this.addFloat64(i),this.slot(t))}addFieldOffset(t,i,r){(this.force_defaults||i!=r)&&(this.addOffset(i),this.slot(t))}addFieldStruct(t,i,r){i!=r&&(this.nested(i),this.slot(t))}nested(t){if(t!=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(t){this.vtable!==null&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){const i=t.capacity();if(i&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=i<<1,o=Ml.allocate(r);return o.setPosition(r-i),o.bytes().set(t.bytes(),r-i),o}addOffset(t){this.prep(Un,0),this.writeInt32(this.offset()-t+Un)}startObject(t){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=t;for(let i=0;i<t;i++)this.vtable[i]=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 t=this.offset();let i=this.vtable_in_use-1;for(;i>=0&&this.vtable[i]==0;i--);const r=i+1;for(;i>=0;i--)this.addInt16(this.vtable[i]!=0?t-this.vtable[i]:0);const o=2;this.addInt16(t-this.object_start);const f=(r+o)*zf;this.addInt16(f);let h=0;const p=this.space;t:for(i=0;i<this.vtables.length;i++){const m=this.bb.capacity()-this.vtables[i];if(f==this.bb.readInt16(m)){for(let v=zf;v<f;v+=zf)if(this.bb.readInt16(p+v)!=this.bb.readInt16(m+v))continue t;h=this.vtables[i];break}}return h?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,h-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,i,r){const o=r?Lt:0;if(i){const f=i;if(this.prep(this.minalign,Un+ri+o),f.length!=ri)throw new Error("FlatBuffers: file identifier must be length "+ri);for(let h=ri-1;h>=0;h--)this.writeInt8(f.charCodeAt(h))}this.prep(this.minalign,Un+o),this.addOffset(t),o&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,i){this.finish(t,i,!0)}requiredField(t,i){const r=this.bb.capacity()-t,o=r-this.bb.readInt32(r);if(!(this.bb.readInt16(o+i)!=0))throw new Error("FlatBuffers: field "+i+" must be set")}startVector(t,i,r){this.notNested(),this.vector_num_elems=i,this.prep(Un,t*i),this.prep(r,t*i)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);const i=this.createString(t);return this.string_maps.set(t,i),i}createString(t){if(!t)return 0;let i;if(t instanceof Uint8Array)i=t;else{i=[];let r=0;for(;r<t.length;){let o;const f=t.charCodeAt(r++);if(f<55296||f>=56320)o=f;else{const h=t.charCodeAt(r++);o=(f<<10)+h+-56613888}o<128?i.push(o):(o<2048?i.push(o>>6&31|192):(o<65536?i.push(o>>12&15|224):i.push(o>>18&7|240,o>>12&63|128),i.push(o>>6&63|128)),i.push(o&63|128))}}this.addInt8(0),this.startVector(1,i.length,1),this.bb.setPosition(this.space-=i.length);for(let r=0,o=this.space,f=this.bb.bytes();r<i.length;r++)f[o++]=i[r];return this.endVector()}createLong(t,i){return ci.create(t,i)}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){const i=[];for(let r=0;r<t.length;++r){const o=t[r];if(o!==null)i.push(this.createObjectOffset(o));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return i}createStructOffsetList(t,i){return i(this,t.length),this.createObjectOffsetList(t),this.endVector()}};class ie{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsKeyValue(t,i){return(i||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,i){return t.setPosition(t.position()+Lt),(i||new ie).__init(t.readInt32(t.position())+t.position(),t)}key(t){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.__string(this.bb_pos+i,t):null}value(t){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.__string(this.bb_pos+i,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,i){t.addFieldOffset(0,i,0)}static addValue(t,i){t.addFieldOffset(1,i,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,i,r){return ie.startKeyValue(t),ie.addKey(t,i),ie.addValue(t,r),ie.endKeyValue(t)}}var El;(function(l){l[l.V1=0]="V1",l[l.V2=1]="V2",l[l.V3=2]="V3",l[l.V4=3]="V4",l[l.V5=4]="V5"})(El||(El={}));var Nl;(function(l){l[l.Little=0]="Little",l[l.Big=1]="Big"})(Nl||(Nl={}));var Hu;(function(l){l[l.DenseArray=0]="DenseArray"})(Hu||(Hu={}));class Ke{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsInt(t,i){return(i||new Ke).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,i){return t.setPosition(t.position()+Lt),(i||new Ke).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startInt(t){t.startObject(2)}static addBitWidth(t,i){t.addFieldInt32(0,i,0)}static addIsSigned(t,i){t.addFieldInt8(1,+i,0)}static endInt(t){return t.endObject()}static createInt(t,i,r){return Ke.startInt(t),Ke.addBitWidth(t,i),Ke.addIsSigned(t,r),Ke.endInt(t)}}class ui{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsDictionaryEncoding(t,i){return(i||new ui).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,i){return t.setPosition(t.position()+Lt),(i||new ui).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}indexType(t){const i=this.bb.__offset(this.bb_pos,6);return i?(t||new Ke).__init(this.bb.__indirect(this.bb_pos+i),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):Hu.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,i){t.addFieldInt64(0,i,t.createLong(0,0))}static addIndexType(t,i){t.addFieldOffset(1,i,0)}static addIsOrdered(t,i){t.addFieldInt8(2,+i,0)}static addDictionaryKind(t,i){t.addFieldInt16(3,i,Hu.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class ga{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsBinary(t,i){return(i||new ga).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,i){return t.setPosition(t.position()+Lt),(i||new ga).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return ga.startBinary(t),ga.endBinary(t)}}class _a{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsBool(t,i){return(i||new _a).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,i){return t.setPosition(t.position()+Lt),(i||new _a).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return _a.startBool(t),_a.endBool(t)}}var Yu;(function(l){l[l.DAY=0]="DAY",l[l.MILLISECOND=1]="MILLISECOND"})(Yu||(Yu={}));let _u=class bl{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsDate(t,i){return(i||new bl).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,i){return t.setPosition(t.position()+Lt),(i||new bl).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Yu.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,i){t.addFieldInt16(0,i,Yu.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,i){return bl.startDate(t),bl.addUnit(t,i),bl.endDate(t)}};class Ne{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsDecimal(t,i){return(i||new Ne).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,i){return t.setPosition(t.position()+Lt),(i||new Ne).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,i){t.addFieldInt32(0,i,0)}static addScale(t,i){t.addFieldInt32(1,i,0)}static addBitWidth(t,i){t.addFieldInt32(2,i,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,i,r,o){return Ne.startDecimal(t),Ne.addPrecision(t,i),Ne.addScale(t,r),Ne.addBitWidth(t,o),Ne.endDecimal(t)}}var Ul;(function(l){l[l.SECOND=0]="SECOND",l[l.MILLISECOND=1]="MILLISECOND",l[l.MICROSECOND=2]="MICROSECOND",l[l.NANOSECOND=3]="NANOSECOND"})(Ul||(Ul={}));class Rn{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsFixedSizeBinary(t,i){return(i||new Rn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,i){return t.setPosition(t.position()+Lt),(i||new Rn).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,i){t.addFieldInt32(0,i,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,i){return Rn.startFixedSizeBinary(t),Rn.addByteWidth(t,i),Rn.endFixedSizeBinary(t)}}class zn{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsFixedSizeList(t,i){return(i||new zn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,i){return t.setPosition(t.position()+Lt),(i||new zn).__init(t.readInt32(t.position())+t.position(),t)}listSize(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,i){t.addFieldInt32(0,i,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,i){return zn.startFixedSizeList(t),zn.addListSize(t,i),zn.endFixedSizeList(t)}}var qu;(function(l){l[l.HALF=0]="HALF",l[l.SINGLE=1]="SINGLE",l[l.DOUBLE=2]="DOUBLE"})(qu||(qu={}));class xn{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsFloatingPoint(t,i){return(i||new xn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,i){return t.setPosition(t.position()+Lt),(i||new xn).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):qu.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,i){t.addFieldInt16(0,i,qu.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,i){return xn.startFloatingPoint(t),xn.addPrecision(t,i),xn.endFloatingPoint(t)}}var Gu;(function(l){l[l.YEAR_MONTH=0]="YEAR_MONTH",l[l.DAY_TIME=1]="DAY_TIME",l[l.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Gu||(Gu={}));class Ln{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsInterval(t,i){return(i||new Ln).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,i){return t.setPosition(t.position()+Lt),(i||new Ln).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Gu.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,i){t.addFieldInt16(0,i,Gu.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,i){return Ln.startInterval(t),Ln.addUnit(t,i),Ln.endInterval(t)}}class Sa{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsList(t,i){return(i||new Sa).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,i){return t.setPosition(t.position()+Lt),(i||new Sa).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return Sa.startList(t),Sa.endList(t)}}let Su=class gl{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsMap(t,i){return(i||new gl).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,i){return t.setPosition(t.position()+Lt),(i||new gl).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startMap(t){t.startObject(1)}static addKeysSorted(t,i){t.addFieldInt8(0,+i,0)}static endMap(t){return t.endObject()}static createMap(t,i){return gl.startMap(t),gl.addKeysSorted(t,i),gl.endMap(t)}};class Aa{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsNull(t,i){return(i||new Aa).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,i){return t.setPosition(t.position()+Lt),(i||new Aa).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return Aa.startNull(t),Aa.endNull(t)}}class wa{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsStruct_(t,i){return(i||new wa).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,i){return t.setPosition(t.position()+Lt),(i||new wa).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return wa.startStruct_(t),wa.endStruct_(t)}}class on{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsTime(t,i){return(i||new on).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,i){return t.setPosition(t.position()+Lt),(i||new on).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ul.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,i){t.addFieldInt16(0,i,Ul.MILLISECOND)}static addBitWidth(t,i){t.addFieldInt32(1,i,32)}static endTime(t){return t.endObject()}static createTime(t,i,r){return on.startTime(t),on.addUnit(t,i),on.addBitWidth(t,r),on.endTime(t)}}class fn{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsTimestamp(t,i){return(i||new fn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,i){return t.setPosition(t.position()+Lt),(i||new fn).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ul.SECOND}timezone(t){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.__string(this.bb_pos+i,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,i){t.addFieldInt16(0,i,Ul.SECOND)}static addTimezone(t,i){t.addFieldOffset(1,i,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,i,r){return fn.startTimestamp(t),fn.addUnit(t,i),fn.addTimezone(t,r),fn.endTimestamp(t)}}var Qu;(function(l){l[l.Sparse=0]="Sparse",l[l.Dense=1]="Dense"})(Qu||(Qu={}));class Ue{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsUnion(t,i){return(i||new Ue).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,i){return t.setPosition(t.position()+Lt),(i||new Ue).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Qu.Sparse}typeIds(t){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.readInt32(this.bb.__vector(this.bb_pos+i)+t*4):0}typeIdsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,i){t.addFieldInt16(0,i,Qu.Sparse)}static addTypeIds(t,i){t.addFieldOffset(1,i,0)}static createTypeIdsVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addInt32(i[r]);return t.endVector()}static startTypeIdsVector(t,i){t.startVector(4,i,4)}static endUnion(t){return t.endObject()}static createUnion(t,i,r){return Ue.startUnion(t),Ue.addMode(t,i),Ue.addTypeIds(t,r),Ue.endUnion(t)}}class Oa{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsUtf8(t,i){return(i||new Oa).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,i){return t.setPosition(t.position()+Lt),(i||new Oa).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return Oa.startUtf8(t),Oa.endUtf8(t)}}var Gt;(function(l){l[l.NONE=0]="NONE",l[l.Null=1]="Null",l[l.Int=2]="Int",l[l.FloatingPoint=3]="FloatingPoint",l[l.Binary=4]="Binary",l[l.Utf8=5]="Utf8",l[l.Bool=6]="Bool",l[l.Decimal=7]="Decimal",l[l.Date=8]="Date",l[l.Time=9]="Time",l[l.Timestamp=10]="Timestamp",l[l.Interval=11]="Interval",l[l.List=12]="List",l[l.Struct_=13]="Struct_",l[l.Union=14]="Union",l[l.FixedSizeBinary=15]="FixedSizeBinary",l[l.FixedSizeList=16]="FixedSizeList",l[l.Map=17]="Map",l[l.Duration=18]="Duration",l[l.LargeBinary=19]="LargeBinary",l[l.LargeUtf8=20]="LargeUtf8",l[l.LargeList=21]="LargeList"})(Gt||(Gt={}));let un=class Au{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsField(t,i){return(i||new Au).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,i){return t.setPosition(t.position()+Lt),(i||new Au).__init(t.readInt32(t.position())+t.position(),t)}name(t){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.__string(this.bb_pos+i,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}typeType(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):Gt.NONE}type(t){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.__union(t,this.bb_pos+i):null}dictionary(t){const i=this.bb.__offset(this.bb_pos,12);return i?(t||new ui).__init(this.bb.__indirect(this.bb_pos+i),this.bb):null}children(t,i){const r=this.bb.__offset(this.bb_pos,14);return r?(i||new Au).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,i){const r=this.bb.__offset(this.bb_pos,16);return r?(i||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,i){t.addFieldOffset(0,i,0)}static addNullable(t,i){t.addFieldInt8(1,+i,0)}static addTypeType(t,i){t.addFieldInt8(2,i,Gt.NONE)}static addType(t,i){t.addFieldOffset(3,i,0)}static addDictionary(t,i){t.addFieldOffset(4,i,0)}static addChildren(t,i){t.addFieldOffset(5,i,0)}static createChildrenVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startChildrenVector(t,i){t.startVector(4,i,4)}static addCustomMetadata(t,i){t.addFieldOffset(6,i,0)}static createCustomMetadataVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startCustomMetadataVector(t,i){t.startVector(4,i,4)}static endField(t){return t.endObject()}},Bn=class ii{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsSchema(t,i){return(i||new ii).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,i){return t.setPosition(t.position()+Lt),(i||new ii).__init(t.readInt32(t.position())+t.position(),t)}endianness(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Nl.Little}fields(t,i){const r=this.bb.__offset(this.bb_pos,6);return r?(i||new un).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,i){const r=this.bb.__offset(this.bb_pos,8);return r?(i||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.readInt64(this.bb.__vector(this.bb_pos+i)+t*8):this.bb.createLong(0,0)}featuresLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,i){t.addFieldInt16(0,i,Nl.Little)}static addFields(t,i){t.addFieldOffset(1,i,0)}static createFieldsVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startFieldsVector(t,i){t.startVector(4,i,4)}static addCustomMetadata(t,i){t.addFieldOffset(2,i,0)}static createCustomMetadataVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startCustomMetadataVector(t,i){t.startVector(4,i,4)}static addFeatures(t,i){t.addFieldOffset(3,i,0)}static createFeaturesVector(t,i){t.startVector(8,i.length,8);for(let r=i.length-1;r>=0;r--)t.addInt64(i[r]);return t.endVector()}static startFeaturesVector(t,i){t.startVector(8,i,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,i){t.finish(i)}static finishSizePrefixedSchemaBuffer(t,i){t.finish(i,void 0,!0)}static createSchema(t,i,r,o,f){return ii.startSchema(t),ii.addEndianness(t,i),ii.addFields(t,r),ii.addCustomMetadata(t,o),ii.addFeatures(t,f),ii.endSchema(t)}};class Ze{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsFooter(t,i){return(i||new Ze).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,i){return t.setPosition(t.position()+Lt),(i||new Ze).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):El.V1}schema(t){const i=this.bb.__offset(this.bb_pos,6);return i?(t||new Bn).__init(this.bb.__indirect(this.bb_pos+i),this.bb):null}dictionaries(t,i){const r=this.bb.__offset(this.bb_pos,8);return r?(i||new qf).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,i){const r=this.bb.__offset(this.bb_pos,10);return r?(i||new qf).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,i){const r=this.bb.__offset(this.bb_pos,12);return r?(i||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,i){t.addFieldInt16(0,i,El.V1)}static addSchema(t,i){t.addFieldOffset(1,i,0)}static addDictionaries(t,i){t.addFieldOffset(2,i,0)}static startDictionariesVector(t,i){t.startVector(24,i,8)}static addRecordBatches(t,i){t.addFieldOffset(3,i,0)}static startRecordBatchesVector(t,i){t.startVector(24,i,8)}static addCustomMetadata(t,i){t.addFieldOffset(4,i,0)}static createCustomMetadataVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startCustomMetadataVector(t,i){t.startVector(4,i,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,i){t.finish(i)}static finishSizePrefixedFooterBuffer(t,i){t.finish(i,void 0,!0)}}class Ot{constructor(t=[],i,r){this.fields=t||[],this.metadata=i||new Map,r||(r=Xf(t)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,i)=>`${i}: ${t}`).join(", ")} }>`}select(t){const i=new Set(t),r=this.fields.filter(o=>i.has(o.name));return new Ot(r,this.metadata)}selectAt(t){const i=t.map(r=>this.fields[r]).filter(Boolean);return new Ot(i,this.metadata)}assign(...t){const i=t[0]instanceof Ot?t[0]:Array.isArray(t[0])?new Ot(t[0]):new Ot(t),r=[...this.fields],o=bu(bu(new Map,this.metadata),i.metadata),f=i.fields.filter(p=>{const m=r.findIndex(v=>v.name===p.name);return~m?(r[m]=p.clone({metadata:bu(bu(new Map,r[m].metadata),p.metadata)}))&&!1:!0}),h=Xf(f,new Map);return new Ot([...r,...f],o,new Map([...this.dictionaries,...h]))}}Ot.prototype.fields=null;Ot.prototype.metadata=null;Ot.prototype.dictionaries=null;class Ft{constructor(t,i,r=!1,o){this.name=t,this.type=i,this.nullable=r,this.metadata=o||new Map}static new(...t){let[i,r,o,f]=t;return t[0]&&typeof t[0]=="object"&&({name:i}=t[0],r===void 0&&(r=t[0].type),o===void 0&&(o=t[0].nullable),f===void 0&&(f=t[0].metadata)),new Ft(`${i}`,r,o,f)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[i,r,o,f]=t;return!t[0]||typeof t[0]!="object"?[i=this.name,r=this.type,o=this.nullable,f=this.metadata]=t:{name:i=this.name,type:r=this.type,nullable:o=this.nullable,metadata:f=this.metadata}=t[0],Ft.new(i,r,o,f)}}Ft.prototype.type=null;Ft.prototype.name=null;Ft.prototype.nullable=null;Ft.prototype.metadata=null;function bu(l,t){return new Map([...l||new Map,...t||new Map])}function Xf(l,t=new Map){for(let i=-1,r=l.length;++i<r;){const f=l[i].type;if($.isDictionary(f)){if(!t.has(f.id))t.set(f.id,f.dictionary);else if(t.get(f.id)!==f.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}f.children&&f.children.length>0&&Xf(f.children,t)}return t}var qp=ci,hS=wv,yS=Ml;class Xs{constructor(t,i=Je.V4,r,o){this.schema=t,this.version=i,r&&(this._recordBatches=r),o&&(this._dictionaryBatches=o)}static decode(t){t=new yS(gt(t));const i=Ze.getRootAsFooter(t),r=Ot.decode(i.schema());return new pS(r,i)}static encode(t){const i=new hS,r=Ot.encode(i,t.schema);Ze.startRecordBatchesVector(i,t.numRecordBatches);for(const h of[...t.recordBatches()].slice().reverse())Zi.encode(i,h);const o=i.endVector();Ze.startDictionariesVector(i,t.numDictionaries);for(const h of[...t.dictionaryBatches()].slice().reverse())Zi.encode(i,h);const f=i.endVector();return Ze.startFooter(i),Ze.addSchema(i,r),Ze.addVersion(i,Je.V4),Ze.addRecordBatches(i,o),Ze.addDictionaries(i,f),Ze.finishFooterBuffer(i,Ze.endFooter(i)),i.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,i=-1,r=this.numRecordBatches;++i<r;)(t=this.getRecordBatch(i))&&(yield t)}*dictionaryBatches(){for(let t,i=-1,r=this.numDictionaries;++i<r;)(t=this.getDictionaryBatch(i))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class pS extends Xs{constructor(t,i){super(t,i.version()),this._footer=i}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){const i=this._footer.recordBatches(t);if(i)return Zi.decode(i)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const i=this._footer.dictionaries(t);if(i)return Zi.decode(i)}return null}}class Zi{constructor(t,i,r){this.metaDataLength=t,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof i=="number"?i:i.low}static decode(t){return new Zi(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,i){const{metaDataLength:r}=i,o=new qp(i.offset,0),f=new qp(i.bodyLength,0);return qf.createBlock(t,o,r,f)}}const Qt=Object.freeze({done:!0,value:void 0});class Gp{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class pd{tee(){return this._getDOMStream().tee()}pipe(t,i){return this._getNodeStream().pipe(t,i)}pipeTo(t,i){return this._getDOMStream().pipeTo(t,i)}pipeThrough(t,i){return this._getDOMStream().pipeThrough(t,i)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class mS extends pd{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return K(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(Qt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return cn.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return cn.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return K(this,void 0,void 0,function*(){return yield this.abort(t),Qt})}return(t){return K(this,void 0,void 0,function*(){return yield this.close(),Qt})}read(t){return K(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return K(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){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((i,r)=>{this.resolvers.push({resolve:i,reject:r})}):Promise.resolve(Qt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class wu extends mS{write(t){if((t=gt(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?Ff(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ff)}toUint8Array(t=!1){return t?Fn(this._values)[0]:K(this,void 0,void 0,function*(){var i,r;const o=[];let f=0;try{for(var h=Ta(this),p;p=yield h.next(),!p.done;){const m=p.value;o.push(m),f+=m.byteLength}}catch(m){i={error:m}}finally{try{p&&!p.done&&(r=h.return)&&(yield r.call(h))}finally{if(i)throw i.error}}return Fn(o,f)[0]})}}class Xu{constructor(t){t&&(this.source=new vS(cn.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class Rl{constructor(t){t instanceof Rl?this.source=t.source:t instanceof wu?this.source=new ba(cn.fromAsyncIterable(t)):sm(t)?this.source=new ba(cn.fromNodeStream(t)):ed(t)?this.source=new ba(cn.fromDOMStream(t)):lm(t)?this.source=new ba(cn.fromDOMStream(t.body)):$s(t)?this.source=new ba(cn.fromIterable(t)):qi(t)?this.source=new ba(cn.fromAsyncIterable(t)):xl(t)&&(this.source=new ba(cn.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class vS{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,i="read"){return this.source.next({cmd:i,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||Qt)}return(t){return Object.create(this.source.return&&this.source.return(t)||Qt)}}class ba{constructor(t){this.source=t,this._closedPromise=new Promise(i=>this._closedPromiseResolve=i)}cancel(t){return K(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return K(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return K(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t,i="read"){return K(this,void 0,void 0,function*(){return yield this.source.next({cmd:i,size:t})})}throw(t){return K(this,void 0,void 0,function*(){const i=this.source.throw&&(yield this.source.throw(t))||Qt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(i)})}return(t){return K(this,void 0,void 0,function*(){const i=this.source.return&&(yield this.source.return(t))||Qt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(i)})}}class Qp extends Xu{constructor(t,i){super(),this.position=0,this.buffer=gt(t),this.size=typeof i>"u"?this.buffer.byteLength:i}readInt32(t){const{buffer:i,byteOffset:r}=this.readAt(t,4);return new DataView(i,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){const{buffer:i,size:r,position:o}=this;return i&&o<r?(typeof t!="number"&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(r,o+Math.min(r-o,t)),i.subarray(o,this.position)):null}readAt(t,i){const r=this.buffer,o=Math.min(this.size,t+i);return r?r.subarray(t,o):new Uint8Array(i)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class Zu extends Rl{constructor(t,i){super(),this.position=0,this._handle=t,typeof i=="number"?this.size=i:this._pending=K(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending})}readInt32(t){return K(this,void 0,void 0,function*(){const{buffer:i,byteOffset:r}=yield this.readAt(t,4);return new DataView(i,r).getInt32(0,!0)})}seek(t){return K(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return K(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:i,size:r,position:o}=this;if(i&&o<r){typeof t!="number"&&(t=Number.POSITIVE_INFINITY);let f=o,h=0,p=0;const m=Math.min(r,f+Math.min(r-f,t)),v=new Uint8Array(Math.max(0,(this.position=m)-f));for(;(f+=p)<m&&(h+=p)<v.byteLength;)({bytesRead:p}=yield i.read(v,h,v.byteLength-h,f));return v}return null})}readAt(t,i){return K(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:o}=this;if(r&&t+i<o){const f=Math.min(o,t+i),h=new Uint8Array(f-t);return(yield r.read(h,0,i,t)).buffer}return new Uint8Array(i)})}close(){return K(this,void 0,void 0,function*(){const t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return K(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return K(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}const bS=65536;function Sl(l){return l<0&&(l=4294967295+l+1),`0x${l.toString(16)}`}const zl=8,md=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class Tv{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){const i=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([t.buffer[1]>>>16,t.buffer[1]&65535,t.buffer[0]>>>16,t.buffer[0]&65535]);let o=i[3]*r[3];this.buffer[0]=o&65535;let f=o>>>16;return o=i[2]*r[3],f+=o,o=i[3]*r[2]>>>0,f+=o,this.buffer[0]+=f<<16,this.buffer[1]=f>>>0<o?bS:0,this.buffer[1]+=f>>>16,this.buffer[1]+=i[1]*r[3]+i[2]*r[2]+i[3]*r[1],this.buffer[1]+=i[0]*r[3]+i[1]*r[2]+i[2]*r[1]+i[3]*r[0]<<16,this}_plus(t){const i=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],i<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=i}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${Sl(this.buffer[1])} ${Sl(this.buffer[0])}`}}class Bt extends Tv{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,i=new Uint32Array(2)){return Bt.fromString(typeof t=="string"?t:t.toString(),i)}static fromNumber(t,i=new Uint32Array(2)){return Bt.fromString(t.toString(),i)}static fromString(t,i=new Uint32Array(2)){const r=t.length,o=new Bt(i);for(let f=0;f<r;){const h=zl<r-f?zl:r-f,p=new Bt(new Uint32Array([Number.parseInt(t.slice(f,f+h),10),0])),m=new Bt(new Uint32Array([md[h],0]));o.times(m),o.plus(p),f+=h}return o}static convertArray(t){const i=new Uint32Array(t.length*2);for(let r=-1,o=t.length;++r<o;)Bt.from(t[r],new Uint32Array(i.buffer,i.byteOffset+2*r*4,2));return i}static multiply(t,i){return new Bt(new Uint32Array(t.buffer)).times(i)}static add(t,i){return new Bt(new Uint32Array(t.buffer)).plus(i)}}class Ee extends Tv{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){const i=this.buffer[1]<<0,r=t.buffer[1]<<0;return i<r||i===r&&this.buffer[0]<t.buffer[0]}static from(t,i=new Uint32Array(2)){return Ee.fromString(typeof t=="string"?t:t.toString(),i)}static fromNumber(t,i=new Uint32Array(2)){return Ee.fromString(t.toString(),i)}static fromString(t,i=new Uint32Array(2)){const r=t.startsWith("-"),o=t.length,f=new Ee(i);for(let h=r?1:0;h<o;){const p=zl<o-h?zl:o-h,m=new Ee(new Uint32Array([Number.parseInt(t.slice(h,h+p),10),0])),v=new Ee(new Uint32Array([md[p],0]));f.times(v),f.plus(m),h+=p}return r?f.negate():f}static convertArray(t){const i=new Uint32Array(t.length*2);for(let r=-1,o=t.length;++r<o;)Ee.from(t[r],new Uint32Array(i.buffer,i.byteOffset+2*r*4,2));return i}static multiply(t,i){return new Ee(new Uint32Array(t.buffer)).times(i)}static add(t,i){return new Ee(new Uint32Array(t.buffer)).plus(i)}}class Mn{constructor(t){this.buffer=t}high(){return new Ee(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Ee(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(t){const i=new Bt(new Uint32Array([this.buffer[3],0])),r=new Bt(new Uint32Array([this.buffer[2],0])),o=new Bt(new Uint32Array([this.buffer[1],0])),f=new Bt(new Uint32Array([this.buffer[0],0])),h=new Bt(new Uint32Array([t.buffer[3],0])),p=new Bt(new Uint32Array([t.buffer[2],0])),m=new Bt(new Uint32Array([t.buffer[1],0])),v=new Bt(new Uint32Array([t.buffer[0],0]));let w=Bt.multiply(f,v);this.buffer[0]=w.low();const z=new Bt(new Uint32Array([w.high(),0]));return w=Bt.multiply(o,v),z.plus(w),w=Bt.multiply(f,m),z.plus(w),this.buffer[1]=z.low(),this.buffer[3]=z.lessThan(w)?1:0,this.buffer[2]=z.high(),new Bt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Bt.multiply(r,v)).plus(Bt.multiply(o,m)).plus(Bt.multiply(f,p)),this.buffer[3]+=Bt.multiply(i,v).plus(Bt.multiply(r,m)).plus(Bt.multiply(o,p)).plus(Bt.multiply(f,h)).low(),this}plus(t){const i=new Uint32Array(4);return i[3]=this.buffer[3]+t.buffer[3]>>>0,i[2]=this.buffer[2]+t.buffer[2]>>>0,i[1]=this.buffer[1]+t.buffer[1]>>>0,i[0]=this.buffer[0]+t.buffer[0]>>>0,i[0]<this.buffer[0]>>>0&&++i[1],i[1]<this.buffer[1]>>>0&&++i[2],i[2]<this.buffer[2]>>>0&&++i[3],this.buffer[3]=i[3],this.buffer[2]=i[2],this.buffer[1]=i[1],this.buffer[0]=i[0],this}hex(){return`${Sl(this.buffer[3])} ${Sl(this.buffer[2])} ${Sl(this.buffer[1])} ${Sl(this.buffer[0])}`}static multiply(t,i){return new Mn(new Uint32Array(t.buffer)).times(i)}static add(t,i){return new Mn(new Uint32Array(t.buffer)).plus(i)}static from(t,i=new Uint32Array(4)){return Mn.fromString(typeof t=="string"?t:t.toString(),i)}static fromNumber(t,i=new Uint32Array(4)){return Mn.fromString(t.toString(),i)}static fromString(t,i=new Uint32Array(4)){const r=t.startsWith("-"),o=t.length,f=new Mn(i);for(let h=r?1:0;h<o;){const p=zl<o-h?zl:o-h,m=new Mn(new Uint32Array([Number.parseInt(t.slice(h,h+p),10),0,0,0])),v=new Mn(new Uint32Array([md[p],0,0,0]));f.times(v),f.plus(m),h+=p}return r?f.negate():f}static convertArray(t){const i=new Uint32Array(t.length*4);for(let r=-1,o=t.length;++r<o;)Mn.from(t[r],new Uint32Array(i.buffer,i.byteOffset+4*4*r,4));return i}}class Dv extends ht{constructor(t,i,r,o){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=i,this.buffers=r,this.dictionaries=o}visit(t){return super.visit(t instanceof Ft?t.type:t)}visitNull(t,{length:i}=this.nextFieldNode()){return dt({type:t,length:i})}visitBool(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitInt(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFloat(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitUtf8(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDate(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTimestamp(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTime(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDecimal(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitList(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),children:this.visitMany(t.children)})}visitUnion(t){return t.mode===$e.Sparse?this.visitSparseUnion(t):this.visitDenseUnion(t)}visitDenseUnion(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFixedSizeList(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),child:this.visit(t.children[0])})}visitMap(t,{length:i,nullCount:r}=this.nextFieldNode()){return dt({type:t,length:i,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,i,r=this.nextBufferRange()){return i>0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,i){return this.readData(t,i)}readTypeIds(t,i){return this.readData(t,i)}readData(t,{length:i,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+i)}readDictionary(t){return this.dictionaries.get(t.id)}}class gS extends Dv{constructor(t,i,r,o){super(new Uint8Array(0),i,r,o),this.sources=t}readNullBitmap(t,i,{offset:r}=this.nextBufferRange()){return i<=0?new Uint8Array(0):Fu(this.sources[r])}readOffsets(t,{offset:i}=this.nextBufferRange()){return xt(Uint8Array,xt(Int32Array,this.sources[i]))}readTypeIds(t,{offset:i}=this.nextBufferRange()){return xt(Uint8Array,xt(t.ArrayType,this.sources[i]))}readData(t,{offset:i}=this.nextBufferRange()){const{sources:r}=this;return $.isTimestamp(t)||($.isInt(t)||$.isTime(t))&&t.bitWidth===64||$.isDate(t)&&t.unit===fi.MILLISECOND?xt(Uint8Array,Ee.convertArray(r[i])):$.isDecimal(t)?xt(Uint8Array,Mn.convertArray(r[i])):$.isBinary(t)||$.isFixedSizeBinary(t)?_S(r[i]):$.isBool(t)?Fu(r[i]):$.isUtf8(t)?td(r[i].join("")):xt(Uint8Array,xt(t.ArrayType,r[i].map(o=>+o)))}}function _S(l){const t=l.join(""),i=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)i[r>>1]=Number.parseInt(t.slice(r,r+2),16);return i}class tt extends ht{compareSchemas(t,i){return t===i||i instanceof t.constructor&&this.compareManyFields(t.fields,i.fields)}compareManyFields(t,i){return t===i||Array.isArray(t)&&Array.isArray(i)&&t.length===i.length&&t.every((r,o)=>this.compareFields(r,i[o]))}compareFields(t,i){return t===i||i instanceof t.constructor&&t.name===i.name&&t.nullable===i.nullable&&this.visit(t.type,i.type)}}function Ce(l,t){return t instanceof l.constructor}function ks(l,t){return l===t||Ce(l,t)}function hi(l,t){return l===t||Ce(l,t)&&l.bitWidth===t.bitWidth&&l.isSigned===t.isSigned}function ic(l,t){return l===t||Ce(l,t)&&l.precision===t.precision}function SS(l,t){return l===t||Ce(l,t)&&l.byteWidth===t.byteWidth}function vd(l,t){return l===t||Ce(l,t)&&l.unit===t.unit}function Ws(l,t){return l===t||Ce(l,t)&&l.unit===t.unit&&l.timezone===t.timezone}function Ps(l,t){return l===t||Ce(l,t)&&l.unit===t.unit&&l.bitWidth===t.bitWidth}function AS(l,t){return l===t||Ce(l,t)&&l.children.length===t.children.length&&Ki.compareManyFields(l.children,t.children)}function wS(l,t){return l===t||Ce(l,t)&&l.children.length===t.children.length&&Ki.compareManyFields(l.children,t.children)}function bd(l,t){return l===t||Ce(l,t)&&l.mode===t.mode&&l.typeIds.every((i,r)=>i===t.typeIds[r])&&Ki.compareManyFields(l.children,t.children)}function OS(l,t){return l===t||Ce(l,t)&&l.id===t.id&&l.isOrdered===t.isOrdered&&Ki.visit(l.indices,t.indices)&&Ki.visit(l.dictionary,t.dictionary)}function gd(l,t){return l===t||Ce(l,t)&&l.unit===t.unit}function TS(l,t){return l===t||Ce(l,t)&&l.listSize===t.listSize&&l.children.length===t.children.length&&Ki.compareManyFields(l.children,t.children)}function DS(l,t){return l===t||Ce(l,t)&&l.keysSorted===t.keysSorted&&l.children.length===t.children.length&&Ki.compareManyFields(l.children,t.children)}tt.prototype.visitNull=ks;tt.prototype.visitBool=ks;tt.prototype.visitInt=hi;tt.prototype.visitInt8=hi;tt.prototype.visitInt16=hi;tt.prototype.visitInt32=hi;tt.prototype.visitInt64=hi;tt.prototype.visitUint8=hi;tt.prototype.visitUint16=hi;tt.prototype.visitUint32=hi;tt.prototype.visitUint64=hi;tt.prototype.visitFloat=ic;tt.prototype.visitFloat16=ic;tt.prototype.visitFloat32=ic;tt.prototype.visitFloat64=ic;tt.prototype.visitUtf8=ks;tt.prototype.visitBinary=ks;tt.prototype.visitFixedSizeBinary=SS;tt.prototype.visitDate=vd;tt.prototype.visitDateDay=vd;tt.prototype.visitDateMillisecond=vd;tt.prototype.visitTimestamp=Ws;tt.prototype.visitTimestampSecond=Ws;tt.prototype.visitTimestampMillisecond=Ws;tt.prototype.visitTimestampMicrosecond=Ws;tt.prototype.visitTimestampNanosecond=Ws;tt.prototype.visitTime=Ps;tt.prototype.visitTimeSecond=Ps;tt.prototype.visitTimeMillisecond=Ps;tt.prototype.visitTimeMicrosecond=Ps;tt.prototype.visitTimeNanosecond=Ps;tt.prototype.visitDecimal=ks;tt.prototype.visitList=AS;tt.prototype.visitStruct=wS;tt.prototype.visitUnion=bd;tt.prototype.visitDenseUnion=bd;tt.prototype.visitSparseUnion=bd;tt.prototype.visitDictionary=OS;tt.prototype.visitInterval=gd;tt.prototype.visitIntervalDayTime=gd;tt.prototype.visitIntervalYearMonth=gd;tt.prototype.visitFixedSizeList=TS;tt.prototype.visitMap=DS;const Ki=new tt;function Zf(l,t){return Ki.compareSchemas(l,t)}function xf(l,t){return BS(l,t.map(i=>i.data.concat()))}function BS(l,t){const i=[...l.fields],r=[],o={numBatches:t.reduce((z,L)=>Math.max(z,L.length),0)};let f=0,h=0,p=-1;const m=t.length;let v,w=[];for(;o.numBatches-- >0;){for(h=Number.POSITIVE_INFINITY,p=-1;++p<m;)w[p]=v=t[p].shift(),h=Math.min(h,v?v.length:h);Number.isFinite(h)&&(w=MS(i,h,w,t,o),h>0&&(r[f++]=dt({type:new Se(i),length:h,nullCount:0,children:w.slice()})))}return[l=l.assign(i),r.map(z=>new Re(l,z))]}function MS(l,t,i,r,o){var f;const h=(t+63&-64)>>3;for(let p=-1,m=r.length;++p<m;){const v=i[p],w=v==null?void 0:v.length;if(w>=t)w===t?i[p]=v:(i[p]=v.slice(0,t),o.numBatches=Math.max(o.numBatches,r[p].unshift(v.slice(t,w-t))));else{const z=l[p];l[p]=z.clone({nullable:!0}),i[p]=(f=v==null?void 0:v._changeLengthAndBackfillNullBitmap(t))!==null&&f!==void 0?f:dt({type:z.type,length:t,nullCount:t,nullBitmap:new Uint8Array(h)})}}return i}var Bv;class _e{constructor(...t){var i,r;if(t.length===0)return this.batches=[],this.schema=new Ot([]),this._offsets=[0],this;let o,f;t[0]instanceof Ot&&(o=t.shift()),t[t.length-1]instanceof Uint32Array&&(f=t.pop());const h=m=>{if(m){if(m instanceof Re)return[m];if(m instanceof _e)return m.batches;if(m instanceof It){if(m.type instanceof Se)return[new Re(new Ot(m.type.children),m)]}else{if(Array.isArray(m))return m.flatMap(v=>h(v));if(typeof m[Symbol.iterator]=="function")return[...m].flatMap(v=>h(v));if(typeof m=="object"){const v=Object.keys(m),w=v.map(F=>new wt([m[F]])),z=new Ot(v.map((F,G)=>new Ft(String(F),w[G].type))),[,L]=xf(z,w);return L.length===0?[new Re(m)]:L}}}return[]},p=t.flatMap(m=>h(m));if(o=(r=o??((i=p[0])===null||i===void 0?void 0:i.schema))!==null&&r!==void 0?r:new Ot([]),!(o instanceof Ot))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const m of p){if(!(m instanceof Re))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Zf(o,m.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=o,this.batches=p,this._offsets=f??dv(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,i)=>t+i.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=fv(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,i){}indexOf(t,i){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?yd.visit(new wt(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
  ${this.toArray().join(`,
  `)}
]`}concat(...t){const i=this.schema,r=this.data.concat(t.flatMap(({data:o})=>o));return new _e(i,r.map(o=>new Re(i,o)))}slice(t,i){const r=this.schema;[t,i]=cv({length:this.numRows},t,i);const o=hv(this.data,this._offsets,t,i);return new _e(r,o.map(f=>new Re(r,f)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(i=>i.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){const i=this.data.map(r=>r.children[t]);if(i.length===0){const{type:r}=this.schema.fields[t],o=dt({type:r,length:0,nullCount:0});i.push(o._changeLengthAndBackfillNullBitmap(this.numRows))}return new wt(i)}return null}setChild(t,i){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(o=>o.name===t),i)}setChildAt(t,i){let r=this.schema,o=[...this.batches];if(t>-1&&t<this.numCols){i||(i=new wt([dt({type:new Qi,length:this.numRows})]));const f=r.fields.slice(),h=f[t].clone({type:i.type}),p=this.schema.fields.map((m,v)=>this.getChildAt(v));[f[t],p[t]]=[h,i],[r,o]=xf(r,p)}return new _e(r,o)}select(t){const i=this.schema.fields.reduce((r,o,f)=>r.set(o.name,f),new Map);return this.selectAt(t.map(r=>i.get(r)).filter(r=>r>-1))}selectAt(t){const i=this.schema.selectAt(t),r=this.batches.map(o=>o.selectAt(t));return new _e(i,r)}assign(t){const i=this.schema.fields,[r,o]=t.schema.fields.reduce((p,m,v)=>{const[w,z]=p,L=i.findIndex(F=>F.name===m.name);return~L?z[L]=v:w.push(v),p},[[],[]]),f=this.schema.assign(t.schema),h=[...i.map((p,m)=>[m,o[m]]).map(([p,m])=>m===void 0?this.getChildAt(p):t.getChildAt(m)),...r.map(p=>t.getChildAt(p))].filter(Boolean);return new _e(...xf(f,h))}}Bv=Symbol.toStringTag;_e[Bv]=(l=>(l.schema=null,l.batches=[],l._offsets=new Uint32Array([0]),l._nullCount=-1,l[Symbol.isConcatSpreadable]=!0,l.isValid=Dl(hd),l.get=Dl(Le.getVisitFn(A.Struct)),l.set=yv(dn.getVisitFn(A.Struct)),l.indexOf=pv(ju.getVisitFn(A.Struct)),l.getByteLength=Dl(jn.getVisitFn(A.Struct)),"Table"))(_e.prototype);var Mv;let Re=class Cs{constructor(...t){switch(t.length){case 2:{if([this.schema]=t,!(this.schema instanceof Ot))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=dt({nullCount:0,type:new Se(this.schema.fields),children:this.schema.fields.map(i=>dt({type:i.type,nullCount:0}))})]=t,!(this.data instanceof It))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Xp(this.schema,this.data.children);break}case 1:{const[i]=t,{fields:r,children:o,length:f}=Object.keys(i).reduce((m,v,w)=>(m.children[w]=i[v],m.length=Math.max(m.length,i[v].length),m.fields[w]=Ft.new({name:v,type:i[v].type,nullable:!0}),m),{length:0,fields:new Array,children:new Array}),h=new Ot(r),p=dt({type:new Se(r),length:f,children:o,nullCount:0});[this.schema,this.data]=Xp(h,p.children,f);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=Ev(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(t){return this.data.getValid(t)}get(t){return Le.visit(this.data,t)}set(t,i){return dn.visit(this.data,t,i)}indexOf(t,i){return ju.visit(this.data,t,i)}getByteLength(t){return jn.visit(this.data,t)}[Symbol.iterator](){return yd.visit(new wt([this.data]))}toArray(){return[...this]}concat(...t){return new _e(this.schema,[this,...t])}slice(t,i){const[r]=new wt([this.data]).slice(t,i).data;return new Cs(this.schema,r)}getChild(t){var i;return this.getChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new wt([this.data.children[t]]):null}setChild(t,i){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(o=>o.name===t),i)}setChildAt(t,i){let r=this.schema,o=this.data;if(t>-1&&t<this.numCols){i||(i=new wt([dt({type:new Qi,length:this.numRows})]));const f=r.fields.slice(),h=o.children.slice(),p=f[t].clone({type:i.type});[f[t],h[t]]=[p,i.data[0]],r=new Ot(f,new Map(this.schema.metadata)),o=dt({type:new Se(f),children:h})}return new Cs(r,o)}select(t){const i=this.schema.select(t),r=new Se(i.fields),o=[];for(const f of t){const h=this.schema.fields.findIndex(p=>p.name===f);~h&&(o[h]=this.data.children[h])}return new Cs(i,dt({type:r,length:this.numRows,children:o}))}selectAt(t){const i=this.schema.selectAt(t),r=t.map(f=>this.data.children[f]).filter(Boolean),o=dt({type:new Se(i.fields),length:this.numRows,children:r});return new Cs(i,o)}};Mv=Symbol.toStringTag;Re[Mv]=(l=>(l._nullCount=-1,l[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Re.prototype);function Xp(l,t,i=t.reduce((r,o)=>Math.max(r,o.length),0)){var r;const o=[...l.fields],f=[...t],h=(i+63&-64)>>3;for(const[p,m]of l.fields.entries()){const v=t[p];(!v||v.length!==i)&&(o[p]=m.clone({nullable:!0}),f[p]=(r=v==null?void 0:v._changeLengthAndBackfillNullBitmap(i))!==null&&r!==void 0?r:dt({type:m.type,length:i,nullCount:i,nullBitmap:new Uint8Array(h)}))}return[l.assign(o),dt({type:new Se(o),length:i,children:f})]}function Ev(l,t,i=new Map){for(let r=-1,o=l.length;++r<o;){const h=l[r].type,p=t[r];if($.isDictionary(h)){if(!i.has(h.id))p.dictionary&&i.set(h.id,p.dictionary);else if(i.get(h.id)!==p.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}h.children&&h.children.length>0&&Ev(h.children,p.children,i)}return i}class _d extends Re{constructor(t){const i=t.fields.map(o=>dt({type:o.type})),r=dt({type:new Se(t.fields),nullCount:0,children:i});super(t,r)}}var Ku;(function(l){l[l.BUFFER=0]="BUFFER"})(Ku||(Ku={}));var Ju;(function(l){l[l.LZ4_FRAME=0]="LZ4_FRAME",l[l.ZSTD=1]="ZSTD"})(Ju||(Ju={}));class Yi{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsBodyCompression(t,i){return(i||new Yi).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,i){return t.setPosition(t.position()+Lt),(i||new Yi).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):Ju.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):Ku.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,i){t.addFieldInt8(0,i,Ju.LZ4_FRAME)}static addMethod(t,i){t.addFieldInt8(1,i,Ku.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,i,r){return Yi.startBodyCompression(t),Yi.addCodec(t,i),Yi.addMethod(t,r),Yi.endBodyCompression(t)}}class Nv{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,i,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(i),t.offset()}}let Uv=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,i,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(i),t.offset()}},si=class Kf{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsRecordBatch(t,i){return(i||new Kf).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,i){return t.setPosition(t.position()+Lt),(i||new Kf).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,i){const r=this.bb.__offset(this.bb_pos,6);return r?(i||new Uv).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,i){const r=this.bb.__offset(this.bb_pos,8);return r?(i||new Nv).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const i=this.bb.__offset(this.bb_pos,10);return i?(t||new Yi).__init(this.bb.__indirect(this.bb_pos+i),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,i){t.addFieldInt64(0,i,t.createLong(0,0))}static addNodes(t,i){t.addFieldOffset(1,i,0)}static startNodesVector(t,i){t.startVector(16,i,8)}static addBuffers(t,i){t.addFieldOffset(2,i,0)}static startBuffersVector(t,i){t.startVector(16,i,8)}static addCompression(t,i){t.addFieldOffset(3,i,0)}static endRecordBatch(t){return t.endObject()}},_l=class Jf{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsDictionaryBatch(t,i){return(i||new Jf).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,i){return t.setPosition(t.position()+Lt),(i||new Jf).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){const i=this.bb.__offset(this.bb_pos,6);return i?(t||new si).__init(this.bb.__indirect(this.bb_pos+i),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startDictionaryBatch(t){t.startObject(3)}static addId(t,i){t.addFieldInt64(0,i,t.createLong(0,0))}static addData(t,i){t.addFieldOffset(1,i,0)}static addIsDelta(t,i){t.addFieldInt8(2,+i,0)}static endDictionaryBatch(t){return t.endObject()}};var $u;(function(l){l[l.NONE=0]="NONE",l[l.Schema=1]="Schema",l[l.DictionaryBatch=2]="DictionaryBatch",l[l.RecordBatch=3]="RecordBatch",l[l.Tensor=4]="Tensor",l[l.SparseTensor=5]="SparseTensor"})($u||($u={}));let ji=class Dn{constructor(){this.bb=null,this.bb_pos=0}__init(t,i){return this.bb_pos=t,this.bb=i,this}static getRootAsMessage(t,i){return(i||new Dn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,i){return t.setPosition(t.position()+Lt),(i||new Dn).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):El.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):$u.NONE}header(t){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.__union(t,this.bb_pos+i):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,i){const r=this.bb.__offset(this.bb_pos,12);return r?(i||new ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,i){t.addFieldInt16(0,i,El.V1)}static addHeaderType(t,i){t.addFieldInt8(1,i,$u.NONE)}static addHeader(t,i){t.addFieldOffset(2,i,0)}static addBodyLength(t,i){t.addFieldInt64(3,i,t.createLong(0,0))}static addCustomMetadata(t,i){t.addFieldOffset(4,i,0)}static createCustomMetadataVector(t,i){t.startVector(4,i.length,4);for(let r=i.length-1;r>=0;r--)t.addOffset(i[r]);return t.endVector()}static startCustomMetadataVector(t,i){t.startVector(4,i,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,i){t.finish(i)}static finishSizePrefixedMessageBuffer(t,i){t.finish(i,void 0,!0)}static createMessage(t,i,r,o,f,h){return Dn.startMessage(t),Dn.addVersion(t,i),Dn.addHeaderType(t,r),Dn.addHeader(t,o),Dn.addBodyLength(t,f),Dn.addCustomMetadata(t,h),Dn.endMessage(t)}};var ES=ci;class NS extends ht{visit(t,i){return t==null||i==null?void 0:super.visit(t,i)}visitNull(t,i){return Aa.startNull(i),Aa.endNull(i)}visitInt(t,i){return Ke.startInt(i),Ke.addBitWidth(i,t.bitWidth),Ke.addIsSigned(i,t.isSigned),Ke.endInt(i)}visitFloat(t,i){return xn.startFloatingPoint(i),xn.addPrecision(i,t.precision),xn.endFloatingPoint(i)}visitBinary(t,i){return ga.startBinary(i),ga.endBinary(i)}visitBool(t,i){return _a.startBool(i),_a.endBool(i)}visitUtf8(t,i){return Oa.startUtf8(i),Oa.endUtf8(i)}visitDecimal(t,i){return Ne.startDecimal(i),Ne.addScale(i,t.scale),Ne.addPrecision(i,t.precision),Ne.addBitWidth(i,t.bitWidth),Ne.endDecimal(i)}visitDate(t,i){return _u.startDate(i),_u.addUnit(i,t.unit),_u.endDate(i)}visitTime(t,i){return on.startTime(i),on.addUnit(i,t.unit),on.addBitWidth(i,t.bitWidth),on.endTime(i)}visitTimestamp(t,i){const r=t.timezone&&i.createString(t.timezone)||void 0;return fn.startTimestamp(i),fn.addUnit(i,t.unit),r!==void 0&&fn.addTimezone(i,r),fn.endTimestamp(i)}visitInterval(t,i){return Ln.startInterval(i),Ln.addUnit(i,t.unit),Ln.endInterval(i)}visitList(t,i){return Sa.startList(i),Sa.endList(i)}visitStruct(t,i){return wa.startStruct_(i),wa.endStruct_(i)}visitUnion(t,i){Ue.startTypeIdsVector(i,t.typeIds.length);const r=Ue.createTypeIdsVector(i,t.typeIds);return Ue.startUnion(i),Ue.addMode(i,t.mode),Ue.addTypeIds(i,r),Ue.endUnion(i)}visitDictionary(t,i){const r=this.visit(t.indices,i);return ui.startDictionaryEncoding(i),ui.addId(i,new ES(t.id,0)),ui.addIsOrdered(i,t.isOrdered),r!==void 0&&ui.addIndexType(i,r),ui.endDictionaryEncoding(i)}visitFixedSizeBinary(t,i){return Rn.startFixedSizeBinary(i),Rn.addByteWidth(i,t.byteWidth),Rn.endFixedSizeBinary(i)}visitFixedSizeList(t,i){return zn.startFixedSizeList(i),zn.addListSize(i,t.listSize),zn.endFixedSizeList(i)}visitMap(t,i){return Su.startMap(i),Su.addKeysSorted(i,t.keysSorted),Su.endMap(i)}}const Lf=new NS;function US(l,t=new Map){return new Ot(zS(l,t),Ou(l.customMetadata),t)}function Rv(l){return new ke(l.count,zv(l.columns),xv(l.columns))}function RS(l){return new Vn(Rv(l.data),l.id,l.isDelta)}function zS(l,t){return(l.fields||[]).filter(Boolean).map(i=>Ft.fromJSON(i,t))}function Zp(l,t){return(l.children||[]).filter(Boolean).map(i=>Ft.fromJSON(i,t))}function zv(l){return(l||[]).reduce((t,i)=>[...t,new Ma(i.count,xS(i.VALIDITY)),...zv(i.children)],[])}function xv(l,t=[]){for(let i=-1,r=(l||[]).length;++i<r;){const o=l[i];o.VALIDITY&&t.push(new In(t.length,o.VALIDITY.length)),o.TYPE&&t.push(new In(t.length,o.TYPE.length)),o.OFFSET&&t.push(new In(t.length,o.OFFSET.length)),o.DATA&&t.push(new In(t.length,o.DATA.length)),t=xv(o.children,t)}return t}function xS(l){return(l||[]).reduce((t,i)=>t+ +(i===0),0)}function LS(l,t){let i,r,o,f,h,p;return!t||!(f=l.dictionary)?(h=Jp(l,Zp(l,t)),o=new Ft(l.name,h,l.nullable,Ou(l.customMetadata))):t.has(i=f.id)?(r=(r=f.indexType)?Kp(r):new qs,p=new Bl(t.get(i),r,i,f.isOrdered),o=new Ft(l.name,p,l.nullable,Ou(l.customMetadata))):(r=(r=f.indexType)?Kp(r):new qs,t.set(i,h=Jp(l,Zp(l,t))),p=new Bl(h,r,i,f.isOrdered),o=new Ft(l.name,p,l.nullable,Ou(l.customMetadata))),o||null}function Ou(l){return new Map(Object.entries(l||{}))}function Kp(l){return new Xi(l.isSigned,l.bitWidth)}function Jp(l,t){const i=l.type.name;switch(i){case"NONE":return new Qi;case"null":return new Qi;case"binary":return new Du;case"utf8":return new Bu;case"bool":return new Mu;case"list":return new zu((t||[])[0]);case"struct":return new Se(t||[]);case"struct_":return new Se(t||[])}switch(i){case"int":{const r=l.type;return new Xi(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=l.type;return new Gs(ze[r.precision])}case"decimal":{const r=l.type;return new Eu(r.scale,r.precision,r.bitWidth)}case"date":{const r=l.type;return new Nu(fi[r.unit])}case"time":{const r=l.type;return new Qs(_t[r.unit],r.bitWidth)}case"timestamp":{const r=l.type;return new Uu(_t[r.unit],r.timezone)}case"interval":{const r=l.type;return new Ru(Gi[r.unit])}case"union":{const r=l.type;return new xu($e[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const r=l.type;return new Lu(r.byteWidth)}case"fixedsizelist":{const r=l.type;return new Cu(r.listSize,(t||[])[0])}case"map":{const r=l.type;return new Iu((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${i}"`)}var Ba=ci,CS=wv,IS=Ml;class Ae{constructor(t,i,r,o){this._version=i,this._headerType=r,this.body=new Uint8Array(0),o&&(this._createHeader=()=>o),this._bodyLength=typeof t=="number"?t:t.low}static fromJSON(t,i){const r=new Ae(0,Je.V4,i);return r._createHeader=FS(t,i),r}static decode(t){t=new IS(gt(t));const i=ji.getRootAsMessage(t),r=i.bodyLength(),o=i.version(),f=i.headerType(),h=new Ae(r,o,f);return h._createHeader=jS(i,f),h}static encode(t){const i=new CS;let r=-1;return t.isSchema()?r=Ot.encode(i,t.header()):t.isRecordBatch()?r=ke.encode(i,t.header()):t.isDictionaryBatch()&&(r=Vn.encode(i,t.header())),ji.startMessage(i),ji.addVersion(i,Je.V4),ji.addHeader(i,r),ji.addHeaderType(i,t.headerType),ji.addBodyLength(i,new Ba(t.bodyLength,0)),ji.finishMessageBuffer(i,ji.endMessage(i)),i.asUint8Array()}static from(t,i=0){if(t instanceof Ot)return new Ae(0,Je.V4,At.Schema,t);if(t instanceof ke)return new Ae(i,Je.V4,At.RecordBatch,t);if(t instanceof Vn)return new Ae(i,Je.V4,At.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}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===At.Schema}isRecordBatch(){return this.headerType===At.RecordBatch}isDictionaryBatch(){return this.headerType===At.DictionaryBatch}}class ke{constructor(t,i,r){this._nodes=i,this._buffers=r,this._length=typeof t=="number"?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class Vn{constructor(t,i,r=!1){this._data=t,this._isDelta=r,this._id=typeof i=="number"?i:i.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 In{constructor(t,i){this.offset=typeof t=="number"?t:t.low,this.length=typeof i=="number"?i:i.low}}class Ma{constructor(t,i){this.length=typeof t=="number"?t:t.low,this.nullCount=typeof i=="number"?i:i.low}}function FS(l,t){return()=>{switch(t){case At.Schema:return Ot.fromJSON(l);case At.RecordBatch:return ke.fromJSON(l);case At.DictionaryBatch:return Vn.fromJSON(l)}throw new Error(`Unrecognized Message type: { name: ${At[t]}, type: ${t} }`)}}function jS(l,t){return()=>{switch(t){case At.Schema:return Ot.decode(l.header(new Bn));case At.RecordBatch:return ke.decode(l.header(new si),l.version());case At.DictionaryBatch:return Vn.decode(l.header(new _l),l.version())}throw new Error(`Unrecognized Message type: { name: ${At[t]}, type: ${t} }`)}}Ft.encode=$S;Ft.decode=KS;Ft.fromJSON=LS;Ot.encode=JS;Ot.decode=VS;Ot.fromJSON=US;ke.encode=kS;ke.decode=HS;ke.fromJSON=Rv;Vn.encode=WS;Vn.decode=YS;Vn.fromJSON=RS;Ma.encode=PS;Ma.decode=GS;In.encode=t2;In.decode=qS;function VS(l,t=new Map){const i=ZS(l,t);return new Ot(i,Tu(l),t)}function HS(l,t=Je.V4){if(l.compression()!==null)throw new Error("Record batch compression not implemented");return new ke(l.length(),QS(l),XS(l,t))}function YS(l,t=Je.V4){return new Vn(ke.decode(l.data(),t),l.id(),l.isDelta())}function qS(l){return new In(l.offset(),l.length())}function GS(l){return new Ma(l.length(),l.nullCount())}function QS(l){const t=[];for(let i,r=-1,o=-1,f=l.nodesLength();++r<f;)(i=l.nodes(r))&&(t[++o]=Ma.decode(i));return t}function XS(l,t){const i=[];for(let r,o=-1,f=-1,h=l.buffersLength();++o<h;)(r=l.buffers(o))&&(t<Je.V4&&(r.bb_pos+=8*(o+1)),i[++f]=In.decode(r));return i}function ZS(l,t){const i=[];for(let r,o=-1,f=-1,h=l.fieldsLength();++o<h;)(r=l.fields(o))&&(i[++f]=Ft.decode(r,t));return i}function $p(l,t){const i=[];for(let r,o=-1,f=-1,h=l.childrenLength();++o<h;)(r=l.children(o))&&(i[++f]=Ft.decode(r,t));return i}function KS(l,t){let i,r,o,f,h,p;return!t||!(p=l.dictionary())?(o=Wp(l,$p(l,t)),r=new Ft(l.name(),o,l.nullable(),Tu(l))):t.has(i=p.id().low)?(f=(f=p.indexType())?kp(f):new qs,h=new Bl(t.get(i),f,i,p.isOrdered()),r=new Ft(l.name(),h,l.nullable(),Tu(l))):(f=(f=p.indexType())?kp(f):new qs,t.set(i,o=Wp(l,$p(l,t))),h=new Bl(o,f,i,p.isOrdered()),r=new Ft(l.name(),h,l.nullable(),Tu(l))),r||null}function Tu(l){const t=new Map;if(l)for(let i,r,o=-1,f=Math.trunc(l.customMetadataLength());++o<f;)(i=l.customMetadata(o))&&(r=i.key())!=null&&t.set(r,i.value());return t}function kp(l){return new Xi(l.isSigned(),l.bitWidth())}function Wp(l,t){const i=l.typeType();switch(i){case Gt.NONE:return new Qi;case Gt.Null:return new Qi;case Gt.Binary:return new Du;case Gt.Utf8:return new Bu;case Gt.Bool:return new Mu;case Gt.List:return new zu((t||[])[0]);case Gt.Struct_:return new Se(t||[])}switch(i){case Gt.Int:{const r=l.type(new Ke);return new Xi(r.isSigned(),r.bitWidth())}case Gt.FloatingPoint:{const r=l.type(new xn);return new Gs(r.precision())}case Gt.Decimal:{const r=l.type(new Ne);return new Eu(r.scale(),r.precision(),r.bitWidth())}case Gt.Date:{const r=l.type(new _u);return new Nu(r.unit())}case Gt.Time:{const r=l.type(new on);return new Qs(r.unit(),r.bitWidth())}case Gt.Timestamp:{const r=l.type(new fn);return new Uu(r.unit(),r.timezone())}case Gt.Interval:{const r=l.type(new Ln);return new Ru(r.unit())}case Gt.Union:{const r=l.type(new Ue);return new xu(r.mode(),r.typeIdsArray()||[],t||[])}case Gt.FixedSizeBinary:{const r=l.type(new Rn);return new Lu(r.byteWidth())}case Gt.FixedSizeList:{const r=l.type(new zn);return new Cu(r.listSize(),(t||[])[0])}case Gt.Map:{const r=l.type(new Su);return new Iu((t||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${Gt[i]}" (${i})`)}function JS(l,t){const i=t.fields.map(f=>Ft.encode(l,f));Bn.startFieldsVector(l,i.length);const r=Bn.createFieldsVector(l,i),o=t.metadata&&t.metadata.size>0?Bn.createCustomMetadataVector(l,[...t.metadata].map(([f,h])=>{const p=l.createString(`${f}`),m=l.createString(`${h}`);return ie.startKeyValue(l),ie.addKey(l,p),ie.addValue(l,m),ie.endKeyValue(l)})):-1;return Bn.startSchema(l),Bn.addFields(l,r),Bn.addEndianness(l,e2?Nl.Little:Nl.Big),o!==-1&&Bn.addCustomMetadata(l,o),Bn.endSchema(l)}function $S(l,t){let i=-1,r=-1,o=-1;const f=t.type;let h=t.typeId;$.isDictionary(f)?(h=f.dictionary.typeId,o=Lf.visit(f,l),r=Lf.visit(f.dictionary,l)):r=Lf.visit(f,l);const p=(f.children||[]).map(w=>Ft.encode(l,w)),m=un.createChildrenVector(l,p),v=t.metadata&&t.metadata.size>0?un.createCustomMetadataVector(l,[...t.metadata].map(([w,z])=>{const L=l.createString(`${w}`),F=l.createString(`${z}`);return ie.startKeyValue(l),ie.addKey(l,L),ie.addValue(l,F),ie.endKeyValue(l)})):-1;return t.name&&(i=l.createString(t.name)),un.startField(l),un.addType(l,r),un.addTypeType(l,h),un.addChildren(l,m),un.addNullable(l,!!t.nullable),i!==-1&&un.addName(l,i),o!==-1&&un.addDictionary(l,o),v!==-1&&un.addCustomMetadata(l,v),un.endField(l)}function kS(l,t){const i=t.nodes||[],r=t.buffers||[];si.startNodesVector(l,i.length);for(const h of i.slice().reverse())Ma.encode(l,h);const o=l.endVector();si.startBuffersVector(l,r.length);for(const h of r.slice().reverse())In.encode(l,h);const f=l.endVector();return si.startRecordBatch(l),si.addLength(l,new Ba(t.length,0)),si.addNodes(l,o),si.addBuffers(l,f),si.endRecordBatch(l)}function WS(l,t){const i=ke.encode(l,t.data);return _l.startDictionaryBatch(l),_l.addId(l,new Ba(t.id,0)),_l.addIsDelta(l,t.isDelta),_l.addData(l,i),_l.endDictionaryBatch(l)}function PS(l,t){return Uv.createFieldNode(l,new Ba(t.length,0),new Ba(t.nullCount,0))}function t2(l,t){return Nv.createBuffer(l,new Ba(t.offset,0),new Ba(t.length,0))}const e2=(()=>{const l=new ArrayBuffer(2);return new DataView(l).setInt16(0,256,!0),new Int16Array(l)[0]===256})(),Sd=l=>`Expected ${At[l]} Message in stream, but was null or length 0.`,Ad=l=>`Header pointer of flatbuffer-encoded ${At[l]} Message is null or length 0.`,Lv=(l,t)=>`Expected to read ${l} metadata bytes, but only read ${t}.`,Cv=(l,t)=>`Expected to read ${l} bytes for message body, but only read ${t}.`;class Iv{constructor(t){this.source=t instanceof Xu?t:new Xu(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||t.value===-1&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?Qt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let i;if((i=this.next()).done)return null;if(t!=null&&i.value.headerType!==t)throw new Error(Sd(t));return i.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const i=gt(this.source.read(t));if(i.byteLength<t)throw new Error(Cv(t,i.byteLength));return i.byteOffset%8===0&&i.byteOffset+i.byteLength<=i.buffer.byteLength?i:i.slice()}readSchema(t=!1){const i=At.Schema,r=this.readMessage(i),o=r==null?void 0:r.header();if(t&&!o)throw new Error(Ad(i));return o}readMetadataLength(){const t=this.source.read(ac),i=t&&new Ml(t),r=(i==null?void 0:i.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(t){const i=this.source.read(t);if(!i)return Qt;if(i.byteLength<t)throw new Error(Lv(t,i.byteLength));return{done:!1,value:Ae.decode(i)}}}class n2{constructor(t,i){this.source=t instanceof Rl?t:am(t)?new Zu(t,i):new Rl(t)}[Symbol.asyncIterator](){return this}next(){return K(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done||t.value===-1&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?Qt:t})}throw(t){return K(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return K(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return K(this,void 0,void 0,function*(){let i;if((i=yield this.next()).done)return null;if(t!=null&&i.value.headerType!==t)throw new Error(Sd(t));return i.value})}readMessageBody(t){return K(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);const i=gt(yield this.source.read(t));if(i.byteLength<t)throw new Error(Cv(t,i.byteLength));return i.byteOffset%8===0&&i.byteOffset+i.byteLength<=i.buffer.byteLength?i:i.slice()})}readSchema(t=!1){return K(this,void 0,void 0,function*(){const i=At.Schema,r=yield this.readMessage(i),o=r==null?void 0:r.header();if(t&&!o)throw new Error(Ad(i));return o})}readMetadataLength(){return K(this,void 0,void 0,function*(){const t=yield this.source.read(ac),i=t&&new Ml(t),r=(i==null?void 0:i.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(t){return K(this,void 0,void 0,function*(){const i=yield this.source.read(t);if(!i)return Qt;if(i.byteLength<t)throw new Error(Lv(t,i.byteLength));return{done:!1,value:Ae.decode(i)}})}}class i2 extends Iv{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof Gp?t:new Gp(t)}next(){const{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ae.fromJSON(t.schema,At.Schema)};if(this._dictionaryIndex<t.dictionaries.length){const i=t.dictionaries[this._dictionaryIndex++];return this._body=i.data.columns,{done:!1,value:Ae.fromJSON(i,At.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const i=t.batches[this._batchIndex++];return this._body=i.columns,{done:!1,value:Ae.fromJSON(i,At.RecordBatch)}}return this._body=[],Qt}readMessageBody(t){return i(this._body);function i(r){return(r||[]).reduce((o,f)=>[...o,...f.VALIDITY&&[f.VALIDITY]||[],...f.TYPE&&[f.TYPE]||[],...f.OFFSET&&[f.OFFSET]||[],...f.DATA&&[f.DATA]||[],...i(f.children)],[])}}readMessage(t){let i;if((i=this.next()).done)return null;if(t!=null&&i.value.headerType!==t)throw new Error(Sd(t));return i.value}readSchema(){const t=At.Schema,i=this.readMessage(t),r=i==null?void 0:i.header();if(!i||!r)throw new Error(Ad(t));return r}}const ac=4,$f="ARROW1",Zs=new Uint8Array($f.length);for(let l=0;l<$f.length;l+=1)Zs[l]=$f.codePointAt(l);function wd(l,t=0){for(let i=-1,r=Zs.length;++i<r;)if(Zs[i]!==l[t+i])return!1;return!0}const tr=Zs.length,Fv=tr+ac,a2=tr*2+ac;class oi extends pd{constructor(t){super(),this._impl=t}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(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const i=this._impl.open(t);return qi(i)?i.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return cn.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return cn.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,i){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof oi?t:jf(t)?u2(t):am(t)?f2(t):qi(t)?K(this,void 0,void 0,function*(){return yield oi.from(yield t)}):lm(t)||ed(t)||sm(t)||xl(t)?o2(new Rl(t)):c2(new Xu(t))}static readAll(t){return t instanceof oi?t.isSync()?Pp(t):tm(t):jf(t)||ArrayBuffer.isView(t)||$s(t)||im(t)?Pp(t):tm(t)}}class ku extends oi{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Cn(this,arguments,function*(){yield st(yield*gu(Ta(this[Symbol.iterator]())))})}}class Wu extends oi{constructor(t){super(t),this._impl=t}readAll(){var t,i;return K(this,void 0,void 0,function*(){const r=new Array;try{for(var o=Ta(this),f;f=yield o.next(),!f.done;){const h=f.value;r.push(h)}}catch(h){t={error:h}}finally{try{f&&!f.done&&(i=o.return)&&(yield i.call(o))}finally{if(t)throw t.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class jv extends ku{constructor(t){super(t),this._impl=t}}class l2 extends Wu{constructor(t){super(t),this._impl=t}}class Vv{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,i){const r=this._loadVectors(t,i,this.schema.fields),o=dt({type:new Se(this.schema.fields),length:t.length,children:r});return new Re(this.schema,o)}_loadDictionaryBatch(t,i){const{id:r,isDelta:o}=t,{dictionaries:f,schema:h}=this,p=f.get(r);if(o||!p){const m=h.dictionaries.get(r),v=this._loadVectors(t.data,i,[m]);return(p&&o?p.concat(new wt(v)):new wt(v)).memoize()}return p.memoize()}_loadVectors(t,i,r){return new Dv(i,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}class Pu extends Vv{constructor(t,i){super(i),this._reader=jf(t)?new i2(this._handle=t):new Iv(this._handle=t)}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(t){return this.closed||(this.autoDestroy=Yv(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):Qt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):Qt}next(){if(this.closed)return Qt;let t;const{_reader:i}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),o=i.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,o)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),o=i.readMessageBody(t.bodyLength),f=this._loadDictionaryBatch(r,o);this.dictionaries.set(r.id,f)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _d(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class tc extends Vv{constructor(t,i){super(i),this._reader=new n2(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return K(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return K(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Yv(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(t){return K(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):Qt})}return(t){return K(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):Qt})}next(){return K(this,void 0,void 0,function*(){if(this.closed)return Qt;let t;const{_reader:i}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),o=yield i.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,o)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),o=yield i.readMessageBody(t.bodyLength),f=this._loadDictionaryBatch(r,o);this.dictionaries.set(r.id,f)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _d(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return K(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class Hv extends Pu{constructor(t,i){super(t instanceof Qp?t:new Qp(t),i)}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(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const i of this._footer.dictionaryBatches())i&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var i;if(this.closed)return null;this._footer||this.open();const r=(i=this._footer)===null||i===void 0?void 0:i.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){const o=this._reader.readMessage(At.RecordBatch);if(o!=null&&o.isRecordBatch()){const f=o.header(),h=this._reader.readMessageBody(o.bodyLength);return this._loadRecordBatch(f,h)}}return null}_readDictionaryBatch(t){var i;const r=(i=this._footer)===null||i===void 0?void 0:i.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){const o=this._reader.readMessage(At.DictionaryBatch);if(o!=null&&o.isDictionaryBatch()){const f=o.header(),h=this._reader.readMessageBody(o.bodyLength),p=this._loadDictionaryBatch(f,h);this.dictionaries.set(f.id,p)}}}_readFooter(){const{_handle:t}=this,i=t.size-Fv,r=t.readInt32(i),o=t.readAt(i-r,r);return Xs.decode(o)}_readNextMessageAndValidate(t){var i;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(i=this._footer)===null||i===void 0?void 0:i.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(t)}return null}}class s2 extends tc{constructor(t,...i){const r=typeof i[0]!="number"?i.shift():void 0,o=i[0]instanceof Map?i.shift():void 0;super(t instanceof Zu?t:new Zu(t,r),o)}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(t){const i=Object.create(null,{open:{get:()=>super.open}});return K(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 i.open.call(this,t)})}readRecordBatch(t){var i;return K(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const r=(i=this._footer)===null||i===void 0?void 0:i.getRecordBatch(t);if(r&&(yield this._handle.seek(r.offset))){const o=yield this._reader.readMessage(At.RecordBatch);if(o!=null&&o.isRecordBatch()){const f=o.header(),h=yield this._reader.readMessageBody(o.bodyLength);return this._loadRecordBatch(f,h)}}return null})}_readDictionaryBatch(t){var i;return K(this,void 0,void 0,function*(){const r=(i=this._footer)===null||i===void 0?void 0:i.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){const o=yield this._reader.readMessage(At.DictionaryBatch);if(o!=null&&o.isDictionaryBatch()){const f=o.header(),h=yield this._reader.readMessageBody(o.bodyLength),p=this._loadDictionaryBatch(f,h);this.dictionaries.set(f.id,p)}}})}_readFooter(){return K(this,void 0,void 0,function*(){const{_handle:t}=this;t._pending&&(yield t._pending);const i=t.size-Fv,r=yield t.readInt32(i),o=yield t.readAt(i-r,r);return Xs.decode(o)})}_readNextMessageAndValidate(t){return K(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const i=this._footer.getRecordBatch(this._recordBatchIndex);if(i&&(yield this._handle.seek(i.offset)))return yield this._reader.readMessage(t)}return null})}}class r2 extends Pu{constructor(t,i){super(t,i)}_loadVectors(t,i,r){return new gS(i,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}function Yv(l,t){return t&&typeof t.autoDestroy=="boolean"?t.autoDestroy:l.autoDestroy}function*Pp(l){const t=oi.from(l);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function tm(l){return Cn(this,arguments,function*(){const i=yield st(oi.from(l));try{if(!(yield st(i.open({autoDestroy:!1}))).closed)do yield yield st(i);while(!(yield st(i.reset().open())).closed)}finally{yield st(i.cancel())}})}function u2(l){return new ku(new r2(l))}function c2(l){const t=l.peek(tr+7&-8);return t&&t.byteLength>=4?wd(t)?new jv(new Hv(l.read())):new ku(new Pu(l)):new ku(new Pu(function*(){}()))}function o2(l){return K(this,void 0,void 0,function*(){const t=yield l.peek(tr+7&-8);return t&&t.byteLength>=4?wd(t)?new jv(new Hv(yield l.read())):new Wu(new tc(l)):new Wu(new tc(function(){return Cn(this,arguments,function*(){})}()))})}function f2(l){return K(this,void 0,void 0,function*(){const{size:t}=yield l.stat(),i=new Zu(l,t);return t>=a2&&wd(yield i.readAt(0,tr+7&-8))?new l2(new s2(i)):new Wu(new tc(i))})}class Pt extends ht{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){const i=o=>o.flatMap(f=>Array.isArray(f)?i(f):f instanceof Re?f.data.children:f.data),r=new Pt;return r.visitMany(i(t)),r}visit(t){if(t instanceof wt)return this.visitMany(t.data),this;const{type:i}=t;if(!$.isDictionary(i)){const{length:r,nullCount:o}=t;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");$.isNull(i)||vn.call(this,o<=0?new Uint8Array(0):od(t.offset,r,t.nullBitmap)),this.nodes.push(new Ma(r,o))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function vn(l){const t=l.byteLength+7&-8;return this.buffers.push(l),this.bufferRegions.push(new In(this._byteLength,t)),this._byteLength+=t,this}function d2(l){const{type:t,length:i,typeIds:r,valueOffsets:o}=l;if(vn.call(this,r),t.mode===$e.Sparse)return kf.call(this,l);if(t.mode===$e.Dense){if(l.offset<=0)return vn.call(this,o),kf.call(this,l);{const f=r.reduce((w,z)=>Math.max(w,z),r[0]),h=new Int32Array(f+1),p=new Int32Array(f+1).fill(-1),m=new Int32Array(i),v=id(-o[0],i,o);for(let w,z,L=-1;++L<i;)(z=p[w=r[L]])===-1&&(z=p[w]=v[w]),m[L]=v[L]-z,++h[w];vn.call(this,m);for(let w,z=-1,L=t.children.length;++z<L;)if(w=l.children[z]){const F=t.typeIds[z],G=Math.min(i,h[F]);this.visit(w.slice(p[F],G))}}}return this}function h2(l){let t;return l.nullCount>=l.length?vn.call(this,new Uint8Array(0)):(t=l.values)instanceof Uint8Array?vn.call(this,od(l.offset,l.length,t)):vn.call(this,Fu(l.values))}function ki(l){return vn.call(this,l.values.subarray(0,l.length*l.stride))}function qv(l){const{length:t,values:i,valueOffsets:r}=l,o=r[0],f=r[t],h=Math.min(f-o,i.byteLength-o);return vn.call(this,id(-r[0],t,r)),vn.call(this,i.subarray(o,o+h)),this}function Od(l){const{length:t,valueOffsets:i}=l;return i&&vn.call(this,id(i[0],t,i)),this.visit(l.children[0])}function kf(l){return this.visitMany(l.type.children.map((t,i)=>l.children[i]).filter(Boolean))[0]}Pt.prototype.visitBool=h2;Pt.prototype.visitInt=ki;Pt.prototype.visitFloat=ki;Pt.prototype.visitUtf8=qv;Pt.prototype.visitBinary=qv;Pt.prototype.visitFixedSizeBinary=ki;Pt.prototype.visitDate=ki;Pt.prototype.visitTimestamp=ki;Pt.prototype.visitTime=ki;Pt.prototype.visitDecimal=ki;Pt.prototype.visitList=Od;Pt.prototype.visitStruct=kf;Pt.prototype.visitUnion=d2;Pt.prototype.visitInterval=ki;Pt.prototype.visitFixedSizeList=Od;Pt.prototype.visitMap=Od;class Gv extends pd{constructor(t){super(),this._position=0,this._started=!1,this._sink=new wu,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,xe(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof t.autoDestroy=="boolean"?t.autoDestroy:!0,this._writeLegacyIpcFormat=typeof t.writeLegacyIpcFormat=="boolean"?t.writeLegacyIpcFormat:!1}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,i){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return qi(t)?t.then(i=>this.writeAll(i)):xl(t)?Md(this,t):Bd(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,i=null){return t===this._sink||t instanceof wu?this._sink=t:(this._sink=new wu,t&&x1(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&L1(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!i||!Zf(i,this._schema))&&(i==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=i,this._writeSchema(i))),this}write(t){let i=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof _e&&!(i=t.schema))return this.finish()&&void 0;if(t instanceof Re&&!(i=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(i&&!Zf(i,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,i)}t instanceof Re?t instanceof _d||this._writeRecordBatch(t):t instanceof _e?this.writeAll(t.batches):$s(t)&&this.writeAll(t)}_writeMessage(t,i=8){const r=i-1,o=Ae.encode(t),f=o.byteLength,h=this._writeLegacyIpcFormat?4:8,p=f+h+r&~r,m=p-f-h;return t.headerType===At.RecordBatch?this._recordBatchBlocks.push(new Zi(p,t.bodyLength,this._position)):t.headerType===At.DictionaryBatch&&this._dictionaryBlocks.push(new Zi(p,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(p-h)),f>0&&this._write(o),this._writePadding(m)}_write(t){if(this._started){const i=gt(t);i&&i.byteLength>0&&(this._sink.write(i),this._position+=i.byteLength)}return this}_writeSchema(t){return this._writeMessage(Ae.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Zs)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:i,nodes:r,bufferRegions:o,buffers:f}=Pt.assemble(t),h=new ke(t.numRows,r,o),p=Ae.from(h,i);return this._writeDictionaries(t)._writeMessage(p)._writeBodyBuffers(f)}_writeDictionaryBatch(t,i,r=!1){this._dictionaryDeltaOffsets.set(i,t.length+(this._dictionaryDeltaOffsets.get(i)||0));const{byteLength:o,nodes:f,bufferRegions:h,buffers:p}=Pt.assemble(new wt([t])),m=new ke(t.length,f,h),v=new Vn(m,i,r),w=Ae.from(v,o);return this._writeMessage(w)._writeBodyBuffers(p)}_writeBodyBuffers(t){let i,r,o;for(let f=-1,h=t.length;++f<h;)(i=t[f])&&(r=i.byteLength)>0&&(this._write(i),(o=(r+7&-8)-r)>0&&this._writePadding(o));return this}_writeDictionaries(t){for(let[i,r]of t.dictionaries){let o=this._dictionaryDeltaOffsets.get(i)||0;if(o===0||(r=r==null?void 0:r.slice(o)).length>0)for(const f of r.data)this._writeDictionaryBatch(f,i,o>0),o+=f.length}return this}}class Td extends Gv{static writeAll(t,i){const r=new Td(i);return qi(t)?t.then(o=>r.writeAll(o)):xl(t)?Md(r,t):Bd(r,t)}}class Dd extends Gv{static writeAll(t){const i=new Dd;return qi(t)?t.then(r=>i.writeAll(r)):xl(t)?Md(i,t):Bd(i,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const i=Xs.encode(new Xs(t,Je.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(i)._write(Int32Array.of(i.byteLength))._writeMagic()}}function Bd(l,t){let i=t;t instanceof _e&&(i=t.batches,l.reset(void 0,t.schema));for(const r of i)l.write(r);return l.finish()}function Md(l,t){var i,r,o,f;return K(this,void 0,void 0,function*(){try{for(i=Ta(t);r=yield i.next(),!r.done;){const h=r.value;l.write(h)}}catch(h){o={error:h}}finally{try{r&&!r.done&&(f=i.return)&&(yield f.call(i))}finally{if(o)throw o.error}}return l.finish()})}function Is(l){const t=oi.from(l);return qi(t)?t.then(i=>Is(i)):t.isAsync()?t.readAll().then(i=>new _e(i)):new _e(t.readAll())}function Cf(l,t="stream"){return(t==="stream"?Td:Dd).writeAll(l).toUint8Array(!0)}var em=function(){function l(t,i,r,o){var f=this;this.getCell=function(h,p){var m=h<f.headerRows&&p<f.headerColumns,v=h>=f.headerRows&&p<f.headerColumns,w=h<f.headerRows&&p>=f.headerColumns;if(m){var z=["blank"];return p>0&&z.push("level"+h),{type:"blank",classNames:z.join(" "),content:""}}else if(w){var L=p-f.headerColumns,z=["col_heading","level"+h,"col"+L];return{type:"columns",classNames:z.join(" "),content:f.getContent(f.columnsTable,L,h)}}else if(v){var F=h-f.headerRows,z=["row_heading","level"+p,"row"+F];return{type:"index",id:"T_".concat(f.uuid,"level").concat(p,"_row").concat(F),classNames:z.join(" "),content:f.getContent(f.indexTable,F,p)}}else{var F=h-f.headerRows,L=p-f.headerColumns,z=["data","row"+F,"col"+L],G=f.styler?f.getContent(f.styler.displayValuesTable,F,L):f.getContent(f.dataTable,F,L);return{type:"data",id:"T_".concat(f.uuid,"row").concat(F,"_col").concat(L),classNames:z.join(" "),content:G}}},this.getContent=function(h,p,m){var v=h.getChildAt(m);if(v===null)return"";var w=f.getColumnTypeId(h,m);switch(w){case A.Timestamp:return f.nanosToDate(v.get(p));default:return v.get(p)}},this.dataTable=Is(t),this.indexTable=Is(i),this.columnsTable=Is(r),this.styler=o?{caption:o.caption,displayValuesTable:Is(o.displayValues),styles:o.styles,uuid:o.uuid}:void 0}return Object.defineProperty(l.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),l.prototype.serialize=function(){return{data:Cf(this.dataTable),index:Cf(this.indexTable),columns:Cf(this.columnsTable)}},l.prototype.getColumnTypeId=function(t,i){return t.schema.fields[i].type.typeId},l.prototype.nanosToDate=function(t){return new Date(t/1e6)},l}(),js=function(){return js=Object.assign||function(l){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(l[o]=t[o])}return l},js.apply(this,arguments)},Vs;(function(l){l.COMPONENT_READY="streamlit:componentReady",l.SET_COMPONENT_VALUE="streamlit:setComponentValue",l.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(Vs||(Vs={}));var En=function(){function l(){}return l.API_VERSION=1,l.RENDER_EVENT="streamlit:render",l.events=new EventTarget,l.registeredMessageListener=!1,l.setComponentReady=function(){l.registeredMessageListener||(window.addEventListener("message",l.onMessageEvent),l.registeredMessageListener=!0),l.sendBackMsg(Vs.COMPONENT_READY,{apiVersion:l.API_VERSION})},l.setFrameHeight=function(t){t===void 0&&(t=document.body.scrollHeight),t!==l.lastFrameHeight&&(l.lastFrameHeight=t,l.sendBackMsg(Vs.SET_FRAME_HEIGHT,{height:t}))},l.setComponentValue=function(t){var i;t instanceof em?(i="dataframe",t=t.serialize()):p2(t)?(i="bytes",t=new Uint8Array(t.buffer)):t instanceof ArrayBuffer?(i="bytes",t=new Uint8Array(t)):i="json",l.sendBackMsg(Vs.SET_COMPONENT_VALUE,{value:t,dataType:i})},l.onMessageEvent=function(t){var i=t.data.type;switch(i){case l.RENDER_EVENT:l.onRenderMessage(t.data);break}},l.onRenderMessage=function(t){var i=t.args;i==null&&(console.error("Got null args in onRenderMessage. This should never happen"),i={});var r=t.dfs&&t.dfs.length>0?l.argsDataframeToObject(t.dfs):{};i=js(js({},i),r);var o=!!t.disabled,f=t.theme;f&&y2(f);var h={disabled:o,args:i,theme:f},p=new CustomEvent(l.RENDER_EVENT,{detail:h});l.events.dispatchEvent(p)},l.argsDataframeToObject=function(t){var i=t.map(function(r){var o=r.key,f=r.value;return[o,l.toArrowTable(f)]});return Object.fromEntries(i)},l.toArrowTable=function(t){var i,r=(i=t.data,i.data),o=i.index,f=i.columns,h=i.styler;return new em(r,o,f,h)},l.sendBackMsg=function(t,i){window.parent.postMessage(js({isStreamlitMessage:!0,type:t},i),"*")},l}(),y2=function(l){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML=`
    :root {
      --primary-color: `.concat(l.primaryColor,`;
      --background-color: `).concat(l.backgroundColor,`;
      --secondary-background-color: `).concat(l.secondaryBackgroundColor,`;
      --text-color: `).concat(l.textColor,`;
      --font: `).concat(l.font,`;
    }

    body {
      background-color: var(--background-color);
      color: var(--text-color);
    }
  `)};function p2(l){var t=!1;try{t=l instanceof BigInt64Array||l instanceof BigUint64Array}catch{}return l instanceof Int8Array||l instanceof Uint8Array||l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array||t}var Qv=function(){var l=function(t,i){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])},l(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");l(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();(function(l){Qv(t,l);function t(){return l!==null&&l.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){En.setFrameHeight()},t.prototype.componentDidUpdate=function(){En.setFrameHeight()},t})(ml.PureComponent);function m2(l){var t=function(i){Qv(r,i);function r(o){var f=i.call(this,o)||this;return f.componentDidMount=function(){En.events.addEventListener(En.RENDER_EVENT,f.onRenderEvent),En.setComponentReady()},f.componentDidUpdate=function(){f.state.componentError!=null&&En.setFrameHeight()},f.componentWillUnmount=function(){En.events.removeEventListener(En.RENDER_EVENT,f.onRenderEvent)},f.onRenderEvent=function(h){f.setState({renderData:h.detail})},f.state={renderData:void 0,componentError:void 0},f}return r.prototype.render=function(){return this.state.componentError!=null?ml.createElement("div",null,ml.createElement("h1",null,"Component Error"),ml.createElement("span",null,this.state.componentError.message)):this.state.renderData==null?null:ml.createElement(l,{width:window.innerWidth,disabled:this.state.renderData.disabled,args:this.state.renderData.args,theme:this.state.renderData.theme})},r.getDerivedStateFromError=function(o){return{componentError:o}},r}(ml.PureComponent);return E1(t,l)}function v2({args:l,theme:t}){const{text:i,icon:r,tooltip:o,copied_label:f}=l,[h,p]=If.useState(!1);If.useEffect(()=>En.setFrameHeight(),[h]);const m=async()=>{try{await navigator.clipboard.writeText(i),p(!0),setTimeout(()=>{p(!1)},1e3)}catch{En.setComponentValue(!1)}},v=()=>r==="st"?Vi.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",children:[Vi.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),Vi.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}):Vi.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 -960 960 960",fill:"currentColor","aria-hidden":"true",children:Vi.jsx("path",{d:"M360-240q-29.7 0-50.85-21.15Q288-282.3 288-312v-480q0-29.7 21.15-50.85Q330.3-864 360-864h384q29.7 0 50.85 21.15Q816-821.7 816-792v480q0 29.7-21.15 50.85Q773.7-240 744-240H360Zm0-72h384v-480H360v480ZM216-96q-29.7 0-50.85-21.15Q144-138.3 144-168v-516q0-15.3 10.29-25.65Q164.58-720 179.79-720t25.71 10.35Q216-699.3 216-684v516h420q15.3 0 25.65 10.29Q672-147.42 672-132.21t-10.35 25.71Q651.3-96 636-96H216Zm144-216v-480 480Z"})});return Vi.jsxs("button",{className:"st-copy-btn",onClick:m,title:o??"Copy",style:{color:t==null?void 0:t.textColor},children:[v(),h&&Vi.jsx("span",{className:"st-copy-label",children:f??"Copied!"})]})}const b2=m2(v2),g2=O1.createRoot(document.getElementById("root"));g2.render(Vi.jsx(b2,{}));
