From 2b9c3c24be26540ab7b5a8f653be404905770bb9 Mon Sep 17 00:00:00 2001 From: Garett Tok Ern Liang <36098015+walnutdust@users.noreply.github.com> Date: Mon, 29 Apr 2024 15:15:22 -0700 Subject: [PATCH] feat(Span displays): Add Root, LLM, and Retriever span visualizations (#1107) * shuffling * update standard.md to mention python versions tested * de-circularizing * finishing up decircularization * fix imports in tests * more import fixes * starting spans work * more import fixes * updating docs and docstrings with new locations * add temp to bedrock and ignored warning * trying to remove circular import * more debugging * more fixes * more of the same * last few * missed on * nits * typo * fix feedbackmode imports * 2 more fixes * starting spans work * work * working on spans * opentelemetry work * working on spans * span work * organize imports * starting span categorization logic * nits * typo in module doc * spans for custom apps * clear outputs * fix dictnamespace typing * span types * colors * style updates * span types * more style fixes * add dist build * revert some changes * revert ipynb changes --------- Co-authored-by: Piotr Mardziel --- .../trulens_eval/pages/Evaluations.py | 27 +- .../record_viewer/.eslintrc.cjs | 1 + .../record_viewer/__init__.py | 11 +- .../dist/assets/index-22978a10.js | 236 ------------------ .../dist/assets/index-69ff0e1b.js | 236 ++++++++++++++++++ .../record_viewer/dist/index.html | 2 +- .../record_viewer/src/RecordInfo.tsx | 20 +- .../src/RecordTable/RecordTable.tsx | 3 +- .../src/RecordTable/RecordTableRow.tsx | 13 +- .../src/RecordTable/SpanIconDisplay.tsx | 31 +++ .../src/RecordTree/Details/NodeDetails.tsx | 62 +---- .../NodeSpecificDetails/LLMDetails.tsx | 20 ++ .../NodeDetailsContainer.tsx | 62 +++++ .../NodeSpecificDetails/RetrieverDetails.tsx | 50 ++++ .../Details/NodeSpecificDetails/types.ts | 8 + .../src/RecordTree/Details/RootDetails.tsx | 2 +- .../src/RecordTree/Details/styles.ts | 2 +- .../src/RecordTree/RecordTree.tsx | 2 +- .../src/RecordTree/RecordTreeCell.tsx | 55 ++-- .../RecordTree/RecordTreeCellRecursive.tsx | 5 +- .../src/RecordTree/SpanIconDisplay.tsx | 28 +++ .../record_viewer/src/RecordViewer.tsx | 7 +- .../src/SpanTooltip/SpanTooltip.tsx | 8 +- .../record_viewer/src/Tag/Tag.tsx | 2 +- .../record_viewer/src/icons/SpanIcon.tsx | 53 ++++ .../record_viewer/src/utils/Span.ts | 204 +++++++++++++++ .../record_viewer/src/utils/StackTreeNode.ts | 8 +- .../record_viewer/src/utils/colors.ts | 36 ++- .../record_viewer/src/utils/types.ts | 14 ++ .../record_viewer/src/utils/utils.ts | 33 ++- 30 files changed, 882 insertions(+), 359 deletions(-) delete mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-22978a10.js create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-69ff0e1b.js create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/SpanIconDisplay.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/LLMDetails.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/RetrieverDetails.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/types.ts create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/SpanIconDisplay.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/icons/SpanIcon.tsx create mode 100644 trulens_eval/trulens_eval/react_components/record_viewer/src/utils/Span.ts diff --git a/trulens_eval/trulens_eval/pages/Evaluations.py b/trulens_eval/trulens_eval/pages/Evaluations.py index 6d07ef623..6b2912c46 100644 --- a/trulens_eval/trulens_eval/pages/Evaluations.py +++ b/trulens_eval/trulens_eval/pages/Evaluations.py @@ -33,6 +33,7 @@ from trulens_eval.react_components.record_viewer import record_viewer from trulens_eval.schema.feedback import Select from trulens_eval.schema.record import Record +from trulens_eval.trace.category import Categorizer from trulens_eval.utils.json import jsonify_for_ui from trulens_eval.utils.serial import Lens from trulens_eval.utils.streamlit import init_from_args @@ -340,13 +341,17 @@ def get_icon(feedback_name): ) ) - selected_fcol = pills( - "Feedback functions (click on a pill to learn more)", - feedback_with_valid_results, - index=None, - format_func=lambda fcol: f"{fcol} {row[fcol]:.4f}", - icons=icons - ) + selected_fcol = None + if len(feedback_with_valid_results) > 0: + selected_fcol = pills( + "Feedback functions (click on a pill to learn more)", + feedback_with_valid_results, + index=None, + format_func=lambda fcol: f"{fcol} {row[fcol]:.4f}", + icons=icons + ) + else: + st.write("No feedback functions found.") def display_feedback_call(call, feedback_name): @@ -413,7 +418,13 @@ def highlight(s): pass st.subheader("Trace details") - val = record_viewer(record_json, app_json) + + try: + spans = Categorizer.spans_of_record(Record(**record_json)) + except Exception: + spans = [] + + val = record_viewer(record_json, app_json, spans) st.markdown("") with tab2: diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/.eslintrc.cjs b/trulens_eval/trulens_eval/react_components/record_viewer/.eslintrc.cjs index 6f1f20db7..cc0c18075 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/.eslintrc.cjs +++ b/trulens_eval/trulens_eval/react_components/record_viewer/.eslintrc.cjs @@ -57,6 +57,7 @@ module.exports = { 'import/first': 'error', 'import/newline-after-import': 'error', 'import/no-duplicates': 'error', + 'max-classes-per-file': 'off' }, settings: { 'import/resolver': { diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/__init__.py b/trulens_eval/trulens_eval/react_components/record_viewer/__init__.py index 4d3d43db8..53ce3538d 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/__init__.py +++ b/trulens_eval/trulens_eval/react_components/record_viewer/__init__.py @@ -1,6 +1,7 @@ import os import streamlit.components.v1 as components +from trulens_eval.utils.json import jsonify # Create a _RELEASE constant. We'll set this to False while we're developing # the component, and True when we're ready to package and distribute it. @@ -44,7 +45,7 @@ # `declare_component` and call it done. The wrapper allows us to customize # our component's API: we can pre-process its input args, post-process its # output value, and add a docstring for users. -def record_viewer(record_json, app_json, key=None): +def record_viewer(record_json, app_json, spans, key=None): """Create a new instance of "record_viewer", which produces a timeline Parameters @@ -55,6 +56,9 @@ def record_viewer(record_json, app_json, key=None): app_json: obj JSON of the app serialized by `json.loads`. + spans: List[Span] + List of spans in the record. + key: str or None An optional key that uniquely identifies this component. If this is None, and the component's arguments are changed, the component will @@ -67,6 +71,9 @@ def record_viewer(record_json, app_json, key=None): this returns a JavaScript null, which is interpreted in python as a 0. """ + + raw_spans=list(map(lambda span: jsonify(span), spans)) + # Call through to our private component function. Arguments we pass here # will be sent to the frontend, where they'll be available in an "args" # dictionary. @@ -74,7 +81,7 @@ def record_viewer(record_json, app_json, key=None): # "default" is a special argument that specifies the initial return # value of the component before the user has interacted with it. component_value = _record_viewer( - record_json=record_json, app_json=app_json, key=key, default="" + record_json=record_json, app_json=app_json, raw_spans=raw_spans, key=key, default="" ) return component_value diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-22978a10.js b/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-22978a10.js deleted file mode 100644 index 1a0c1e6c2..000000000 --- a/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-22978a10.js +++ /dev/null @@ -1,236 +0,0 @@ -var TI=Object.defineProperty;var CI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var si=(e,t,n)=>(CI(e,typeof t!="symbol"?t+"":t,n),n);function OI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var kI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Q1={exports:{}},rd={},J1={exports:{}},qe={};/** - * @license React - * react.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 yu=Symbol.for("react.element"),AI=Symbol.for("react.portal"),BI=Symbol.for("react.fragment"),RI=Symbol.for("react.strict_mode"),MI=Symbol.for("react.profiler"),FI=Symbol.for("react.provider"),DI=Symbol.for("react.context"),PI=Symbol.for("react.forward_ref"),jI=Symbol.for("react.suspense"),LI=Symbol.for("react.memo"),NI=Symbol.for("react.lazy"),Gg=Symbol.iterator;function $I(e){return e===null||typeof e!="object"?null:(e=Gg&&e[Gg]||e["@@iterator"],typeof e=="function"?e:null)}var Z1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ew=Object.assign,tw={};function La(e,t,n){this.props=e,this.context=t,this.refs=tw,this.updater=n||Z1}La.prototype.isReactComponent={};La.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};La.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nw(){}nw.prototype=La.prototype;function ly(e,t,n){this.props=e,this.context=t,this.refs=tw,this.updater=n||Z1}var uy=ly.prototype=new nw;uy.constructor=ly;ew(uy,La.prototype);uy.isPureReactComponent=!0;var Xg=Array.isArray,rw=Object.prototype.hasOwnProperty,cy={current:null},iw={key:!0,ref:!0,__self:!0,__source:!0};function ow(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)rw.call(t,r)&&!iw.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1=0)&&(n[i]=e[i]);return n}function aw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var sT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,aT=aw(function(e){return sT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function lT(e){if(e.sheet)return e.sheet;for(var t=0;t0?wn(Na,--Jn):0,fa--,Jt===10&&(fa=1,od--),Jt}function ur(){return Jt=Jn2||zl(Jt)>3?"":" "}function xT(e,t){for(;--t&&ur()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return gu(e,Dc()+(t<6&&yi()==32&&ur()==32))}function Nh(e){for(;ur();)switch(Jt){case e:return Jn;case 34:case 39:e!==34&&e!==39&&Nh(Jt);break;case 40:e===41&&Nh(e);break;case 92:ur();break}return Jn}function ST(e,t){for(;ur()&&e+Jt!==47+10;)if(e+Jt===42+42&&yi()===47)break;return"/*"+gu(t,Jn-1)+"*"+id(e===47?e:ur())}function _T(e){for(;!zl(yi());)ur();return gu(e,Jn)}function ET(e){return pw(jc("",null,null,null,[""],e=dw(e),0,[0],e))}function jc(e,t,n,r,i,s,o,a,l){for(var u=0,c=0,f=o,p=0,h=0,y=0,m=1,_=1,g=1,v=0,b="",x=i,d=s,T=r,C=b;_;)switch(y=v,v=ur()){case 40:if(y!=108&&wn(C,f-1)==58){Lh(C+=it(Pc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=Pc(v);break;case 9:case 10:case 13:case 32:C+=wT(y);break;case 92:C+=xT(Dc()-1,7);continue;case 47:switch(yi()){case 42:case 47:nc(IT(ST(ur(),Dc()),t,n),l);break;default:C+="/"}break;case 123*m:a[u++]=fi(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:_=0;case 59+c:g==-1&&(C=it(C,/\f/g,"")),h>0&&fi(C)-f&&nc(h>32?Zg(C+";",r,n,f-1):Zg(it(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(nc(T=Jg(C,t,n,u,c,i,a,b,x=[],d=[],f),s),v===123)if(c===0)jc(C,t,T,T,x,s,f,a,d);else switch(p===99&&wn(C,3)===110?100:p){case 100:case 108:case 109:case 115:jc(e,T,T,r&&nc(Jg(e,T,T,0,0,i,a,b,i,x=[],f),d),i,d,f,a,r?x:d);break;default:jc(C,T,T,T,[""],d,0,a,d)}}u=c=h=0,m=g=1,b=C="",f=o;break;case 58:f=1+fi(C),h=y;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&bT()==125)continue}switch(C+=id(v),v*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(fi(C)-1)*g,g=1;break;case 64:yi()===45&&(C+=Pc(ur())),p=yi(),c=f=fi(b=C+=_T(Dc())),v++;break;case 45:y===45&&fi(C)==2&&(m=0)}}return s}function Jg(e,t,n,r,i,s,o,a,l,u,c){for(var f=i-1,p=i===0?s:[""],h=hy(p),y=0,m=0,_=0;y0?p[g]+" "+v:it(v,/&\f/g,p[g])))&&(l[_++]=b);return sd(e,t,n,i===0?dy:a,l,u,c)}function IT(e,t,n){return sd(e,t,n,lw,id(vT()),$l(e,2,-2),0)}function Zg(e,t,n,r){return sd(e,t,n,py,$l(e,0,r),$l(e,r+1,-1),r)}function qs(e,t){for(var n="",r=hy(e),i=0;i6)switch(wn(e,t+1)){case 109:if(wn(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+rt+"$2-$3$1"+rf+(wn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lh(e,"stretch")?hw(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wn(e,t+1)!==115)break;case 6444:switch(wn(e,fi(e)-3-(~Lh(e,"!important")&&10))){case 107:return it(e,":",":"+rt)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rt+(wn(e,14)===45?"inline-":"")+"box$3$1"+rt+"$2$3$1"+An+"$2box$3")+e}break;case 5936:switch(wn(e,t+11)){case 114:return rt+e+An+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rt+e+An+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rt+e+An+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rt+e+An+e+e}return e}var FT=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case py:t.return=hw(t.value,t.length);break;case uw:return qs([el(t,{value:it(t.value,"@","@"+rt)})],i);case dy:if(t.length)return gT(t.props,function(s){switch(yT(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qs([el(t,{props:[it(s,/:(read-\w+)/,":"+rf+"$1")]})],i);case"::placeholder":return qs([el(t,{props:[it(s,/:(plac\w+)/,":"+rt+"input-$1")]}),el(t,{props:[it(s,/:(plac\w+)/,":"+rf+"$1")]}),el(t,{props:[it(s,/:(plac\w+)/,An+"input-$1")]})],i)}return""})}},DT=[FT],mw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||DT,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),g=1;g<_.length;g++)s[_[g]]=!0;a.push(m)});var l,u=[RT,MT];{var c,f=[TT,OT(function(m){c.insert(m)})],p=CT(u.concat(i,f)),h=function(_){return qs(ET(_),p)};l=function(_,g,v,b){c=v,h(_?_+"{"+g.styles+"}":g.styles),b&&(y.inserted[g.name]=!0)}}var y={key:n,sheet:new cT({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return y.sheet.hydrate(a),y},yw={exports:{}},ft={};/** @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 gn=typeof Symbol=="function"&&Symbol.for,my=gn?Symbol.for("react.element"):60103,yy=gn?Symbol.for("react.portal"):60106,ad=gn?Symbol.for("react.fragment"):60107,ld=gn?Symbol.for("react.strict_mode"):60108,ud=gn?Symbol.for("react.profiler"):60114,cd=gn?Symbol.for("react.provider"):60109,fd=gn?Symbol.for("react.context"):60110,gy=gn?Symbol.for("react.async_mode"):60111,dd=gn?Symbol.for("react.concurrent_mode"):60111,pd=gn?Symbol.for("react.forward_ref"):60112,hd=gn?Symbol.for("react.suspense"):60113,PT=gn?Symbol.for("react.suspense_list"):60120,md=gn?Symbol.for("react.memo"):60115,yd=gn?Symbol.for("react.lazy"):60116,jT=gn?Symbol.for("react.block"):60121,LT=gn?Symbol.for("react.fundamental"):60117,NT=gn?Symbol.for("react.responder"):60118,$T=gn?Symbol.for("react.scope"):60119;function yr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case my:switch(e=e.type,e){case gy:case dd:case ad:case ud:case ld:case hd:return e;default:switch(e=e&&e.$$typeof,e){case fd:case pd:case yd:case md:case cd:return e;default:return t}}case yy:return t}}}function gw(e){return yr(e)===dd}ft.AsyncMode=gy;ft.ConcurrentMode=dd;ft.ContextConsumer=fd;ft.ContextProvider=cd;ft.Element=my;ft.ForwardRef=pd;ft.Fragment=ad;ft.Lazy=yd;ft.Memo=md;ft.Portal=yy;ft.Profiler=ud;ft.StrictMode=ld;ft.Suspense=hd;ft.isAsyncMode=function(e){return gw(e)||yr(e)===gy};ft.isConcurrentMode=gw;ft.isContextConsumer=function(e){return yr(e)===fd};ft.isContextProvider=function(e){return yr(e)===cd};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===my};ft.isForwardRef=function(e){return yr(e)===pd};ft.isFragment=function(e){return yr(e)===ad};ft.isLazy=function(e){return yr(e)===yd};ft.isMemo=function(e){return yr(e)===md};ft.isPortal=function(e){return yr(e)===yy};ft.isProfiler=function(e){return yr(e)===ud};ft.isStrictMode=function(e){return yr(e)===ld};ft.isSuspense=function(e){return yr(e)===hd};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ad||e===dd||e===ud||e===ld||e===hd||e===PT||typeof e=="object"&&e!==null&&(e.$$typeof===yd||e.$$typeof===md||e.$$typeof===cd||e.$$typeof===fd||e.$$typeof===pd||e.$$typeof===LT||e.$$typeof===NT||e.$$typeof===$T||e.$$typeof===jT)};ft.typeOf=yr;yw.exports=ft;var zT=yw.exports,vy=zT,UT={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},VT={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},WT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},by={};by[vy.ForwardRef]=WT;by[vy.Memo]=vw;function tv(e){return vy.isMemo(e)?vw:by[e.$$typeof]||UT}var HT=Object.defineProperty,KT=Object.getOwnPropertyNames,nv=Object.getOwnPropertySymbols,YT=Object.getOwnPropertyDescriptor,qT=Object.getPrototypeOf,rv=Object.prototype;function bw(e,t,n){if(typeof t!="string"){if(rv){var r=qT(t);r&&r!==rv&&bw(e,r,n)}var i=KT(t);nv&&(i=i.concat(nv(t)));for(var s=tv(e),o=tv(t),a=0;a=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tC=/[A-Z]|^ms/g,nC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sw=function(t){return t.charCodeAt(1)===45},iv=function(t){return t!=null&&typeof t!="boolean"},Lp=aw(function(e){return Sw(e)?e:e.replace(tC,"-$&").toLowerCase()}),ov=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nC,function(r,i,s){return di={name:i,styles:s,next:di},i})}return eC[t]!==1&&!Sw(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ul(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return di={name:n.name,styles:n.styles,next:di},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)di={name:r.name,styles:r.styles,next:di},r=r.next;var i=n.styles+";";return i}return rC(e,t,n)}case"function":{if(e!==void 0){var s=di,o=n(e);return di=s,Ul(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function rC(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?lC:uC},cv=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},cC=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return ww(n,r,i),oC(function(){return xw(n,r,i)}),null},fC=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,o;n!==void 0&&(s=n.label,o=n.target);var a=cv(t,n,r),l=a||uv(i),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,h=1;ht(vC(i)?n:i):t;return B.jsx(aC,{styles:r})}/** - * @mui/styled-engine v5.15.14 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function xy(e,t){return $h(e,t)}const Rw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},wC=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:bC,StyledEngineProvider:Bw,ThemeContext:vu,css:Cw,default:xy,internal_processStyles:Rw,keyframes:gd},Symbol.toStringTag,{value:"Module"}));function Ri(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Mw(e){if(!Ri(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Mw(e[n])}),t}function Cr(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return Ri(e)&&Ri(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ri(t[i])&&i in e&&Ri(e[i])?r[i]=Cr(e[i],t[i],n):n.clone?r[i]=Ri(t[i])?Mw(t[i]):t[i]:r[i]=t[i])}),r}const xC=Object.freeze(Object.defineProperty({__proto__:null,default:Cr,isPlainObject:Ri},Symbol.toStringTag,{value:"Module"})),SC=["values","unit","step"],_C=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Fw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Te(e,SC),s=_C(t),o=Object.keys(s);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,h){const y=o.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[o[y]]=="number"?t[o[y]]:h)-r/100}${n})`}function c(p){return o.indexOf(p)+1`@media (min-width:${Sy[e]}px)`};function Zn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||dv;return t.reduce((o,a,l)=>(o[s.up(s.keys[l])]=n(t[l]),o),{})}if(typeof t=="object"){const s=r.breakpoints||dv;return Object.keys(t).reduce((o,a)=>{if(Object.keys(s.values||Sy).indexOf(a)!==-1){const l=s.up(a);o[l]=n(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return n(t)}function Dw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const s=e.up(i);return r[s]={},r},{}))||{}}function Pw(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function TC(e,...t){const n=Dw(e),r=[n,...t].reduce((i,s)=>Cr(i,s),{});return Pw(Object.keys(n),r)}function CC(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,s)=>{s{e[i]!=null&&(n[i]=!0)}),n}function qo({values:e,breakpoints:t,base:n}){const r=n||CC(e,t),i=Object.keys(r);if(i.length===0)return e;let s;return i.reduce((o,a,l)=>(Array.isArray(e)?(o[a]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[s],s=a):o[a]=e,o),{})}function _t(e){if(typeof e!="string")throw new Error(Zo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const OC=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));function vd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function of(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=vd(e,n)||r,t&&(i=t(i,r,e)),i}function qt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,u=vd(l,r)||{};return Zn(o,a,f=>{let p=of(u,i,f);return f===p&&typeof f=="string"&&(p=of(u,i,`${t}${f==="default"?"":_t(f)}`,f)),n===!1?p:{[n]:p}})};return s.propTypes={},s.filterProps=[t],s}function kC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const AC={m:"margin",p:"padding"},BC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RC=kC(e=>{if(e.length>2)if(pv[e])e=pv[e];else return[e];const[t,n]=e.split(""),r=AC[t],i=BC[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),_y=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ey=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._y,...Ey];function bu(e,t,n,r){var i;const s=(i=vd(e,t,!1))!=null?i:n;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function Iy(e){return bu(e,"spacing",8)}function es(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function MC(e,t){return n=>e.reduce((r,i)=>(r[i]=es(t,n),r),{})}function FC(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=RC(n),s=MC(i,r),o=e[n];return Zn(e,o,s)}function jw(e,t){const n=Iy(e.theme);return Object.keys(e).map(r=>FC(e,t,r,n)).reduce(xl,{})}function Wt(e){return jw(e,_y)}Wt.propTypes={};Wt.filterProps=_y;function Ht(e){return jw(e,Ey)}Ht.propTypes={};Ht.filterProps=Ey;function DC(e=8){if(e.mui)return e;const t=Iy({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function bd(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?xl(i,t[s](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Sr(e){return typeof e!="number"?e:`${e}px solid`}function jr(e,t){return qt({prop:e,themeKey:"borders",transform:t})}const PC=jr("border",Sr),jC=jr("borderTop",Sr),LC=jr("borderRight",Sr),NC=jr("borderBottom",Sr),$C=jr("borderLeft",Sr),zC=jr("borderColor"),UC=jr("borderTopColor"),VC=jr("borderRightColor"),WC=jr("borderBottomColor"),HC=jr("borderLeftColor"),KC=jr("outline",Sr),YC=jr("outlineColor"),wd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:es(t,r)});return Zn(e,e.borderRadius,n)}return null};wd.propTypes={};wd.filterProps=["borderRadius"];bd(PC,jC,LC,NC,$C,zC,UC,VC,WC,HC,wd,KC,YC);const xd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bu(e.theme,"spacing",8),n=r=>({gap:es(t,r)});return Zn(e,e.gap,n)}return null};xd.propTypes={};xd.filterProps=["gap"];const Sd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bu(e.theme,"spacing",8),n=r=>({columnGap:es(t,r)});return Zn(e,e.columnGap,n)}return null};Sd.propTypes={};Sd.filterProps=["columnGap"];const _d=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bu(e.theme,"spacing",8),n=r=>({rowGap:es(t,r)});return Zn(e,e.rowGap,n)}return null};_d.propTypes={};_d.filterProps=["rowGap"];const qC=qt({prop:"gridColumn"}),GC=qt({prop:"gridRow"}),XC=qt({prop:"gridAutoFlow"}),QC=qt({prop:"gridAutoColumns"}),JC=qt({prop:"gridAutoRows"}),ZC=qt({prop:"gridTemplateColumns"}),eO=qt({prop:"gridTemplateRows"}),tO=qt({prop:"gridTemplateAreas"}),nO=qt({prop:"gridArea"});bd(xd,Sd,_d,qC,GC,XC,QC,JC,ZC,eO,tO,nO);function Gs(e,t){return t==="grey"?t:e}const rO=qt({prop:"color",themeKey:"palette",transform:Gs}),iO=qt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gs}),oO=qt({prop:"backgroundColor",themeKey:"palette",transform:Gs});bd(rO,iO,oO);function ar(e){return e<=1&&e!==0?`${e*100}%`:e}const sO=qt({prop:"width",transform:ar}),Ty=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Sy[n];return s?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:ar(n)}};return Zn(e,e.maxWidth,t)}return null};Ty.filterProps=["maxWidth"];const aO=qt({prop:"minWidth",transform:ar}),lO=qt({prop:"height",transform:ar}),uO=qt({prop:"maxHeight",transform:ar}),cO=qt({prop:"minHeight",transform:ar});qt({prop:"size",cssProperty:"width",transform:ar});qt({prop:"size",cssProperty:"height",transform:ar});const fO=qt({prop:"boxSizing"});bd(sO,Ty,aO,lO,uO,cO,fO);const dO={border:{themeKey:"borders",transform:Sr},borderTop:{themeKey:"borders",transform:Sr},borderRight:{themeKey:"borders",transform:Sr},borderBottom:{themeKey:"borders",transform:Sr},borderLeft:{themeKey:"borders",transform:Sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wd},color:{themeKey:"palette",transform:Gs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gs},backgroundColor:{themeKey:"palette",transform:Gs},p:{style:Ht},pt:{style:Ht},pr:{style:Ht},pb:{style:Ht},pl:{style:Ht},px:{style:Ht},py:{style:Ht},padding:{style:Ht},paddingTop:{style:Ht},paddingRight:{style:Ht},paddingBottom:{style:Ht},paddingLeft:{style:Ht},paddingX:{style:Ht},paddingY:{style:Ht},paddingInline:{style:Ht},paddingInlineStart:{style:Ht},paddingInlineEnd:{style:Ht},paddingBlock:{style:Ht},paddingBlockStart:{style:Ht},paddingBlockEnd:{style:Ht},m:{style:Wt},mt:{style:Wt},mr:{style:Wt},mb:{style:Wt},ml:{style:Wt},mx:{style:Wt},my:{style:Wt},margin:{style:Wt},marginTop:{style:Wt},marginRight:{style:Wt},marginBottom:{style:Wt},marginLeft:{style:Wt},marginX:{style:Wt},marginY:{style:Wt},marginInline:{style:Wt},marginInlineStart:{style:Wt},marginInlineEnd:{style:Wt},marginBlock:{style:Wt},marginBlockStart:{style:Wt},marginBlockEnd:{style:Wt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xd},rowGap:{style:_d},columnGap:{style:Sd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ar},maxWidth:{style:Ty},minWidth:{transform:ar},height:{transform:ar},maxHeight:{transform:ar},minHeight:{transform:ar},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},wu=dO;function pO(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hO(e,t){return typeof e=="function"?e(t):e}function Lw(){function e(n,r,i,s){const o={[n]:r,theme:i},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vd(i,u)||{};return f?f(o):Zn(o,r,y=>{let m=of(p,c,y);return y===m&&typeof y=="string"&&(m=of(p,c,`${n}${y==="default"?"":_t(y)}`,y)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const o=(r=s.unstable_sxConfig)!=null?r:wu;function a(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=Dw(s.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const y=hO(u[h],s);if(y!=null)if(typeof y=="object")if(o[h])p=xl(p,e(h,y,s,o));else{const m=Zn({theme:s},y,_=>({[h]:_}));pO(m,y)?p[h]=t({sx:y,theme:s}):p=xl(p,m)}else p=xl(p,e(h,y,s,o))}),Pw(f,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const Nw=Lw();Nw.filterProps=["sx"];const xu=Nw;function $w(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const mO=["breakpoints","palette","spacing","shape"];function Su(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=e,o=Te(e,mO),a=Fw(n),l=DC(i);let u=Cr({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},IC,s)},o);return u.applyStyles=$w,u=t.reduce((c,f)=>Cr(c,f),u),u.unstable_sxConfig=j({},wu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return xu({sx:f,theme:this})},u}const yO=Object.freeze(Object.defineProperty({__proto__:null,default:Su,private_createBreakpoints:Fw,unstable_applyStyles:$w},Symbol.toStringTag,{value:"Module"}));function gO(e){return Object.keys(e).length===0}function zw(e=null){const t=A.useContext(vu);return!t||gO(t)?e:t}const vO=Su();function Cy(e=vO){return zw(e)}const bO=["sx"],wO=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:wu;return Object.keys(e).forEach(s=>{i[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function _u(e){const{sx:t}=e,n=Te(e,bO),{systemProps:r,otherProps:i}=wO(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...o)=>{const a=t(...o);return Ri(a)?j({},r,a):r}:s=j({},r,t),j({},i,{sx:s})}const xO=Object.freeze(Object.defineProperty({__proto__:null,default:xu,extendSxProp:_u,unstable_createStyleFunctionSx:Lw,unstable_defaultSxConfig:wu},Symbol.toStringTag,{value:"Module"})),hv=e=>e,SO=()=>{let e=hv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hv}}},_O=SO(),Oy=_O;function Uw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(xu);return A.forwardRef(function(l,u){const c=Cy(n),f=_u(l),{className:p,component:h="div"}=f,y=Te(f,EO);return B.jsx(s,j({as:h,ref:u,className:Ne(p,i?i(r):r),theme:t&&c[t]||c},y))})}const Vw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tn(e,t,n="Mui"){const r=Vw[t];return r?`${n}-${r}`:`${Oy.generate(e)}-${t}`}function nn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=tn(e,i,n)}),r}var Ww={exports:{}},dt={};/** - * @license React - * 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 ky=Symbol.for("react.element"),Ay=Symbol.for("react.portal"),Ed=Symbol.for("react.fragment"),Id=Symbol.for("react.strict_mode"),Td=Symbol.for("react.profiler"),Cd=Symbol.for("react.provider"),Od=Symbol.for("react.context"),TO=Symbol.for("react.server_context"),kd=Symbol.for("react.forward_ref"),Ad=Symbol.for("react.suspense"),Bd=Symbol.for("react.suspense_list"),Rd=Symbol.for("react.memo"),Md=Symbol.for("react.lazy"),CO=Symbol.for("react.offscreen"),Hw;Hw=Symbol.for("react.module.reference");function Lr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ky:switch(e=e.type,e){case Ed:case Td:case Id:case Ad:case Bd:return e;default:switch(e=e&&e.$$typeof,e){case TO:case Od:case kd:case Md:case Rd:case Cd:return e;default:return t}}case Ay:return t}}}dt.ContextConsumer=Od;dt.ContextProvider=Cd;dt.Element=ky;dt.ForwardRef=kd;dt.Fragment=Ed;dt.Lazy=Md;dt.Memo=Rd;dt.Portal=Ay;dt.Profiler=Td;dt.StrictMode=Id;dt.Suspense=Ad;dt.SuspenseList=Bd;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return Lr(e)===Od};dt.isContextProvider=function(e){return Lr(e)===Cd};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ky};dt.isForwardRef=function(e){return Lr(e)===kd};dt.isFragment=function(e){return Lr(e)===Ed};dt.isLazy=function(e){return Lr(e)===Md};dt.isMemo=function(e){return Lr(e)===Rd};dt.isPortal=function(e){return Lr(e)===Ay};dt.isProfiler=function(e){return Lr(e)===Td};dt.isStrictMode=function(e){return Lr(e)===Id};dt.isSuspense=function(e){return Lr(e)===Ad};dt.isSuspenseList=function(e){return Lr(e)===Bd};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ed||e===Td||e===Id||e===Ad||e===Bd||e===CO||typeof e=="object"&&e!==null&&(e.$$typeof===Md||e.$$typeof===Rd||e.$$typeof===Cd||e.$$typeof===Od||e.$$typeof===kd||e.$$typeof===Hw||e.getModuleId!==void 0)};dt.typeOf=Lr;Ww.exports=dt;var mv=Ww.exports;const OO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Kw(e){const t=`${e}`.match(OO);return t&&t[1]||""}function Yw(e,t=""){return e.displayName||e.name||Kw(e)||t}function yv(e,t,n){const r=Yw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function kO(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Yw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case mv.ForwardRef:return yv(e,e.render,"ForwardRef");case mv.Memo:return yv(e,e.type,"memo");default:return}}}const AO=Object.freeze(Object.defineProperty({__proto__:null,default:kO,getFunctionName:Kw},Symbol.toStringTag,{value:"Module"})),BO=["ownerState"],RO=["variants"],MO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function FO(e){return Object.keys(e).length===0}function DO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $p(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const PO=Su(),jO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function rc({defaultTheme:e,theme:t,themeId:n}){return FO(t)?e:t[n]||t}function LO(e){return e?(t,n)=>n[e]:null}function Lc(e,t){let{ownerState:n}=t,r=Te(t,BO);const i=typeof e=="function"?e(j({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(s=>Lc(s,j({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:s=[]}=i;let a=Te(i,RO);return s.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(j({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(j({ownerState:n},r,n)):l.style))}),a}return i}function NO(e={}){const{themeId:t,defaultTheme:n=PO,rootShouldForwardProp:r=$p,slotShouldForwardProp:i=$p}=e,s=o=>xu(j({},o,{theme:rc(j({},o,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(o,a={})=>{Rw(o,d=>d.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=LO(jO(u))}=a,h=Te(a,MO),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let _,g=$p;u==="Root"||u==="root"?g=r:u?g=i:DO(o)&&(g=void 0);const v=xy(o,j({shouldForwardProp:g,label:_},h)),b=d=>typeof d=="function"&&d.__emotion_real!==d||Ri(d)?T=>Lc(d,j({},T,{theme:rc({theme:T.theme,defaultTheme:n,themeId:t})})):d,x=(d,...T)=>{let C=b(d);const L=T?T.map(b):[];l&&p&&L.push(D=>{const V=rc(j({},D,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const H=V.components[l].styleOverrides,te={};return Object.entries(H).forEach(([F,ee])=>{te[F]=Lc(ee,j({},D,{theme:V}))}),p(D,te)}),l&&!y&&L.push(D=>{var V;const H=rc(j({},D,{defaultTheme:n,themeId:t})),te=H==null||(V=H.components)==null||(V=V[l])==null?void 0:V.variants;return Lc({variants:te},j({},D,{theme:H}))}),m||L.push(s);const R=L.length-T.length;if(Array.isArray(d)&&R>0){const D=new Array(R).fill("");C=[...d,...D],C.raw=[...d.raw,...D]}const k=v(C,...L);return o.muiName&&(k.muiName=o.muiName),k};return v.withConfig&&(x.withConfig=v.withConfig),x}}const $O=NO(),zO=$O;function qw(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=j({},s),Object.keys(i).forEach(o=>{n[r][o]=qw(i[o],s[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function UO(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qw(t.components[n].defaultProps,r)}function Gw({props:e,name:t,defaultTheme:n,themeId:r}){let i=Cy(n);return r&&(i=i[r]||i),UO({theme:i,name:t,props:e})}const VO=typeof window<"u"?A.useLayoutEffect:A.useEffect,vo=VO;function Xw(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const WO=Object.freeze(Object.defineProperty({__proto__:null,default:Xw},Symbol.toStringTag,{value:"Module"}));function HO(e,t=0,n=1){return Xw(e,t,n)}function KO(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qw(e){if(e.type)return e;if(e.charAt(0)==="#")return Qw(KO(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Zo(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Zo(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}function YO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ic(e,t){return e=Qw(e),t=HO(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,YO(e)}function qO(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function By(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function GO(e,t){return()=>null}function XO(e,t){var n,r;return A.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function da(e){return e&&e.ownerDocument||document}function Ry(e){return da(e).defaultView||window}function QO(e,t){return()=>null}function sf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gv=0;function JO(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(gv+=1,n(`mui-${gv}`))},[t]),r}const vv=Ph["useId".toString()];function My(e){if(vv!==void 0){const t=vv();return e??t}return JO(e)}function ZO(e,t,n,r,i){return null}function Jw({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=A.useRef(e!==void 0),[s,o]=A.useState(t),a=i?e:s,l=A.useCallback(u=>{i||o(u)},[]);return[a,l]}function fn(e){const t=A.useRef(e);return vo(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Ln(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{sf(n,t)})},e)}const bv={};function e3(e,t){const n=A.useRef(bv);return n.current===bv&&(n.current=e(t)),n}const t3=[];function n3(e){A.useEffect(e,t3)}class Eu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Eu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Uo(){const e=e3(Eu.create).current;return n3(e.disposeEffect),e}let Fd=!0,Uh=!1;const r3=new Eu,i3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&i3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function s3(e){e.metaKey||e.altKey||e.ctrlKey||(Fd=!0)}function zp(){Fd=!1}function a3(){this.visibilityState==="hidden"&&Uh&&(Fd=!0)}function l3(e){e.addEventListener("keydown",s3,!0),e.addEventListener("mousedown",zp,!0),e.addEventListener("pointerdown",zp,!0),e.addEventListener("touchstart",zp,!0),e.addEventListener("visibilitychange",a3,!0)}function u3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fd||o3(t)}function Fy(){const e=A.useCallback(i=>{i!=null&&l3(i.ownerDocument)},[]),t=A.useRef(!1);function n(){return t.current?(Uh=!0,r3.start(100,()=>{Uh=!1}),t.current=!1,!0):!1}function r(i){return u3(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}let Ts;function Zw(){if(Ts)return Ts;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ts="reverse",e.scrollLeft>0?Ts="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ts="negative")),document.body.removeChild(e),Ts}function c3(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(Zw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function rn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((s,o)=>{if(o){const a=t(o);a!==""&&s.push(a),n&&n[o]&&s.push(n[o])}return s},[]).join(" ")}),r}const f3=A.createContext(null),ex=f3;function tx(){return A.useContext(ex)}const d3=typeof Symbol=="function"&&Symbol.for,p3=d3?Symbol.for("mui.nested"):"__THEME_NESTED__";function h3(e,t){return typeof t=="function"?t(e):j({},e,t)}function m3(e){const{children:t,theme:n}=e,r=tx(),i=A.useMemo(()=>{const s=r===null?n:h3(r,n);return s!=null&&(s[p3]=r!==null),s},[n,r]);return B.jsx(ex.Provider,{value:i,children:t})}const y3=["value"],nx=A.createContext();function g3(e){let{value:t}=e,n=Te(e,y3);return B.jsx(nx.Provider,j({value:t??!0},n))}const Dy=()=>{const e=A.useContext(nx);return e??!1},wv={};function xv(e,t,n,r=!1){return A.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const s=n(i),o=e?j({},t,{[e]:s}):s;return r?()=>o:o}return e?j({},t,{[e]:n}):j({},t,n)},[e,t,n,r])}function v3(e){const{children:t,theme:n,themeId:r}=e,i=zw(wv),s=tx()||wv,o=xv(r,i,n),a=xv(r,s,n,!0),l=o.direction==="rtl";return B.jsx(m3,{theme:a,children:B.jsx(vu.Provider,{value:o,children:B.jsx(g3,{value:l,children:t})})})}const b3=["component","direction","spacing","divider","children","className","useFlexGap"],w3=Su(),x3=zO("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function S3(e){return Gw({props:e,name:"MuiStack",defaultTheme:w3})}function _3(e,t){const n=A.Children.toArray(e).filter(Boolean);return n.reduce((r,i,s)=>(r.push(i),s({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],I3=({ownerState:e,theme:t})=>{let n=j({display:"flex",flexDirection:"column"},Zn({theme:t},qo({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Iy(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),s=qo({values:e.direction,base:i}),o=qo({values:e.spacing,base:i});typeof s=="object"&&Object.keys(s).forEach((l,u,c)=>{if(!s[l]){const p=u>0?s[c[u-1]]:"column";s[l]=p}}),n=Cr(n,Zn({theme:t},o,(l,u)=>e.useFlexGap?{gap:es(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${E3(u?s[u]:e.direction)}`]:es(r,l)}}))}return n=TC(t.breakpoints,n),n};function T3(e={}){const{createStyledComponent:t=x3,useThemeProps:n=S3,componentName:r="MuiStack"}=e,i=()=>rn({root:["root"]},l=>tn(r,l),{}),s=t(I3);return A.forwardRef(function(l,u){const c=n(l),f=_u(c),{component:p="div",direction:h="column",spacing:y=0,divider:m,children:_,className:g,useFlexGap:v=!1}=f,b=Te(f,b3),x={direction:h,spacing:y,useFlexGap:v},d=i();return B.jsx(s,j({as:p,ownerState:x,ref:u,className:Ne(d.root,g)},b,{children:m?_3(_,m):_}))})}function C3(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Gt={},rx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rx);var Dd=rx.exports;const O3=Wi(oT),k3=Wi(WO);var ix=Dd;Object.defineProperty(Gt,"__esModule",{value:!0});var bo=Gt.alpha=cx;Gt.blend=$3;Gt.colorChannel=void 0;var ox=Gt.darken=jy;Gt.decomposeColor=Br;Gt.emphasize=N3;var A3=Gt.getContrastRatio=D3;Gt.getLuminance=af;Gt.hexToRgb=ax;Gt.hslToRgb=ux;var sx=Gt.lighten=Ly;Gt.private_safeAlpha=P3;Gt.private_safeColorChannel=void 0;Gt.private_safeDarken=j3;Gt.private_safeEmphasize=fx;Gt.private_safeLighten=L3;Gt.recomposeColor=$a;Gt.rgbToHex=F3;var Sv=ix(O3),B3=ix(k3);function Py(e,t=0,n=1){return(0,B3.default)(e,t,n)}function ax(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function R3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(ax(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Sv.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,Sv.default)(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const lx=e=>{const t=Br(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Gt.colorChannel=lx;const M3=(e,t)=>{try{return lx(e)}catch{return e}};Gt.private_safeColorChannel=M3;function $a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function F3(e){if(e.indexOf("#")===0)return e;const{values:t}=Br(e);return`#${t.map((n,r)=>R3(r===3?Math.round(255*n):n)).join("")}`}function ux(e){e=Br(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),o=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),$a({type:a,values:l})}function af(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(ux(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function D3(e,t){const n=af(e),r=af(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cx(e,t){return e=Br(e),t=Py(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$a(e)}function P3(e,t,n){try{return cx(e,t)}catch{return e}}function jy(e,t){if(e=Br(e),t=Py(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $a(e)}function j3(e,t,n){try{return jy(e,t)}catch{return e}}function Ly(e,t){if(e=Br(e),t=Py(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $a(e)}function L3(e,t,n){try{return Ly(e,t)}catch{return e}}function N3(e,t=.15){return af(e)>.5?jy(e,t):Ly(e,t)}function fx(e,t,n){try{return fx(e,t)}catch{return e}}function $3(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),s=Br(e),o=Br(t),a=[i(s.values[0],o.values[0]),i(s.values[1],o.values[1]),i(s.values[2],o.values[2])];return $a({type:"rgb",values:a})}const z3=["mode","contrastThreshold","tonalOffset"],_v={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Nl.white,default:Nl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Up={text:{primary:Nl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Nl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ev(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=sx(e.main,i):t==="dark"&&(e.dark=ox(e.main,s)))}function U3(e="light"){return e==="dark"?{main:_s[200],light:_s[50],dark:_s[400]}:{main:_s[700],light:_s[400],dark:_s[800]}}function V3(e="light"){return e==="dark"?{main:Ss[200],light:Ss[50],dark:Ss[400]}:{main:Ss[500],light:Ss[300],dark:Ss[700]}}function W3(e="light"){return e==="dark"?{main:xs[500],light:xs[300],dark:xs[700]}:{main:xs[700],light:xs[400],dark:xs[800]}}function H3(e="light"){return e==="dark"?{main:Es[400],light:Es[300],dark:Es[700]}:{main:Es[700],light:Es[500],dark:Es[900]}}function K3(e="light"){return e==="dark"?{main:Is[400],light:Is[300],dark:Is[700]}:{main:Is[800],light:Is[500],dark:Is[900]}}function Y3(e="light"){return e==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:"#ed6c02",light:Za[500],dark:Za[900]}}function q3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Te(e,z3),s=e.primary||U3(t),o=e.secondary||V3(t),a=e.error||W3(t),l=e.info||H3(t),u=e.success||K3(t),c=e.warning||Y3(t);function f(m){return A3(m,Up.text.primary)>=n?Up.text.primary:_v.text.primary}const p=({color:m,name:_,mainShade:g=500,lightShade:v=300,darkShade:b=700})=>{if(m=j({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Zo(11,_?` (${_})`:"",g));if(typeof m.main!="string")throw new Error(Zo(12,_?` (${_})`:"",JSON.stringify(m.main)));return Ev(m,"light",v,r),Ev(m,"dark",b,r),m.contrastText||(m.contrastText=f(m.main)),m},h={dark:Up,light:_v};return Cr(j({common:j({},Nl),mode:t,primary:p({color:s,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:jh,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},h[t]),i)}const G3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function X3(e){return Math.round(e*1e5)/1e5}const Iv={textTransform:"uppercase"},Tv='"Roboto", "Helvetica", "Arial", sans-serif';function Q3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Tv,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=Te(n,G3),h=i/14,y=f||(g=>`${g/u*h}rem`),m=(g,v,b,x,d)=>j({fontFamily:r,fontWeight:g,fontSize:y(v),lineHeight:b},r===Tv?{letterSpacing:`${X3(x/v)}em`}:{},d,c),_={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(a,14,1.75,.4,Iv),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,Iv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cr(j({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},_),p,{clone:!1})}const J3=.2,Z3=.14,ek=.12;function Mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${J3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Z3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ek})`].join(",")}const tk=["none",Mt(0,2,1,-1,0,1,1,0,0,1,3,0),Mt(0,3,1,-2,0,2,2,0,0,1,5,0),Mt(0,3,3,-2,0,3,4,0,0,1,8,0),Mt(0,2,4,-1,0,4,5,0,0,1,10,0),Mt(0,3,5,-1,0,5,8,0,0,1,14,0),Mt(0,3,5,-1,0,6,10,0,0,1,18,0),Mt(0,4,5,-2,0,7,10,1,0,2,16,1),Mt(0,5,5,-3,0,8,10,1,0,3,14,2),Mt(0,5,6,-3,0,9,12,1,0,3,16,2),Mt(0,6,6,-3,0,10,14,1,0,4,18,3),Mt(0,6,7,-4,0,11,15,1,0,4,20,3),Mt(0,7,8,-4,0,12,17,2,0,5,22,4),Mt(0,7,8,-4,0,13,19,2,0,5,24,4),Mt(0,7,9,-4,0,14,21,2,0,5,26,4),Mt(0,8,9,-5,0,15,22,2,0,6,28,5),Mt(0,8,10,-5,0,16,24,2,0,6,30,5),Mt(0,8,11,-5,0,17,26,2,0,6,32,5),Mt(0,9,11,-5,0,18,28,2,0,7,34,6),Mt(0,9,12,-6,0,19,29,2,0,7,36,6),Mt(0,10,13,-6,0,20,31,3,0,8,38,7),Mt(0,10,13,-6,0,21,33,3,0,8,40,7),Mt(0,10,14,-6,0,22,35,3,0,8,42,7),Mt(0,11,14,-7,0,23,36,3,0,9,44,8),Mt(0,11,15,-7,0,24,38,3,0,9,46,8)],nk=tk,rk=["duration","easing","delay"],ik={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},dx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cv(e){return`${Math.round(e)}ms`}function ok(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sk(e){const t=j({},ik,e.easing),n=j({},dx,e.duration);return j({getAutoHeightDuration:ok,create:(i=["all"],s={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0}=s;return Te(s,rk),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Cv(o)} ${a} ${typeof l=="string"?l:Cv(l)}`).join(",")}},e,{easing:t,duration:n})}const ak={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lk=ak,uk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ny(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=e,o=Te(e,uk);if(e.vars)throw new Error(Zo(18));const a=q3(r),l=Su(e);let u=Cr(l,{mixins:C3(l.breakpoints,n),palette:a,shadows:nk.slice(),typography:Q3(a,s),transitions:sk(i),zIndex:j({},lk)});return u=Cr(u,o),u=t.reduce((c,f)=>Cr(c,f),u),u.unstable_sxConfig=j({},wu,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return xu({sx:f,theme:this})},u}const ck=Ny(),$y=ck;function za(){const e=Cy($y);return e[ca]||e}function Xt({props:e,name:t}){return Gw({props:e,name:t,defaultTheme:$y,themeId:ca})}var Iu={},Vp={exports:{}},Ov;function fk(){return Ov||(Ov=1,function(e){function t(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,a;for(a=0;a=0)&&(i[o]=n[o]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vp)),Vp.exports}const px=Wi(wC),dk=Wi(xC),pk=Wi(OC),hk=Wi(AO),mk=Wi(yO),yk=Wi(xO);var Ua=Dd;Object.defineProperty(Iu,"__esModule",{value:!0});var gk=Iu.default=Ak;Iu.shouldForwardProp=Nc;Iu.systemDefaultTheme=void 0;var wr=Ua(Tw()),Vh=Ua(fk()),kv=Ek(px),vk=dk;Ua(pk);Ua(hk);var bk=Ua(mk),wk=Ua(yk);const xk=["ownerState"],Sk=["variants"],_k=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hx=function(r){return r?n:t})(e)}function Ek(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Ik(e){return Object.keys(e).length===0}function Tk(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ck=Iu.systemDefaultTheme=(0,bk.default)(),Ok=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function oc({defaultTheme:e,theme:t,themeId:n}){return Ik(t)?e:t[n]||t}function kk(e){return e?(t,n)=>n[e]:null}function $c(e,t){let{ownerState:n}=t,r=(0,Vh.default)(t,xk);const i=typeof e=="function"?e((0,wr.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(s=>$c(s,(0,wr.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:s=[]}=i;let a=(0,Vh.default)(i,Sk);return s.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,wr.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,wr.default)({ownerState:n},r,n)):l.style))}),a}return i}function Ak(e={}){const{themeId:t,defaultTheme:n=Ck,rootShouldForwardProp:r=Nc,slotShouldForwardProp:i=Nc}=e,s=o=>(0,wk.default)((0,wr.default)({},o,{theme:oc((0,wr.default)({},o,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(o,a={})=>{(0,kv.internal_processStyles)(o,d=>d.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kk(Ok(u))}=a,h=(0,Vh.default)(a,_k),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let _,g=Nc;u==="Root"||u==="root"?g=r:u?g=i:Tk(o)&&(g=void 0);const v=(0,kv.default)(o,(0,wr.default)({shouldForwardProp:g,label:_},h)),b=d=>typeof d=="function"&&d.__emotion_real!==d||(0,vk.isPlainObject)(d)?T=>$c(d,(0,wr.default)({},T,{theme:oc({theme:T.theme,defaultTheme:n,themeId:t})})):d,x=(d,...T)=>{let C=b(d);const L=T?T.map(b):[];l&&p&&L.push(D=>{const V=oc((0,wr.default)({},D,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const H=V.components[l].styleOverrides,te={};return Object.entries(H).forEach(([F,ee])=>{te[F]=$c(ee,(0,wr.default)({},D,{theme:V}))}),p(D,te)}),l&&!y&&L.push(D=>{var V;const H=oc((0,wr.default)({},D,{defaultTheme:n,themeId:t})),te=H==null||(V=H.components)==null||(V=V[l])==null?void 0:V.variants;return $c({variants:te},(0,wr.default)({},D,{theme:H}))}),m||L.push(s);const R=L.length-T.length;if(Array.isArray(d)&&R>0){const D=new Array(R).fill("");C=[...d,...D],C.raw=[...d.raw,...D]}const k=v(C,...L);return o.muiName&&(k.muiName=o.muiName),k};return v.withConfig&&(x.withConfig=v.withConfig),x}}function Bk(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rk=e=>Bk(e)&&e!=="classes",Mk=Rk,Fk=gk({themeId:ca,defaultTheme:$y,rootShouldForwardProp:Mk}),tt=Fk,Dk=["theme"];function Pk(e){let{theme:t}=e,n=Te(e,Dk);const r=t[ca];return B.jsx(v3,j({},n,{themeId:r?ca:void 0,theme:r||t}))}function jk(e){return tn("MuiSvgIcon",e)}nn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lk=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Nk=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${_t(t)}`,`fontSize${_t(n)}`]};return rn(i,jk,r)},$k=tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${_t(n.color)}`],t[`fontSize${_t(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,s,o,a,l,u,c,f,p,h,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),mx=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,h=Te(r,Lk),y=A.isValidElement(i)&&i.type==="svg",m=j({},r,{color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:y}),_={};c||(_.viewBox=p);const g=Nk(m);return B.jsxs($k,j({as:a,className:Ne(g.root,s),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},_,h,y&&i.props,{ownerState:m,children:[y?i.props.children:i,f?B.jsx("title",{children:f}):null]}))});mx.muiName="SvgIcon";const Av=mx;function To(e,t){function n(r,i){return B.jsx(Av,j({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Av.muiName,A.memo(A.forwardRef(n))}const zk={configure:e=>{Oy.configure(e)}},Uk=Object.freeze(Object.defineProperty({__proto__:null,capitalize:_t,createChainedFunction:qO,createSvgIcon:To,debounce:By,deprecatedPropType:GO,isMuiElement:XO,ownerDocument:da,ownerWindow:Ry,requirePropFactory:QO,setRef:sf,unstable_ClassNameGenerator:zk,unstable_useEnhancedEffect:vo,unstable_useId:My,unsupportedProp:ZO,useControlled:Jw,useEventCallback:fn,useForkRef:Ln,useIsFocusVisible:Fy},Symbol.toStringTag,{value:"Module"}));var gt={};/** - * @license React - * 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 zy=Symbol.for("react.element"),Uy=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),jd=Symbol.for("react.strict_mode"),Ld=Symbol.for("react.profiler"),Nd=Symbol.for("react.provider"),$d=Symbol.for("react.context"),Vk=Symbol.for("react.server_context"),zd=Symbol.for("react.forward_ref"),Ud=Symbol.for("react.suspense"),Vd=Symbol.for("react.suspense_list"),Wd=Symbol.for("react.memo"),Hd=Symbol.for("react.lazy"),Wk=Symbol.for("react.offscreen"),yx;yx=Symbol.for("react.module.reference");function Nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zy:switch(e=e.type,e){case Pd:case Ld:case jd:case Ud:case Vd:return e;default:switch(e=e&&e.$$typeof,e){case Vk:case $d:case zd:case Hd:case Wd:case Nd:return e;default:return t}}case Uy:return t}}}gt.ContextConsumer=$d;gt.ContextProvider=Nd;gt.Element=zy;gt.ForwardRef=zd;gt.Fragment=Pd;gt.Lazy=Hd;gt.Memo=Wd;gt.Portal=Uy;gt.Profiler=Ld;gt.StrictMode=jd;gt.Suspense=Ud;gt.SuspenseList=Vd;gt.isAsyncMode=function(){return!1};gt.isConcurrentMode=function(){return!1};gt.isContextConsumer=function(e){return Nr(e)===$d};gt.isContextProvider=function(e){return Nr(e)===Nd};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zy};gt.isForwardRef=function(e){return Nr(e)===zd};gt.isFragment=function(e){return Nr(e)===Pd};gt.isLazy=function(e){return Nr(e)===Hd};gt.isMemo=function(e){return Nr(e)===Wd};gt.isPortal=function(e){return Nr(e)===Uy};gt.isProfiler=function(e){return Nr(e)===Ld};gt.isStrictMode=function(e){return Nr(e)===jd};gt.isSuspense=function(e){return Nr(e)===Ud};gt.isSuspenseList=function(e){return Nr(e)===Vd};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pd||e===Ld||e===jd||e===Ud||e===Vd||e===Wk||typeof e=="object"&&e!==null&&(e.$$typeof===Hd||e.$$typeof===Wd||e.$$typeof===Nd||e.$$typeof===$d||e.$$typeof===zd||e.$$typeof===yx||e.getModuleId!==void 0)};gt.typeOf=Nr;function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wh(e,t)}function gx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wh(e,t)}var vx={exports:{}},gr={},bx={exports:{}},wx={};/** - * @license React - * scheduler.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. - */(function(e){function t(M,Z){var X=M.length;M.push(Z);e:for(;0>>1,ae=M[ce];if(0>>1;cei(Pe,X))sei(_e,Pe)?(M[ce]=_e,M[se]=X,ce=se):(M[ce]=Pe,M[xe]=X,ce=xe);else if(sei(_e,X))M[ce]=_e,M[se]=X,ce=se;else break e}}return Z}function i(M,Z){var X=M.sortIndex-Z.sortIndex;return X!==0?X:M.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,p=3,h=!1,y=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(M){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=M)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function x(M){if(m=!1,b(M),!y)if(n(l)!==null)y=!0,ee(d);else{var Z=n(u);Z!==null&&ie(x,Z.startTime-M)}}function d(M,Z){y=!1,m&&(m=!1,g(L),L=-1),h=!0;var X=p;try{for(b(Z),f=n(l);f!==null&&(!(f.expirationTime>Z)||M&&!D());){var ce=f.callback;if(typeof ce=="function"){f.callback=null,p=f.priorityLevel;var ae=ce(f.expirationTime<=Z);Z=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(l)&&r(l),b(Z)}else r(l);f=n(l)}if(f!==null)var Ce=!0;else{var xe=n(u);xe!==null&&ie(x,xe.startTime-Z),Ce=!1}return Ce}finally{f=null,p=X,h=!1}}var T=!1,C=null,L=-1,R=5,k=-1;function D(){return!(e.unstable_now()-kM||125ce?(M.sortIndex=X,t(u,M),n(l)===null&&M===n(u)&&(m?(g(L),L=-1):m=!0,ie(x,X-ce))):(M.sortIndex=ae,t(l,M),y||h||(y=!0,ee(d))),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var Z=p;return function(){var X=p;p=Z;try{return M.apply(this,arguments)}finally{p=X}}}})(wx);bx.exports=wx;var Hk=bx.exports;/** - * @license React - * react-dom.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 xx=A,dr=Hk;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hh=Object.prototype.hasOwnProperty,Kk=/^[: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]*$/,Bv={},Rv={};function Yk(e){return Hh.call(Rv,e)?!0:Hh.call(Bv,e)?!1:Kk.test(e)?Rv[e]=!0:(Bv[e]=!0,!1)}function qk(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gk(e,t,n,r){if(t===null||typeof t>"u"||qk(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $n(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var En={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){En[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];En[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){En[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){En[e]=new $n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){En[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){En[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){En[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){En[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){En[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vy=/[\-:]([a-z])/g;function Wy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vy,Wy);En[t]=new $n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vy,Wy);En[t]=new $n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vy,Wy);En[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){En[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});En.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){En[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hy(e,t,n,r){var i=En.hasOwnProperty(t)?En[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Hp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ml(e):""}function Xk(e){switch(e.tag){case 5:return ml(e.type);case 16:return ml("Lazy");case 13:return ml("Suspense");case 19:return ml("SuspenseList");case 0:case 2:case 15:return e=Kp(e.type,!1),e;case 11:return e=Kp(e.type.render,!1),e;case 1:return e=Kp(e.type,!0),e;default:return""}}function Gh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ds:return"Fragment";case Fs:return"Portal";case Kh:return"Profiler";case Ky:return"StrictMode";case Yh:return"Suspense";case qh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ex:return(e.displayName||"Context")+".Consumer";case _x:return(e._context.displayName||"Context")+".Provider";case Yy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qy:return t=e.displayName||null,t!==null?t:Gh(e.type)||"Memo";case to:t=e._payload,e=e._init;try{return Gh(e(t))}catch{}}return null}function Qk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gh(t);case 8:return t===Ky?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jk(e){var t=Tx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ac(e){e._valueTracker||(e._valueTracker=Jk(e))}function Cx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xh(e,t){var n=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ox(e,t){t=t.checked,t!=null&&Hy(e,"checked",t,!1)}function Qh(e,t){Ox(e,t);var n=wo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jh(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jh(e,t,n){(t!=="number"||lf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yl=Array.isArray;function Xs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=lc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zk=["Webkit","ms","Moz","O"];Object.keys(Sl).forEach(function(e){Zk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sl[t]=Sl[e]})});function Rx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sl.hasOwnProperty(e)&&Sl[e]?(""+t).trim():t+"px"}function Mx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Rx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var eA=zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tm(e,t){if(t){if(eA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function nm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rm=null;function Gy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var im=null,Qs=null,Js=null;function Lv(e){if(e=Ou(e)){if(typeof im!="function")throw Error(re(280));var t=e.stateNode;t&&(t=Xd(t),im(e.stateNode,e.type,t))}}function Fx(e){Qs?Js?Js.push(e):Js=[e]:Qs=e}function Dx(){if(Qs){var e=Qs,t=Js;if(Js=Qs=null,Lv(e),t)for(e=0;e>>=0,e===0?32:31-(fA(e)/dA|0)|0}var uc=64,cc=4194304;function gl(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function df(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=gl(a):(s&=o,s!==0&&(r=gl(s)))}else o=n&~i,o!==0?r=gl(o):s!==0&&(r=gl(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Tu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gr(t),e[t]=n}function yA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=El),Yv=String.fromCharCode(32),qv=!1;function tS(e,t){switch(e){case"keyup":return WA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ps=!1;function KA(e,t){switch(e){case"compositionend":return nS(t);case"keypress":return t.which!==32?null:(qv=!0,Yv);case"textInput":return e=t.data,e===Yv&&qv?null:e;default:return null}}function YA(e,t){if(Ps)return e==="compositionend"||!r0&&tS(e,t)?(e=Zx(),Uc=e0=oo=null,Ps=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jv(n)}}function sS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aS(){for(var e=window,t=lf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lf(e.document)}return t}function i0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function n4(e){var t=aS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sS(n.ownerDocument.documentElement,n)){if(r!==null&&i0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Zv(n,s);var o=Zv(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,js=null,cm=null,Tl=null,fm=!1;function eb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fm||js==null||js!==lf(r)||(r=js,"selectionStart"in r&&i0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tl&&Xl(Tl,r)||(Tl=r,r=mf(cm,"onSelect"),0$s||(e.current=gm[$s],gm[$s]=null,$s--)}function St(e,t){$s++,gm[$s]=e.current,e.current=t}var xo={},Mn=Oo(xo),Yn=Oo(!1),ts=xo;function ha(e,t){var n=e.type.contextTypes;if(!n)return xo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qn(e){return e=e.childContextTypes,e!=null}function gf(){kt(Yn),kt(Mn)}function ab(e,t,n){if(Mn.current!==xo)throw Error(re(168));St(Mn,t),St(Yn,n)}function yS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(re(108,Qk(e)||"Unknown",i));return zt({},n,r)}function vf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,ts=Mn.current,St(Mn,e),St(Yn,Yn.current),!0}function lb(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=yS(e,t,ts),r.__reactInternalMemoizedMergedChildContext=e,kt(Yn),kt(Mn),St(Mn,e)):kt(Yn),St(Yn,n)}var Bi=null,Qd=!1,sh=!1;function gS(e){Bi===null?Bi=[e]:Bi.push(e)}function h4(e){Qd=!0,gS(e)}function ko(){if(!sh&&Bi!==null){sh=!0;var e=0,t=ct;try{var n=Bi;for(ct=1;e>=o,i-=o,Fi=1<<32-Gr(t)+i|n<L?(R=C,C=null):R=C.sibling;var k=p(g,C,b[L],x);if(k===null){C===null&&(C=R);break}e&&C&&k.alternate===null&&t(g,C),v=s(k,v,L),T===null?d=k:T.sibling=k,T=k,C=R}if(L===b.length)return n(g,C),Dt&&jo(g,L),d;if(C===null){for(;LL?(R=C,C=null):R=C.sibling;var D=p(g,C,k.value,x);if(D===null){C===null&&(C=R);break}e&&C&&D.alternate===null&&t(g,C),v=s(D,v,L),T===null?d=D:T.sibling=D,T=D,C=R}if(k.done)return n(g,C),Dt&&jo(g,L),d;if(C===null){for(;!k.done;L++,k=b.next())k=f(g,k.value,x),k!==null&&(v=s(k,v,L),T===null?d=k:T.sibling=k,T=k);return Dt&&jo(g,L),d}for(C=r(g,C);!k.done;L++,k=b.next())k=h(C,g,L,k.value,x),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?L:k.key),v=s(k,v,L),T===null?d=k:T.sibling=k,T=k);return e&&C.forEach(function(V){return t(g,V)}),Dt&&jo(g,L),d}function _(g,v,b,x){if(typeof b=="object"&&b!==null&&b.type===Ds&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case sc:e:{for(var d=b.key,T=v;T!==null;){if(T.key===d){if(d=b.type,d===Ds){if(T.tag===7){n(g,T.sibling),v=i(T,b.props.children),v.return=g,g=v;break e}}else if(T.elementType===d||typeof d=="object"&&d!==null&&d.$$typeof===to&&mb(d)===T.type){n(g,T.sibling),v=i(T,b.props),v.ref=sl(g,T,b),v.return=g,g=v;break e}n(g,T);break}else t(g,T);T=T.sibling}b.type===Ds?(v=Xo(b.props.children,g.mode,x,b.key),v.return=g,g=v):(x=Xc(b.type,b.key,b.props,null,g.mode,x),x.ref=sl(g,v,b),x.return=g,g=x)}return o(g);case Fs:e:{for(T=b.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(g,v.sibling),v=i(v,b.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=hh(b,g.mode,x),v.return=g,g=v}return o(g);case to:return T=b._init,_(g,v,T(b._payload),x)}if(yl(b))return y(g,v,b,x);if(tl(b))return m(g,v,b,x);gc(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,b),v.return=g,g=v):(n(g,v),v=ph(b,g.mode,x),v.return=g,g=v),o(g)):n(g,v)}return _}var ya=IS(!0),TS=IS(!1),ku={},vi=Oo(ku),eu=Oo(ku),tu=Oo(ku);function Ho(e){if(e===ku)throw Error(re(174));return e}function p0(e,t){switch(St(tu,t),St(eu,e),St(vi,ku),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:em(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=em(t,e)}kt(vi),St(vi,t)}function ga(){kt(vi),kt(eu),kt(tu)}function CS(e){Ho(tu.current);var t=Ho(vi.current),n=em(t,e.type);t!==n&&(St(eu,e),St(vi,n))}function h0(e){eu.current===e&&(kt(vi),kt(eu))}var jt=Oo(0);function Ef(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ah=[];function m0(){for(var e=0;en?n:4,e(!0);var r=lh.transition;lh.transition={};try{e(!1),t()}finally{ct=n,lh.transition=r}}function VS(){return Mr().memoizedState}function v4(e,t,n){var r=yo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},WS(e))HS(t,n);else if(n=xS(e,t,n,r),n!==null){var i=jn();Xr(n,e,r,i),KS(n,t,r)}}function b4(e,t,n){var r=yo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(WS(e))HS(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Zr(a,o)){var l=t.interleaved;l===null?(i.next=i,f0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=xS(e,t,i,r),n!==null&&(i=jn(),Xr(n,e,r,i),KS(n,t,r))}}function WS(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function HS(e,t){Cl=If=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qy(e,n)}}var Tf={readContext:Rr,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},w4={readContext:Rr,useCallback:function(e,t){return ui().memoizedState=[e,t===void 0?null:t],e},useContext:Rr,useEffect:gb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kc(4194308,4,LS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kc(4,2,e,t)},useMemo:function(e,t){var n=ui();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ui();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=v4.bind(null,Nt,e),[r.memoizedState,e]},useRef:function(e){var t=ui();return e={current:e},t.memoizedState=e},useState:yb,useDebugValue:w0,useDeferredValue:function(e){return ui().memoizedState=e},useTransition:function(){var e=yb(!1),t=e[0];return e=g4.bind(null,e[1]),ui().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Nt,i=ui();if(Dt){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),yn===null)throw Error(re(349));rs&30||AS(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,gb(RS.bind(null,r,s,e),[e]),r.flags|=2048,iu(9,BS.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ui(),t=yn.identifierPrefix;if(Dt){var n=Di,r=Fi;n=(r&~(1<<32-Gr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[pi]=t,e[Zl]=r,t_(e,t,!1,!1),t.stateNode=e;e:{switch(o=nm(n,r),n){case"dialog":Ct("cancel",e),Ct("close",e),i=r;break;case"iframe":case"object":case"embed":Ct("load",e),i=r;break;case"video":case"audio":for(i=0;iba&&(t.flags|=128,r=!0,al(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ef(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),al(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Dt)return kn(t),null}else 2*Yt()-s.renderingStartTime>ba&&n!==1073741824&&(t.flags|=128,r=!0,al(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Yt(),t.sibling=null,n=jt.current,St(jt,r?n&1|2:n&1),t):(kn(t),null);case 22:case 23:return T0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ir&1073741824&&(kn(t),t.subtreeFlags&6&&(t.flags|=8192)):kn(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function O4(e,t){switch(s0(t),t.tag){case 1:return qn(t.type)&&gf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),kt(Yn),kt(Mn),m0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h0(t),null;case 13:if(kt(jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kt(jt),null;case 4:return ga(),null;case 10:return c0(t.type._context),null;case 22:case 23:return T0(),null;case 24:return null;default:return null}}var bc=!1,Bn=!1,k4=typeof WeakSet=="function"?WeakSet:Set,de=null;function Ws(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Kt(e,t,r)}else n.current=null}function km(e,t,n){try{n()}catch(r){Kt(e,t,r)}}var Tb=!1;function A4(e,t){if(dm=pf,e=aS(),i0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=o),p===s&&++c===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pm={focusedElem:e,selectionRange:n},pf=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,_=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Vr(t.type,m),_);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(x){Kt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return y=Tb,Tb=!1,y}function Ol(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&km(t,n,s)}i=i.next}while(i!==r)}}function ep(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Am(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function i_(e){var t=e.alternate;t!==null&&(e.alternate=null,i_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[Zl],delete t[ym],delete t[d4],delete t[p4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function o_(e){return e.tag===5||e.tag===3||e.tag===4}function Cb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o_(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yf));else if(r!==4&&(e=e.child,e!==null))for(Bm(e,t,n),e=e.sibling;e!==null;)Bm(e,t,n),e=e.sibling}function Rm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rm(e,t,n),e=e.sibling;e!==null;)Rm(e,t,n),e=e.sibling}var bn=null,Wr=!1;function Ji(e,t,n){for(n=n.child;n!==null;)s_(e,t,n),n=n.sibling}function s_(e,t,n){if(gi&&typeof gi.onCommitFiberUnmount=="function")try{gi.onCommitFiberUnmount(Kd,n)}catch{}switch(n.tag){case 5:Bn||Ws(n,t);case 6:var r=bn,i=Wr;bn=null,Ji(e,t,n),bn=r,Wr=i,bn!==null&&(Wr?(e=bn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):bn.removeChild(n.stateNode));break;case 18:bn!==null&&(Wr?(e=bn,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),ql(e)):oh(bn,n.stateNode));break;case 4:r=bn,i=Wr,bn=n.stateNode.containerInfo,Wr=!0,Ji(e,t,n),bn=r,Wr=i;break;case 0:case 11:case 14:case 15:if(!Bn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&km(n,t,o),i=i.next}while(i!==r)}Ji(e,t,n);break;case 1:if(!Bn&&(Ws(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Kt(n,t,a)}Ji(e,t,n);break;case 21:Ji(e,t,n);break;case 22:n.mode&1?(Bn=(r=Bn)||n.memoizedState!==null,Ji(e,t,n),Bn=r):Ji(e,t,n);break;default:Ji(e,t,n)}}function Ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new k4),t.forEach(function(r){var i=N4.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function zr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Yt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R4(r/1960))-r,10e?16:e,so===null)var r=!1;else{if(e=so,so=null,kf=0,Qe&6)throw Error(re(331));var i=Qe;for(Qe|=4,de=e.current;de!==null;){var s=de,o=s.child;if(de.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lYt()-E0?Go(e,0):_0|=n),Gn(e,t)}function h_(e,t){t===0&&(e.mode&1?(t=cc,cc<<=1,!(cc&130023424)&&(cc=4194304)):t=1);var n=jn();e=$i(e,t),e!==null&&(Tu(e,t,n),Gn(e,n))}function L4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),h_(e,n)}function N4(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),h_(e,n)}var m_;m_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Hn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Hn=!1,T4(e,t,n);Hn=!!(e.flags&131072)}else Hn=!1,Dt&&t.flags&1048576&&vS(t,wf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yc(e,t),e=t.pendingProps;var i=ha(t,Mn.current);ea(t,n),i=g0(null,t,r,e,i,n);var s=v0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qn(r)?(s=!0,vf(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d0(t),i.updater=Jd,t.stateNode=i,i._reactInternals=t,Sm(t,r,e,n),t=Im(null,t,r,!0,s,n)):(t.tag=0,Dt&&s&&o0(t),Dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=z4(r),e=Vr(r,e),i){case 0:t=Em(null,t,r,e,n);break e;case 1:t=_b(null,t,r,e,n);break e;case 11:t=xb(null,t,r,e,n);break e;case 14:t=Sb(null,t,r,Vr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),Em(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),_b(e,t,r,i,n);case 3:e:{if(JS(t),e===null)throw Error(re(387));r=t.pendingProps,s=t.memoizedState,i=s.element,SS(e,t),_f(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=va(Error(re(423)),t),t=Eb(e,t,r,n,i);break e}else if(r!==i){i=va(Error(re(424)),t),t=Eb(e,t,r,n,i);break e}else for(lr=po(t.stateNode.containerInfo.firstChild),cr=t,Dt=!0,Hr=null,n=TS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ma(),r===i){t=zi(e,t,n);break e}Dn(e,t,r,n)}t=t.child}return t;case 5:return CS(t),e===null&&bm(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,hm(r,i)?o=null:s!==null&&hm(r,s)&&(t.flags|=32),QS(e,t),Dn(e,t,o,n),t.child;case 6:return e===null&&bm(t),null;case 13:return ZS(e,t,n);case 4:return p0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ya(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),xb(e,t,r,i,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,St(xf,r._currentValue),r._currentValue=o,s!==null)if(Zr(s.value,o)){if(s.children===i.children&&!Yn.current){t=zi(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=ji(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),wm(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(re(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),wm(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ea(t,n),i=Rr(i),r=r(i),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return r=t.type,i=Vr(r,t.pendingProps),i=Vr(r.type,i),Sb(e,t,r,i,n);case 15:return GS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vr(r,i),Yc(e,t),t.tag=1,qn(r)?(e=!0,vf(t)):e=!1,ea(t,n),ES(t,r,i),Sm(t,r,i,n),Im(null,t,r,!0,e,n);case 19:return e_(e,t,n);case 22:return XS(e,t,n)}throw Error(re(156,t.tag))};function y_(e,t){return Ux(e,t)}function $4(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tr(e,t,n,r){return new $4(e,t,n,r)}function O0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function z4(e){if(typeof e=="function")return O0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yy)return 11;if(e===qy)return 14}return 2}function go(e,t){var n=e.alternate;return n===null?(n=Tr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xc(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")O0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ds:return Xo(n.children,i,s,t);case Ky:o=8,i|=8;break;case Kh:return e=Tr(12,n,t,i|2),e.elementType=Kh,e.lanes=s,e;case Yh:return e=Tr(13,n,t,i),e.elementType=Yh,e.lanes=s,e;case qh:return e=Tr(19,n,t,i),e.elementType=qh,e.lanes=s,e;case Ix:return np(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _x:o=10;break e;case Ex:o=9;break e;case Yy:o=11;break e;case qy:o=14;break e;case to:o=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Tr(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Xo(e,t,n,r){return e=Tr(7,e,r,t),e.lanes=n,e}function np(e,t,n,r){return e=Tr(22,e,r,t),e.elementType=Ix,e.lanes=n,e.stateNode={isHidden:!1},e}function ph(e,t,n){return e=Tr(6,e,null,t),e.lanes=n,e}function hh(e,t,n){return t=Tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U4(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function k0(e,t,n,r,i,s,o,a,l){return e=new U4(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Tr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d0(s),e}function V4(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(w_)}catch(e){console.error(e)}}w_(),vx.exports=gr;var M0=vx.exports;const Sc=ja(M0),Pb={disabled:!1},Rf=Yr.createContext(null);var q4=function(t){return t.scrollTop},bl="unmounted",No="exited",$o="entering",Bs="entered",jm="exiting",Ki=function(e){gx(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=No,s.appearStatus=$o):l=Bs:r.unmountOnExit||r.mountOnEnter?l=bl:l=No,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===bl?{status:No}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==$o&&o!==Bs&&(s=$o):(o===$o||o===Bs)&&(s=jm)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===$o){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Sc.findDOMNode(this);o&&q4(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===No&&this.setState({status:bl})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Sc.findDOMNode(this),a],u=l[0],c=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!i&&!o||Pb.disabled){this.safeSetState({status:Bs},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:$o},function(){s.props.onEntering(u,c),s.onTransitionEnd(p,function(){s.safeSetState({status:Bs},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Sc.findDOMNode(this);if(!s||Pb.disabled){this.safeSetState({status:No},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:jm},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:No},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Sc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===bl)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Te(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yr.createElement(Rf.Provider,{value:null},typeof o=="function"?o(i,a):Yr.cloneElement(Yr.Children.only(o),a))},t}(Yr.Component);Ki.contextType=Rf;Ki.propTypes={};function Os(){}Ki.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Os,onEntering:Os,onEntered:Os,onExit:Os,onExiting:Os,onExited:Os};Ki.UNMOUNTED=bl;Ki.EXITED=No;Ki.ENTERING=$o;Ki.ENTERED=Bs;Ki.EXITING=jm;const x_=Ki;function G4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(e,t){var n=function(s){return t&&A.isValidElement(s)?t(s):s},r=Object.create(null);return e&&A.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function X4(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var o,a={};for(var l in t){if(r[l])for(o=0;oe.scrollTop;function Mf(e,t){var n,r;const{timeout:i,easing:s,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:o.transitionDelay}}function rB(e){return tn("MuiCollapse",e)}nn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const iB=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],oB=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return rn(r,rB,n)},sB=tt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>j({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&j({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),aB=tt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>j({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),lB=tt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>j({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),S_=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:s,className:o,collapsedSize:a="0px",component:l,easing:u,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:y,onExited:m,onExiting:_,orientation:g="vertical",style:v,timeout:b=dx.standard,TransitionComponent:x=x_}=r,d=Te(r,iB),T=j({},r,{orientation:g,collapsedSize:a}),C=oB(T),L=za(),R=Uo(),k=A.useRef(null),D=A.useRef(),V=typeof a=="number"?`${a}px`:a,H=g==="horizontal",te=H?"width":"height",F=A.useRef(null),ee=Ln(n,F),ie=se=>_e=>{if(se){const me=F.current;_e===void 0?se(me):se(me,_e)}},M=()=>k.current?k.current[H?"clientWidth":"clientHeight"]:0,Z=ie((se,_e)=>{k.current&&H&&(k.current.style.position="absolute"),se.style[te]=V,f&&f(se,_e)}),X=ie((se,_e)=>{const me=M();k.current&&H&&(k.current.style.position="");const{duration:ge,easing:Ie}=Mf({style:v,timeout:b,easing:u},{mode:"enter"});if(b==="auto"){const st=L.transitions.getAutoHeightDuration(me);se.style.transitionDuration=`${st}ms`,D.current=st}else se.style.transitionDuration=typeof ge=="string"?ge:`${ge}ms`;se.style[te]=`${me}px`,se.style.transitionTimingFunction=Ie,h&&h(se,_e)}),ce=ie((se,_e)=>{se.style[te]="auto",p&&p(se,_e)}),ae=ie(se=>{se.style[te]=`${M()}px`,y&&y(se)}),Ce=ie(m),xe=ie(se=>{const _e=M(),{duration:me,easing:ge}=Mf({style:v,timeout:b,easing:u},{mode:"exit"});if(b==="auto"){const Ie=L.transitions.getAutoHeightDuration(_e);se.style.transitionDuration=`${Ie}ms`,D.current=Ie}else se.style.transitionDuration=typeof me=="string"?me:`${me}ms`;se.style[te]=V,se.style.transitionTimingFunction=ge,_&&_(se)}),Pe=se=>{b==="auto"&&R.start(D.current||0,se),i&&i(F.current,se)};return B.jsx(x,j({in:c,onEnter:Z,onEntered:ce,onEntering:X,onExit:ae,onExited:Ce,onExiting:xe,addEndListener:Pe,nodeRef:F,timeout:b==="auto"?null:b},d,{children:(se,_e)=>B.jsx(sB,j({as:l,className:Ne(C.root,o,{entered:C.entered,exited:!c&&V==="0px"&&C.hidden}[se]),style:j({[H?"minWidth":"minHeight"]:V},v),ref:ee},_e,{ownerState:j({},T,{state:se}),children:B.jsx(aB,{ownerState:j({},T,{state:se}),className:C.wrapper,ref:k,children:B.jsx(lB,{ownerState:j({},T,{state:se}),className:C.wrapperInner,children:s})})}))}))});S_.muiSupportAuto=!0;const uB=S_;function cB(e){return typeof e=="string"}function wl(e,t,n){return e===void 0||cB(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}const fB={disableDefaultClasses:!1},dB=A.createContext(fB);function pB(e){const{disableDefaultClasses:t}=A.useContext(dB);return n=>t?"":e(n)}function hB(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function zo(e,t,n){return typeof e=="function"?e(t,n):e}function jb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function mB(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const h=Ne(n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),y=j({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=j({},n,i,r);return h.length>0&&(m.className=h),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const o=hB(j({},i,r)),a=jb(r),l=jb(i),u=t(o),c=Ne(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),f=j({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=j({},u,n,l,a);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const yB=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:s=!1}=e,o=Te(e,yB),a=s?{}:zo(r,i),{props:l,internalRef:u}=mB(j({},o,{externalSlotProps:a})),c=Ln(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return wl(n,j({},l,{ref:c}),i)}function gB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:o,in:a,onExited:l,timeout:u}=e,[c,f]=A.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:o,height:o,top:-(o/2)+s,left:-(o/2)+i},y=Ne(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&f(!0),A.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),B.jsx("span",{className:p,style:h,children:B.jsx("span",{className:y})})}const vB=nn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xr=vB,bB=["center","classes","className"];let ap=e=>e,Lb,Nb,$b,zb;const Lm=550,wB=80,xB=gd(Lb||(Lb=ap` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),SB=gd(Nb||(Nb=ap` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),_B=gd($b||($b=ap` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),EB=tt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),IB=tt(gB,{name:"MuiTouchRipple",slot:"Ripple"})(zb||(zb=ap` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),xr.rippleVisible,xB,Lm,({theme:e})=>e.transitions.easing.easeInOut,xr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xr.child,xr.childLeaving,SB,Lm,({theme:e})=>e.transitions.easing.easeInOut,xr.childPulsate,_B,({theme:e})=>e.transitions.easing.easeInOut),TB=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:o}=r,a=Te(r,bB),[l,u]=A.useState([]),c=A.useRef(0),f=A.useRef(null);A.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=A.useRef(!1),h=Uo(),y=A.useRef(null),m=A.useRef(null),_=A.useCallback(x=>{const{pulsate:d,rippleX:T,rippleY:C,rippleSize:L,cb:R}=x;u(k=>[...k,B.jsx(IB,{classes:{ripple:Ne(s.ripple,xr.ripple),rippleVisible:Ne(s.rippleVisible,xr.rippleVisible),ripplePulsate:Ne(s.ripplePulsate,xr.ripplePulsate),child:Ne(s.child,xr.child),childLeaving:Ne(s.childLeaving,xr.childLeaving),childPulsate:Ne(s.childPulsate,xr.childPulsate)},timeout:Lm,pulsate:d,rippleX:T,rippleY:C,rippleSize:L},c.current)]),c.current+=1,f.current=R},[s]),g=A.useCallback((x={},d={},T=()=>{})=>{const{pulsate:C=!1,center:L=i||d.pulsate,fakeElement:R=!1}=d;if((x==null?void 0:x.type)==="mousedown"&&p.current){p.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(p.current=!0);const k=R?null:m.current,D=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,H,te;if(L||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)V=Math.round(D.width/2),H=Math.round(D.height/2);else{const{clientX:F,clientY:ee}=x.touches&&x.touches.length>0?x.touches[0]:x;V=Math.round(F-D.left),H=Math.round(ee-D.top)}if(L)te=Math.sqrt((2*D.width**2+D.height**2)/3),te%2===0&&(te+=1);else{const F=Math.max(Math.abs((k?k.clientWidth:0)-V),V)*2+2,ee=Math.max(Math.abs((k?k.clientHeight:0)-H),H)*2+2;te=Math.sqrt(F**2+ee**2)}x!=null&&x.touches?y.current===null&&(y.current=()=>{_({pulsate:C,rippleX:V,rippleY:H,rippleSize:te,cb:T})},h.start(wB,()=>{y.current&&(y.current(),y.current=null)})):_({pulsate:C,rippleX:V,rippleY:H,rippleSize:te,cb:T})},[i,_,h]),v=A.useCallback(()=>{g({},{pulsate:!0})},[g]),b=A.useCallback((x,d)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{b(x,d)});return}y.current=null,u(T=>T.length>0?T.slice(1):T),f.current=d},[h]);return A.useImperativeHandle(n,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),B.jsx(EB,j({className:Ne(xr.root,s.root,o),ref:m},a,{children:B.jsx(tB,{component:null,exit:!0,children:l})}))}),CB=TB;function OB(e){return tn("MuiButtonBase",e)}const kB=nn("MuiButtonBase",["root","disabled","focusVisible"]),AB=kB,BB=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],RB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=rn({root:["root",t&&"disabled",n&&"focusVisible"]},OB,i);return n&&r&&(o.root+=` ${r}`),o},MB=tt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${AB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),FB=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:y,onClick:m,onContextMenu:_,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:d,onMouseDown:T,onMouseLeave:C,onMouseUp:L,onTouchEnd:R,onTouchMove:k,onTouchStart:D,tabIndex:V=0,TouchRippleProps:H,touchRippleRef:te,type:F}=r,ee=Te(r,BB),ie=A.useRef(null),M=A.useRef(null),Z=Ln(M,te),{isFocusVisibleRef:X,onFocus:ce,onBlur:ae,ref:Ce}=Fy(),[xe,Pe]=A.useState(!1);u&&xe&&Pe(!1),A.useImperativeHandle(i,()=>({focusVisible:()=>{Pe(!0),ie.current.focus()}}),[]);const[se,_e]=A.useState(!1);A.useEffect(()=>{_e(!0)},[]);const me=se&&!c&&!u;A.useEffect(()=>{xe&&p&&!c&&se&&M.current.pulsate()},[c,p,xe,se]);function ge(Y,pe,Se=f){return fn(he=>(pe&&pe(he),!Se&&M.current&&M.current[Y](he),!0))}const Ie=ge("start",T),st=ge("stop",_),on=ge("stop",g),Qt=ge("stop",L),Ut=ge("stop",Y=>{xe&&Y.preventDefault(),C&&C(Y)}),At=ge("start",D),Vt=ge("stop",R),wt=ge("stop",k),vt=ge("stop",Y=>{ae(Y),X.current===!1&&Pe(!1),y&&y(Y)},!1),sn=fn(Y=>{ie.current||(ie.current=Y.currentTarget),ce(Y),X.current===!0&&(Pe(!0),b&&b(Y)),v&&v(Y)}),ve=()=>{const Y=ie.current;return l&&l!=="button"&&!(Y.tagName==="A"&&Y.href)},Bt=A.useRef(!1),It=fn(Y=>{p&&!Bt.current&&xe&&M.current&&Y.key===" "&&(Bt.current=!0,M.current.stop(Y,()=>{M.current.start(Y)})),Y.target===Y.currentTarget&&ve()&&Y.key===" "&&Y.preventDefault(),x&&x(Y),Y.target===Y.currentTarget&&ve()&&Y.key==="Enter"&&!u&&(Y.preventDefault(),m&&m(Y))}),an=fn(Y=>{p&&Y.key===" "&&M.current&&xe&&!Y.defaultPrevented&&(Bt.current=!1,M.current.stop(Y,()=>{M.current.pulsate(Y)})),d&&d(Y),m&&Y.target===Y.currentTarget&&ve()&&Y.key===" "&&!Y.defaultPrevented&&m(Y)});let Je=l;Je==="button"&&(ee.href||ee.to)&&(Je=h);const K={};Je==="button"?(K.type=F===void 0?"button":F,K.disabled=u):(!ee.href&&!ee.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const z=Ln(n,Ce,ie),U=j({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:V,focusVisible:xe}),G=RB(U);return B.jsxs(MB,j({as:Je,className:Ne(G.root,a),ownerState:U,onBlur:vt,onClick:m,onContextMenu:st,onFocus:sn,onKeyDown:It,onKeyUp:an,onMouseDown:Ie,onMouseLeave:Ut,onMouseUp:Qt,onDragLeave:on,onTouchEnd:Vt,onTouchMove:wt,onTouchStart:At,ref:z,tabIndex:u?-1:V,type:F},K,ee,{children:[o,me?B.jsx(CB,j({ref:Z,center:s},H)):null]}))}),P0=FB;function DB(e){return tn("MuiIconButton",e)}const PB=nn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),jB=PB,LB=["edge","children","className","color","disabled","disableFocusRipple","size"],NB=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${_t(r)}`,i&&`edge${_t(i)}`,`size${_t(s)}`]};return rn(o,DB,t)},$B=tt(P0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${_t(n.color)}`],n.edge&&t[`edge${_t(n.edge)}`],t[`size${_t(n.size)}`]]}})(({theme:e,ownerState:t})=>j({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bo(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":j({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bo(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${jB.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),zB=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:o,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=Te(r,LB),p=j({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),h=NB(p);return B.jsx($B,j({className:Ne(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:s}))}),UB=zB;function VB(e){return tn("MuiTypography",e)}nn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const WB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],HB=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:o}=e,a={root:["root",s,e.align!=="inherit"&&`align${_t(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return rn(a,VB,o)},KB=tt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${_t(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ub={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qB=e=>YB[e]||e,GB=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTypography"}),i=qB(r.color),s=_u(j({},r,{color:i})),{align:o="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=Ub}=s,y=Te(s,WB),m=j({},s,{align:o,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:h}),_=l||(f?"p":h[p]||Ub[p])||"span",g=HB(m);return B.jsx(KB,j({as:_,ref:n,ownerState:m,className:Ne(g.root,a)},y))}),Rn=GB,__="base";function XB(e){return`${__}--${e}`}function QB(e,t){return`${__}-${e}-${t}`}function E_(e,t){const n=Vw[t];return n?XB(n):QB(e,t)}function JB(e,t){const n={};return t.forEach(r=>{n[r]=E_(e,r)}),n}function ZB(e){return typeof e=="function"?e():e}const eR=A.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[o,a]=A.useState(null),l=Ln(A.isValidElement(r)?r.ref:null,n);if(vo(()=>{s||a(ZB(i)||document.body)},[i,s]),vo(()=>{if(o&&!s)return sf(n,o),()=>{sf(n,null)}},[n,o,s]),s){if(A.isValidElement(r)){const u={ref:l};return A.cloneElement(r,u)}return B.jsx(A.Fragment,{children:r})}return B.jsx(A.Fragment,{children:o&&M0.createPortal(r,o)})});var Xn="top",Fr="bottom",Dr="right",Qn="left",j0="auto",Au=[Xn,Fr,Dr,Qn],wa="start",su="end",tR="clippingParents",I_="viewport",ul="popper",nR="reference",Vb=Au.reduce(function(e,t){return e.concat([t+"-"+wa,t+"-"+su])},[]),T_=[].concat(Au,[j0]).reduce(function(e,t){return e.concat([t,t+"-"+wa,t+"-"+su])},[]),rR="beforeRead",iR="read",oR="afterRead",sR="beforeMain",aR="main",lR="afterMain",uR="beforeWrite",cR="write",fR="afterWrite",dR=[rR,iR,oR,sR,aR,lR,uR,cR,fR];function wi(e){return e?(e.nodeName||"").toLowerCase():null}function pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ss(e){var t=pr(e).Element;return e instanceof t||e instanceof Element}function kr(e){var t=pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function L0(e){if(typeof ShadowRoot>"u")return!1;var t=pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!kr(s)||!wi(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function hR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!kr(i)||!wi(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const mR={name:"applyStyles",enabled:!0,phase:"write",fn:pR,effect:hR,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Qo=Math.max,Ff=Math.min,xa=Math.round;function Nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function C_(){return!/^((?!chrome|android).)*safari/i.test(Nm())}function Sa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&kr(e)&&(i=e.offsetWidth>0&&xa(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&xa(r.height)/e.offsetHeight||1);var o=ss(e)?pr(e):window,a=o.visualViewport,l=!C_()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/i,p=r.height/s;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function N0(e){var t=Sa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&L0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ui(e){return pr(e).getComputedStyle(e)}function yR(e){return["table","td","th"].indexOf(wi(e))>=0}function Ao(e){return((ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function lp(e){return wi(e)==="html"?e:e.assignedSlot||e.parentNode||(L0(e)?e.host:null)||Ao(e)}function Wb(e){return!kr(e)||Ui(e).position==="fixed"?null:e.offsetParent}function gR(e){var t=/firefox/i.test(Nm()),n=/Trident/i.test(Nm());if(n&&kr(e)){var r=Ui(e);if(r.position==="fixed")return null}var i=lp(e);for(L0(i)&&(i=i.host);kr(i)&&["html","body"].indexOf(wi(i))<0;){var s=Ui(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Bu(e){for(var t=pr(e),n=Wb(e);n&&yR(n)&&Ui(n).position==="static";)n=Wb(n);return n&&(wi(n)==="html"||wi(n)==="body"&&Ui(n).position==="static")?t:n||gR(e)||t}function $0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bl(e,t,n){return Qo(e,Ff(t,n))}function vR(e,t,n){var r=Bl(e,t,n);return r>n?n:r}function k_(){return{top:0,right:0,bottom:0,left:0}}function A_(e){return Object.assign({},k_(),e)}function B_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var bR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,A_(typeof t!="number"?t:B_(t,Au))};function wR(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=bi(n.placement),l=$0(a),u=[Qn,Dr].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var f=bR(i.padding,n),p=N0(s),h=l==="y"?Xn:Qn,y=l==="y"?Fr:Dr,m=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],_=o[l]-n.rects.reference[l],g=Bu(s),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,b=m/2-_/2,x=f[h],d=v-p[c]-f[y],T=v/2-p[c]/2+b,C=Bl(x,T,d),L=l;n.modifiersData[r]=(t={},t[L]=C,t.centerOffset=C-T,t)}}function xR(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||O_(t.elements.popper,i)&&(t.elements.arrow=i))}const SR={name:"arrow",enabled:!0,phase:"main",fn:wR,effect:xR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _a(e){return e.split("-")[1]}var _R={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ER(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:xa(n*i)/i||0,y:xa(r*i)/i||0}}function Hb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=o.x,h=p===void 0?0:p,y=o.y,m=y===void 0?0:y,_=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=_.x,m=_.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),b=Qn,x=Xn,d=window;if(u){var T=Bu(n),C="clientHeight",L="clientWidth";if(T===pr(n)&&(T=Ao(n),Ui(T).position!=="static"&&a==="absolute"&&(C="scrollHeight",L="scrollWidth")),T=T,i===Xn||(i===Qn||i===Dr)&&s===su){x=Fr;var R=f&&T===d&&d.visualViewport?d.visualViewport.height:T[C];m-=R-r.height,m*=l?1:-1}if(i===Qn||(i===Xn||i===Fr)&&s===su){b=Dr;var k=f&&T===d&&d.visualViewport?d.visualViewport.width:T[L];h-=k-r.width,h*=l?1:-1}}var D=Object.assign({position:a},u&&_R),V=c===!0?ER({x:h,y:m},pr(n)):{x:h,y:m};if(h=V.x,m=V.y,l){var H;return Object.assign({},D,(H={},H[x]=v?"0":"",H[b]=g?"0":"",H.transform=(d.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",H))}return Object.assign({},D,(t={},t[x]=v?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}function IR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:bi(t.placement),variation:_a(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hb(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hb(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const TR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IR,data:{}};var _c={passive:!0};function CR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=pr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,_c)}),a&&l.addEventListener("resize",n.update,_c),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,_c)}),a&&l.removeEventListener("resize",n.update,_c)}}const OR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CR,data:{}};var kR={left:"right",right:"left",bottom:"top",top:"bottom"};function Qc(e){return e.replace(/left|right|bottom|top/g,function(t){return kR[t]})}var AR={start:"end",end:"start"};function Kb(e){return e.replace(/start|end/g,function(t){return AR[t]})}function z0(e){var t=pr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function U0(e){return Sa(Ao(e)).left+z0(e).scrollLeft}function BR(e,t){var n=pr(e),r=Ao(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=C_();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+U0(e),y:l}}function RR(e){var t,n=Ao(e),r=z0(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Qo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Qo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+U0(e),l=-r.scrollTop;return Ui(i||n).direction==="rtl"&&(a+=Qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function V0(e){var t=Ui(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function R_(e){return["html","body","#document"].indexOf(wi(e))>=0?e.ownerDocument.body:kr(e)&&V0(e)?e:R_(lp(e))}function Rl(e,t){var n;t===void 0&&(t=[]);var r=R_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=pr(r),o=i?[s].concat(s.visualViewport||[],V0(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Rl(lp(o)))}function $m(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function MR(e,t){var n=Sa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Yb(e,t,n){return t===I_?$m(BR(e,n)):ss(t)?MR(t,n):$m(RR(Ao(e)))}function FR(e){var t=Rl(lp(e)),n=["absolute","fixed"].indexOf(Ui(e).position)>=0,r=n&&kr(e)?Bu(e):e;return ss(r)?t.filter(function(i){return ss(i)&&O_(i,r)&&wi(i)!=="body"}):[]}function DR(e,t,n,r){var i=t==="clippingParents"?FR(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=Yb(e,u,r);return l.top=Qo(c.top,l.top),l.right=Ff(c.right,l.right),l.bottom=Ff(c.bottom,l.bottom),l.left=Qo(c.left,l.left),l},Yb(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function M_(e){var t=e.reference,n=e.element,r=e.placement,i=r?bi(r):null,s=r?_a(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Xn:l={x:o,y:t.y-n.height};break;case Fr:l={x:o,y:t.y+t.height};break;case Dr:l={x:t.x+t.width,y:a};break;case Qn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?$0(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case wa:l[u]=l[u]-(t[c]/2-n[c]/2);break;case su:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function au(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?tR:a,u=n.rootBoundary,c=u===void 0?I_:u,f=n.elementContext,p=f===void 0?ul:f,h=n.altBoundary,y=h===void 0?!1:h,m=n.padding,_=m===void 0?0:m,g=A_(typeof _!="number"?_:B_(_,Au)),v=p===ul?nR:ul,b=e.rects.popper,x=e.elements[y?v:p],d=DR(ss(x)?x:x.contextElement||Ao(e.elements.popper),l,c,o),T=Sa(e.elements.reference),C=M_({reference:T,element:b,strategy:"absolute",placement:i}),L=$m(Object.assign({},b,C)),R=p===ul?L:T,k={top:d.top-R.top+g.top,bottom:R.bottom-d.bottom+g.bottom,left:d.left-R.left+g.left,right:R.right-d.right+g.right},D=e.modifiersData.offset;if(p===ul&&D){var V=D[i];Object.keys(k).forEach(function(H){var te=[Dr,Fr].indexOf(H)>=0?1:-1,F=[Xn,Fr].indexOf(H)>=0?"y":"x";k[H]+=V[F]*te})}return k}function PR(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?T_:l,c=_a(r),f=c?a?Vb:Vb.filter(function(y){return _a(y)===c}):Au,p=f.filter(function(y){return u.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,m){return y[m]=au(e,{placement:m,boundary:i,rootBoundary:s,padding:o})[bi(m)],y},{});return Object.keys(h).sort(function(y,m){return h[y]-h[m]})}function jR(e){if(bi(e)===j0)return[];var t=Qc(e);return[Kb(e),t,Kb(t)]}function LR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,m=n.allowedAutoPlacements,_=t.options.placement,g=bi(_),v=g===_,b=l||(v||!y?[Qc(_)]:jR(_)),x=[_].concat(b).reduce(function(xe,Pe){return xe.concat(bi(Pe)===j0?PR(t,{placement:Pe,boundary:c,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:m}):Pe)},[]),d=t.rects.reference,T=t.rects.popper,C=new Map,L=!0,R=x[0],k=0;k=0,F=te?"width":"height",ee=au(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),ie=te?H?Dr:Qn:H?Fr:Xn;d[F]>T[F]&&(ie=Qc(ie));var M=Qc(ie),Z=[];if(s&&Z.push(ee[V]<=0),a&&Z.push(ee[ie]<=0,ee[M]<=0),Z.every(function(xe){return xe})){R=D,L=!1;break}C.set(D,Z)}if(L)for(var X=y?3:1,ce=function(Pe){var se=x.find(function(_e){var me=C.get(_e);if(me)return me.slice(0,Pe).every(function(ge){return ge})});if(se)return R=se,"break"},ae=X;ae>0;ae--){var Ce=ce(ae);if(Ce==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const NR={name:"flip",enabled:!0,phase:"main",fn:LR,requiresIfExists:["offset"],data:{_skip:!1}};function qb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gb(e){return[Xn,Dr,Fr,Qn].some(function(t){return e[t]>=0})}function $R(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=au(t,{elementContext:"reference"}),a=au(t,{altBoundary:!0}),l=qb(o,r),u=qb(a,i,s),c=Gb(l),f=Gb(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const zR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$R};function UR(e,t,n){var r=bi(e),i=[Qn,Xn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Qn,Dr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function VR(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=T_.reduce(function(c,f){return c[f]=UR(f,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const WR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VR};function HR(e){var t=e.state,n=e.name;t.modifiersData[n]=M_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const KR={name:"popperOffsets",enabled:!0,phase:"read",fn:HR,data:{}};function YR(e){return e==="x"?"y":"x"}function qR(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,y=n.tetherOffset,m=y===void 0?0:y,_=au(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=bi(t.placement),v=_a(t.placement),b=!v,x=$0(g),d=YR(x),T=t.modifiersData.popperOffsets,C=t.rects.reference,L=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(T){if(s){var H,te=x==="y"?Xn:Qn,F=x==="y"?Fr:Dr,ee=x==="y"?"height":"width",ie=T[x],M=ie+_[te],Z=ie-_[F],X=h?-L[ee]/2:0,ce=v===wa?C[ee]:L[ee],ae=v===wa?-L[ee]:-C[ee],Ce=t.elements.arrow,xe=h&&Ce?N0(Ce):{width:0,height:0},Pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k_(),se=Pe[te],_e=Pe[F],me=Bl(0,C[ee],xe[ee]),ge=b?C[ee]/2-X-me-se-k.mainAxis:ce-me-se-k.mainAxis,Ie=b?-C[ee]/2+X+me+_e+k.mainAxis:ae+me+_e+k.mainAxis,st=t.elements.arrow&&Bu(t.elements.arrow),on=st?x==="y"?st.clientTop||0:st.clientLeft||0:0,Qt=(H=D==null?void 0:D[x])!=null?H:0,Ut=ie+ge-Qt-on,At=ie+Ie-Qt,Vt=Bl(h?Ff(M,Ut):M,ie,h?Qo(Z,At):Z);T[x]=Vt,V[x]=Vt-ie}if(a){var wt,vt=x==="x"?Xn:Qn,sn=x==="x"?Fr:Dr,ve=T[d],Bt=d==="y"?"height":"width",It=ve+_[vt],an=ve-_[sn],Je=[Xn,Qn].indexOf(g)!==-1,K=(wt=D==null?void 0:D[d])!=null?wt:0,z=Je?It:ve-C[Bt]-L[Bt]-K+k.altAxis,U=Je?ve+C[Bt]+L[Bt]-K-k.altAxis:an,G=h&&Je?vR(z,ve,U):Bl(h?z:It,ve,h?U:an);T[d]=G,V[d]=G-ve}t.modifiersData[r]=V}}const GR={name:"preventOverflow",enabled:!0,phase:"main",fn:qR,requiresIfExists:["offset"]};function XR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function QR(e){return e===pr(e)||!kr(e)?z0(e):XR(e)}function JR(e){var t=e.getBoundingClientRect(),n=xa(t.width)/e.offsetWidth||1,r=xa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZR(e,t,n){n===void 0&&(n=!1);var r=kr(t),i=kr(t)&&JR(t),s=Ao(t),o=Sa(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wi(t)!=="body"||V0(s))&&(a=QR(t)),kr(t)?(l=Sa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=U0(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function eM(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function tM(e){var t=eM(e);return dR.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function nM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Xb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){for(var e=arguments.length,t=new Array(e),n=0;nrn({root:["root"]},pB(aM)),pM={},hM=A.forwardRef(function(t,n){var r;const{anchorEl:i,children:s,direction:o,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:h={},slots:y={},TransitionProps:m}=t,_=Te(t,lM),g=A.useRef(null),v=Ln(g,n),b=A.useRef(null),x=Ln(b,p),d=A.useRef(x);vo(()=>{d.current=x},[x]),A.useImperativeHandle(p,()=>b.current,[]);const T=cM(c,o),[C,L]=A.useState(T),[R,k]=A.useState(zm(i));A.useEffect(()=>{b.current&&b.current.forceUpdate()}),A.useEffect(()=>{i&&k(zm(i))},[i]),vo(()=>{if(!R||!u)return;const F=M=>{L(M.placement)};let ee=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{F(M)}}];l!=null&&(ee=ee.concat(l)),f&&f.modifiers!=null&&(ee=ee.concat(f.modifiers));const ie=sM(R,g.current,j({placement:T},f,{modifiers:ee}));return d.current(ie),()=>{ie.destroy(),d.current(null)}},[R,a,l,u,f,T]);const D={placement:C};m!==null&&(D.TransitionProps=m);const V=dM(),H=(r=y.root)!=null?r:"div",te=hi({elementType:H,externalSlotProps:h.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:V.root});return B.jsx(H,j({},te,{children:typeof s=="function"?s(D):s}))}),mM=A.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:o="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=pM,popperRef:h,style:y,transition:m=!1,slotProps:_={},slots:g={}}=t,v=Te(t,uM),[b,x]=A.useState(!0),d=()=>{x(!1)},T=()=>{x(!0)};if(!l&&!c&&(!m||b))return null;let C;if(s)C=s;else if(r){const k=zm(r);C=k&&fM(k)?da(k).body:da(null).body}const L=!c&&l&&(!m||b)?"none":void 0,R=m?{in:c,onEnter:d,onExited:T}:void 0;return B.jsx(eR,{disablePortal:a,container:C,children:B.jsx(hM,j({anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:n,open:m?!b:c,placement:f,popperOptions:p,popperRef:h,slotProps:_,slots:g},v,{style:j({position:"fixed",top:0,left:0,display:L},y),TransitionProps:R,children:i}))})});var W0={};Object.defineProperty(W0,"__esModule",{value:!0});var D_=W0.default=void 0,yM=vM(A),gM=px;function P_(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(P_=function(r){return r?n:t})(e)}function vM(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=P_(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function bM(e){return Object.keys(e).length===0}function wM(e=null){const t=yM.useContext(gM.ThemeContext);return!t||bM(t)?e:t}D_=W0.default=wM;const xM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],SM=tt(mM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_M=A.forwardRef(function(t,n){var r;const i=D_(),s=Xt({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:y,placement:m,popperOptions:_,popperRef:g,transition:v,slots:b,slotProps:x}=s,d=Te(s,xM),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,C=j({anchorEl:o,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:y,placement:m,popperOptions:_,popperRef:g,transition:v},d);return B.jsx(SM,j({as:a,direction:i==null?void 0:i.direction,slots:{root:T},slotProps:x??u},C,{ref:n}))}),j_=_M,EM=nn("MuiBox",["root"]),IM=EM,TM=Ny(),CM=IO({themeId:ca,defaultTheme:TM,defaultClassName:IM.root,generateClassName:Oy.generate}),cn=CM,OM=T3({createStyledComponent:tt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Xt({props:e,name:"MuiStack"})}),Ea=OM,kM=A.createContext(),Jb=kM;function AM(e){return tn("MuiGrid",e)}const BM=[0,1,2,3,4,5,6,7,8,9,10],RM=["column-reverse","column","row-reverse","row"],MM=["nowrap","wrap-reverse","wrap"],cl=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],FM=nn("MuiGrid",["root","container","item","zeroMinWidth",...BM.map(e=>`spacing-xs-${e}`),...RM.map(e=>`direction-xs-${e}`),...MM.map(e=>`wrap-xs-${e}`),...cl.map(e=>`grid-xs-${e}`),...cl.map(e=>`grid-sm-${e}`),...cl.map(e=>`grid-md-${e}`),...cl.map(e=>`grid-lg-${e}`),...cl.map(e=>`grid-xl-${e}`)]),Ia=FM,DM=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function na(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PM({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let s={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=qo({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[i]:o;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${na(c)})`;u={flexBasis:f,maxWidth:f}}}s=j({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,s):r[e.breakpoints.up(i)]=s,r},{})}function jM({theme:e,ownerState:t}){const n=qo({values:t.direction,breakpoints:e.breakpoints.values});return Zn({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Ia.item}`]={maxWidth:"none"}),i})}function L_({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,s)=>e[i]-e[s]);return r.slice(0,r.indexOf(n))}function LM({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const s=qo({values:r,breakpoints:e.breakpoints.values});let o;typeof s=="object"&&(o=L_({breakpoints:e.breakpoints.values,values:s})),i=Zn({theme:e},s,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${na(c)}`,[`& > .${Ia.item}`]:{paddingTop:na(c)}}:(u=o)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Ia.item}`]:{paddingTop:0}}})}return i}function NM({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const s=qo({values:r,breakpoints:e.breakpoints.values});let o;typeof s=="object"&&(o=L_({breakpoints:e.breakpoints.values,values:s})),i=Zn({theme:e},s,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${na(c)})`,marginLeft:`-${na(c)}`,[`& > .${Ia.item}`]:{paddingLeft:na(c)}}:(u=o)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ia.item}`]:{paddingLeft:0}}})}return i}function $M(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const s=e[i];Number(s)>0&&r.push(n[`spacing-${i}-${String(s)}`])}),r}const zM=tt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:s,spacing:o,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=$M(o,u,t));const f=[];return u.forEach(p=>{const h=n[p];h&&f.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>j({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),jM,LM,NM,PM);function UM(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const s=`spacing-${r}-${String(i)}`;n.push(s)}}),n}const VM=e=>{const{classes:t,container:n,direction:r,item:i,spacing:s,wrap:o,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=UM(s,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const f={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return rn(f,AM,t)},WM=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiGrid"}),{breakpoints:i}=za(),s=_u(r),{className:o,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:h,spacing:y=0,wrap:m="wrap",zeroMinWidth:_=!1}=s,g=Te(s,DM),v=h||y,b=l||y,x=A.useContext(Jb),d=c?a||12:x,T={},C=j({},g);i.keys.forEach(k=>{g[k]!=null&&(T[k]=g[k],delete C[k])});const L=j({},s,{columns:d,container:c,direction:f,item:p,rowSpacing:v,columnSpacing:b,wrap:m,zeroMinWidth:_,spacing:y},T,{breakpoints:i.keys}),R=VM(L);return B.jsx(Jb.Provider,{value:d,children:B.jsx(zM,j({ownerState:L,className:Ne(R.root,o),as:u,ref:n},C))})}),ra=WM,HM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Um(e){return`scale(${e}, ${e**2})`}const KM={entering:{opacity:1,transform:Um(1)},entered:{opacity:1,transform:"none"}},mh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),N_=A.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:o,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:h,style:y,timeout:m="auto",TransitionComponent:_=x_}=t,g=Te(t,HM),v=Uo(),b=A.useRef(),x=za(),d=A.useRef(null),T=Ln(d,s.ref,n),C=F=>ee=>{if(F){const ie=d.current;ee===void 0?F(ie):F(ie,ee)}},L=C(c),R=C((F,ee)=>{nB(F);const{duration:ie,delay:M,easing:Z}=Mf({style:y,timeout:m,easing:o},{mode:"enter"});let X;m==="auto"?(X=x.transitions.getAutoHeightDuration(F.clientHeight),b.current=X):X=ie,F.style.transition=[x.transitions.create("opacity",{duration:X,delay:M}),x.transitions.create("transform",{duration:mh?X:X*.666,delay:M,easing:Z})].join(","),l&&l(F,ee)}),k=C(u),D=C(h),V=C(F=>{const{duration:ee,delay:ie,easing:M}=Mf({style:y,timeout:m,easing:o},{mode:"exit"});let Z;m==="auto"?(Z=x.transitions.getAutoHeightDuration(F.clientHeight),b.current=Z):Z=ee,F.style.transition=[x.transitions.create("opacity",{duration:Z,delay:ie}),x.transitions.create("transform",{duration:mh?Z:Z*.666,delay:mh?ie:ie||Z*.333,easing:M})].join(","),F.style.opacity=0,F.style.transform=Um(.75),f&&f(F)}),H=C(p),te=F=>{m==="auto"&&v.start(b.current||0,F),r&&r(d.current,F)};return B.jsx(_,j({appear:i,in:a,nodeRef:d,onEnter:R,onEntered:k,onEntering:L,onExit:V,onExited:H,onExiting:D,addEndListener:te,timeout:m==="auto"?null:m},g,{children:(F,ee)=>A.cloneElement(s,j({style:j({opacity:0,transform:Um(.75),visibility:F==="exited"&&!a?"hidden":void 0},KM[F],y,s.props.style),ref:T},ee))}))});N_.muiSupportAuto=!0;const Zb=N_;function YM(e){return tn("MuiTooltip",e)}const qM=nn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ao=qM,GM=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function XM(e){return Math.round(e*1e5)/1e5}const QM=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${_t(s.split("-")[0])}`],arrow:["arrow"]};return rn(o,YM,t)},JM=tt(j_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ao.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ao.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ao.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ao.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ZM=tt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${_t(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:bo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${XM(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ao.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ao.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ao.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ao.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),e6=tt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:bo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ec=!1;const e1=new Eu;let fl={x:0,y:0};function Ic(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const t6=A.forwardRef(function(t,n){var r,i,s,o,a,l,u,c,f,p,h,y,m,_,g,v,b,x,d;const T=Xt({props:t,name:"MuiTooltip"}),{arrow:C=!1,children:L,components:R={},componentsProps:k={},describeChild:D=!1,disableFocusListener:V=!1,disableHoverListener:H=!1,disableInteractive:te=!1,disableTouchListener:F=!1,enterDelay:ee=100,enterNextDelay:ie=0,enterTouchDelay:M=700,followCursor:Z=!1,id:X,leaveDelay:ce=0,leaveTouchDelay:ae=1500,onClose:Ce,onOpen:xe,open:Pe,placement:se="bottom",PopperComponent:_e,PopperProps:me={},slotProps:ge={},slots:Ie={},title:st,TransitionComponent:on=Zb,TransitionProps:Qt}=T,Ut=Te(T,GM),At=A.isValidElement(L)?L:B.jsx("span",{children:L}),Vt=za(),wt=Dy(),[vt,sn]=A.useState(),[ve,Bt]=A.useState(null),It=A.useRef(!1),an=te||Z,Je=Uo(),K=Uo(),z=Uo(),U=Uo(),[G,Y]=Jw({controlled:Pe,default:!1,name:"Tooltip",state:"open"});let pe=G;const Se=My(X),he=A.useRef(),We=fn(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),U.clear()});A.useEffect(()=>We,[We]);const ht=ze=>{e1.clear(),Ec=!0,Y(!0),xe&&!pe&&xe(ze)},oe=fn(ze=>{e1.start(800+ce,()=>{Ec=!1}),Y(!1),Ce&&pe&&Ce(ze),Je.start(Vt.transitions.duration.shortest,()=>{It.current=!1})}),fe=ze=>{It.current&&ze.type!=="touchstart"||(vt&&vt.removeAttribute("title"),K.clear(),z.clear(),ee||Ec&&ie?K.start(Ec?ie:ee,()=>{ht(ze)}):ht(ze))},ye=ze=>{K.clear(),z.start(ce,()=>{oe(ze)})},{isFocusVisibleRef:Ee,onBlur:He,onFocus:bt,ref:Tt}=Fy(),[,xt]=A.useState(!1),Ke=ze=>{He(ze),Ee.current===!1&&(xt(!1),ye(ze))},Pt=ze=>{vt||sn(ze.currentTarget),bt(ze),Ee.current===!0&&(xt(!0),fe(ze))},pn=ze=>{It.current=!0;const vn=At.props;vn.onTouchStart&&vn.onTouchStart(ze)},$r=ze=>{pn(ze),z.clear(),Je.clear(),We(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(M,()=>{document.body.style.WebkitUserSelect=he.current,fe(ze)})},br=ze=>{At.props.onTouchEnd&&At.props.onTouchEnd(ze),We(),z.start(ae,()=>{oe(ze)})};A.useEffect(()=>{if(!pe)return;function ze(vn){(vn.key==="Escape"||vn.key==="Esc")&&oe(vn)}return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[oe,pe]);const zn=Ln(At.ref,Tt,sn,n);!st&&st!==0&&(pe=!1);const Un=A.useRef(),Fo=ze=>{const vn=At.props;vn.onMouseMove&&vn.onMouseMove(ze),fl={x:ze.clientX,y:ze.clientY},Un.current&&Un.current.update()},oi={},Do=typeof st=="string";D?(oi.title=!pe&&Do&&!H?st:null,oi["aria-describedby"]=pe?Se:null):(oi["aria-label"]=Do?st:null,oi["aria-labelledby"]=pe&&!Do?Se:null);const nr=j({},oi,Ut,At.props,{className:Ne(Ut.className,At.props.className),onTouchStart:pn,ref:zn},Z?{onMouseMove:Fo}:{}),Qi={};F||(nr.onTouchStart=$r,nr.onTouchEnd=br),H||(nr.onMouseOver=Ic(fe,nr.onMouseOver),nr.onMouseLeave=Ic(ye,nr.onMouseLeave),an||(Qi.onMouseOver=fe,Qi.onMouseLeave=ye)),V||(nr.onFocus=Ic(Pt,nr.onFocus),nr.onBlur=Ic(Ke,nr.onBlur),an||(Qi.onFocus=Pt,Qi.onBlur=Ke));const Bp=A.useMemo(()=>{var ze;let vn=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return(ze=me.popperOptions)!=null&&ze.modifiers&&(vn=vn.concat(me.popperOptions.modifiers)),j({},me.popperOptions,{modifiers:vn})},[ve,me]),Ti=j({},T,{isRtl:wt,arrow:C,disableInteractive:an,placement:se,PopperComponentProp:_e,touch:It.current}),Tn=QM(Ti),Ga=(r=(i=Ie.popper)!=null?i:R.Popper)!=null?r:JM,Ku=(s=(o=(a=Ie.transition)!=null?a:R.Transition)!=null?o:on)!=null?s:Zb,Xa=(l=(u=Ie.tooltip)!=null?u:R.Tooltip)!=null?l:ZM,Qa=(c=(f=Ie.arrow)!=null?f:R.Arrow)!=null?c:e6,Yu=wl(Ga,j({},me,(p=ge.popper)!=null?p:k.popper,{className:Ne(Tn.popper,me==null?void 0:me.className,(h=(y=ge.popper)!=null?y:k.popper)==null?void 0:h.className)}),Ti),qu=wl(Ku,j({},Qt,(m=ge.transition)!=null?m:k.transition),Ti),Rp=wl(Xa,j({},(_=ge.tooltip)!=null?_:k.tooltip,{className:Ne(Tn.tooltip,(g=(v=ge.tooltip)!=null?v:k.tooltip)==null?void 0:g.className)}),Ti),Gu=wl(Qa,j({},(b=ge.arrow)!=null?b:k.arrow,{className:Ne(Tn.arrow,(x=(d=ge.arrow)!=null?d:k.arrow)==null?void 0:x.className)}),Ti);return B.jsxs(A.Fragment,{children:[A.cloneElement(At,nr),B.jsx(Ga,j({as:_e??j_,placement:se,anchorEl:Z?{getBoundingClientRect:()=>({top:fl.y,left:fl.x,right:fl.x,bottom:fl.y,width:0,height:0})}:vt,popperRef:Un,open:vt?pe:!1,id:Se,transition:!0},Qi,Yu,{popperOptions:Bp,children:({TransitionProps:ze})=>B.jsx(Ku,j({timeout:Vt.transitions.duration.shorter},ze,qu,{children:B.jsxs(Xa,j({},Rp,{children:[st,C?B.jsx(Qa,j({},Gu,{ref:Bt})):null]}))}))}))]})}),n6=t6;function r6(e){return tn("MuiTab",e)}const i6=nn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ai=i6,o6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],s6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:s,label:o,selected:a,disabled:l}=e,u={root:["root",s&&o&&"labelIcon",`textColor${_t(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return rn(u,r6,t)},a6=tt(P0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${_t(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Ai.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Ai.selected}`]:{opacity:1},[`&.${Ai.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ai.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ai.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),l6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTab"}),{className:i,disabled:s=!1,disableFocusRipple:o=!1,fullWidth:a,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:h,onFocus:y,selected:m,selectionFollowsFocus:_,textColor:g="inherit",value:v,wrapped:b=!1}=r,x=Te(r,o6),d=j({},r,{disabled:s,disableFocusRipple:o,selected:m,icon:!!l,iconPosition:u,label:!!f,fullWidth:a,textColor:g,wrapped:b}),T=s6(d),C=l&&f&&A.isValidElement(l)?A.cloneElement(l,{className:Ne(T.iconWrapper,l.props.className)}):l,L=k=>{!m&&p&&p(k,v),h&&h(k)},R=k=>{_&&!m&&p&&p(k,v),y&&y(k)};return B.jsxs(a6,j({focusRipple:!o,className:Ne(T.root,i),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:L,onFocus:R,ownerState:d,tabIndex:m?0:-1},x,{children:[u==="top"||u==="start"?B.jsxs(A.Fragment,{children:[C,f]}):B.jsxs(A.Fragment,{children:[f,C]}),c]}))}),yh=l6,u6=A.createContext(),$_=u6;function c6(e){return tn("MuiTable",e)}nn("MuiTable",["root","stickyHeader"]);const f6=["className","component","padding","size","stickyHeader"],d6=e=>{const{classes:t,stickyHeader:n}=e;return rn({root:["root",n&&"stickyHeader"]},c6,t)},p6=tt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),t1="table",h6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTable"}),{className:i,component:s=t1,padding:o="normal",size:a="medium",stickyHeader:l=!1}=r,u=Te(r,f6),c=j({},r,{component:s,padding:o,size:a,stickyHeader:l}),f=d6(c),p=A.useMemo(()=>({padding:o,size:a,stickyHeader:l}),[o,a,l]);return B.jsx($_.Provider,{value:p,children:B.jsx(p6,j({as:s,role:s===t1?null:"table",ref:n,className:Ne(f.root,i),ownerState:c},u))})}),m6=h6,y6=A.createContext(),up=y6;function g6(e){return tn("MuiTableBody",e)}nn("MuiTableBody",["root"]);const v6=["className","component"],b6=e=>{const{classes:t}=e;return rn({root:["root"]},g6,t)},w6=tt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),x6={variant:"body"},n1="tbody",S6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTableBody"}),{className:i,component:s=n1}=r,o=Te(r,v6),a=j({},r,{component:s}),l=b6(a);return B.jsx(up.Provider,{value:x6,children:B.jsx(w6,j({className:Ne(l.root,i),as:s,ref:n,role:s===n1?null:"rowgroup",ownerState:a},o))})}),_6=S6;function E6(e){return tn("MuiTableCell",e)}const I6=nn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),T6=I6,C6=["align","className","component","padding","scope","size","sortDirection","variant"],O6=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${_t(r)}`,i!=="normal"&&`padding${_t(i)}`,`size${_t(s)}`]};return rn(a,E6,t)},k6=tt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${_t(n.size)}`],n.padding!=="normal"&&t[`padding${_t(n.padding)}`],n.align!=="inherit"&&t[`align${_t(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?sx(bo(e.palette.divider,1),.88):ox(bo(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${T6.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),A6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:o,padding:a,scope:l,size:u,sortDirection:c,variant:f}=r,p=Te(r,C6),h=A.useContext($_),y=A.useContext(up),m=y&&y.variant==="head";let _;o?_=o:_=m?"th":"td";let g=l;_==="td"?g=void 0:!g&&m&&(g="col");const v=f||y&&y.variant,b=j({},r,{align:i,component:_,padding:a||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:v==="head"&&h&&h.stickyHeader,variant:v}),x=O6(b);let d=null;return c&&(d=c==="asc"?"ascending":"descending"),B.jsx(k6,j({as:_,ref:n,className:Ne(x.root,s),"aria-sort":d,scope:g,ownerState:b},p))}),ia=A6;function B6(e){return tn("MuiTableContainer",e)}nn("MuiTableContainer",["root"]);const R6=["className","component"],M6=e=>{const{classes:t}=e;return rn({root:["root"]},B6,t)},F6=tt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),D6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTableContainer"}),{className:i,component:s="div"}=r,o=Te(r,R6),a=j({},r,{component:s}),l=M6(a);return B.jsx(F6,j({ref:n,as:s,className:Ne(l.root,i),ownerState:a},o))}),P6=D6;function j6(e){return tn("MuiTableHead",e)}nn("MuiTableHead",["root"]);const L6=["className","component"],N6=e=>{const{classes:t}=e;return rn({root:["root"]},j6,t)},$6=tt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),z6={variant:"head"},r1="thead",U6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTableHead"}),{className:i,component:s=r1}=r,o=Te(r,L6),a=j({},r,{component:s}),l=N6(a);return B.jsx(up.Provider,{value:z6,children:B.jsx($6,j({as:s,className:Ne(l.root,i),ref:n,role:s===r1?null:"rowgroup",ownerState:a},o))})}),V6=U6,W6=To(B.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),H6=To(B.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function K6(e){return tn("MuiTableRow",e)}const Y6=nn("MuiTableRow",["root","selected","hover","head","footer"]),i1=Y6,q6=["className","component","hover","selected"],G6=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return rn({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},K6,t)},X6=tt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${i1.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${i1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bo(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),o1="tr",Q6=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTableRow"}),{className:i,component:s=o1,hover:o=!1,selected:a=!1}=r,l=Te(r,q6),u=A.useContext(up),c=j({},r,{component:s,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=G6(c);return B.jsx(X6,j({as:s,ref:n,className:Ne(f.root,i),role:s===o1?null:"row",ownerState:c},l))}),z_=Q6;function J6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Z6(e,t,n,r={},i=()=>{}){const{ease:s=J6,duration:o=300}=r;let a=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const h=Math.min(1,(p-a)/o);if(t[e]=s(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const eF=["onChange"],tF={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function nF(e){const{onChange:t}=e,n=Te(e,eF),r=A.useRef(),i=A.useRef(null),s=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return vo(()=>{const o=By(()=>{const l=r.current;s(),l!==r.current&&t(r.current)}),a=Ry(i.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),A.useEffect(()=>{s(),t(r.current)},[t]),B.jsx("div",j({style:tF,ref:i},n))}function rF(e){return tn("MuiTabScrollButton",e)}const iF=nn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),oF=iF,sF=["className","slots","slotProps","direction","orientation","disabled"],aF=e=>{const{classes:t,orientation:n,disabled:r}=e;return rn({root:["root",n,r&&"disabled"]},rF,t)},lF=tt(P0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${oF.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),uF=A.forwardRef(function(t,n){var r,i;const s=Xt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:u}=s,c=Te(s,sF),f=Dy(),p=j({isRtl:f},s),h=aF(p),y=(r=a.StartScrollButtonIcon)!=null?r:W6,m=(i=a.EndScrollButtonIcon)!=null?i:H6,_=hi({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=hi({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return B.jsx(lF,j({component:"div",className:Ne(h.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?B.jsx(y,j({},_)):B.jsx(m,j({},g))}))}),cF=uF;function fF(e){return tn("MuiTabs",e)}const dF=nn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gh=dF,pF=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],s1=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,a1=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Tc=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const s=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||s)i=n(e,i);else{i.focus();return}}},hF=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:s,centered:o,scrollButtonsHideMobile:a,classes:l}=e;return rn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},fF,l)},mF=tt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gh.scrollButtons}`]:t.scrollButtons},{[`& .${gh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${gh.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),yF=tt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),gF=tt("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),vF=tt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),bF=tt(nF)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),l1={},wF=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiTabs"}),i=za(),s=Dy(),{"aria-label":o,"aria-labelledby":a,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:y="primary",onChange:m,orientation:_="horizontal",ScrollButtonComponent:g=cF,scrollButtons:v="auto",selectionFollowsFocus:b,slots:x={},slotProps:d={},TabIndicatorProps:T={},TabScrollButtonProps:C={},textColor:L="primary",value:R,variant:k="standard",visibleScrollbar:D=!1}=r,V=Te(r,pF),H=k==="scrollable",te=_==="vertical",F=te?"scrollTop":"scrollLeft",ee=te?"top":"left",ie=te?"bottom":"right",M=te?"clientHeight":"clientWidth",Z=te?"height":"width",X=j({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:y,orientation:_,vertical:te,scrollButtons:v,textColor:L,variant:k,visibleScrollbar:D,fixed:!H,hideScrollbar:H&&!D,scrollableX:H&&!te,scrollableY:H&&te,centered:u&&!H,scrollButtonsHideMobile:!h}),ce=hF(X),ae=hi({elementType:x.StartScrollButtonIcon,externalSlotProps:d.startScrollButtonIcon,ownerState:X}),Ce=hi({elementType:x.EndScrollButtonIcon,externalSlotProps:d.endScrollButtonIcon,ownerState:X}),[xe,Pe]=A.useState(!1),[se,_e]=A.useState(l1),[me,ge]=A.useState(!1),[Ie,st]=A.useState(!1),[on,Qt]=A.useState(!1),[Ut,At]=A.useState({overflow:"hidden",scrollbarWidth:0}),Vt=new Map,wt=A.useRef(null),vt=A.useRef(null),sn=()=>{const oe=wt.current;let fe;if(oe){const Ee=oe.getBoundingClientRect();fe={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollLeftNormalized:c3(oe,s?"rtl":"ltr"),scrollWidth:oe.scrollWidth,top:Ee.top,bottom:Ee.bottom,left:Ee.left,right:Ee.right}}let ye;if(oe&&R!==!1){const Ee=vt.current.children;if(Ee.length>0){const He=Ee[Vt.get(R)];ye=He?He.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:ye}},ve=fn(()=>{const{tabsMeta:oe,tabMeta:fe}=sn();let ye=0,Ee;if(te)Ee="top",fe&&oe&&(ye=fe.top-oe.top+oe.scrollTop);else if(Ee=s?"right":"left",fe&&oe){const bt=s?oe.scrollLeftNormalized+oe.clientWidth-oe.scrollWidth:oe.scrollLeft;ye=(s?-1:1)*(fe[Ee]-oe[Ee]+bt)}const He={[Ee]:ye,[Z]:fe?fe[Z]:0};if(isNaN(se[Ee])||isNaN(se[Z]))_e(He);else{const bt=Math.abs(se[Ee]-He[Ee]),Tt=Math.abs(se[Z]-He[Z]);(bt>=1||Tt>=1)&&_e(He)}}),Bt=(oe,{animation:fe=!0}={})=>{fe?Z6(F,wt.current,oe,{duration:i.transitions.duration.standard}):wt.current[F]=oe},It=oe=>{let fe=wt.current[F];te?fe+=oe:(fe+=oe*(s?-1:1),fe*=s&&Zw()==="reverse"?-1:1),Bt(fe)},an=()=>{const oe=wt.current[M];let fe=0;const ye=Array.from(vt.current.children);for(let Ee=0;Eeoe){Ee===0&&(fe=oe);break}fe+=He[M]}return fe},Je=()=>{It(-1*an())},K=()=>{It(an())},z=A.useCallback(oe=>{At({overflow:null,scrollbarWidth:oe})},[]),U=()=>{const oe={};oe.scrollbarSizeListener=H?B.jsx(bF,{onChange:z,className:Ne(ce.scrollableX,ce.hideScrollbar)}):null;const ye=H&&(v==="auto"&&(me||Ie)||v===!0);return oe.scrollButtonStart=ye?B.jsx(g,j({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ae},orientation:_,direction:s?"right":"left",onClick:Je,disabled:!me},C,{className:Ne(ce.scrollButtons,C.className)})):null,oe.scrollButtonEnd=ye?B.jsx(g,j({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:_,direction:s?"left":"right",onClick:K,disabled:!Ie},C,{className:Ne(ce.scrollButtons,C.className)})):null,oe},G=fn(oe=>{const{tabsMeta:fe,tabMeta:ye}=sn();if(!(!ye||!fe)){if(ye[ee]fe[ie]){const Ee=fe[F]+(ye[ie]-fe[ie]);Bt(Ee,{animation:oe})}}}),Y=fn(()=>{H&&v!==!1&&Qt(!on)});A.useEffect(()=>{const oe=By(()=>{wt.current&&ve()});let fe;const ye=bt=>{bt.forEach(Tt=>{Tt.removedNodes.forEach(xt=>{var Ke;(Ke=fe)==null||Ke.unobserve(xt)}),Tt.addedNodes.forEach(xt=>{var Ke;(Ke=fe)==null||Ke.observe(xt)})}),oe(),Y()},Ee=Ry(wt.current);Ee.addEventListener("resize",oe);let He;return typeof ResizeObserver<"u"&&(fe=new ResizeObserver(oe),Array.from(vt.current.children).forEach(bt=>{fe.observe(bt)})),typeof MutationObserver<"u"&&(He=new MutationObserver(ye),He.observe(vt.current,{childList:!0})),()=>{var bt,Tt;oe.clear(),Ee.removeEventListener("resize",oe),(bt=He)==null||bt.disconnect(),(Tt=fe)==null||Tt.disconnect()}},[ve,Y]),A.useEffect(()=>{const oe=Array.from(vt.current.children),fe=oe.length;if(typeof IntersectionObserver<"u"&&fe>0&&H&&v!==!1){const ye=oe[0],Ee=oe[fe-1],He={root:wt.current,threshold:.99},bt=Pt=>{ge(!Pt[0].isIntersecting)},Tt=new IntersectionObserver(bt,He);Tt.observe(ye);const xt=Pt=>{st(!Pt[0].isIntersecting)},Ke=new IntersectionObserver(xt,He);return Ke.observe(Ee),()=>{Tt.disconnect(),Ke.disconnect()}}},[H,v,on,c==null?void 0:c.length]),A.useEffect(()=>{Pe(!0)},[]),A.useEffect(()=>{ve()}),A.useEffect(()=>{G(l1!==se)},[G,se]),A.useImperativeHandle(l,()=>({updateIndicator:ve,updateScrollButtons:Y}),[ve,Y]);const pe=B.jsx(vF,j({},T,{className:Ne(ce.indicator,T.className),ownerState:X,style:j({},se,T.style)}));let Se=0;const he=A.Children.map(c,oe=>{if(!A.isValidElement(oe))return null;const fe=oe.props.value===void 0?Se:oe.props.value;Vt.set(fe,Se);const ye=fe===R;return Se+=1,A.cloneElement(oe,j({fullWidth:k==="fullWidth",indicator:ye&&!xe&&pe,selected:ye,selectionFollowsFocus:b,onChange:m,textColor:L,value:fe},Se===1&&R===!1&&!oe.props.tabIndex?{tabIndex:0}:{}))}),We=oe=>{const fe=vt.current,ye=da(fe).activeElement;if(ye.getAttribute("role")!=="tab")return;let He=_==="horizontal"?"ArrowLeft":"ArrowUp",bt=_==="horizontal"?"ArrowRight":"ArrowDown";switch(_==="horizontal"&&s&&(He="ArrowRight",bt="ArrowLeft"),oe.key){case He:oe.preventDefault(),Tc(fe,ye,a1);break;case bt:oe.preventDefault(),Tc(fe,ye,s1);break;case"Home":oe.preventDefault(),Tc(fe,null,s1);break;case"End":oe.preventDefault(),Tc(fe,null,a1);break}},ht=U();return B.jsxs(mF,j({className:Ne(ce.root,f),ownerState:X,ref:n,as:p},V,{children:[ht.scrollButtonStart,ht.scrollbarSizeListener,B.jsxs(yF,{className:ce.scroller,ownerState:X,style:{overflow:Ut.overflow,[te?`margin${s?"Left":"Right"}`:"marginBottom"]:D?void 0:-Ut.scrollbarWidth},ref:wt,children:[B.jsx(gF,{"aria-label":o,"aria-labelledby":a,"aria-orientation":_==="vertical"?"vertical":null,className:ce.flexContainer,ownerState:X,onKeyDown:We,ref:vt,role:"tablist",children:he}),xe&&pe]}),ht.scrollButtonEnd]}))}),xF=wF;var Vm={},u1=M0;Vm.createRoot=u1.createRoot,Vm.hydrateRoot=u1.hydrateRoot;var U_={exports:{}},pt={};/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var c1=Object.getOwnPropertySymbols,SF=Object.prototype.hasOwnProperty,_F=Object.prototype.propertyIsEnumerable;function EF(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function IF(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var TF=IF()?Object.assign:function(e,t){for(var n,r=EF(e),i,s=1;sDf.length&&Df.push(e)}function Wm(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ru:case CF:s=!0}}if(s)return n(r,e,t===""?"."+vh(e,0):t),1;if(s=0,t=t===""?".":t+":",Array.isArray(e))for(var o=0;o0){const e=new Array(arguments.length);for(let t=0;t>>0)+this.high*4294967296};W.Long.prototype.equals=function(e){return this.low==e.low&&this.high==e.high};W.Long.ZERO=new W.Long(0,0);W.Builder=function(e){if(e)var t=e;else var t=1024;this.bb=W.ByteBuffer.allocate(t),this.space=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};W.Builder.prototype.clear=function(){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};W.Builder.prototype.forceDefaults=function(e){this.force_defaults=e};W.Builder.prototype.dataBuffer=function(){return this.bb};W.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};W.Builder.prototype.prep=function(e,t){e>this.minalign&&(this.minalign=e);for(var n=~(this.bb.capacity()-this.space+t)+1&e-1;this.space=0&&this.vtable[t]==0;t--);for(var n=t+1;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);var r=2;this.addInt16(e-this.object_start);var i=(n+r)*W.SIZEOF_SHORT;this.addInt16(i);var s=0,o=this.space;e:for(t=0;t=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,W.SIZEOF_INT),this.addOffset(e),this.bb.setPosition(this.space)};W.Builder.prototype.requiredField=function(e,t){var n=this.bb.capacity()-e,r=n-this.bb.readInt32(n),i=this.bb.readInt16(r+t)!=0;if(!i)throw new Error("FlatBuffers: field "+t+" must be set")};W.Builder.prototype.startVector=function(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(W.SIZEOF_INT,e*t),this.prep(n,e*t)};W.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()};W.Builder.prototype.createString=function(e){if(e instanceof Uint8Array)var t=e;else for(var t=[],n=0;n=56320)r=i;else{var s=e.charCodeAt(n++);r=(i<<10)+s+(65536-56623104-56320)}r<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(r&63|128))}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(var n=0,o=this.space,a=this.bb.bytes();n>24};W.ByteBuffer.prototype.readUint8=function(e){return this.bytes_[e]};W.ByteBuffer.prototype.readInt16=function(e){return this.readUint16(e)<<16>>16};W.ByteBuffer.prototype.readUint16=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8};W.ByteBuffer.prototype.readInt32=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24};W.ByteBuffer.prototype.readUint32=function(e){return this.readInt32(e)>>>0};W.ByteBuffer.prototype.readInt64=function(e){return new W.Long(this.readInt32(e),this.readInt32(e+4))};W.ByteBuffer.prototype.readUint64=function(e){return new W.Long(this.readUint32(e),this.readUint32(e+4))};W.ByteBuffer.prototype.readFloat32=function(e){return W.int32[0]=this.readInt32(e),W.float32[0]};W.ByteBuffer.prototype.readFloat64=function(e){return W.int32[W.isLittleEndian?0:1]=this.readInt32(e),W.int32[W.isLittleEndian?1:0]=this.readInt32(e+4),W.float64[0]};W.ByteBuffer.prototype.writeInt8=function(e,t){this.bytes_[e]=t};W.ByteBuffer.prototype.writeUint8=function(e,t){this.bytes_[e]=t};W.ByteBuffer.prototype.writeInt16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8};W.ByteBuffer.prototype.writeUint16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8};W.ByteBuffer.prototype.writeInt32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24};W.ByteBuffer.prototype.writeUint32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24};W.ByteBuffer.prototype.writeInt64=function(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)};W.ByteBuffer.prototype.writeUint64=function(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)};W.ByteBuffer.prototype.writeFloat32=function(e,t){W.float32[0]=t,this.writeInt32(e,W.int32[0])};W.ByteBuffer.prototype.writeFloat64=function(e,t){W.float64[0]=t,this.writeInt32(e,W.int32[W.isLittleEndian?0:1]),this.writeInt32(e+4,W.int32[W.isLittleEndian?1:0])};W.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length>10)+55296,(s&1024-1)+56320))}return r};W.ByteBuffer.prototype.__indirect=function(e){return e+this.readInt32(e)};W.ByteBuffer.prototype.__vector=function(e){return e+this.readInt32(e)+W.SIZEOF_INT};W.ByteBuffer.prototype.__vector_len=function(e){return this.readInt32(e+this.readInt32(e))};W.ByteBuffer.prototype.__has_identifier=function(e){if(e.length!=W.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+W.FILE_IDENTIFIER_LENGTH);for(var t=0;t57343)i.push(s);else if(56320<=s&&s<=57343)i.push(65533);else if(55296<=s&&s<=56319)if(r===n-1)i.push(65533);else{var o=e.charCodeAt(r+1);if(56320<=o&&o<=57343){var a=s&1023,l=o&1023;i.push(65536+(a<<10)+l),r+=1}else i.push(65533)}r+=1}return i}function JF(e){for(var t="",n=0;n>10)+55296,(r&1023)+56320))}return t}var Pf=-1;function X0(e){this.tokens=[].slice.call(e)}X0.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Pf},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Ca=-1;function bh(e,t){if(e)throw TypeError("Decoder error");return t||65533}var jf="utf-8";function Lf(e,t){if(!(this instanceof Lf))return new Lf(e,t);if(e=e!==void 0?String(e).toLowerCase():jf,e!==jf)throw new Error("Encoding not supported. Only utf-8 is supported");t=cp(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Lf.prototype={decode:function(t,n){var r;typeof t=="object"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=cp(n),this._streaming||(this._decoder=new ZF({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var i=new X0(r),s=[],o;!i.endOfStream()&&(o=this._decoder.handler(i,i.read()),o!==Ca);)o!==null&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));if(!this._streaming){do{if(o=this._decoder.handler(i,i.read()),o===Ca)break;o!==null&&(Array.isArray(o)?s.push.apply(s,o):s.push(o))}while(!i.endOfStream());this._decoder=null}return s.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(s[0]===65279?(this._BOMseen=!0,s.shift()):this._BOMseen=!0),JF(s)}};function Nf(e,t){if(!(this instanceof Nf))return new Nf(e,t);if(e=e!==void 0?String(e).toLowerCase():jf,e!==jf)throw new Error("Encoding not supported. Only utf-8 is supported");t=cp(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Nf.prototype={encode:function(t,n){t=t?String(t):"",n=cp(n),this._streaming||(this._encoder=new e5(this._options)),this._streaming=!!n.stream;for(var r=[],i=new X0(QF(t)),s;!i.endOfStream()&&(s=this._encoder.handler(i,i.read()),s!==Ca);)Array.isArray(s)?r.push.apply(r,s):r.push(s);if(!this._streaming){for(;s=this._encoder.handler(i,i.read()),s!==Ca;)Array.isArray(s)?r.push.apply(r,s):r.push(s);this._encoder=null}return new Uint8Array(r)}};function ZF(e){var t=e.fatal,n=0,r=0,i=0,s=128,o=191;this.handler=function(a,l){if(l===Pf&&i!==0)return i=0,bh(t);if(l===Pf)return Ca;if(i===0){if(Mi(l,0,127))return l;if(Mi(l,194,223))i=1,n=l-192;else if(Mi(l,224,239))l===224&&(s=160),l===237&&(o=159),i=2,n=l-224;else if(Mi(l,240,244))l===240&&(s=144),l===244&&(o=143),i=3,n=l-240;else return bh(t);return n=n<<6*i,null}if(!Mi(l,s,o))return n=i=r=0,s=128,o=191,a.prepend(l),bh(t);if(s=128,o=191,r+=1,n+=l-128<<6*(i-r),r!==i)return null;var u=n;return n=i=r=0,u}}function e5(e){e.fatal,this.handler=function(t,n){if(n===Pf)return Ca;if(Mi(n,0,127))return n;var r,i;Mi(n,128,2047)?(r=1,i=192):Mi(n,2048,65535)?(r=2,i=224):Mi(n,65536,1114111)&&(r=3,i=240);for(var s=[(n>>6*r)+i];r>0;){var o=n>>6*(r-1);s.push(128|o&63),r-=1}return s}}const $f=typeof Buffer=="function"?Buffer:null,r2=typeof TextDecoder=="function"&&typeof TextEncoder=="function",qm=(e=>{if(r2||!$f){const t=new e("utf-8");return n=>t.decode(n)}return t=>{const{buffer:n,byteOffset:r,length:i}=Ye(t);return $f.from(n,r,i).toString()}})(typeof TextDecoder<"u"?TextDecoder:Lf),fp=(e=>{if(r2||!$f){const t=new e;return n=>t.encode(n)}return(t="")=>Ye($f.from(t,"utf8"))})(typeof TextEncoder<"u"?TextEncoder:Nf),Lt=Object.freeze({done:!0,value:void 0});class g1{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class hs{tee(){return this._getDOMStream().tee()}pipe(t,n){return this._getNodeStream().pipe(t,n)}pipeTo(t,n){return this._getDOMStream().pipeTo(t,n)}pipeThrough(t,n){return this._getDOMStream().pipeThrough(t,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class t5 extends hs{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}async cancel(t){await 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(Lt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return sr.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return sr.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}async throw(t){return await this.abort(t),Lt}async return(t){return await this.close(),Lt}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await 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((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(Lt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(`${this} is closed`)}}const[n5,dp]=(()=>{const e=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=()=>{throw e()},t.asUintN=()=>{throw e()},typeof BigInt<"u"?[BigInt,!0]:[t,!1]})(),[Ka,JN]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[t,!1]})(),[Fu,ZN]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[t,!1]})(),r5=e=>typeof e=="number",i2=e=>typeof e=="boolean",Pr=e=>typeof e=="function",hr=e=>e!=null&&Object(e)===e,_o=e=>hr(e)&&Pr(e.then),ei=e=>hr(e)&&Pr(e[Symbol.iterator]),qi=e=>hr(e)&&Pr(e[Symbol.asyncIterator]),Gm=e=>hr(e)&&hr(e.schema),o2=e=>hr(e)&&"done"in e&&"value"in e,s2=e=>hr(e)&&Pr(e.stat)&&r5(e.fd),a2=e=>hr(e)&&Q0(e.body),i5=e=>hr(e)&&Pr(e.abort)&&Pr(e.getWriter)&&!(e instanceof hs),Q0=e=>hr(e)&&Pr(e.cancel)&&Pr(e.getReader)&&!(e instanceof hs),o5=e=>hr(e)&&Pr(e.end)&&Pr(e.write)&&i2(e.writable)&&!(e instanceof hs),l2=e=>hr(e)&&Pr(e.read)&&Pr(e.pipe)&&i2(e.readable)&&!(e instanceof hs);var s5=W.ByteBuffer;const J0=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function a5(e){let t=e[0]?[e[0]]:[],n,r,i,s;for(let o,a,l=0,u=0,c=e.length;++lc+f.byteLength,0),i,s,o,a=0,l=-1,u=Math.min(t||1/0,r);for(let c=n.length;++lot(Int32Array,e),l5=e=>ot(Ka,e),Ye=e=>ot(Uint8Array,e),u5=e=>ot(Fu,e),Xm=e=>(e.next(),e);function*c5(e,t){const n=function*(i){yield i},r=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof J0?n(t):ei(t)?t:n(t);yield*Xm(function*(i){let s=null;do s=i.next(yield ot(e,s));while(!s.done)}(r[Symbol.iterator]()))}const f5=e=>c5(Uint8Array,e);async function*u2(e,t){if(_o(t))return yield*u2(e,await t);const n=async function*(s){yield await s},r=async function*(s){yield*Xm(function*(o){let a=null;do a=o.next(yield a&&a.value);while(!a.done)}(s[Symbol.iterator]()))},i=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof J0?n(t):ei(t)?r(t):qi(t)?t:n(t);yield*Xm(async function*(s){let o=null;do o=await s.next(yield ot(e,o));while(!o.done)}(i[Symbol.asyncIterator]()))}const d5=e=>u2(Uint8Array,e);function Z0(e,t,n){if(e!==0){n=n.slice(0,t+1);for(let r=-1;++r<=t;)n[r]+=e}return n}function p5(e,t){let n=0,r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n(e.next(),e);function*h5(e){let t,n=!1,r=[],i,s,o,a=0;function l(){return s==="peek"?xi(r,o)[0]:([i,r,a]=xi(r,o),i)}({cmd:s,size:o}=yield null);let u=f5(e)[Symbol.iterator]();try{do if({done:t,value:i}=isNaN(o-a)?u.next(void 0):u.next(o-a),!t&&i.byteLength>0&&(r.push(i),a+=i.byteLength),t||o<=a)do({cmd:s,size:o}=yield l());while(o0&&(r.push(i),a+=i.byteLength),t||o<=a)do({cmd:s,size:o}=yield l());while(o0&&(r.push(Ye(i)),a+=i.byteLength),t||o<=a)do({cmd:s,size:o}=yield l());while(o{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(t){const{reader:n,source:r}=this;n&&await n.cancel(t).catch(()=>{}),r&&r.locked&&this.releaseLock()}async read(t){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=!this.supportsBYOB||typeof t!="number"?await this.getDefaultReader().read():await this.readFromBYOBReader(t);return!n.done&&(n.value=Ye(n)),n}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(t){return await c2(this.getBYOBReader(),new ArrayBuffer(t),0,t)}}async function c2(e,t,n,r){if(n>=r)return{done:!1,value:new Uint8Array(t,0,r)};const{done:i,value:s}=await e.read(new Uint8Array(t,n,r-n));return(n+=s.byteLength){let n=i=>r([t,i]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};async function*v5(e){let t=[],n="error",r=!1,i=null,s,o,a=0,l=[],u;function c(){return s==="peek"?xi(l,o)[0]:([u,l,a]=xi(l,o),u)}if({cmd:s,size:o}=yield null,e.isTTY)return yield new Uint8Array(0);try{t[0]=wh(e,"end"),t[1]=wh(e,"error");do{if(t[2]=wh(e,"readable"),[n,i]=await Promise.race(t.map(p=>p[2])),n==="error")break;if((r=n==="end")||(isFinite(o-a)?(u=Ye(e.read(o-a)),u.byteLength0&&(l.push(u),a+=u.byteLength)),r||o<=a)do({cmd:s,size:o}=yield c());while(o{for(const[_,g]of p)e.off(_,g);try{const _=e.destroy;_&&_.call(e,h),h=void 0}catch(_){h=_||h}finally{h!=null?m(h):y()}})}}class Ge{}var J;(function(e){(function(t){(function(n){(function(r){(function(i){i[i.V1=0]="V1",i[i.V2=1]="V2",i[i.V3=2]="V3",i[i.V4=3]="V4"})(r.MetadataVersion||(r.MetadataVersion={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.Sparse=0]="Sparse",i[i.Dense=1]="Dense"})(r.UnionMode||(r.UnionMode={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.HALF=0]="HALF",i[i.SINGLE=1]="SINGLE",i[i.DOUBLE=2]="DOUBLE"})(r.Precision||(r.Precision={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.DAY=0]="DAY",i[i.MILLISECOND=1]="MILLISECOND"})(r.DateUnit||(r.DateUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.SECOND=0]="SECOND",i[i.MILLISECOND=1]="MILLISECOND",i[i.MICROSECOND=2]="MICROSECOND",i[i.NANOSECOND=3]="NANOSECOND"})(r.TimeUnit||(r.TimeUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.YEAR_MONTH=0]="YEAR_MONTH",i[i.DAY_TIME=1]="DAY_TIME"})(r.IntervalUnit||(r.IntervalUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.NONE=0]="NONE",i[i.Null=1]="Null",i[i.Int=2]="Int",i[i.FloatingPoint=3]="FloatingPoint",i[i.Binary=4]="Binary",i[i.Utf8=5]="Utf8",i[i.Bool=6]="Bool",i[i.Decimal=7]="Decimal",i[i.Date=8]="Date",i[i.Time=9]="Time",i[i.Timestamp=10]="Timestamp",i[i.Interval=11]="Interval",i[i.List=12]="List",i[i.Struct_=13]="Struct_",i[i.Union=14]="Union",i[i.FixedSizeBinary=15]="FixedSizeBinary",i[i.FixedSizeList=16]="FixedSizeList",i[i.Map=17]="Map",i[i.Duration=18]="Duration",i[i.LargeBinary=19]="LargeBinary",i[i.LargeUtf8=20]="LargeUtf8",i[i.LargeList=21]="LargeList"})(r.Type||(r.Type={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.Little=0]="Little",i[i.Big=1]="Big"})(r.Endianness||(r.Endianness={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsNull(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startNull(o){o.startObject(0)}static endNull(o){return o.endObject()}static createNull(o){return i.startNull(o),i.endNull(o)}}r.Null=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsStruct_(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startStruct_(o){o.startObject(0)}static endStruct_(o){return o.endObject()}static createStruct_(o){return i.startStruct_(o),i.endStruct_(o)}}r.Struct_=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsList(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startList(o){o.startObject(0)}static endList(o){return o.endObject()}static createList(o){return i.startList(o),i.endList(o)}}r.List=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsLargeList(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startLargeList(o){o.startObject(0)}static endLargeList(o){return o.endObject()}static createLargeList(o){return i.startLargeList(o),i.endLargeList(o)}}r.LargeList=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsFixedSizeList(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}listSize(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}static startFixedSizeList(o){o.startObject(1)}static addListSize(o,a){o.addFieldInt32(0,a,0)}static endFixedSizeList(o){return o.endObject()}static createFixedSizeList(o,a){return i.startFixedSizeList(o),i.addListSize(o,a),i.endFixedSizeList(o)}}r.FixedSizeList=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsMap(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}keysSorted(){let o=this.bb.__offset(this.bb_pos,4);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startMap(o){o.startObject(1)}static addKeysSorted(o,a){o.addFieldInt8(0,+a,0)}static endMap(o){return o.endObject()}static createMap(o,a){return i.startMap(o),i.addKeysSorted(o,a),i.endMap(o)}}r.Map=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsUnion(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}mode(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.UnionMode.Sparse}typeIds(o){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.readInt32(this.bb.__vector(this.bb_pos+a)+o*4):0}typeIdsLength(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}typeIdsArray(){let o=this.bb.__offset(this.bb_pos,6);return o?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+o),this.bb.__vector_len(this.bb_pos+o)):null}static startUnion(o){o.startObject(2)}static addMode(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.UnionMode.Sparse)}static addTypeIds(o,a){o.addFieldOffset(1,a,0)}static createTypeIdsVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addInt32(a[l]);return o.endVector()}static startTypeIdsVector(o,a){o.startVector(4,a,4)}static endUnion(o){return o.endObject()}static createUnion(o,a,l){return i.startUnion(o),i.addMode(o,a),i.addTypeIds(o,l),i.endUnion(o)}}r.Union=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsInt(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}bitWidth(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}isSigned(){let o=this.bb.__offset(this.bb_pos,6);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startInt(o){o.startObject(2)}static addBitWidth(o,a){o.addFieldInt32(0,a,0)}static addIsSigned(o,a){o.addFieldInt8(1,+a,0)}static endInt(o){return o.endObject()}static createInt(o,a,l){return i.startInt(o),i.addBitWidth(o,a),i.addIsSigned(o,l),i.endInt(o)}}r.Int=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsFloatingPoint(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}precision(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.Precision.HALF}static startFloatingPoint(o){o.startObject(1)}static addPrecision(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.Precision.HALF)}static endFloatingPoint(o){return o.endObject()}static createFloatingPoint(o,a){return i.startFloatingPoint(o),i.addPrecision(o,a),i.endFloatingPoint(o)}}r.FloatingPoint=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsUtf8(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startUtf8(o){o.startObject(0)}static endUtf8(o){return o.endObject()}static createUtf8(o){return i.startUtf8(o),i.endUtf8(o)}}r.Utf8=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsBinary(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startBinary(o){o.startObject(0)}static endBinary(o){return o.endObject()}static createBinary(o){return i.startBinary(o),i.endBinary(o)}}r.Binary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsLargeUtf8(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startLargeUtf8(o){o.startObject(0)}static endLargeUtf8(o){return o.endObject()}static createLargeUtf8(o){return i.startLargeUtf8(o),i.endLargeUtf8(o)}}r.LargeUtf8=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsLargeBinary(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startLargeBinary(o){o.startObject(0)}static endLargeBinary(o){return o.endObject()}static createLargeBinary(o){return i.startLargeBinary(o),i.endLargeBinary(o)}}r.LargeBinary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsFixedSizeBinary(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}byteWidth(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}static startFixedSizeBinary(o){o.startObject(1)}static addByteWidth(o,a){o.addFieldInt32(0,a,0)}static endFixedSizeBinary(o){return o.endObject()}static createFixedSizeBinary(o,a){return i.startFixedSizeBinary(o),i.addByteWidth(o,a),i.endFixedSizeBinary(o)}}r.FixedSizeBinary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsBool(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}static startBool(o){o.startObject(0)}static endBool(o){return o.endObject()}static createBool(o){return i.startBool(o),i.endBool(o)}}r.Bool=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsDecimal(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}precision(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt32(this.bb_pos+o):0}scale(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readInt32(this.bb_pos+o):0}static startDecimal(o){o.startObject(2)}static addPrecision(o,a){o.addFieldInt32(0,a,0)}static addScale(o,a){o.addFieldInt32(1,a,0)}static endDecimal(o){return o.endObject()}static createDecimal(o,a,l){return i.startDecimal(o),i.addPrecision(o,a),i.addScale(o,l),i.endDecimal(o)}}r.Decimal=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsDate(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}unit(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.DateUnit.MILLISECOND}static startDate(o){o.startObject(1)}static addUnit(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.DateUnit.MILLISECOND)}static endDate(o){return o.endObject()}static createDate(o,a){return i.startDate(o),i.addUnit(o,a),i.endDate(o)}}r.Date=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsTime(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}unit(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}bitWidth(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readInt32(this.bb_pos+o):32}static startTime(o){o.startObject(2)}static addUnit(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static addBitWidth(o,a){o.addFieldInt32(1,a,32)}static endTime(o){return o.endObject()}static createTime(o,a,l){return i.startTime(o),i.addUnit(o,a),i.addBitWidth(o,l),i.endTime(o)}}r.Time=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsTimestamp(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}unit(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.TimeUnit.SECOND}timezone(o){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.__string(this.bb_pos+a,o):null}static startTimestamp(o){o.startObject(2)}static addUnit(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.SECOND)}static addTimezone(o,a){o.addFieldOffset(1,a,0)}static endTimestamp(o){return o.endObject()}static createTimestamp(o,a,l){return i.startTimestamp(o),i.addUnit(o,a),i.addTimezone(o,l),i.endTimestamp(o)}}r.Timestamp=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsInterval(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}unit(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}static startInterval(o){o.startObject(1)}static addUnit(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}static endInterval(o){return o.endObject()}static createInterval(o,a){return i.startInterval(o),i.addUnit(o,a),i.endInterval(o)}}r.Interval=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsDuration(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}unit(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}static startDuration(o){o.startObject(1)}static addUnit(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static endDuration(o){return o.endObject()}static createDuration(o,a){return i.startDuration(o),i.addUnit(o,a),i.endDuration(o)}}r.Duration=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsKeyValue(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}key(o){let a=this.bb.__offset(this.bb_pos,4);return a?this.bb.__string(this.bb_pos+a,o):null}value(o){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.__string(this.bb_pos+a,o):null}static startKeyValue(o){o.startObject(2)}static addKey(o,a){o.addFieldOffset(0,a,0)}static addValue(o,a){o.addFieldOffset(1,a,0)}static endKeyValue(o){return o.endObject()}static createKeyValue(o,a,l){return i.startKeyValue(o),i.addKey(o,a),i.addValue(o,l),i.endKeyValue(o)}}r.KeyValue=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsDictionaryEncoding(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}id(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):this.bb.createLong(0,0)}indexType(o){let a=this.bb.__offset(this.bb_pos,6);return a?(o||new e.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}isOrdered(){let o=this.bb.__offset(this.bb_pos,8);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startDictionaryEncoding(o){o.startObject(3)}static addId(o,a){o.addFieldInt64(0,a,o.createLong(0,0))}static addIndexType(o,a){o.addFieldOffset(1,a,0)}static addIsOrdered(o,a){o.addFieldInt8(2,+a,0)}static endDictionaryEncoding(o){return o.endObject()}static createDictionaryEncoding(o,a,l,u){return i.startDictionaryEncoding(o),i.addId(o,a),i.addIndexType(o,l),i.addIsOrdered(o,u),i.endDictionaryEncoding(o)}}r.DictionaryEncoding=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsField(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}name(o){let a=this.bb.__offset(this.bb_pos,4);return a?this.bb.__string(this.bb_pos+a,o):null}nullable(){let o=this.bb.__offset(this.bb_pos,6);return o?!!this.bb.readInt8(this.bb_pos+o):!1}typeType(){let o=this.bb.__offset(this.bb_pos,8);return o?this.bb.readUint8(this.bb_pos+o):e.apache.arrow.flatbuf.Type.NONE}type(o){let a=this.bb.__offset(this.bb_pos,10);return a?this.bb.__union(o,this.bb_pos+a):null}dictionary(o){let a=this.bb.__offset(this.bb_pos,12);return a?(o||new e.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}children(o,a){let l=this.bb.__offset(this.bb_pos,14);return l?(a||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+o*4),this.bb):null}childrenLength(){let o=this.bb.__offset(this.bb_pos,14);return o?this.bb.__vector_len(this.bb_pos+o):0}customMetadata(o,a){let l=this.bb.__offset(this.bb_pos,16);return l?(a||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+o*4),this.bb):null}customMetadataLength(){let o=this.bb.__offset(this.bb_pos,16);return o?this.bb.__vector_len(this.bb_pos+o):0}static startField(o){o.startObject(7)}static addName(o,a){o.addFieldOffset(0,a,0)}static addNullable(o,a){o.addFieldInt8(1,+a,0)}static addTypeType(o,a){o.addFieldInt8(2,a,e.apache.arrow.flatbuf.Type.NONE)}static addType(o,a){o.addFieldOffset(3,a,0)}static addDictionary(o,a){o.addFieldOffset(4,a,0)}static addChildren(o,a){o.addFieldOffset(5,a,0)}static createChildrenVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addOffset(a[l]);return o.endVector()}static startChildrenVector(o,a){o.startVector(4,a,4)}static addCustomMetadata(o,a){o.addFieldOffset(6,a,0)}static createCustomMetadataVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addOffset(a[l]);return o.endVector()}static startCustomMetadataVector(o,a){o.startVector(4,a,4)}static endField(o){return o.endObject()}static createField(o,a,l,u,c,f,p,h){return i.startField(o),i.addName(o,a),i.addNullable(o,l),i.addTypeType(o,u),i.addType(o,c),i.addDictionary(o,f),i.addChildren(o,p),i.addCustomMetadata(o,h),i.endField(o)}}r.Field=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static createBuffer(o,a,l){return o.prep(8,16),o.writeInt64(l),o.writeInt64(a),o.offset()}}r.Buffer=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsSchema(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}endianness(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):e.apache.arrow.flatbuf.Endianness.Little}fields(o,a){let l=this.bb.__offset(this.bb_pos,6);return l?(a||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+o*4),this.bb):null}fieldsLength(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}customMetadata(o,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+o*4),this.bb):null}customMetadataLength(){let o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}static startSchema(o){o.startObject(3)}static addEndianness(o,a){o.addFieldInt16(0,a,e.apache.arrow.flatbuf.Endianness.Little)}static addFields(o,a){o.addFieldOffset(1,a,0)}static createFieldsVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addOffset(a[l]);return o.endVector()}static startFieldsVector(o,a){o.startVector(4,a,4)}static addCustomMetadata(o,a){o.addFieldOffset(2,a,0)}static createCustomMetadataVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addOffset(a[l]);return o.endVector()}static startCustomMetadataVector(o,a){o.startVector(4,a,4)}static endSchema(o){return o.endObject()}static finishSchemaBuffer(o,a){o.finish(a)}static createSchema(o,a,l,u){return i.startSchema(o),i.addEndianness(o,a),i.addFields(o,l),i.addCustomMetadata(o,u),i.endSchema(o)}}r.Schema=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));var In;(function(e){(function(t){(function(n){(function(r){r.Schema=J.apache.arrow.flatbuf.Schema})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.NONE=0]="NONE",i[i.Schema=1]="Schema",i[i.DictionaryBatch=2]="DictionaryBatch",i[i.RecordBatch=3]="RecordBatch",i[i.Tensor=4]="Tensor",i[i.SparseTensor=5]="SparseTensor"})(r.MessageHeader||(r.MessageHeader={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static createFieldNode(o,a,l){return o.prep(8,16),o.writeInt64(l),o.writeInt64(a),o.offset()}}r.FieldNode=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsRecordBatch(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}length(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):this.bb.createLong(0,0)}nodes(o,a){let l=this.bb.__offset(this.bb_pos,6);return l?(a||new e.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+l)+o*16,this.bb):null}nodesLength(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.__vector_len(this.bb_pos+o):0}buffers(o,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new J.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+l)+o*16,this.bb):null}buffersLength(){let o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}static startRecordBatch(o){o.startObject(3)}static addLength(o,a){o.addFieldInt64(0,a,o.createLong(0,0))}static addNodes(o,a){o.addFieldOffset(1,a,0)}static startNodesVector(o,a){o.startVector(16,a,8)}static addBuffers(o,a){o.addFieldOffset(2,a,0)}static startBuffersVector(o,a){o.startVector(16,a,8)}static endRecordBatch(o){return o.endObject()}static createRecordBatch(o,a,l,u){return i.startRecordBatch(o),i.addLength(o,a),i.addNodes(o,l),i.addBuffers(o,u),i.endRecordBatch(o)}}r.RecordBatch=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsDictionaryBatch(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}id(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt64(this.bb_pos+o):this.bb.createLong(0,0)}data(o){let a=this.bb.__offset(this.bb_pos,6);return a?(o||new e.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}isDelta(){let o=this.bb.__offset(this.bb_pos,8);return o?!!this.bb.readInt8(this.bb_pos+o):!1}static startDictionaryBatch(o){o.startObject(3)}static addId(o,a){o.addFieldInt64(0,a,o.createLong(0,0))}static addData(o,a){o.addFieldOffset(1,a,0)}static addIsDelta(o,a){o.addFieldInt8(2,+a,0)}static endDictionaryBatch(o){return o.endObject()}static createDictionaryBatch(o,a,l,u){return i.startDictionaryBatch(o),i.addId(o,a),i.addData(o,l),i.addIsDelta(o,u),i.endDictionaryBatch(o)}}r.DictionaryBatch=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsMessage(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}version(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):J.apache.arrow.flatbuf.MetadataVersion.V1}headerType(){let o=this.bb.__offset(this.bb_pos,6);return o?this.bb.readUint8(this.bb_pos+o):e.apache.arrow.flatbuf.MessageHeader.NONE}header(o){let a=this.bb.__offset(this.bb_pos,8);return a?this.bb.__union(o,this.bb_pos+a):null}bodyLength(){let o=this.bb.__offset(this.bb_pos,10);return o?this.bb.readInt64(this.bb_pos+o):this.bb.createLong(0,0)}customMetadata(o,a){let l=this.bb.__offset(this.bb_pos,12);return l?(a||new J.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+o*4),this.bb):null}customMetadataLength(){let o=this.bb.__offset(this.bb_pos,12);return o?this.bb.__vector_len(this.bb_pos+o):0}static startMessage(o){o.startObject(5)}static addVersion(o,a){o.addFieldInt16(0,a,J.apache.arrow.flatbuf.MetadataVersion.V1)}static addHeaderType(o,a){o.addFieldInt8(1,a,e.apache.arrow.flatbuf.MessageHeader.NONE)}static addHeader(o,a){o.addFieldOffset(2,a,0)}static addBodyLength(o,a){o.addFieldInt64(3,a,o.createLong(0,0))}static addCustomMetadata(o,a){o.addFieldOffset(4,a,0)}static createCustomMetadataVector(o,a){o.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)o.addOffset(a[l]);return o.endVector()}static startCustomMetadataVector(o,a){o.startVector(4,a,4)}static endMessage(o){return o.endObject()}static finishMessageBuffer(o,a){o.finish(a)}static createMessage(o,a,l,u,c,f){return i.startMessage(o),i.addVersion(o,a),i.addHeaderType(o,l),i.addHeader(o,u),i.addBodyLength(o,c),i.addCustomMetadata(o,f),i.endMessage(o)}}r.Message=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(In||(In={}));J.apache.arrow.flatbuf.Type;var Si=J.apache.arrow.flatbuf.DateUnit,lt=J.apache.arrow.flatbuf.TimeUnit,Ar=J.apache.arrow.flatbuf.Precision,Vi=J.apache.arrow.flatbuf.UnionMode,Oa=J.apache.arrow.flatbuf.IntervalUnit,yt=In.apache.arrow.flatbuf.MessageHeader,Kr=J.apache.arrow.flatbuf.MetadataVersion,P;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"})(P||(P={}));var we;(function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"})(we||(we={}));function f2(e,t,n,r){return(n&1<>r}function w5(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):Uf(pp(n,e,t,null,f2)).subarray(0,r)),i}return n}function Uf(e){let t=[],n=0,r=0,i=0;for(const o of e)o&&(i|=1<0)&&(t[n++]=i);let s=new Uint8Array(t.length+7&-8);return s.set(t),s}function*pp(e,t,n,r,i){let s=t%8,o=t>>3,a=0,l=n;for(;l>0;s=0){let u=e[o++];do yield i(r,a++,u,s);while(--l>0&&++s<8)}}function Qm(e,t,n){if(n-t<=0)return 0;if(n-t<8){let s=0;for(const o of pp(e,t,n-t,e,b5))s+=o;return s}const r=n>>3<<3,i=t+(t%8===0?0:8-t%8);return Qm(e,t,i)+Qm(e,r,n)+x5(e,i>>3,r-i>>3)}function x5(e,t,n){let r=0,i=t|0;const s=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=xh(s.getUint32(i)),i+=4;for(;o-i>=2;)r+=xh(s.getUint16(i)),i+=2;for(;o-i>=1;)r+=xh(s.getUint8(i)),i+=1;return r}function xh(e){let t=e|0;return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}class Ue{visitMany(t,...n){return t.map((r,i)=>this.visit(r,...n.map(s=>s[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,n=!0){return S5(this,t,n)}visitNull(t,...n){return null}visitBool(t,...n){return null}visitInt(t,...n){return null}visitFloat(t,...n){return null}visitUtf8(t,...n){return null}visitBinary(t,...n){return null}visitFixedSizeBinary(t,...n){return null}visitDate(t,...n){return null}visitTimestamp(t,...n){return null}visitTime(t,...n){return null}visitDecimal(t,...n){return null}visitList(t,...n){return null}visitStruct(t,...n){return null}visitUnion(t,...n){return null}visitDictionary(t,...n){return null}visitInterval(t,...n){return null}visitFixedSizeList(t,...n){return null}visitMap(t,...n){return null}}function S5(e,t,n=!0){let r=null,i=P.NONE;switch(t instanceof ue||t instanceof Ge?i=Sh(t.type):t instanceof je?i=Sh(t):typeof(i=t)!="number"&&(i=P[t]),i){case P.Null:r=e.visitNull;break;case P.Bool:r=e.visitBool;break;case P.Int:r=e.visitInt;break;case P.Int8:r=e.visitInt8||e.visitInt;break;case P.Int16:r=e.visitInt16||e.visitInt;break;case P.Int32:r=e.visitInt32||e.visitInt;break;case P.Int64:r=e.visitInt64||e.visitInt;break;case P.Uint8:r=e.visitUint8||e.visitInt;break;case P.Uint16:r=e.visitUint16||e.visitInt;break;case P.Uint32:r=e.visitUint32||e.visitInt;break;case P.Uint64:r=e.visitUint64||e.visitInt;break;case P.Float:r=e.visitFloat;break;case P.Float16:r=e.visitFloat16||e.visitFloat;break;case P.Float32:r=e.visitFloat32||e.visitFloat;break;case P.Float64:r=e.visitFloat64||e.visitFloat;break;case P.Utf8:r=e.visitUtf8;break;case P.Binary:r=e.visitBinary;break;case P.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case P.Date:r=e.visitDate;break;case P.DateDay:r=e.visitDateDay||e.visitDate;break;case P.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case P.Timestamp:r=e.visitTimestamp;break;case P.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case P.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case P.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case P.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case P.Time:r=e.visitTime;break;case P.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case P.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case P.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case P.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case P.Decimal:r=e.visitDecimal;break;case P.List:r=e.visitList;break;case P.Struct:r=e.visitStruct;break;case P.Union:r=e.visitUnion;break;case P.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case P.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case P.Dictionary:r=e.visitDictionary;break;case P.Interval:r=e.visitInterval;break;case P.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case P.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case P.FixedSizeList:r=e.visitFixedSizeList;break;case P.Map:r=e.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${P[i]}'`)}function Sh(e){switch(e.typeId){case P.Null:return P.Null;case P.Int:const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?P.Int8:P.Uint8;case 16:return n?P.Int16:P.Uint16;case 32:return n?P.Int32:P.Uint32;case 64:return n?P.Int64:P.Uint64}return P.Int;case P.Float:switch(e.precision){case Ar.HALF:return P.Float16;case Ar.SINGLE:return P.Float32;case Ar.DOUBLE:return P.Float64}return P.Float;case P.Binary:return P.Binary;case P.Utf8:return P.Utf8;case P.Bool:return P.Bool;case P.Decimal:return P.Decimal;case P.Time:switch(e.unit){case lt.SECOND:return P.TimeSecond;case lt.MILLISECOND:return P.TimeMillisecond;case lt.MICROSECOND:return P.TimeMicrosecond;case lt.NANOSECOND:return P.TimeNanosecond}return P.Time;case P.Timestamp:switch(e.unit){case lt.SECOND:return P.TimestampSecond;case lt.MILLISECOND:return P.TimestampMillisecond;case lt.MICROSECOND:return P.TimestampMicrosecond;case lt.NANOSECOND:return P.TimestampNanosecond}return P.Timestamp;case P.Date:switch(e.unit){case Si.DAY:return P.DateDay;case Si.MILLISECOND:return P.DateMillisecond}return P.Date;case P.Interval:switch(e.unit){case Oa.DAY_TIME:return P.IntervalDayTime;case Oa.YEAR_MONTH:return P.IntervalYearMonth}return P.Interval;case P.Map:return P.Map;case P.List:return P.List;case P.Struct:return P.Struct;case P.Union:switch(e.mode){case Vi.Dense:return P.DenseUnion;case Vi.Sparse:return P.SparseUnion}return P.Union;case P.FixedSizeBinary:return P.FixedSizeBinary;case P.FixedSizeList:return P.FixedSizeList;case P.Dictionary:return P.Dictionary}throw new Error(`Unrecognized type '${P[e.typeId]}'`)}Ue.prototype.visitInt8=null;Ue.prototype.visitInt16=null;Ue.prototype.visitInt32=null;Ue.prototype.visitInt64=null;Ue.prototype.visitUint8=null;Ue.prototype.visitUint16=null;Ue.prototype.visitUint32=null;Ue.prototype.visitUint64=null;Ue.prototype.visitFloat16=null;Ue.prototype.visitFloat32=null;Ue.prototype.visitFloat64=null;Ue.prototype.visitDateDay=null;Ue.prototype.visitDateMillisecond=null;Ue.prototype.visitTimestampSecond=null;Ue.prototype.visitTimestampMillisecond=null;Ue.prototype.visitTimestampMicrosecond=null;Ue.prototype.visitTimestampNanosecond=null;Ue.prototype.visitTimeSecond=null;Ue.prototype.visitTimeMillisecond=null;Ue.prototype.visitTimeMicrosecond=null;Ue.prototype.visitTimeNanosecond=null;Ue.prototype.visitDenseUnion=null;Ue.prototype.visitSparseUnion=null;Ue.prototype.visitIntervalDayTime=null;Ue.prototype.visitIntervalYearMonth=null;class Oe extends Ue{compareSchemas(t,n){return t===n||n instanceof t.constructor&&fr.compareFields(t.fields,n.fields)}compareFields(t,n){return t===n||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every((r,i)=>fr.compareField(r,n[i]))}compareField(t,n){return t===n||n instanceof t.constructor&&t.name===n.name&&t.nullable===n.nullable&&fr.visit(t.type,n.type)}}function tr(e,t){return t instanceof e.constructor}function Du(e,t){return e===t||tr(e,t)}function Gi(e,t){return e===t||tr(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function hp(e,t){return e===t||tr(e,t)&&e.precision===t.precision}function _5(e,t){return e===t||tr(e,t)&&e.byteWidth===t.byteWidth}function tg(e,t){return e===t||tr(e,t)&&e.unit===t.unit}function Pu(e,t){return e===t||tr(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function ju(e,t){return e===t||tr(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function E5(e,t){return e===t||tr(e,t)&&e.children.length===t.children.length&&fr.compareFields(e.children,t.children)}function I5(e,t){return e===t||tr(e,t)&&e.children.length===t.children.length&&fr.compareFields(e.children,t.children)}function ng(e,t){return e===t||tr(e,t)&&e.mode===t.mode&&e.typeIds.every((n,r)=>n===t.typeIds[r])&&fr.compareFields(e.children,t.children)}function T5(e,t){return e===t||tr(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&fr.visit(e.indices,t.indices)&&fr.visit(e.dictionary,t.dictionary)}function rg(e,t){return e===t||tr(e,t)&&e.unit===t.unit}function C5(e,t){return e===t||tr(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&fr.compareFields(e.children,t.children)}function O5(e,t){return e===t||tr(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&fr.compareFields(e.children,t.children)}Oe.prototype.visitNull=Du;Oe.prototype.visitBool=Du;Oe.prototype.visitInt=Gi;Oe.prototype.visitInt8=Gi;Oe.prototype.visitInt16=Gi;Oe.prototype.visitInt32=Gi;Oe.prototype.visitInt64=Gi;Oe.prototype.visitUint8=Gi;Oe.prototype.visitUint16=Gi;Oe.prototype.visitUint32=Gi;Oe.prototype.visitUint64=Gi;Oe.prototype.visitFloat=hp;Oe.prototype.visitFloat16=hp;Oe.prototype.visitFloat32=hp;Oe.prototype.visitFloat64=hp;Oe.prototype.visitUtf8=Du;Oe.prototype.visitBinary=Du;Oe.prototype.visitFixedSizeBinary=_5;Oe.prototype.visitDate=tg;Oe.prototype.visitDateDay=tg;Oe.prototype.visitDateMillisecond=tg;Oe.prototype.visitTimestamp=Pu;Oe.prototype.visitTimestampSecond=Pu;Oe.prototype.visitTimestampMillisecond=Pu;Oe.prototype.visitTimestampMicrosecond=Pu;Oe.prototype.visitTimestampNanosecond=Pu;Oe.prototype.visitTime=ju;Oe.prototype.visitTimeSecond=ju;Oe.prototype.visitTimeMillisecond=ju;Oe.prototype.visitTimeMicrosecond=ju;Oe.prototype.visitTimeNanosecond=ju;Oe.prototype.visitDecimal=Du;Oe.prototype.visitList=E5;Oe.prototype.visitStruct=I5;Oe.prototype.visitUnion=ng;Oe.prototype.visitDenseUnion=ng;Oe.prototype.visitSparseUnion=ng;Oe.prototype.visitDictionary=T5;Oe.prototype.visitInterval=rg;Oe.prototype.visitIntervalDayTime=rg;Oe.prototype.visitIntervalYearMonth=rg;Oe.prototype.visitFixedSizeList=C5;Oe.prototype.visitMap=O5;const fr=new Oe;class je{static isNull(t){return t&&t.typeId===P.Null}static isInt(t){return t&&t.typeId===P.Int}static isFloat(t){return t&&t.typeId===P.Float}static isBinary(t){return t&&t.typeId===P.Binary}static isUtf8(t){return t&&t.typeId===P.Utf8}static isBool(t){return t&&t.typeId===P.Bool}static isDecimal(t){return t&&t.typeId===P.Decimal}static isDate(t){return t&&t.typeId===P.Date}static isTime(t){return t&&t.typeId===P.Time}static isTimestamp(t){return t&&t.typeId===P.Timestamp}static isInterval(t){return t&&t.typeId===P.Interval}static isList(t){return t&&t.typeId===P.List}static isStruct(t){return t&&t.typeId===P.Struct}static isUnion(t){return t&&t.typeId===P.Union}static isFixedSizeBinary(t){return t&&t.typeId===P.FixedSizeBinary}static isFixedSizeList(t){return t&&t.typeId===P.FixedSizeList}static isMap(t){return t&&t.typeId===P.Map}static isDictionary(t){return t&&t.typeId===P.Dictionary}get typeId(){return P.NONE}compareTo(t){return fr.visit(this,t)}}je[Symbol.toStringTag]=(e=>(e.children=null,e.ArrayType=Array,e[Symbol.toStringTag]="DataType"))(je.prototype);let ka=class extends je{toString(){return"Null"}get typeId(){return P.Null}};ka[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(ka.prototype);class er extends je{constructor(t,n){super(),this.isSigned=t,this.bitWidth=n}get typeId(){return P.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?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}er[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(er.prototype);class ig extends er{constructor(){super(!0,8)}}class og extends er{constructor(){super(!0,16)}}class as extends er{constructor(){super(!0,32)}}let Aa=class extends er{constructor(){super(!0,64)}};class sg extends er{constructor(){super(!1,8)}}class ag extends er{constructor(){super(!1,16)}}class lg extends er{constructor(){super(!1,32)}}let Ba=class extends er{constructor(){super(!1,64)}};Object.defineProperty(ig.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(og.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(as.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Aa.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(sg.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(ag.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(lg.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Ba.prototype,"ArrayType",{value:Uint32Array});class ls extends je{constructor(t){super(),this.precision=t}get typeId(){return P.Float}get ArrayType(){switch(this.precision){case Ar.HALF:return Uint16Array;case Ar.SINGLE:return Float32Array;case Ar.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}ls[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(ls.prototype);class mp extends ls{constructor(){super(Ar.HALF)}}class ug extends ls{constructor(){super(Ar.SINGLE)}}class cg extends ls{constructor(){super(Ar.DOUBLE)}}Object.defineProperty(mp.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(ug.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(cg.prototype,"ArrayType",{value:Float64Array});let lu=class extends je{constructor(){super()}get typeId(){return P.Binary}toString(){return"Binary"}};lu[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(lu.prototype);let Ra=class extends je{constructor(){super()}get typeId(){return P.Utf8}toString(){return"Utf8"}};Ra[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(Ra.prototype);let uu=class extends je{constructor(){super()}get typeId(){return P.Bool}toString(){return"Bool"}};uu[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(uu.prototype);let Vf=class extends je{constructor(t,n){super(),this.scale=t,this.precision=n}get typeId(){return P.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};Vf[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Vf.prototype);class Ma extends je{constructor(t){super(),this.unit=t}get typeId(){return P.Date}toString(){return`Date${(this.unit+1)*32}<${Si[this.unit]}>`}}Ma[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(Ma.prototype);class k5 extends Ma{constructor(){super(Si.DAY)}}class v1 extends Ma{constructor(){super(Si.MILLISECOND)}}class Wf extends je{constructor(t,n){super(),this.unit=t,this.bitWidth=n}get typeId(){return P.Time}toString(){return`Time${this.bitWidth}<${lt[this.unit]}>`}}Wf[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Time"))(Wf.prototype);class Hf extends je{constructor(t,n){super(),this.unit=t,this.timezone=n}get typeId(){return P.Timestamp}toString(){return`Timestamp<${lt[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}Hf[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(Hf.prototype);class Kf extends je{constructor(t){super(),this.unit=t}get typeId(){return P.Interval}toString(){return`Interval<${Oa[this.unit]}>`}}Kf[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(Kf.prototype);let Fa=class extends je{constructor(t){super(),this.children=[t]}get typeId(){return P.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}};Fa[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(Fa.prototype);let ti=class extends je{constructor(t){super(),this.children=t}get typeId(){return P.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};ti[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(ti.prototype);class cu extends je{constructor(t,n,r){super(),this.mode=t,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}get typeId(){return P.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}cu[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(cu.prototype);let Yf=class extends je{constructor(t){super(),this.byteWidth=t}get typeId(){return P.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Yf[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(Yf.prototype);let fu=class extends je{constructor(t,n){super(),this.listSize=t,this.children=[n]}get typeId(){return P.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}>`}};fu[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(fu.prototype);let du=class extends je{constructor(t,n=!1){super(),this.children=[t],this.keysSorted=n}get typeId(){return P.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};du[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(du.prototype);const A5=(e=>()=>++e)(-1);class Eo extends je{constructor(t,n,r,i){super(),this.indices=n,this.dictionary=t,this.isOrdered=i||!1,this.id=r==null?A5():typeof r=="number"?r:r.low}get typeId(){return P.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}>`}}Eo[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(Eo.prototype);function d2(e){let t=e;switch(e.typeId){case P.Decimal:return 4;case P.Timestamp:return 2;case P.Date:return 1+t.unit;case P.Interval:return 1+t.unit;case P.Int:return 1+ +(t.bitWidth>32);case P.Time:return 1+ +(t.bitWidth>32);case P.FixedSizeList:return t.listSize;case P.FixedSizeBinary:return t.byteWidth;default:return 1}}const B5=-1;class ue{constructor(t,n,r,i,s,o,a){this.type=t,this.dictionary=a,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),this.childData=(o||[]).map(u=>u instanceof ue?u:u.data);let l;s instanceof ue?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=d2(t),s&&((l=s[0])&&(this.valueOffsets=l),(l=s[1])&&(this.values=l),(l=s[2])&&(this.nullBitmap=l),(l=s[3])&&(this.typeIds=l)))}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,{valueOffsets:n,values:r,nullBitmap:i,typeIds:s}=this;return n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.childData.reduce((o,a)=>o+a.byteLength,t)}get nullCount(){let t=this._nullCount,n;return t<=B5&&(n=this.nullBitmap)&&(this._nullCount=t=this.length-Qm(n,this.offset,this.offset+this.length)),t}clone(t,n=this.offset,r=this.length,i=this._nullCount,s=this,o=this.childData){return new ue(t,n,r,i,s,o,this.dictionary)}slice(t,n){const{stride:r,typeId:i,childData:s}=this,o=+(this._nullCount===0)-1,a=i===16?r:1,l=this._sliceBuffers(t,n,r,i);return this.clone(this.type,this.offset+t,n,o,l,!s.length||this.valueOffsets?s:this._sliceChildren(s,a*t,a*n))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===P.Null)return this.clone(this.type,0,t,0);const{length:n,nullCount:r}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<0&&i.set(eg(this.offset,n,this.nullBitmap),0);const s=this.buffers;return s[we.VALIDITY]=i,this.clone(this.type,0,t,r+(t-n),s)}_sliceBuffers(t,n,r,i){let s,{buffers:o}=this;return(s=o[we.TYPE])&&(o[we.TYPE]=s.subarray(t,t+n)),(s=o[we.OFFSET])&&(o[we.OFFSET]=s.subarray(t,t+n+1))||(s=o[we.DATA])&&(o[we.DATA]=i===6?s:s.subarray(r*t,r*(t+n))),o}_sliceChildren(t,n,r){return t.map(i=>i.slice(n,r))}static new(t,n,r,i,s,o,a){switch(s instanceof ue?s=s.buffers:s||(s=[]),t.typeId){case P.Null:return ue.Null(t,n,r);case P.Int:return ue.Int(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Dictionary:return ue.Dictionary(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[],a);case P.Float:return ue.Float(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Bool:return ue.Bool(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Decimal:return ue.Decimal(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Date:return ue.Date(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Time:return ue.Time(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Timestamp:return ue.Timestamp(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Interval:return ue.Interval(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.FixedSizeBinary:return ue.FixedSizeBinary(t,n,r,i||0,s[we.VALIDITY],s[we.DATA]||[]);case P.Binary:return ue.Binary(t,n,r,i||0,s[we.VALIDITY],s[we.OFFSET]||[],s[we.DATA]||[]);case P.Utf8:return ue.Utf8(t,n,r,i||0,s[we.VALIDITY],s[we.OFFSET]||[],s[we.DATA]||[]);case P.List:return ue.List(t,n,r,i||0,s[we.VALIDITY],s[we.OFFSET]||[],(o||[])[0]);case P.FixedSizeList:return ue.FixedSizeList(t,n,r,i||0,s[we.VALIDITY],(o||[])[0]);case P.Struct:return ue.Struct(t,n,r,i||0,s[we.VALIDITY],o||[]);case P.Map:return ue.Map(t,n,r,i||0,s[we.VALIDITY],s[we.OFFSET]||[],(o||[])[0]);case P.Union:return ue.Union(t,n,r,i||0,s[we.VALIDITY],s[we.TYPE]||[],s[we.OFFSET]||o,o)}throw new Error(`Unrecognized typeId ${t.typeId}`)}static Null(t,n,r){return new ue(t,n,r,0)}static Int(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Dictionary(t,n,r,i,s,o,a){return new ue(t,n,r,i,[void 0,ot(t.indices.ArrayType,o),Ye(s)],[],a)}static Float(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Bool(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Decimal(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Date(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Time(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Timestamp(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Interval(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static FixedSizeBinary(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,o),Ye(s)])}static Binary(t,n,r,i,s,o,a){return new ue(t,n,r,i,[dl(o),Ye(a),Ye(s)])}static Utf8(t,n,r,i,s,o,a){return new ue(t,n,r,i,[dl(o),Ye(a),Ye(s)])}static List(t,n,r,i,s,o,a){return new ue(t,n,r,i,[dl(o),void 0,Ye(s)],[a])}static FixedSizeList(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,void 0,Ye(s)],[o])}static Struct(t,n,r,i,s,o){return new ue(t,n,r,i,[void 0,void 0,Ye(s)],o)}static Map(t,n,r,i,s,o,a){return new ue(t,n,r,i,[dl(o),void 0,Ye(s)],[a])}static Union(t,n,r,i,s,o,a,l){const u=[void 0,void 0,Ye(s),ot(t.ArrayType,o)];return t.mode===Vi.Sparse?new ue(t,n,r,i,u,a):(u[we.OFFSET]=dl(a),new ue(t,n,r,i,u,l))}}ue.prototype.childData=Object.freeze([]);const R5=void 0;function Fl(e){if(e===null)return"null";if(e===R5)return"undefined";switch(typeof e){case"number":return`${e}`;case"bigint":return`${e}`;case"string":return`"${e}"`}return typeof e[Symbol.toPrimitive]=="function"?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e)}function M5(e){if(!e||e.length<=0)return function(i){return!0};let t="",n=e.filter(r=>r===r);return n.length>0&&(t=` - switch (x) {${n.map(r=>` - case ${F5(r)}:`).join("")} - return false; - }`),e.length!==n.length&&(t=`if (x !== x) return false; -${t}`),new Function("x",`${t} -return true;`)}function F5(e){return typeof e!="bigint"?Fl(e):dp?`${Fl(e)}n`:`"${Fl(e)}"`}const _h=(e,t)=>(e*t+63&-64||64)/t,D5=(e,t=0)=>e.length>=t?e.subarray(0,t):zf(new e.constructor(t),e,0);class Lu{constructor(t,n=1){this.buffer=t,this.stride=n,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=t.length/n|0)}get byteLength(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,n){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;const n=this.stride,r=this.length*n,i=this.buffer.length;r>=i&&this._resize(i===0?_h(r*1,this.BYTES_PER_ELEMENT):_h(r*2,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=_h(t*this.stride,this.BYTES_PER_ELEMENT);const n=D5(this.buffer,t);return this.clear(),n}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=zf(new this.ArrayType(t),this.buffer)}}Lu.prototype.offset=0;class Nu extends Lu{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,n){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=n,this}}class p2 extends Nu{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,n){const{buffer:r}=this.reserve(t-this.length+1),i=t>>3,s=t%8,o=r[i]>>s&1;return n?o===0&&(r[i]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}}class m2 extends Lu{get ArrayType64(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?Ka:Fu)}set(t,n){switch(this.reserve(t-this.length+1),typeof n){case"bigint":this.buffer64[t]=n;break;case"number":this.buffer[t*this.stride]=n;break;default:this.buffer.set(n,t*this.stride)}return this}_resize(t){const n=super._resize(t),r=n.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return dp&&(this.buffer64=new this.ArrayType64(n.buffer,n.byteOffset,r)),n}}let $t=class{constructor({type:t,nullValues:n}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=n,this.stride=d2(t),this._nulls=new p2,n&&n.length>0&&(this._isValid=M5(n))}static new(t){}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}static throughIterable(t){return P5(t)}static throughAsyncIterable(t){return j5(t)}toVector(){return Ge.new(this.flush())}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),this._typeIds&&(t+=this._typeIds.byteLength),this.children.reduce((n,r)=>n+r.byteLength,t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((n,r)=>n+r.reservedByteLength,t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,n){return this.setValid(t,this.isValid(n))&&this.setValue(t,n),this}setValue(t,n){this._setValue(this,t,n)}setValid(t,n){return this.length=this._nulls.set(t,+n).length,n}addChild(t,n=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){const t=[],n=this._values,r=this._offsets,i=this._typeIds,{length:s,nullCount:o}=this;i?(t[we.TYPE]=i.flush(s),r&&(t[we.OFFSET]=r.flush(s))):r?(n&&(t[we.DATA]=n.flush(r.last())),t[we.OFFSET]=r.flush(s)):n&&(t[we.DATA]=n.flush(s)),o>0&&(t[we.VALIDITY]=this._nulls.flush(s));const a=ue.new(this.type,0,s,o,t,this.children.map(l=>l.flush()));return this.clear(),a}finish(){return this.finished=!0,this.children.forEach(t=>t.finish()),this}clear(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach(t=>t.clear()),this}};$t.prototype.length=1;$t.prototype.stride=1;$t.prototype.children=null;$t.prototype.finished=!1;$t.prototype.nullValues=null;$t.prototype._isValid=()=>!0;class Bo extends $t{constructor(t){super(t),this._values=new Nu(new this.ArrayType(0),this.stride)}setValue(t,n){const r=this._values;return r.reserve(t-r.length+1),super.setValue(t,n)}}class yp extends $t{constructor(t){super(t),this._pendingLength=0,this._offsets=new h2}setValue(t,n){const r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=n.length,r.set(t,n)}setValid(t,n){return super.setValid(t,n)?!0:((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){const t=this._pending,n=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,n),this}}function P5(e){const{["queueingStrategy"]:t="count"}=e,{["highWaterMark"]:n=t!=="bytes"?1e3:2**14}=e,r=t!=="bytes"?"length":"byteLength";return function*(i){let s=0,o=$t.new(e);for(const a of i)o.append(a)[r]>=n&&++s&&(yield o.toVector());(o.finish().length>0||s===0)&&(yield o.toVector())}}function j5(e){const{["queueingStrategy"]:t="count"}=e,{["highWaterMark"]:n=t!=="bytes"?1e3:2**14}=e,r=t!=="bytes"?"length":"byteLength";return async function*(i){let s=0,o=$t.new(e);for await(const a of i)o.append(a)[r]>=n&&++s&&(yield o.toVector());(o.finish().length>0||s===0)&&(yield o.toVector())}}class L5 extends $t{constructor(t){super(t),this._values=new p2}setValue(t,n){this._values.set(t,+n)}}class N5 extends $t{setValue(t,n){}setValid(t,n){return this.length=Math.max(t+1,this.length),n}}class fg extends Bo{}class $5 extends fg{}class z5 extends fg{}class U5 extends Bo{}class V5 extends $t{constructor({type:t,nullValues:n,dictionaryHashFunction:r}){super({type:new Eo(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=$t.new({type:this.type.indices,nullValues:n}),this.dictionary=$t.new({type:this.type.dictionary,nullValues:null}),typeof r=="function"&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,n){const r=this.indices;return n=r.setValid(t,n),this.length=r.length,n}setValue(t,n){let r=this._keysToIndices,i=this.valueToKey(n),s=r[i];return s===void 0&&(r[i]=s=this._dictionaryOffset+this.dictionary.append(n).length-1),this.indices.setValue(t,s)}flush(){const t=this.type,n=this._dictionary,r=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=n?n.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return typeof t=="string"?t:`${t}`}}class W5 extends Bo{}const y2=new Float64Array(1),ks=new Uint32Array(y2.buffer);function H5(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function g2(e){if(e!==e)return 32256;y2[0]=e;let t=(ks[1]&2147483648)>>16&65535,n=ks[1]&2146435072,r=0;return n>=1089470464?ks[0]>0?n=31744:(n=(n&2080374784)>>16,r=(ks[1]&1048575)>>10):n<=1056964608?(r=1048576+(ks[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(ks[1]&1048575)+512>>10),t|n|r&65535}class gp extends Bo{}class K5 extends gp{setValue(t,n){this._values.set(t,g2(n))}}class Y5 extends gp{setValue(t,n){this._values.set(t,n)}}class q5 extends gp{setValue(t,n){this._values.set(t,n)}}const G5=Symbol.for("isArrowBigNum");function ri(e,...t){return t.length===0?Object.setPrototypeOf(ot(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}ri.prototype[G5]=!0;ri.prototype.toJSON=function(){return`"${Jo(this)}"`};ri.prototype.valueOf=function(){return v2(this)};ri.prototype.toString=function(){return Jo(this)};ri.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return v2(this);case"string":return Jo(this);case"default":return qf(this)}return Jo(this)};function oa(...e){return ri.apply(this,e)}function sa(...e){return ri.apply(this,e)}function pu(...e){return ri.apply(this,e)}Object.setPrototypeOf(oa.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(sa.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(pu.prototype,Object.create(Uint32Array.prototype));Object.assign(oa.prototype,ri.prototype,{constructor:oa,signed:!0,TypedArray:Int32Array,BigIntArray:Ka});Object.assign(sa.prototype,ri.prototype,{constructor:sa,signed:!1,TypedArray:Uint32Array,BigIntArray:Fu});Object.assign(pu.prototype,ri.prototype,{constructor:pu,signed:!0,TypedArray:Uint32Array,BigIntArray:Fu});function v2(e){let{buffer:t,byteOffset:n,length:r,signed:i}=e,s=new Int32Array(t,n,r),o=0,a=0,l=s.length,u,c;for(;a>>0),o+=(c>>>0)+u*a**32;return o}let Jo,qf;dp?(qf=e=>e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:Eh(e),Jo=e=>e.byteLength===8?`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`:Eh(e)):(Jo=Eh,qf=Jo);function Eh(e){let t="",n=new Uint32Array(2),r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),s=-1,o=r.length-1;do{for(n[0]=r[s=0];st=>(ArrayBuffer.isView(t)&&(e.buffer=t.buffer,e.byteOffset=t.byteOffset,e.byteLength=t.byteLength,t=qf(e),e.buffer=null),t))({BigIntArray:Ka});class $u extends Bo{}class iD extends $u{}class oD extends $u{}class sD extends $u{}class aD extends $u{}class zu extends Bo{}class lD extends zu{}class uD extends zu{}class cD extends zu{}class fD extends zu{}class dg extends Bo{}class dD extends dg{}class pD extends dg{}class b2 extends yp{constructor(t){super(t),this._values=new Lu(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,n){return super.setValue(t,Ye(n))}_flushPending(t,n){const r=this._offsets,i=this._values.reserve(n).buffer;let s=0,o=0,a=0,l;for([s,l]of t)l===void 0?r.set(s,0):(o=l.length,i.set(l,a),r.set(s,o),a+=o)}}class pg extends yp{constructor(t){super(t),this._values=new Lu(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,n){return super.setValue(t,fp(n))}_flushPending(t,n){}}pg.prototype._flushPending=b2.prototype._flushPending;class w2{get length(){return this._values.length}get(t){return this._values[t]}clear(){return this._values=null,this}bind(t){return t instanceof Ge?t:(this._values=t,this)}}const xn=Symbol.for("parent"),aa=Symbol.for("rowIndex"),or=Symbol.for("keyToIdx"),rr=Symbol.for("idxToVal"),Jm=Symbol.for("nodejs.util.inspect.custom");class Pi{constructor(t,n){this[xn]=t,this.size=n}entries(){return this[Symbol.iterator]()}has(t){return this.get(t)!==void 0}get(t){let n;if(t!=null){const r=this[or]||(this[or]=new Map);let i=r.get(t);if(i!==void 0){const s=this[rr]||(this[rr]=new Array(this.size));(n=s[i])!==void 0||(s[i]=n=this.getValue(i))}else if((i=this.getIndex(t))>-1){r.set(t,i);const s=this[rr]||(this[rr]=new Array(this.size));(n=s[i])!==void 0||(s[i]=n=this.getValue(i))}}return n}set(t,n){if(t!=null){const r=this[or]||(this[or]=new Map);let i=r.get(t);if(i===void 0&&r.set(t,i=this.getIndex(t)),i>-1){const s=this[rr]||(this[rr]=new Array(this.size));s[i]=this.setValue(i,n)}}return this}clear(){throw new Error(`Clearing ${this[Symbol.toStringTag]} not supported.`)}delete(t){throw new Error(`Deleting ${this[Symbol.toStringTag]} values not supported.`)}*[Symbol.iterator](){const t=this.keys(),n=this.values(),r=this[or]||(this[or]=new Map),i=this[rr]||(this[rr]=new Array(this.size));for(let s,o,a=0,l,u;!((l=t.next()).done||(u=n.next()).done);++a)s=l.value,o=u.value,i[a]=o,r.has(s)||r.set(s,a),yield[s,o]}forEach(t,n){const r=this.keys(),i=this.values(),s=n===void 0?t:(l,u,c)=>t.call(n,l,u,c),o=this[or]||(this[or]=new Map),a=this[rr]||(this[rr]=new Array(this.size));for(let l,u,c=0,f,p;!((f=r.next()).done||(p=i.next()).done);++c)l=f.value,u=p.value,a[c]=u,o.has(l)||o.set(l,c),s(u,l,this)}toArray(){return[...this.values()]}toJSON(){const t={};return this.forEach((n,r)=>t[r]=n),t}inspect(){return this.toString()}[Jm](){return this.toString()}toString(){const t=[];return this.forEach((n,r)=>{r=Fl(r),n=Fl(n),t.push(`${r}: ${n}`)}),`{ ${t.join(", ")} }`}}Pi[Symbol.toStringTag]=(e=>(Object.defineProperties(e,{size:{writable:!0,enumerable:!1,configurable:!1,value:0},[xn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[aa]:{writable:!0,enumerable:!1,configurable:!1,value:-1}}),e[Symbol.toStringTag]="Row"))(Pi.prototype);class x2 extends Pi{constructor(t){return super(t,t.length),hD(this)}keys(){return this[xn].getChildAt(0)[Symbol.iterator]()}values(){return this[xn].getChildAt(1)[Symbol.iterator]()}getKey(t){return this[xn].getChildAt(0).get(t)}getIndex(t){return this[xn].getChildAt(0).indexOf(t)}getValue(t){return this[xn].getChildAt(1).get(t)}setValue(t,n){this[xn].getChildAt(1).set(t,n)}}class S2 extends Pi{constructor(t){return super(t,t.type.children.length),_2(this)}*keys(){for(const t of this[xn].type.children)yield t.name}*values(){for(const t of this[xn].type.children)yield this[t.name]}getKey(t){return this[xn].type.children[t].name}getIndex(t){return this[xn].type.children.findIndex(n=>n.name===t)}getValue(t){return this[xn].getChildAt(t).get(this[aa])}setValue(t,n){return this[xn].getChildAt(t).set(this[aa],n)}}Object.setPrototypeOf(Pi.prototype,Map.prototype);const _2=(()=>{const e={enumerable:!0,configurable:!1,get:null,set:null};return t=>{let n=-1,r=t[or]||(t[or]=new Map);const i=o=>function(){return this.get(o)},s=o=>function(a){return this.set(o,a)};for(const o of t.keys())r.set(o,++n),e.get=i(o),e.set=s(o),t.hasOwnProperty(o)||(e.enumerable=!0,Object.defineProperty(t,o,e)),t.hasOwnProperty(n)||(e.enumerable=!1,Object.defineProperty(t,n,e));return e.get=e.set=null,t}})(),hD=(()=>{if(typeof Proxy>"u")return _2;const e=Pi.prototype.has,t=Pi.prototype.get,n=Pi.prototype.set,r=Pi.prototype.getKey,i={isExtensible(){return!1},deleteProperty(){return!1},preventExtensions(){return!0},ownKeys(s){return[...s.keys()].map(o=>`${o}`)},has(s,o){switch(o){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case xn:case aa:case rr:case or:case Jm:return!0}return typeof o=="number"&&!s.has(o)&&(o=s.getKey(o)),s.has(o)},get(s,o,a){switch(o){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case xn:case aa:case rr:case or:case Jm:return Reflect.get(s,o,a)}return typeof o=="number"&&!e.call(a,o)&&(o=r.call(a,o)),t.call(a,o)},set(s,o,a,l){switch(o){case xn:case aa:case rr:case or:return Reflect.set(s,o,a,l);case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:return!1}return typeof o=="number"&&!e.call(l,o)&&(o=r.call(l,o)),e.call(l,o)?!!n.call(l,o,a):!1}};return s=>new Proxy(s,i)})();let b1;function E2(e,t,n,r){let{length:i=0}=e,s=typeof t!="number"?0:t,o=typeof n!="number"?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(e,s,o):[s,o]}const mD=dp?n5(0):0,w1=e=>e!==e;function qa(e){let t=typeof e;if(t!=="object"||e===null)return w1(e)?w1:t!=="bigint"?n=>n===e:n=>mD+n===e;if(e instanceof Date){const n=e.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(e)?n=>n?p5(e,n):!1:e instanceof Map?gD(e):Array.isArray(e)?yD(e):e instanceof Ge?vD(e):bD(e)}function yD(e){const t=[];for(let n=-1,r=e.length;++nn[++t]=qa(r)),vp(n)}function vD(e){const t=[];for(let n=-1,r=e.length;++n!1;const n=[];for(let r=-1,i=t.length;++r{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return wD(e,n);case Map:case x2:case S2:return x1(e,n,n.keys());case Object:case void 0:return x1(e,n,t||Object.keys(n))}return n instanceof Ge?xD(e,n):!1}}function wD(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r`}get data(){return this._chunks[0]?this._chunks[0].data:null}get ArrayType(){return this._type.ArrayType}get numChildren(){return this._numChildren}get stride(){return this._chunks[0]?this._chunks[0].stride:1}get byteLength(){return this._chunks.reduce((t,n)=>t+n.byteLength,0)}get nullCount(){let t=this._nullCount;return t<0&&(this._nullCount=t=this._chunks.reduce((n,{nullCount:r})=>n+r,0)),t}get indices(){if(je.isDictionary(this._type)){if(!this._indices){const t=this._chunks;this._indices=t.length===1?t[0].indices:Sn.concat(...t.map(n=>n.indices))}return this._indices}return null}get dictionary(){return je.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}*[Symbol.iterator](){for(const t of this._chunks)yield*t}clone(t=this._chunks){return new Sn(this._type,t)}concat(...t){return this.clone(Sn.flatten(this,...t))}slice(t,n){return E2(this,t,n,this._sliceInternal)}getChildAt(t){if(t<0||t>=this._numChildren)return null;let n=this._children||(this._children=[]),r,i,s;return(r=n[t])?r:(i=(this._type.children||[])[t])&&(s=this._chunks.map(o=>o.getChildAt(t)).filter(o=>o!=null),s.length>0)?n[t]=new Sn(i.type,s):null}search(t,n){let r=t,i=this._chunkOffsets,s=i.length-1;if(r<0||r>=i[s])return null;if(s<=1)return n?n(this,0,r):[0,r];let o=0,a=0,l=0;do{if(o+1===s)return n?n(this,o,r-a):[o,r-a];l=o+(s-o)/2|0,r>=i[l]?o=l:s=l}while(r=(a=i[o]));return null}isValid(t){return!!this.search(t,this.isValidInternal)}get(t){return this.search(t,this.getInternal)}set(t,n){this.search(t,({chunks:r},i,s)=>r[i].set(s,n))}indexOf(t,n){return n&&typeof n=="number"?this.search(n,(r,i,s)=>this.indexOfInternal(r,i,s,t)):this.indexOfInternal(this,0,Math.max(0,n||0),t)}toArray(){const{chunks:t}=this,n=t.length;let r=this._type.ArrayType;if(n<=0)return new r(0);if(n<=1)return t[0].toArray();let i=0,s=new Array(n);for(let l=-1;++l=r)break;if(n>=f+c)continue;if(f>=n&&f+c<=r){i.push(u);continue}const p=Math.max(0,n-f),h=Math.min(r-f,c);i.push(u.slice(p,h))}return t.clone(i)}}function SD(e){let t=new Uint32Array((e||[]).length+1),n=t[0]=0,r=t.length;for(let i=0;++i(t.set(e,n),n+e.length),ED=(e,t,n)=>{let r=n;for(let i=-1,s=e.length;++is>0)&&(t=t.clone({nullable:!0}));return new qr(t,i)}get field(){return this._field}get name(){return this._field.name}get nullable(){return this._field.nullable}get metadata(){return this._field.metadata}clone(t=this._chunks){return new qr(this._field,t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let n=this._children||(this._children=[]),r,i,s;return(r=n[t])?r:(i=(this.type.children||[])[t])&&(s=this._chunks.map(o=>o.getChildAt(t)).filter(o=>o!=null),s.length>0)?n[t]=new qr(i,s):null}}class S1 extends qr{constructor(t,n,r){super(t,[n],r),this._chunk=n}search(t,n){return n?n(this,0,t):[0,t]}isValid(t){return this._chunk.isValid(t)}get(t){return this._chunk.get(t)}set(t,n){this._chunk.set(t,n)}indexOf(t,n){return this._chunk.indexOf(t,n)}}const Yo=Array.isArray,I2=(e,t)=>hg(e,t,[],0),ID=e=>{const[t,n]=mg(e,[[],[]]);return n.map((r,i)=>r instanceof qr?qr.new(r.field.clone(t[i]),r):r instanceof Ge?qr.new(t[i],r):qr.new(t[i],[]))},T2=e=>mg(e,[[],[]]),TD=(e,t)=>Zm(e,t,[],0),CD=(e,t)=>C2(e,t,[],0);function hg(e,t,n,r){let i,s=r,o=-1,a=t.length;for(;++oi.getChildAt(u)),n,s).length:i instanceof Ge&&(n[s++]=i);return n}const OD=(e,[t,n],r)=>(e[0][r]=t,e[1][r]=n,e);function mg(e,t){let n,r;switch(r=e.length){case 0:return t;case 1:if(n=t[0],!e[0])return t;if(Yo(e[0]))return mg(e[0],t);e[0]instanceof ue||e[0]instanceof Ge||e[0]instanceof je||([n,e]=Object.entries(e[0]).reduce(OD,t));break;default:Yo(n=e[r-1])?e=Yo(e[0])?e[0]:e.slice(0,r-1):(e=Yo(e[0])?e[0]:e,n=[])}let i=-1,s=-1,o=-1,a=e.length,l,u,[c,f]=t;for(;++o`${n}: ${t}`).join(", ")} }>`}compareTo(t){return fr.compareSchemas(this,t)}select(...t){const n=t.reduce((r,i)=>(r[i]=!0)&&r,Object.create(null));return new ut(this.fields.filter(r=>n[r.name]),this.metadata)}selectAt(...t){return new ut(t.map(n=>this.fields[n]).filter(Boolean),this.metadata)}assign(...t){const n=t[0]instanceof ut?t[0]:new ut(I2(Xe,t)),r=[...this.fields],i=Oc(Oc(new Map,this.metadata),n.metadata),s=n.fields.filter(a=>{const l=r.findIndex(u=>u.name===a.name);return~l?(r[l]=a.clone({metadata:Oc(Oc(new Map,r[l].metadata),a.metadata)}))&&!1:!0}),o=ey(s,new Map);return new ut([...r,...s],i,new Map([...this.dictionaries,...o]))}}class Xe{constructor(t,n,r=!1,i){this.name=t,this.type=n,this.nullable=r,this.metadata=i||new Map}static new(...t){let[n,r,i,s]=t;return t[0]&&typeof t[0]=="object"&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),s===void 0&&(s=t[0].metadata)),new Xe(`${n}`,r,i,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}compareTo(t){return fr.compareField(this,t)}clone(...t){let[n,r,i,s]=t;return!t[0]||typeof t[0]!="object"?[n=this.name,r=this.type,i=this.nullable,s=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0],Xe.new(n,r,i,s)}}function Oc(e,t){return new Map([...e||new Map,...t||new Map])}function ey(e,t=new Map){for(let n=-1,r=e.length;++n0&&ey(s.children,t)}return t}ut.prototype.fields=null;ut.prototype.metadata=null;ut.prototype.dictionaries=null;Xe.prototype.type=null;Xe.prototype.name=null;Xe.prototype.nullable=null;Xe.prototype.metadata=null;class kD extends yp{constructor(t){super(t),this._run=new w2,this._offsets=new h2}addChild(t,n="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Fa(new Xe(n,t.type,!0)),this.numChildren-1}clear(){return this._run.clear(),super.clear()}_flushPending(t){const n=this._run,r=this._offsets,i=this._setValue;let s=0,o;for([s,o]of t)o===void 0?r.set(s,0):(r.set(s,o.length),i(this,s,n.bind(o)))}}class AD extends $t{constructor(){super(...arguments),this._run=new w2}setValue(t,n){super.setValue(t,this._run.bind(n))}addChild(t,n="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");const r=this.children.push(t);return this.type=new fu(this.type.listSize,new Xe(n,t.type,!0)),r}clear(){return this._run.clear(),super.clear()}}class BD extends yp{set(t,n){return super.set(t,n)}setValue(t,n){n=n instanceof Map?n:new Map(Object.entries(n));const r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.size),this._pendingLength+=n.size,r.set(t,n)}addChild(t,n=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new du(new Xe(n,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){const n=this._offsets,r=this._setValue;t.forEach((i,s)=>{i===void 0?n.set(s,0):(n.set(s,i.size),r(this,s,i))})}}class RD extends $t{addChild(t,n=`${this.numChildren}`){const r=this.children.push(t);return this.type=new ti([...this.type.children,new Xe(n,t.type,!0)]),r}}class yg extends $t{constructor(t){super(t),this._typeIds=new Nu(new Int8Array(0),1),typeof t.valueToChildTypeId=="function"&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,n){return this.set(this.length,t,n)}set(t,n,r){return r===void 0&&(r=this._valueToChildTypeId(this,n,t)),this.setValid(t,this.isValid(n))&&this.setValue(t,n,r),this}setValue(t,n,r){this._typeIds.set(t,r),super.setValue(t,n)}addChild(t,n=`${this.children.length}`){const r=this.children.push(t),{type:{children:i,mode:s,typeIds:o}}=this,a=[...i,new Xe(n,t.type)];return this.type=new cu(s,[...o,r],a),r}_valueToChildTypeId(t,n,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}}class MD extends yg{}class FD extends yg{constructor(t){super(t),this._offsets=new Nu(new Int32Array(0))}setValue(t,n,r){const i=this.type.typeIdToChildIndex[r];return this._offsets.set(t,this.getChildAt(i).length),super.setValue(t,n,r)}}class Me extends Ue{}const DD=(e,t,n)=>{e[t]=n/864e5|0},gg=(e,t,n)=>{e[t]=n%4294967296|0,e[t+1]=n/4294967296|0},PD=(e,t,n)=>{e[t]=n*1e3%4294967296|0,e[t+1]=n*1e3/4294967296|0},jD=(e,t,n)=>{e[t]=n*1e6%4294967296|0,e[t+1]=n*1e6/4294967296|0},O2=(e,t,n,r)=>{const{[n]:i,[n+1]:s}=t;i!=null&&s!=null&&e.set(r.subarray(0,s-i),i)},LD=({offset:e,values:t},n,r)=>{const i=e+n;r?t[i>>3]|=1<>3]&=~(1<{DD(e,t,n.valueOf())},A2=({values:e},t,n)=>{gg(e,t*2,n.valueOf())},Ei=({stride:e,values:t},n,r)=>{t[e*n]=r},B2=({stride:e,values:t},n,r)=>{t[e*n]=g2(r)},vg=(e,t,n)=>{switch(typeof n){case"bigint":e.values64[t]=n;break;case"number":e.values[t*e.stride]=n;break;default:const r=n,{stride:i,ArrayType:s}=e,o=ot(s,r);e.values.set(o.subarray(0,i),i*t)}},ND=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},$D=({values:e,valueOffsets:t},n,r)=>O2(e,t,n,r),zD=({values:e,valueOffsets:t},n,r)=>{O2(e,t,n,fp(r))},UD=(e,t,n)=>{e.type.bitWidth<64?Ei(e,t,n):vg(e,t,n)},VD=(e,t,n)=>{e.type.precision!==Ar.HALF?Ei(e,t,n):B2(e,t,n)},WD=(e,t,n)=>{e.type.unit===Si.DAY?k2(e,t,n):A2(e,t,n)},R2=({values:e},t,n)=>gg(e,t*2,n/1e3),M2=({values:e},t,n)=>gg(e,t*2,n),F2=({values:e},t,n)=>PD(e,t*2,n),D2=({values:e},t,n)=>jD(e,t*2,n),HD=(e,t,n)=>{switch(e.type.unit){case lt.SECOND:return R2(e,t,n);case lt.MILLISECOND:return M2(e,t,n);case lt.MICROSECOND:return F2(e,t,n);case lt.NANOSECOND:return D2(e,t,n)}},P2=({values:e,stride:t},n,r)=>{e[t*n]=r},j2=({values:e,stride:t},n,r)=>{e[t*n]=r},L2=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},N2=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},KD=(e,t,n)=>{switch(e.type.unit){case lt.SECOND:return P2(e,t,n);case lt.MILLISECOND:return j2(e,t,n);case lt.MICROSECOND:return L2(e,t,n);case lt.NANOSECOND:return N2(e,t,n)}},YD=({values:e},t,n)=>{e.set(n.subarray(0,4),4*t)},qD=(e,t,n)=>{const r=e.getChildAt(0),i=e.valueOffsets;for(let s=-1,o=i[t],a=i[t+1];o{const r=e.getChildAt(0),i=e.valueOffsets,s=n instanceof Map?[...n]:Object.entries(n);for(let o=-1,a=i[t],l=i[t+1];a(n,r,i)=>n&&n.set(e,t[i]),QD=(e,t)=>(n,r,i)=>n&&n.set(e,t.get(i)),JD=(e,t)=>(n,r,i)=>n&&n.set(e,t.get(r.name)),ZD=(e,t)=>(n,r,i)=>n&&n.set(e,t[r.name]),eP=(e,t,n)=>{const r=n instanceof Map?JD(t,n):n instanceof Ge?QD(t,n):Array.isArray(n)?XD(t,n):ZD(t,n);e.type.children.forEach((i,s)=>r(e.getChildAt(s),i,s))},tP=(e,t,n)=>{e.type.mode===Vi.Dense?$2(e,t,n):z2(e,t,n)},$2=(e,t,n)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(e.valueOffsets[t],n)},z2=(e,t,n)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(t,n)},nP=(e,t,n)=>{const r=e.getKey(t);r!==null&&e.setValue(r,n)},rP=(e,t,n)=>{e.type.unit===Oa.DAY_TIME?U2(e,t,n):V2(e,t,n)},U2=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},V2=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},iP=(e,t,n)=>{const r=e.getChildAt(0),{stride:i}=e;for(let s=-1,o=t*i;++s0){const r=e.children||[],i={nullValues:e.nullValues},s=Array.isArray(r)?(o,a)=>r[a]||i:({name:o})=>r[o]||i;t.children.forEach((o,a)=>{const{type:l}=o,u=s(o,a);n.children.push(H2({...u,type:l}))})}return n}Object.keys(P).map(e=>P[e]).filter(e=>typeof e=="number"&&e!==P.NONE).forEach(e=>{const t=W2.visit(e);t.prototype._setValue=bp.getVisitFn(e)});pg.prototype._setValue=bp.visitBinary;var Da;(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,this}static getRootAsFooter(o,a){return(a||new i).__init(o.readInt32(o.position())+o.position(),o)}version(){let o=this.bb.__offset(this.bb_pos,4);return o?this.bb.readInt16(this.bb_pos+o):J.apache.arrow.flatbuf.MetadataVersion.V1}schema(o){let a=this.bb.__offset(this.bb_pos,6);return a?(o||new J.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}dictionaries(o,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+l)+o*24,this.bb):null}dictionariesLength(){let o=this.bb.__offset(this.bb_pos,8);return o?this.bb.__vector_len(this.bb_pos+o):0}recordBatches(o,a){let l=this.bb.__offset(this.bb_pos,10);return l?(a||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+l)+o*24,this.bb):null}recordBatchesLength(){let o=this.bb.__offset(this.bb_pos,10);return o?this.bb.__vector_len(this.bb_pos+o):0}static startFooter(o){o.startObject(4)}static addVersion(o,a){o.addFieldInt16(0,a,J.apache.arrow.flatbuf.MetadataVersion.V1)}static addSchema(o,a){o.addFieldOffset(1,a,0)}static addDictionaries(o,a){o.addFieldOffset(2,a,0)}static startDictionariesVector(o,a){o.startVector(24,a,8)}static addRecordBatches(o,a){o.addFieldOffset(3,a,0)}static startRecordBatchesVector(o,a){o.startVector(24,a,8)}static endFooter(o){return o.endObject()}static finishFooterBuffer(o,a){o.finish(a)}static createFooter(o,a,l,u,c){return i.startFooter(o),i.addVersion(o,a),i.addSchema(o,l),i.addDictionaries(o,u),i.addRecordBatches(o,c),i.endFooter(o)}}r.Footer=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Da||(Da={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(o,a){return this.bb_pos=o,this.bb=a,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 createBlock(o,a,l,u){return o.prep(8,24),o.writeInt64(u),o.pad(4),o.writeInt32(l),o.writeInt64(a),o.offset()}}r.Block=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Da||(Da={}));var _1=W.Long,sP=W.Builder,aP=W.ByteBuffer,lP=Da.apache.arrow.flatbuf.Block,li=Da.apache.arrow.flatbuf.Footer;class hu{constructor(t,n=Kr.V4,r,i){this.schema=t,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new aP(Ye(t));const n=li.getRootAsFooter(t),r=ut.decode(n.schema());return new uP(r,n)}static encode(t){const n=new sP,r=ut.encode(n,t.schema);li.startRecordBatchesVector(n,t.numRecordBatches),[...t.recordBatches()].slice().reverse().forEach(o=>Io.encode(n,o));const i=n.endVector();li.startDictionariesVector(n,t.numDictionaries),[...t.dictionaryBatches()].slice().reverse().forEach(o=>Io.encode(n,o));const s=n.endVector();return li.startFooter(n),li.addSchema(n,r),li.addVersion(n,Kr.V4),li.addRecordBatches(n,i),li.addDictionaries(n,s),li.finishFooterBuffer(n,li.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,n=-1,r=this.numRecordBatches;++n=0&&t=0&&t=0&&t=0&&t0)return super.write(t)}toString(t=!1){return t?qm(this.toUint8Array(!0)):this.toUint8Array(!1).then(qm)}toUint8Array(t=!1){return t?xi(this._values)[0]:(async()=>{let n=[],r=0;for await(const i of this)n.push(i),r+=i.byteLength;return xi(n,r)[0]})()}}class Xf{constructor(t){t&&(this.source=new cP(sr.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 us{constructor(t){t instanceof us?this.source=t.source:t instanceof Dl?this.source=new Po(sr.fromAsyncIterable(t)):l2(t)?this.source=new Po(sr.fromNodeStream(t)):Q0(t)?this.source=new Po(sr.fromDOMStream(t)):a2(t)?this.source=new Po(sr.fromDOMStream(t.body)):ei(t)?this.source=new Po(sr.fromIterable(t)):_o(t)?this.source=new Po(sr.fromAsyncIterable(t)):qi(t)&&(this.source=new Po(sr.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 cP{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,n="read"){return this.source.next({cmd:n,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||Lt)}return(t){return Object.create(this.source.return&&this.source.return(t)||Lt)}}class Po{constructor(t){this.source=t,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}async cancel(t){await this.return(t)}get closed(){return this._closedPromise}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await this.next(t,"peek")).value}async next(t,n="read"){return await this.source.next({cmd:n,size:t})}async throw(t){const n=this.source.throw&&await this.source.throw(t)||Lt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)}async return(t){const n=this.source.return&&await this.source.return(t)||Lt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)}}class E1 extends Xf{constructor(t,n){super(),this.position=0,this.buffer=Ye(t),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(t){const{buffer:n,byteOffset:r}=this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t{this.size=(await t.stat()).size,delete this._pending})()}async readInt32(t){const{buffer:n,byteOffset:r}=await this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}async seek(t){return this._pending&&await this._pending,this.position=Math.min(t,this.size),t>>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 i=n[3]*r[3];this.buffer[0]=i&65535;let s=i>>>16;return i=n[2]*r[3],s+=i,i=n[3]*r[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(t){const n=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],n>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(t){return this.buffer[1]>>0,n[2]=this.buffer[2]+t.buffer[2]>>>0,n[1]=this.buffer[1]+t.buffer[1]>>>0,n[0]=this.buffer[0]+t.buffer[0]>>>0,n[0]>>0&&++n[1],n[1]>>0&&++n[2],n[2]>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${Ks(this.buffer[3])} ${Ks(this.buffer[2])} ${Ks(this.buffer[1])} ${Ks(this.buffer[0])}`}static multiply(t,n){return new ci(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new ci(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return ci.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return ci.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){const r=t.startsWith("-"),i=t.length;let s=new ci(n);for(let o=r?1:0;o0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,n){return this.readData(t,n)}readTypeIds(t,n){return this.readData(t,n)}readData(t,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(t){return this.dictionaries.get(t.id)}}class dP extends Y2{constructor(t,n,r,i){super(new Uint8Array(0),n,r,i),this.sources=t}readNullBitmap(t,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):Uf(this.sources[r])}readOffsets(t,{offset:n}=this.nextBufferRange()){return ot(Uint8Array,ot(Int32Array,this.sources[n]))}readTypeIds(t,{offset:n}=this.nextBufferRange()){return ot(Uint8Array,ot(t.ArrayType,this.sources[n]))}readData(t,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return je.isTimestamp(t)||(je.isInt(t)||je.isTime(t))&&t.bitWidth===64||je.isDate(t)&&t.unit===Si.MILLISECOND?ot(Uint8Array,Vn.convertArray(r[n])):je.isDecimal(t)?ot(Uint8Array,ci.convertArray(r[n])):je.isBinary(t)||je.isFixedSizeBinary(t)?pP(r[n]):je.isBool(t)?Uf(r[n]):je.isUtf8(t)?fp(r[n].join("")):ot(Uint8Array,ot(t.ArrayType,r[n].map(i=>+i)))}}function pP(e){const t=e.join(""),n=new Uint8Array(t.length/2);for(let r=0;r>1]=parseInt(t.substr(r,2),16);return n}var hP=W.Long,I1=J.apache.arrow.flatbuf.Null,kc=J.apache.arrow.flatbuf.Int,Ih=J.apache.arrow.flatbuf.FloatingPoint,T1=J.apache.arrow.flatbuf.Binary,C1=J.apache.arrow.flatbuf.Bool,O1=J.apache.arrow.flatbuf.Utf8,Ac=J.apache.arrow.flatbuf.Decimal,Th=J.apache.arrow.flatbuf.Date,Bc=J.apache.arrow.flatbuf.Time,Rc=J.apache.arrow.flatbuf.Timestamp,Ch=J.apache.arrow.flatbuf.Interval,k1=J.apache.arrow.flatbuf.List,A1=J.apache.arrow.flatbuf.Struct_,As=J.apache.arrow.flatbuf.Union,pl=J.apache.arrow.flatbuf.DictionaryEncoding,Oh=J.apache.arrow.flatbuf.FixedSizeBinary,kh=J.apache.arrow.flatbuf.FixedSizeList,Ah=J.apache.arrow.flatbuf.Map;class mP extends Ue{visit(t,n){return t==null||n==null?void 0:super.visit(t,n)}visitNull(t,n){return I1.startNull(n),I1.endNull(n)}visitInt(t,n){return kc.startInt(n),kc.addBitWidth(n,t.bitWidth),kc.addIsSigned(n,t.isSigned),kc.endInt(n)}visitFloat(t,n){return Ih.startFloatingPoint(n),Ih.addPrecision(n,t.precision),Ih.endFloatingPoint(n)}visitBinary(t,n){return T1.startBinary(n),T1.endBinary(n)}visitBool(t,n){return C1.startBool(n),C1.endBool(n)}visitUtf8(t,n){return O1.startUtf8(n),O1.endUtf8(n)}visitDecimal(t,n){return Ac.startDecimal(n),Ac.addScale(n,t.scale),Ac.addPrecision(n,t.precision),Ac.endDecimal(n)}visitDate(t,n){return Th.startDate(n),Th.addUnit(n,t.unit),Th.endDate(n)}visitTime(t,n){return Bc.startTime(n),Bc.addUnit(n,t.unit),Bc.addBitWidth(n,t.bitWidth),Bc.endTime(n)}visitTimestamp(t,n){const r=t.timezone&&n.createString(t.timezone)||void 0;return Rc.startTimestamp(n),Rc.addUnit(n,t.unit),r!==void 0&&Rc.addTimezone(n,r),Rc.endTimestamp(n)}visitInterval(t,n){return Ch.startInterval(n),Ch.addUnit(n,t.unit),Ch.endInterval(n)}visitList(t,n){return k1.startList(n),k1.endList(n)}visitStruct(t,n){return A1.startStruct_(n),A1.endStruct_(n)}visitUnion(t,n){As.startTypeIdsVector(n,t.typeIds.length);const r=As.createTypeIdsVector(n,t.typeIds);return As.startUnion(n),As.addMode(n,t.mode),As.addTypeIds(n,r),As.endUnion(n)}visitDictionary(t,n){const r=this.visit(t.indices,n);return pl.startDictionaryEncoding(n),pl.addId(n,new hP(t.id,0)),pl.addIsOrdered(n,t.isOrdered),r!==void 0&&pl.addIndexType(n,r),pl.endDictionaryEncoding(n)}visitFixedSizeBinary(t,n){return Oh.startFixedSizeBinary(n),Oh.addByteWidth(n,t.byteWidth),Oh.endFixedSizeBinary(n)}visitFixedSizeList(t,n){return kh.startFixedSizeList(n),kh.addListSize(n,t.listSize),kh.endFixedSizeList(n)}visitMap(t,n){return Ah.startMap(n),Ah.addKeysSorted(n,t.keysSorted),Ah.endMap(n)}}const Bh=new mP;function yP(e,t=new Map){return new ut(vP(e,t),ef(e.customMetadata),t)}function q2(e){return new mr(e.count,G2(e.columns),X2(e.columns))}function gP(e){return new _i(q2(e.data),e.id,e.isDelta)}function vP(e,t){return(e.fields||[]).filter(Boolean).map(n=>Xe.fromJSON(n,t))}function B1(e,t){return(e.children||[]).filter(Boolean).map(n=>Xe.fromJSON(n,t))}function G2(e){return(e||[]).reduce((t,n)=>[...t,new ms(n.count,bP(n.VALIDITY)),...G2(n.children)],[])}function X2(e,t=[]){for(let n=-1,r=(e||[]).length;++nt+ +(n===0),0)}function wP(e,t){let n,r,i,s,o,a;return!t||!(s=e.dictionary)?(o=M1(e,B1(e,t)),i=new Xe(e.name,o,e.nullable,ef(e.customMetadata))):t.has(n=s.id)?(r=(r=s.indexType)?R1(r):new as,a=new Eo(t.get(n),r,n,s.isOrdered),i=new Xe(e.name,a,e.nullable,ef(e.customMetadata))):(r=(r=s.indexType)?R1(r):new as,t.set(n,o=M1(e,B1(e,t))),a=new Eo(o,r,n,s.isOrdered),i=new Xe(e.name,a,e.nullable,ef(e.customMetadata))),i||null}function ef(e){return new Map(Object.entries(e||{}))}function R1(e){return new er(e.isSigned,e.bitWidth)}function M1(e,t){const n=e.type.name;switch(n){case"NONE":return new ka;case"null":return new ka;case"binary":return new lu;case"utf8":return new Ra;case"bool":return new uu;case"list":return new Fa((t||[])[0]);case"struct":return new ti(t||[]);case"struct_":return new ti(t||[])}switch(n){case"int":{const r=e.type;return new er(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=e.type;return new ls(Ar[r.precision])}case"decimal":{const r=e.type;return new Vf(r.scale,r.precision)}case"date":{const r=e.type;return new Ma(Si[r.unit])}case"time":{const r=e.type;return new Wf(lt[r.unit],r.bitWidth)}case"timestamp":{const r=e.type;return new Hf(lt[r.unit],r.timezone)}case"interval":{const r=e.type;return new Kf(Oa[r.unit])}case"union":{const r=e.type;return new cu(Vi[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const r=e.type;return new Yf(r.byteWidth)}case"fixedsizelist":{const r=e.type;return new fu(r.listSize,(t||[])[0])}case"map":{const r=e.type;return new du((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var cs=W.Long,xP=W.Builder,SP=W.ByteBuffer,ln=J.apache.arrow.flatbuf.Type,Ur=J.apache.arrow.flatbuf.Field,Oi=J.apache.arrow.flatbuf.Schema,_P=J.apache.arrow.flatbuf.Buffer,Zi=In.apache.arrow.flatbuf.Message,lo=J.apache.arrow.flatbuf.KeyValue,EP=In.apache.arrow.flatbuf.FieldNode,F1=J.apache.arrow.flatbuf.Endianness,eo=In.apache.arrow.flatbuf.RecordBatch,Ms=In.apache.arrow.flatbuf.DictionaryBatch;class Pn{constructor(t,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=typeof t=="number"?t:t.low}static fromJSON(t,n){const r=new Pn(0,Kr.V4,n);return r._createHeader=IP(t,n),r}static decode(t){t=new SP(Ye(t));const n=Zi.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),s=n.headerType(),o=new Pn(r,i,s);return o._createHeader=TP(n,s),o}static encode(t){let n=new xP,r=-1;return t.isSchema()?r=ut.encode(n,t.header()):t.isRecordBatch()?r=mr.encode(n,t.header()):t.isDictionaryBatch()&&(r=_i.encode(n,t.header())),Zi.startMessage(n),Zi.addVersion(n,Kr.V4),Zi.addHeader(n,r),Zi.addHeaderType(n,t.headerType),Zi.addBodyLength(n,new cs(t.bodyLength,0)),Zi.finishMessageBuffer(n,Zi.endMessage(n)),n.asUint8Array()}static from(t,n=0){if(t instanceof ut)return new Pn(0,Kr.V4,yt.Schema,t);if(t instanceof mr)return new Pn(n,Kr.V4,yt.RecordBatch,t);if(t instanceof _i)return new Pn(n,Kr.V4,yt.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===yt.Schema}isRecordBatch(){return this.headerType===yt.RecordBatch}isDictionaryBatch(){return this.headerType===yt.DictionaryBatch}}let mr=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,n,r){this._nodes=n,this._buffers=r,this._length=typeof t=="number"?t:t.low}};class _i{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}constructor(t,n,r=!1){this._data=t,this._isDelta=r,this._id=typeof n=="number"?n:n.low}}class mi{constructor(t,n){this.offset=typeof t=="number"?t:t.low,this.length=typeof n=="number"?n:n.low}}class ms{constructor(t,n){this.length=typeof t=="number"?t:t.low,this.nullCount=typeof n=="number"?n:n.low}}function IP(e,t){return()=>{switch(t){case yt.Schema:return ut.fromJSON(e);case yt.RecordBatch:return mr.fromJSON(e);case yt.DictionaryBatch:return _i.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${yt[t]}, type: ${t} }`)}}function TP(e,t){return()=>{switch(t){case yt.Schema:return ut.decode(e.header(new Oi));case yt.RecordBatch:return mr.decode(e.header(new eo),e.version());case yt.DictionaryBatch:return _i.decode(e.header(new Ms),e.version())}throw new Error(`Unrecognized Message type: { name: ${yt[t]}, type: ${t} }`)}}Xe.encode=jP;Xe.decode=DP;Xe.fromJSON=wP;ut.encode=PP;ut.decode=CP;ut.fromJSON=yP;mr.encode=LP;mr.decode=OP;mr.fromJSON=q2;_i.encode=NP;_i.decode=kP;_i.fromJSON=gP;ms.encode=$P;ms.decode=BP;mi.encode=zP;mi.decode=AP;function CP(e,t=new Map){const n=FP(e,t);return new ut(n,tf(e),t)}function OP(e,t=Kr.V4){return new mr(e.length(),RP(e),MP(e,t))}function kP(e,t=Kr.V4){return new _i(mr.decode(e.data(),t),e.id(),e.isDelta())}function AP(e){return new mi(e.offset(),e.length())}function BP(e){return new ms(e.length(),e.nullCount())}function RP(e){const t=[];for(let n,r=-1,i=-1,s=e.nodesLength();++rXe.encode(e,s));Oi.startFieldsVector(e,n.length);const r=Oi.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?Oi.createCustomMetadataVector(e,[...t.metadata].map(([s,o])=>{const a=e.createString(`${s}`),l=e.createString(`${o}`);return lo.startKeyValue(e),lo.addKey(e,a),lo.addValue(e,l),lo.endKeyValue(e)})):-1;return Oi.startSchema(e),Oi.addFields(e,r),Oi.addEndianness(e,UP?F1.Little:F1.Big),i!==-1&&Oi.addCustomMetadata(e,i),Oi.endSchema(e)}function jP(e,t){let n=-1,r=-1,i=-1,s=t.type,o=t.typeId;je.isDictionary(s)?(o=s.dictionary.typeId,i=Bh.visit(s,e),r=Bh.visit(s.dictionary,e)):r=Bh.visit(s,e);const a=(s.children||[]).map(c=>Xe.encode(e,c)),l=Ur.createChildrenVector(e,a),u=t.metadata&&t.metadata.size>0?Ur.createCustomMetadataVector(e,[...t.metadata].map(([c,f])=>{const p=e.createString(`${c}`),h=e.createString(`${f}`);return lo.startKeyValue(e),lo.addKey(e,p),lo.addValue(e,h),lo.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),Ur.startField(e),Ur.addType(e,r),Ur.addTypeType(e,o),Ur.addChildren(e,l),Ur.addNullable(e,!!t.nullable),n!==-1&&Ur.addName(e,n),i!==-1&&Ur.addDictionary(e,i),u!==-1&&Ur.addCustomMetadata(e,u),Ur.endField(e)}function LP(e,t){const n=t.nodes||[],r=t.buffers||[];eo.startNodesVector(e,n.length),n.slice().reverse().forEach(o=>ms.encode(e,o));const i=e.endVector();eo.startBuffersVector(e,r.length),r.slice().reverse().forEach(o=>mi.encode(e,o));const s=e.endVector();return eo.startRecordBatch(e),eo.addLength(e,new cs(t.length,0)),eo.addNodes(e,i),eo.addBuffers(e,s),eo.endRecordBatch(e)}function NP(e,t){const n=mr.encode(e,t.data);return Ms.startDictionaryBatch(e),Ms.addId(e,new cs(t.id,0)),Ms.addIsDelta(e,t.isDelta),Ms.addData(e,n),Ms.endDictionaryBatch(e)}function $P(e,t){return EP.createFieldNode(e,new cs(t.length,0),new cs(t.nullCount,0))}function zP(e,t){return _P.createBuffer(e,new cs(t.offset,0),new cs(t.length,0))}const UP=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256}();var Q2=W.ByteBuffer;const wg=e=>`Expected ${yt[e]} Message in stream, but was null or length 0.`,xg=e=>`Header pointer of flatbuffer-encoded ${yt[e]} Message is null or length 0.`,J2=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,Z2=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class eE{constructor(t){this.source=t instanceof Xf?t:new Xf(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?Lt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(wg(t));return n.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const n=Ye(this.source.read(t));if(n.byteLength[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE&&[s.TYPE]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...n(s.children)],[])}}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(wg(t));return n.value}readSchema(){const t=yt.Schema,n=this.readMessage(t),r=n&&n.header();if(!n||!r)throw new Error(xg(t));return r}}const wp=4,ty="ARROW1",mu=new Uint8Array(ty.length);for(let e=0;e2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");je.isNull(t.type)||Qr.call(this,i<=0?new Uint8Array(0):eg(n.offset,r,n.nullBitmap)),this.nodes.push(new ms(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.indices)}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Qr(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new mi(this._byteLength,t)),this._byteLength+=t,this}function KP(e){const{type:t,length:n,typeIds:r,valueOffsets:i}=e;if(Qr.call(this,r),t.mode===Vi.Sparse)return ny.call(this,e);if(t.mode===Vi.Dense){if(e.offset<=0)return Qr.call(this,i),ny.call(this,e);{const s=r.reduce((c,f)=>Math.max(c,f),r[0]),o=new Int32Array(s+1),a=new Int32Array(s+1).fill(-1),l=new Int32Array(n),u=Z0(-i[0],n,i);for(let c,f,p=-1;++p=e.length?Qr.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Qr.call(this,eg(e.offset,e.length,t)):Qr.call(this,Uf(e))}function Ro(e){return Qr.call(this,e.values.subarray(0,e.length*e.stride))}function nE(e){const{length:t,values:n,valueOffsets:r}=e,i=r[0],s=r[t],o=Math.min(s-i,n.byteLength-i);return Qr.call(this,Z0(-r[0],t,r)),Qr.call(this,n.subarray(i,i+o)),this}function _g(e){const{length:t,valueOffsets:n}=e;return n&&Qr.call(this,Z0(n[0],t,n)),this.visit(e.getChildAt(0))}function ny(e){return this.visitMany(e.type.children.map((t,n)=>e.getChildAt(n)).filter(Boolean))[0]}en.prototype.visitBool=YP;en.prototype.visitInt=Ro;en.prototype.visitFloat=Ro;en.prototype.visitUtf8=nE;en.prototype.visitBinary=nE;en.prototype.visitFixedSizeBinary=Ro;en.prototype.visitDate=Ro;en.prototype.visitTimestamp=Ro;en.prototype.visitTime=Ro;en.prototype.visitDecimal=Ro;en.prototype.visitList=_g;en.prototype.visitStruct=ny;en.prototype.visitUnion=KP;en.prototype.visitInterval=Ro;en.prototype.visitFixedSizeList=_g;en.prototype.visitMap=_g;class Eg extends hs{constructor(t){super(),this._position=0,this._started=!1,this._sink=new Dl,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,hr(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,n){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 _o(t)?t.then(n=>this.writeAll(n)):qi(t)?Og(this,t):Cg(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,n=null){return t===this._sink||t instanceof Dl?this._sink=t:(this._sink=new Dl,t&&i5(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&o5(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,(!n||!n.compareTo(this._schema))&&(n===null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(t){let n=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof et&&!(n=t.schema))return this.finish()&&void 0;if(t instanceof Kn&&!(n=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!n.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}t instanceof Kn?t instanceof Ep||this._writeRecordBatch(t):t instanceof et?this.writeAll(t.chunks):ei(t)&&this.writeAll(t)}_writeMessage(t,n=8){const r=n-1,i=Pn.encode(t),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,a=s+o+r&~r,l=a-s-o;return t.headerType===yt.RecordBatch?this._recordBatchBlocks.push(new Io(a,t.bodyLength,this._position)):t.headerType===yt.DictionaryBatch&&this._dictionaryBlocks.push(new Io(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),s>0&&this._write(i),this._writePadding(l)}_write(t){if(this._started){const n=Ye(t);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(t){return this._writeMessage(Pn.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(mu)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:n,nodes:r,bufferRegions:i,buffers:s}=en.assemble(t),o=new mr(t.length,r,i),a=Pn.from(o,n);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(s)}_writeDictionaryBatch(t,n,r=!1){this._dictionaryDeltaOffsets.set(n,t.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:i,nodes:s,bufferRegions:o,buffers:a}=en.assemble(t),l=new mr(t.length,s,o),u=new _i(l,n,r),c=Pn.from(u,i);return this._writeMessage(c)._writeBodyBuffers(a)}_writeBodyBuffers(t){let n,r,i;for(let s=-1,o=t.length;++s0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[n,r]of t.dictionaries){let i=this._dictionaryDeltaOffsets.get(n)||0;if(i===0||(r=r.slice(i)).length>0){const s="chunks"in r?r.chunks:[r];for(const o of s)this._writeDictionaryBatch(o,n,i>0),i+=o.length}}return this}}class Ig extends Eg{static writeAll(t,n){const r=new Ig(n);return _o(t)?t.then(i=>r.writeAll(i)):qi(t)?Og(r,t):Cg(r,t)}}class Tg extends Eg{constructor(){super(),this._autoDestroy=!0}static writeAll(t){const n=new Tg;return _o(t)?t.then(r=>n.writeAll(r)):qi(t)?Og(n,t):Cg(n,t)}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const n=hu.encode(new hu(t,Kr.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function Cg(e,t){let n=t;t instanceof et&&(n=t.chunks,e.reset(void 0,t.schema));for(const r of n)e.write(r);return e.finish()}async function Og(e,t){for await(const n of t)e.write(n);return e.finish()}const Rh=new Uint8Array(0),rE=e=>[Rh,Rh,new Uint8Array(e),Rh];function qP(e,t,n=t.reduce((r,i)=>Math.max(r,i.length),0)){let r,i,s=-1,o=t.length;const a=[...e.fields],l=[],u=(n+63&-64)>>3;for(;++st)),e)}function iE(e,t){return XP(e,t.map(n=>n instanceof Sn?n.chunks.map(r=>r.data):[n.data]))}function XP(e,t){const n=[...e.fields],r=[],i={numBatches:t.reduce((f,p)=>Math.max(f,p.length),0)};let s=0,o=0,a=-1,l=t.length,u,c=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,a=-1;++a0&&(r[s++]=[o,c.slice()]))}return[e=new ut(n,e.metadata),r.map(f=>new Kn(e,...f))]}function QP(e,t,n,r,i){let s,o,a=0,l=-1,u=r.length;const c=(t+63&-64)>>3;for(;++l=t?a===t?n[l]=s:(n[l]=s.slice(0,t),s=s.slice(t,a-t),i.numBatches=Math.max(i.numBatches,r[l].unshift(s))):((o=e[l]).nullable||(e[l]=o.clone({nullable:!0})),n[l]=s?s._changeLengthAndBackfillNullBitmap(t):ue.new(o.type,0,t,t,rE(c)));return n}class Et extends Ge{constructor(t,n){super(),this._children=n,this.numChildren=t.childData.length,this._bindDataAccessors(this.data=t)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${P[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(t,n=this._children){return Ge.new(t,n)}concat(...t){return Sn.concat(this,...t)}slice(t,n){return E2(this,t,n,this._sliceInternal)}isValid(t){if(this.nullCount>0){const n=this.offset+t;return(this.nullBitmap[n>>3]&1<=this.numChildren?null:(this._children||(this._children=[]))[t]||(this._children[t]=Ge.new(this.data.childData[t]))}toJSON(){return[...this]}_sliceInternal(t,n,r){return t.clone(t.data.slice(n,r-n),null)}_bindDataAccessors(t){}}Et.prototype[Symbol.isConcatSpreadable]=!0;class JP extends Et{asUtf8(){return Ge.new(this.data.clone(new Ra))}}class ZP extends Et{static from(t){return fs(()=>new uu,t)}}class kg extends Et{static from(...t){return t.length===2?fs(()=>t[1]===Si.DAY?new k5:new v1,t[0]):fs(()=>new v1,t[0])}}class ej extends kg{}class tj extends kg{}class nj extends Et{}class Ag extends Et{constructor(t){super(t),this.indices=Ge.new(t.clone(this.type.indices))}static from(...t){if(t.length===3){const[n,r,i]=t,s=new Eo(n.type,r,null,null);return Ge.new(ue.Dictionary(s,0,i.length,0,null,i,n))}return fs(()=>t[0].type,t[0])}get dictionary(){return this.data.dictionary}reverseLookup(t){return this.dictionary.indexOf(t)}getKey(t){return this.indices.get(t)}getValue(t){return this.dictionary.get(t)}setKey(t,n){return this.indices.set(t,n)}setValue(t,n){return this.dictionary.set(t,n)}}Ag.prototype.indices=null;class rj extends Et{}class ij extends Et{}class xp extends Et{static from(t){let n=aj(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let r=sj(t.constructor)||n;if(n===null&&(n=r),n&&n===r){let i=new n,s=t.byteLength/i.ArrayType.BYTES_PER_ELEMENT;if(!oj(n,t.constructor))return Ge.new(ue.Float(i,0,s,0,null,t))}}if(n)return fs(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${t.constructor.name}`):new TypeError("Unrecognized FloatVector input")}}class oE extends xp{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}}class sE extends xp{}class aE extends xp{}const oj=(e,t)=>e===mp&&t!==Uint16Array,sj=e=>{switch(e){case Uint16Array:return mp;case Float32Array:return ug;case Float64Array:return cg;default:return null}},aj=e=>{switch(e){case oE:return mp;case sE:return ug;case aE:return cg;default:return null}};class Bg extends Et{}class lj extends Bg{}class uj extends Bg{}class ii extends Et{static from(...t){let[n,r=!1]=t,i=dj(this,r);if(n instanceof ArrayBuffer||ArrayBuffer.isView(n)){let s=fj(n.constructor,r)||i;if(i===null&&(i=s),i&&i===s){let o=new i,a=n.byteLength/o.ArrayType.BYTES_PER_ELEMENT;return cj(i,n.constructor)&&(a*=.5),Ge.new(ue.Int(o,0,a,0,null,n))}}if(i)return fs(()=>new i,n);throw n instanceof DataView||n instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${n.constructor.name}`):new TypeError("Unrecognized IntVector input")}}class lE extends ii{}class uE extends ii{}class cE extends ii{}class fE extends ii{toBigInt64Array(){return l5(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}}class dE extends ii{}class pE extends ii{}class hE extends ii{}class mE extends ii{toBigUint64Array(){return u5(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}}const cj=(e,t)=>(e===Aa||e===Ba)&&(t===Int32Array||t===Uint32Array),fj=(e,t)=>{switch(e){case Int8Array:return ig;case Int16Array:return og;case Int32Array:return t?Aa:as;case Ka:return Aa;case Uint8Array:return sg;case Uint16Array:return ag;case Uint32Array:return t?Ba:lg;case Fu:return Ba;default:return null}},dj=(e,t)=>{switch(e){case lE:return ig;case uE:return og;case cE:return t?Aa:as;case fE:return Aa;case dE:return sg;case pE:return ag;case hE:return t?Ba:lg;case mE:return Ba;default:return null}};class pj extends Et{}class hj extends Et{asList(){const t=this.type.children[0];return Ge.new(this.data.clone(new Fa(t)))}bind(t){const n=this.getChildAt(0),{[t]:r,[t+1]:i}=this.valueOffsets;return new x2(n.slice(r,i))}}class mj extends Et{}const yj=Symbol.for("rowIndex");class Sp extends Et{bind(t){const n=this._row||(this._row=new S2(this)),r=Object.create(n);return r[yj]=t,r}}class Vu extends Et{}class gj extends Vu{}class vj extends Vu{}class bj extends Vu{}class wj extends Vu{}class Wu extends Et{}class xj extends Wu{}class Sj extends Wu{}class _j extends Wu{}class Ej extends Wu{}class Rg extends Et{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}}class Ij extends Rg{get valueOffsets(){return this.data.valueOffsets}}class Tj extends Rg{}class Cj extends Et{static from(t){return fs(()=>new Ra,t)}asBinary(){return Ge.new(this.data.clone(new lu))}}function L1(e){return function(){return e(this)}}function Oj(e){return function(t){return e(this,t)}}function N1(e){return function(t,n){return e(this,t,n)}}class ke extends Ue{}const kj=(e,t)=>864e5*e[t],Mg=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),Aj=(e,t)=>4294967296*(e[t+1]/1e3)+(e[t]>>>0)/1e3,Bj=(e,t)=>4294967296*(e[t+1]/1e6)+(e[t]>>>0)/1e6,yE=e=>new Date(e),Rj=(e,t)=>yE(kj(e,t)),Mj=(e,t)=>yE(Mg(e,t)),Fj=(e,t)=>null,gE=(e,t,n)=>{const{[n]:r,[n+1]:i}=t;return r!=null&&i!=null?e.subarray(r,i):null},Dj=({offset:e,values:t},n)=>{const r=e+n;return(t[r>>3]&1<Rj(e,t),bE=({values:e},t)=>Mj(e,t*2),Ii=({stride:e,values:t},n)=>t[e*n],wE=({stride:e,values:t},n)=>H5(t[e*n]),Fg=({stride:e,values:t,type:n},r)=>Ya.new(t.subarray(e*r,e*(r+1)),n.isSigned),Pj=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),jj=({values:e,valueOffsets:t},n)=>gE(e,t,n),Lj=({values:e,valueOffsets:t},n)=>{const r=gE(e,t,n);return r!==null?qm(r):null},Nj=(e,t)=>e.type.bitWidth<64?Ii(e,t):Fg(e,t),$j=(e,t)=>e.type.precision!==Ar.HALF?Ii(e,t):wE(e,t),zj=(e,t)=>e.type.unit===Si.DAY?vE(e,t):bE(e,t),xE=({values:e},t)=>1e3*Mg(e,t*2),SE=({values:e},t)=>Mg(e,t*2),_E=({values:e},t)=>Aj(e,t*2),EE=({values:e},t)=>Bj(e,t*2),Uj=(e,t)=>{switch(e.type.unit){case lt.SECOND:return xE(e,t);case lt.MILLISECOND:return SE(e,t);case lt.MICROSECOND:return _E(e,t);case lt.NANOSECOND:return EE(e,t)}},IE=({values:e,stride:t},n)=>e[t*n],TE=({values:e,stride:t},n)=>e[t*n],CE=({values:e},t)=>Ya.signed(e.subarray(2*t,2*(t+1))),OE=({values:e},t)=>Ya.signed(e.subarray(2*t,2*(t+1))),Vj=(e,t)=>{switch(e.type.unit){case lt.SECOND:return IE(e,t);case lt.MILLISECOND:return TE(e,t);case lt.MICROSECOND:return CE(e,t);case lt.NANOSECOND:return OE(e,t)}},Wj=({values:e},t)=>Ya.decimal(e.subarray(4*t,4*(t+1))),Hj=(e,t)=>{const n=e.getChildAt(0),{valueOffsets:r,stride:i}=e;return n.slice(r[t*i],r[t*i+1])},Kj=(e,t)=>e.bind(t),Yj=(e,t)=>e.bind(t),qj=(e,t)=>e.type.mode===Vi.Dense?kE(e,t):AE(e,t),kE=(e,t)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(e.valueOffsets[t]):null},AE=(e,t)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(t):null},Gj=(e,t)=>e.getValue(e.getKey(t)),Xj=(e,t)=>e.type.unit===Oa.DAY_TIME?BE(e,t):RE(e,t),BE=({values:e},t)=>e.subarray(2*t,2*(t+1)),RE=({values:e},t)=>{const n=e[t],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r},Qj=(e,t)=>{const n=e.getChildAt(0),{stride:r}=e;return n.slice(t*r,(t+1)*r)};ke.prototype.visitNull=Fj;ke.prototype.visitBool=Dj;ke.prototype.visitInt=Nj;ke.prototype.visitInt8=Ii;ke.prototype.visitInt16=Ii;ke.prototype.visitInt32=Ii;ke.prototype.visitInt64=Fg;ke.prototype.visitUint8=Ii;ke.prototype.visitUint16=Ii;ke.prototype.visitUint32=Ii;ke.prototype.visitUint64=Fg;ke.prototype.visitFloat=$j;ke.prototype.visitFloat16=wE;ke.prototype.visitFloat32=Ii;ke.prototype.visitFloat64=Ii;ke.prototype.visitUtf8=Lj;ke.prototype.visitBinary=jj;ke.prototype.visitFixedSizeBinary=Pj;ke.prototype.visitDate=zj;ke.prototype.visitDateDay=vE;ke.prototype.visitDateMillisecond=bE;ke.prototype.visitTimestamp=Uj;ke.prototype.visitTimestampSecond=xE;ke.prototype.visitTimestampMillisecond=SE;ke.prototype.visitTimestampMicrosecond=_E;ke.prototype.visitTimestampNanosecond=EE;ke.prototype.visitTime=Vj;ke.prototype.visitTimeSecond=IE;ke.prototype.visitTimeMillisecond=TE;ke.prototype.visitTimeMicrosecond=CE;ke.prototype.visitTimeNanosecond=OE;ke.prototype.visitDecimal=Wj;ke.prototype.visitList=Hj;ke.prototype.visitStruct=Yj;ke.prototype.visitUnion=qj;ke.prototype.visitDenseUnion=kE;ke.prototype.visitSparseUnion=AE;ke.prototype.visitDictionary=Gj;ke.prototype.visitInterval=Xj;ke.prototype.visitIntervalDayTime=BE;ke.prototype.visitIntervalYearMonth=RE;ke.prototype.visitFixedSizeList=Qj;ke.prototype.visitMap=Kj;const _p=new ke;class Ae extends Ue{}function Jj(e,t){return t===null&&e.length>0?0:-1}function Zj(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const i of pp(n,e.data.offset+(t||0),e.length,n,f2)){if(!i)return r;++r}return-1}function $e(e,t,n){if(t===void 0)return-1;if(t===null)return Zj(e,n);const r=qa(t);for(let i=(n||0)-1,s=e.length;++ii&1<0)return e8(e);const{type:t,typeId:n,length:r}=e;return e.stride===1&&(n===P.Timestamp||n===P.Int&&t.bitWidth!==64||n===P.Time&&t.bitWidth!==64||n===P.Float&&t.precision>0)?e.values.subarray(0,r)[Symbol.iterator]():function*(i){for(let s=-1;++se+t,Mh=e=>`Cannot compute the byte width of variable-width column ${e}`;class t8 extends Ue{visitNull(t){return 0}visitInt(t){return t.bitWidth/8}visitFloat(t){return t.ArrayType.BYTES_PER_ELEMENT}visitBinary(t){throw new Error(Mh(t))}visitUtf8(t){throw new Error(Mh(t))}visitBool(t){return 1/8}visitDecimal(t){return 16}visitDate(t){return(t.unit+1)*4}visitTime(t){return t.bitWidth/8}visitTimestamp(t){return t.unit===lt.SECOND?4:8}visitInterval(t){return(t.unit+1)*4}visitList(t){throw new Error(Mh(t))}visitStruct(t){return this.visitFields(t.children).reduce(hl,0)}visitUnion(t){return this.visitFields(t.children).reduce(hl,0)}visitFixedSizeBinary(t){return t.byteWidth}visitFixedSizeList(t){return t.listSize*this.visitFields(t.children).reduce(hl,0)}visitMap(t){return this.visitFields(t.children).reduce(hl,0)}visitDictionary(t){return this.visit(t.indices)}visitFields(t){return(t||[]).map(n=>this.visit(n.type))}visitSchema(t){return this.visitFields(t.fields).reduce(hl,0)}}const PE=new t8;class n8 extends Ue{visitNull(){return mj}visitBool(){return ZP}visitInt(){return ii}visitInt8(){return lE}visitInt16(){return uE}visitInt32(){return cE}visitInt64(){return fE}visitUint8(){return dE}visitUint16(){return pE}visitUint32(){return hE}visitUint64(){return mE}visitFloat(){return xp}visitFloat16(){return oE}visitFloat32(){return sE}visitFloat64(){return aE}visitUtf8(){return Cj}visitBinary(){return JP}visitFixedSizeBinary(){return rj}visitDate(){return kg}visitDateDay(){return ej}visitDateMillisecond(){return tj}visitTimestamp(){return Vu}visitTimestampSecond(){return gj}visitTimestampMillisecond(){return vj}visitTimestampMicrosecond(){return bj}visitTimestampNanosecond(){return wj}visitTime(){return Wu}visitTimeSecond(){return xj}visitTimeMillisecond(){return Sj}visitTimeMicrosecond(){return _j}visitTimeNanosecond(){return Ej}visitDecimal(){return nj}visitList(){return pj}visitStruct(){return Sp}visitUnion(){return Rg}visitDenseUnion(){return Ij}visitSparseUnion(){return Tj}visitDictionary(){return Ag}visitInterval(){return Bg}visitIntervalDayTime(){return lj}visitIntervalYearMonth(){return uj}visitFixedSizeList(){return ij}visitMap(){return hj}}const jE=new n8;Ge.new=r8;Ge.from=i8;function r8(e,...t){return new(jE.getVisitFn(e)())(e,...t)}function fs(e,t){if(ei(t))return Ge.from({nullValues:[null,void 0],type:e(),values:t});if(qi(t))return Ge.from({nullValues:[null,void 0],type:e(),values:t});const{values:n=[],type:r=e(),nullValues:i=[null,void 0]}={...t};return ei(n)?Ge.from({nullValues:i,...t,type:r}):Ge.from({nullValues:i,...t,type:r})}function i8(e){const{values:t=[],...n}={nullValues:[null,void 0],...e};if(ei(t)){const r=[...$t.throughIterable(n)(t)];return r.length===1?r[0]:Sn.concat(r)}return(async r=>{const i=$t.throughAsyncIterable(n);for await(const s of i(t))r.push(s);return r.length===1?r[0]:Sn.concat(r)})([])}Et.prototype.get=function(t){return _p.visit(this,t)};Et.prototype.set=function(t,n){return bp.visit(this,t,n)};Et.prototype.indexOf=function(t,n){return FE.visit(this,t,n)};Et.prototype.toArray=function(){return DE.visit(this)};Et.prototype.getByteWidth=function(){return PE.visit(this.type)};Et.prototype[Symbol.iterator]=function(){return Dg.visit(this)};Et.prototype._bindDataAccessors=l8;Object.keys(P).map(e=>P[e]).filter(e=>typeof e=="number").filter(e=>e!==P.NONE).forEach(e=>{const t=jE.visit(e);t.prototype.get=Oj(_p.getVisitFn(e)),t.prototype.set=N1(bp.getVisitFn(e)),t.prototype.indexOf=N1(FE.getVisitFn(e)),t.prototype.toArray=L1(DE.getVisitFn(e)),t.prototype.getByteWidth=o8(PE.getVisitFn(e)),t.prototype[Symbol.iterator]=L1(Dg.getVisitFn(e))});function o8(e){return function(){return e(this.type)}}function s8(e){return function(t){return this.isValid(t)?e.call(this,t):null}}function a8(e){return function(t,n){w5(this.nullBitmap,this.offset+t,n!=null)&&e.call(this,t,n)}}function l8(){const e=this.nullBitmap;e&&e.byteLength>0&&(this.get=s8(this.get),this.set=a8(this.set))}class et extends Sn{constructor(...t){let n=null;t[0]instanceof ut&&(n=t.shift());let r=I2(Kn,t);if(!n&&!(n=r[0]&&r[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");r[0]||(r[0]=new Ep(n)),super(new ti(n.fields),r),this._schema=n,this._chunks=r}static empty(t=new ut([])){return new et(t,[])}static from(t){if(!t)return et.empty();if(typeof t=="object"){let r=ei(t.values)?u8(t):qi(t.values)?c8(t):null;if(r!==null)return r}let n=Jr.from(t);return _o(n)?(async()=>await et.from(await n))():n.isSync()&&(n=n.open())?n.schema?new et(n.schema,[...n]):et.empty():(async r=>{const i=await r,s=i.schema,o=[];if(s){for await(let a of i)o.push(a);return new et(s,o)}return et.empty()})(n.open())}static async fromAsync(t){return await et.from(t)}static fromStruct(t){return et.new(t.data.childData,t.type.children)}static new(...t){return new et(...GP(ID(t)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(t=this._chunks){return new et(this._schema,t)}getColumn(t){return this.getColumnAt(this.getColumnIndex(t))}getColumnAt(t){return this.getChildAt(t)}getColumnIndex(t){return this._schema.fields.findIndex(n=>n.name===t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let n,r;const i=this._schema.fields,s=this._children||(this._children=[]);if(r=s[t])return r;if(n=i[t]){const o=this._chunks.map(a=>a.getChildAt(t)).filter(a=>a!=null);if(o.length>0)return s[t]=new qr(n,o)}return null}serialize(t="binary",n=!0){return(n?Ig:Tg).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...t){const n=this._schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(...t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(...t){const n=this._schema.selectAt(...t);return new et(n,this._chunks.map(({length:r,data:{childData:i}})=>new Kn(n,r,t.map(s=>i[s]).filter(Boolean))))}assign(t){const n=this._schema.fields,[r,i]=t.schema.fields.reduce((a,l,u)=>{const[c,f]=a,p=n.findIndex(h=>h.name===l.name);return~p?f[p]=u:c.push(u),a},[[],[]]),s=this._schema.assign(t.schema),o=[...n.map((a,l,u,c=i[l])=>c===void 0?this.getColumnAt(l):t.getColumnAt(c)),...r.map(a=>t.getColumnAt(a))].filter(Boolean);return new et(...iE(s,o))}}function u8(e){const{type:t}=e;return t instanceof ti?et.fromStruct(Sp.from(e)):null}function c8(e){const{type:t}=e;return t instanceof ti?Sp.from(e).then(n=>et.fromStruct(n)):null}class Kn extends Sp{constructor(...t){let n,r=t[0],i;if(t[1]instanceof ue)[,n,i]=t;else{const s=r.fields,[,o,a]=t;n=ue.Struct(new ti(s),0,o,0,null,a)}super(n,i),this._schema=r}static from(t){return ei(t.values),et.from(t)}static new(...t){const[n,r]=T2(t),i=r.filter(s=>s instanceof Ge);return new Kn(...qP(new ut(n),i.map(s=>s.data)))}clone(t,n=this._children){return new Kn(this._schema,t,n)}concat(...t){const n=this._schema,r=Sn.flatten(this,...t);return new et(n,r.map(({data:i})=>new Kn(n,i)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Pg.collect(this))}select(...t){const n=this._schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(...t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(...t){const n=this._schema.selectAt(...t),r=t.map(i=>this.data.childData[i]).filter(Boolean);return new Kn(n,this.length,r)}}class Ep extends Kn{constructor(t){super(t,0,t.fields.map(n=>ue.new(n.type,0,0,0)))}}class Pg extends Ue{constructor(){super(...arguments),this.dictionaries=new Map}static collect(t){return new Pg().visit(t.data,new ti(t.schema.fields)).dictionaries}visit(t,n){return je.isDictionary(n)?this.visitDictionary(t,n):(t.childData.forEach((r,i)=>this.visit(r,n.children[i].type)),this)}visitDictionary(t,n){const r=t.dictionary;return r&&r.length>0&&this.dictionaries.set(n.id,r),this}}class Jr extends hs{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 n=this._impl.open(t);return _o(n)?n.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 sr.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return sr.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,n){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof Jr?t:Gm(t)?h8(t):s2(t)?g8(t):_o(t)?(async()=>await Jr.from(await t))():a2(t)||Q0(t)||l2(t)||qi(t)?y8(new us(t)):m8(new Xf(t))}static readAll(t){return t instanceof Jr?t.isSync()?$1(t):z1(t):Gm(t)||ArrayBuffer.isView(t)||ei(t)||o2(t)?$1(t):z1(t)}}class Jf extends Jr{constructor(t){super(t),this._impl=t}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}}class Zf extends Jr{constructor(t){super(t),this._impl=t}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class LE extends Jf{constructor(t){super(t),this._impl=t}}class f8 extends Zf{constructor(t){super(t),this._impl=t}}class NE{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,n){return new Kn(this.schema,t.length,this._loadVectors(t,n,this.schema.fields))}_loadDictionaryBatch(t,n){const{id:r,isDelta:i,data:s}=t,{dictionaries:o,schema:a}=this,l=o.get(r);if(i||!l){const u=a.dictionaries.get(r);return l&&i?l.concat(Ge.new(this._loadVectors(s,n,[u])[0])):Ge.new(this._loadVectors(s,n,[u])[0])}return l}_loadVectors(t,n,r){return new Y2(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}class ed extends NE{constructor(t,n){super(n),this._reader=Gm(t)?new WP(this._handle=t):new eE(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=zE(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):Lt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):Lt}next(){if(this.closed)return Lt;let t,{_reader:n}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Ep(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class td extends NE{constructor(t,n){super(n),this._reader=new VP(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(t){return this.closed||(this.autoDestroy=zE(this,t),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(t):Lt}async return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(t):Lt}async next(){if(this.closed)return Lt;let t,{_reader:n}=this;for(;t=await this._readNextMessageAndValidate();)if(t.isSchema())await this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=await n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=await n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Ep(this.schema)}):await this.return()}async _readNextMessageAndValidate(t){return await this._reader.readMessage(t)}}class $E extends ed{constructor(t,n){super(t instanceof E1?t:new E1(t),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){if(this.closed)return null;this._footer||this.open();const n=this._footer&&this._footer.getRecordBatch(t);if(n&&this._handle.seek(n.offset)){const r=this._reader.readMessage(yt.RecordBatch);if(r&&r.isRecordBatch()){const i=r.header(),s=this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(i,s)}}return null}_readDictionaryBatch(t){const n=this._footer&&this._footer.getDictionaryBatch(t);if(n&&this._handle.seek(n.offset)){const r=this._reader.readMessage(yt.DictionaryBatch);if(r&&r.isDictionaryBatch()){const i=r.header(),s=this._reader.readMessageBody(r.bodyLength),o=this._loadDictionaryBatch(i,s);this.dictionaries.set(i.id,o)}}}_readFooter(){const{_handle:t}=this,n=t.size-tE,r=t.readInt32(n),i=t.readAt(n-r,r);return hu.decode(i)}_readNextMessageAndValidate(t){if(this._footer||this.open(),this._footer&&this._recordBatchIndex=4?Sg(t)?new LE(new $E(e.read())):new Jf(new ed(e)):new Jf(new ed(function*(){}()))}async function y8(e){const t=await e.peek(Uu+7&-8);return t&&t.byteLength>=4?Sg(t)?new LE(new $E(await e.read())):new Zf(new td(e)):new Zf(new td(async function*(){}()))}async function g8(e){const{size:t}=await e.stat(),n=new Qf(e,t);return t>=HP&&Sg(await n.readAt(0,Uu+7&-8))?new f8(new d8(n)):new Zf(new td(n))}function v8(e,t){if(qi(e))return w8(e,t);if(ei(e))return b8(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function b8(e,t){let n=null;const r=t&&t.type==="bytes"||!1,i=t&&t.highWaterMark||2**24;return new ReadableStream({...t,start(o){s(o,n||(n=e[Symbol.iterator]()))},pull(o){n?s(o,n):o.close()},cancel(){(n&&n.return&&n.return()||!0)&&(n=null)}},{highWaterMark:r?i:void 0,...t});function s(o,a){let l,u=null,c=o.desiredSize||null;for(;!(u=a.next(r?c:null)).done;)if(ArrayBuffer.isView(u.value)&&(l=Ye(u.value))&&(c!=null&&r&&(c=c-l.byteLength+1),u.value=l),o.enqueue(u.value),c!=null&&--c<=0)return;o.close()}}function w8(e,t){let n=null;const r=t&&t.type==="bytes"||!1,i=t&&t.highWaterMark||2**24;return new ReadableStream({...t,async start(o){await s(o,n||(n=e[Symbol.asyncIterator]()))},async pull(o){n?await s(o,n):o.close()},async cancel(){(n&&n.return&&await n.return()||!0)&&(n=null)}},{highWaterMark:r?i:void 0,...t});async function s(o,a){let l,u=null,c=o.desiredSize||null;for(;!(u=await a.next(r?c:null)).done;)if(ArrayBuffer.isView(u.value)&&(l=Ye(u.value))&&(c!=null&&r&&(c=c-l.byteLength+1),u.value=l),o.enqueue(u.value),c!=null&&--c<=0)return;o.close()}}function x8(e){return new S8(e)}class S8{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;const{["readableStrategy"]:n,["writableStrategy"]:r,["queueingStrategy"]:i="count",...s}=t;this._controller=null,this._builder=$t.new(s),this._getSize=i!=="bytes"?U1:V1;const{["highWaterMark"]:o=i==="bytes"?2**14:1e3}={...n},{["highWaterMark"]:a=i==="bytes"?2**14:1e3}={...r};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:l=>{this._maybeFlush(this._builder,this._controller=l)},start:l=>{this._maybeFlush(this._builder,this._controller=l)}},{highWaterMark:o,size:i!=="bytes"?U1:V1}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:l=>this._writeValueAndReturnChunkSize(l)})}_writeValueAndReturnChunkSize(t){const n=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-n}_maybeFlush(t,n){n!==null&&(this._bufferedSize>=n.desiredSize&&++this._numChunks&&this._enqueue(n,t.toVector()),t.finished&&((t.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(n,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(n,null)))}_enqueue(t,n){this._bufferedSize=0,this._controller=null,n===null?t.close():t.enqueue(n)}}const U1=e=>e.length,V1=e=>e.byteLength;function _8(e,t){const n=new Dl;let r=null;const i=new ReadableStream({async cancel(){await n.close()},async start(a){await o(a,r||(r=await s()))},async pull(a){r?await o(a,r):a.close()}});return{writable:new WritableStream(n,{highWaterMark:2**14,...e}),readable:i};async function s(){return await(await Jr.from(n)).open(t)}async function o(a,l){let u=a.desiredSize,c=null;for(;!(c=await l.next()).done;)if(a.enqueue(c.value),u!=null&&--u<=0)return;a.close()}}function E8(e,t){const n=new this(e),r=new us(n),i=new ReadableStream({type:"bytes",async cancel(){await r.cancel()},async pull(o){await s(o)},async start(o){await s(o)}},{highWaterMark:2**14,...t});return{writable:new WritableStream(n,e),readable:i};async function s(o){let a=null,l=o.desiredSize;for(;a=await r.read(l||null);)if(o.enqueue(a),l!=null&&(l-=a.byteLength)<=0)return;o.close()}}class la{eq(t){return t instanceof la||(t=new ua(t)),new I8(this,t)}le(t){return t instanceof la||(t=new ua(t)),new T8(this,t)}ge(t){return t instanceof la||(t=new ua(t)),new C8(this,t)}lt(t){return new nf(this.ge(t))}gt(t){return new nf(this.le(t))}ne(t){return new nf(this.eq(t))}}class ua extends la{constructor(t){super(),this.v=t}}class UE extends la{constructor(t){super(),this.name=t}bind(t){if(!this.colidx){this.colidx=-1;const r=t.schema.fields;for(let i=-1;++in.get(r)}}class jg{and(...t){return new $g(this,...t)}or(...t){return new zg(this,...t)}not(){return new nf(this)}}class Lg extends jg{constructor(t,n){super(),this.left=t,this.right=n}bind(t){return this.left instanceof ua?this.right instanceof ua?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof ua?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}class Ng extends jg{constructor(...t){super(),this.children=t}}Ng.prototype.children=Object.freeze([]);class $g extends Ng{constructor(...t){t=t.reduce((n,r)=>n.concat(r instanceof $g?r.children:r),[]),super(...t)}bind(t){const n=this.children.map(r=>r.bind(t));return(r,i)=>n.every(s=>s(r,i))}}class zg extends Ng{constructor(...t){t=t.reduce((n,r)=>n.concat(r instanceof zg?r.children:r),[]),super(...t)}bind(t){const n=this.children.map(r=>r.bind(t));return(r,i)=>n.some(s=>s(r,i))}}class I8 extends Lg{_bindLitLit(t,n,r){const i=n.v==r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),s=r.bind(t);return(o,a)=>i(o,a)==s(o,a)}_bindColLit(t,n,r){const i=n.bind(t);if(n.vector instanceof Ag){let s;const o=n.vector;return o.dictionary!==this.lastDictionary?(s=o.reverseLookup(r.v),this.lastDictionary=o.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:a=>o.getKey(a)===s}else return(s,o)=>i(s,o)==r.v}_bindLitCol(t,n,r){return this._bindColLit(t,r,n)}}class T8 extends Lg{_bindLitLit(t,n,r){const i=n.v<=r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),s=r.bind(t);return(o,a)=>i(o,a)<=s(o,a)}_bindColLit(t,n,r){const i=n.bind(t);return(s,o)=>i(s,o)<=r.v}_bindLitCol(t,n,r){const i=r.bind(t);return(s,o)=>n.v<=i(s,o)}}class C8 extends Lg{_bindLitLit(t,n,r){const i=n.v>=r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),s=r.bind(t);return(o,a)=>i(o,a)>=s(o,a)}_bindColLit(t,n,r){const i=n.bind(t);return(s,o)=>i(s,o)>=r.v}_bindLitCol(t,n,r){const i=r.bind(t);return(s,o)=>n.v>=i(s,o)}}class nf extends jg{constructor(t){super(),this.child=t}bind(t){const n=this.child.bind(t);return(r,i)=>!n(r,i)}}et.prototype.countBy=function(e){return new Hu(this.chunks).countBy(e)};et.prototype.scan=function(e,t){return new Hu(this.chunks).scan(e,t)};et.prototype.scanReverse=function(e,t){return new Hu(this.chunks).scanReverse(e,t)};et.prototype.filter=function(e){return new Hu(this.chunks).filter(e)};class Hu extends et{filter(t){return new Ug(this.chunks,t)}scan(t,n){const r=this.chunks,i=r.length;for(let s=-1;++s=0;){const o=r[s];n&&n(o);for(let a=o.length;--a>=0;)t(a,o)}}countBy(t){const n=this.chunks,r=n.length,i=typeof t=="string"?new UE(t):t;i.bind(n[r-1]);const s=i.vector;if(!je.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");const o=Math.ceil(Math.log(s.length)/Math.log(256)),a=o==4?Uint32Array:o>=2?Uint16Array:Uint8Array,l=new a(s.dictionary.length);for(let u=-1;++u=0;){const o=r[s],a=this._predicate.bind(o);let l=!1;for(let u=o.length;--u>=0;)a(u,o)&&(n&&!l&&(n(o),l=!0),t(u,o))}}count(){let t=0;const n=this._chunks,r=n.length;for(let i=-1;++i=2?Uint16Array:Uint8Array,l=new a(s.dictionary.length);for(let u=-1;++u=s.headerRows&&a=s.headerColumns;if(l){var f=["blank"];return a>0&&f.push("level"+o),{type:"blank",classNames:f.join(" "),content:""}}else if(c){var p=a-s.headerColumns,f=["col_heading","level"+o,"col"+p];return{type:"columns",classNames:f.join(" "),content:s.getContent(s.columnsTable,p,o)}}else if(u){var h=o-s.headerRows,f=["row_heading","level"+a,"row"+h];return{type:"index",id:"T_"+s.uuid+"level"+a+"_row"+h,classNames:f.join(" "),content:s.getContent(s.indexTable,h,a)}}else{var h=o-s.headerRows,p=a-s.headerColumns,f=["data","row"+h,"col"+p],y=s.styler?s.getContent(s.styler.displayValuesTable,h,p):s.getContent(s.dataTable,h,p);return{type:"data",id:"T_"+s.uuid+"row"+h+"_col"+p,classNames:f.join(" "),content:y}}},this.getContent=function(o,a,l){var u=o.getColumnAt(l);if(u===null)return"";var c=s.getColumnTypeId(o,l);switch(c){case P.Timestamp:return s.nanosToDate(u.get(a));default:return u.get(a)}},this.dataTable=et.from(t),this.indexTable=et.from(n),this.columnsTable=et.from(r),this.styler=i?{caption:i.caption,displayValuesTable:et.from(i.displayValues),styles:i.styles,uuid:i.uuid}:void 0}return Object.defineProperty(e.prototype,"rows",{get:function(){return this.indexTable.length+this.columnsTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataRows",{get:function(){return this.dataTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.dataTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.indexTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){return{data:this.dataTable.serialize(),index:this.indexTable.serialize(),columns:this.columnsTable.serialize()}},e.prototype.getColumnTypeId=function(t,n){return t.schema.fields[n].type.typeId},e.prototype.nanosToDate=function(t){return new Date(t/1e6)},e}();/** - * @license - * Copyright 2018-2021 Streamlit Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */var Pl=globalThis&&globalThis.__assign||function(){return Pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?e.argsDataframeToObject(t.dfs):{};n=Pl(Pl({},n),r);var i=!!t.disabled,s=t.theme;s&&O8(s);var o={disabled:i,args:n,theme:s},a=new CustomEvent(e.RENDER_EVENT,{detail:o});e.events.dispatchEvent(a)},e.argsDataframeToObject=function(t){var n=t.map(function(r){var i=r.key,s=r.value;return[i,e.toArrowTable(s)]});return Object.fromEntries(n)},e.toArrowTable=function(t){var n=t.data,r=n.data,i=n.index,s=n.columns,o=n.styler;return new W1(r,i,s,o)},e.sendBackMsg=function(t,n){window.parent.postMessage(Pl({isStreamlitMessage:!0,type:t},n),"*")},e}(),O8=function(e){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML=` - :root { - --primary-color: `+e.primaryColor+`; - --background-color: `+e.backgroundColor+`; - --secondary-background-color: `+e.secondaryBackgroundColor+`; - --text-color: `+e.textColor+`; - --font: `+e.font+`; - } - - body { - background-color: var(--background-color); - color: var(--text-color); - } - `};function k8(e){var t=!1;try{t=e instanceof BigInt64Array||e instanceof BigUint64Array}catch{}return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array||t}/** - * @license - * Copyright 2018-2021 Streamlit Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */var WE=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),A8=function(e){WE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){Ir.setFrameHeight()},t.prototype.componentDidUpdate=function(){Ir.setFrameHeight()},t}(Rs.PureComponent);function B8(e){var t=function(n){WE(r,n);function r(i){var s=n.call(this,i)||this;return s.componentDidMount=function(){Ir.events.addEventListener(Ir.RENDER_EVENT,s.onRenderEvent),Ir.setComponentReady()},s.componentDidUpdate=function(){s.state.componentError!=null&&Ir.setFrameHeight()},s.componentWillUnmount=function(){Ir.events.removeEventListener(Ir.RENDER_EVENT,s.onRenderEvent)},s.onRenderEvent=function(o){var a=o;s.setState({renderData:a.detail})},s.render=function(){return s.state.componentError!=null?Rs.createElement("div",null,Rs.createElement("h1",null,"Component Error"),Rs.createElement("span",null,s.state.componentError.message)):s.state.renderData==null?null:Rs.createElement(e,{width:window.innerWidth,disabled:s.state.renderData.disabled,args:s.state.renderData.args,theme:s.state.renderData.theme})},s.state={renderData:void 0,componentError:void 0},s}return r.getDerivedStateFromError=function(i){return{componentError:i}},r}(Rs.PureComponent);return XT(t,e)}var HE={exports:{}};(function(e,t){(function(n,r){e.exports=r(A)})(kI,function(n){return function(r){var i={};function s(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=r,s.c=i,s.d=function(o,a,l){s.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:l})},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s.t=function(o,a){if(1&a&&(o=s(o)),8&a||4&a&&typeof o=="object"&&o&&o.__esModule)return o;var l=Object.create(null);if(s.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:o}),2&a&&typeof o!="string")for(var u in o)s.d(l,u,(function(c){return o[c]}).bind(null,u));return l},s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,"a",a),a},s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},s.p="",s(s.s=48)}([function(r,i){r.exports=n},function(r,i){var s=r.exports={version:"2.6.12"};typeof __e=="number"&&(__e=s)},function(r,i,s){var o=s(26)("wks"),a=s(17),l=s(3).Symbol,u=typeof l=="function";(r.exports=function(c){return o[c]||(o[c]=u&&l[c]||(u?l:a)("Symbol."+c))}).store=o},function(r,i){var s=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=s)},function(r,i,s){r.exports=!s(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,i){var s={}.hasOwnProperty;r.exports=function(o,a){return s.call(o,a)}},function(r,i,s){var o=s(7),a=s(16);r.exports=s(4)?function(l,u,c){return o.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},function(r,i,s){var o=s(10),a=s(35),l=s(23),u=Object.defineProperty;i.f=s(4)?Object.defineProperty:function(c,f,p){if(o(c),f=l(f,!0),o(p),a)try{return u(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(r,i){r.exports=function(s){try{return!!s()}catch{return!0}}},function(r,i,s){var o=s(40),a=s(22);r.exports=function(l){return o(a(l))}},function(r,i,s){var o=s(11);r.exports=function(a){if(!o(a))throw TypeError(a+" is not an object!");return a}},function(r,i){r.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},function(r,i){r.exports={}},function(r,i,s){var o=s(39),a=s(27);r.exports=Object.keys||function(l){return o(l,a)}},function(r,i){r.exports=!0},function(r,i,s){var o=s(3),a=s(1),l=s(53),u=s(6),c=s(5),f=function(p,h,y){var m,_,g,v=p&f.F,b=p&f.G,x=p&f.S,d=p&f.P,T=p&f.B,C=p&f.W,L=b?a:a[h]||(a[h]={}),R=L.prototype,k=b?o:x?o[h]:(o[h]||{}).prototype;for(m in b&&(y=h),y)(_=!v&&k&&k[m]!==void 0)&&c(L,m)||(g=_?k[m]:y[m],L[m]=b&&typeof k[m]!="function"?y[m]:T&&_?l(g,o):C&&k[m]==g?function(D){var V=function(H,te,F){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(H);case 2:return new D(H,te)}return new D(H,te,F)}return D.apply(this,arguments)};return V.prototype=D.prototype,V}(g):d&&typeof g=="function"?l(Function.call,g):g,d&&((L.virtual||(L.virtual={}))[m]=g,p&f.R&&R&&!R[m]&&u(R,m,g)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,r.exports=f},function(r,i){r.exports=function(s,o){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:o}}},function(r,i){var s=0,o=Math.random();r.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++s+o).toString(36))}},function(r,i,s){var o=s(22);r.exports=function(a){return Object(o(a))}},function(r,i){i.f={}.propertyIsEnumerable},function(r,i,s){var o=s(52)(!0);s(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,l=this._t,u=this._i;return u>=l.length?{value:void 0,done:!0}:(a=o(l,u),this._i+=a.length,{value:a,done:!1})})},function(r,i){var s=Math.ceil,o=Math.floor;r.exports=function(a){return isNaN(a=+a)?0:(a>0?o:s)(a)}},function(r,i){r.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},function(r,i,s){var o=s(11);r.exports=function(a,l){if(!o(a))return a;var u,c;if(l&&typeof(u=a.toString)=="function"&&!o(c=u.call(a))||typeof(u=a.valueOf)=="function"&&!o(c=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!o(c=u.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(r,i){var s={}.toString;r.exports=function(o){return s.call(o).slice(8,-1)}},function(r,i,s){var o=s(26)("keys"),a=s(17);r.exports=function(l){return o[l]||(o[l]=a(l))}},function(r,i,s){var o=s(1),a=s(3),l=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(r.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:o.version,mode:s(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,i,s){var o=s(7).f,a=s(5),l=s(2)("toStringTag");r.exports=function(u,c,f){u&&!a(u=f?u:u.prototype,l)&&o(u,l,{configurable:!0,value:c})}},function(r,i,s){s(62);for(var o=s(3),a=s(6),l=s(12),u=s(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;y--;)delete f.prototype[l[y]];return f()};r.exports=Object.create||function(p,h){var y;return p!==null?(c.prototype=o(p),y=new c,c.prototype=null,y[u]=p):y=f(),h===void 0?y:a(y,h)}},function(r,i,s){var o=s(5),a=s(9),l=s(57)(!1),u=s(25)("IE_PROTO");r.exports=function(c,f){var p,h=a(c),y=0,m=[];for(p in h)p!=u&&o(h,p)&&m.push(p);for(;f.length>y;)o(h,p=f[y++])&&(~l(m,p)||m.push(p));return m}},function(r,i,s){var o=s(24);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return o(a)=="String"?a.split(""):Object(a)}},function(r,i,s){var o=s(39),a=s(27).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(l){return o(l,a)}},function(r,i,s){var o=s(24),a=s(2)("toStringTag"),l=o(function(){return arguments}())=="Arguments";r.exports=function(u){var c,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(h,y){try{return h[y]}catch{}}(c=Object(u),a))=="string"?f:l?o(c):(p=o(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(r,i){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}r.exports=s},function(r,i){var s=/-?\d+(\.\d+)?%?/g;r.exports=function(o){return o.match(s)}},function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.getBase16Theme=i.createStyling=i.invertTheme=void 0;var o=_(s(49)),a=_(s(76)),l=_(s(81)),u=_(s(89)),c=_(s(93)),f=function(R){if(R&&R.__esModule)return R;var k={};if(R!=null)for(var D in R)Object.prototype.hasOwnProperty.call(R,D)&&(k[D]=R[D]);return k.default=R,k}(s(94)),p=_(s(132)),h=_(s(133)),y=_(s(138)),m=s(139);function _(R){return R&&R.__esModule?R:{default:R}}var g=f.default,v=(0,u.default)(g),b=(0,y.default)(h.default,m.rgb2yuv,function(R){var k,D=(0,l.default)(R,3),V=D[0],H=D[1],te=D[2];return[(k=V,k<.25?1:k<.5?.9-k:1.1-k),H,te]},m.yuv2rgb,p.default),x=function(R){return function(k){return{className:[k.className,R.className].filter(Boolean).join(" "),style:(0,a.default)({},k.style||{},R.style||{})}}},d=function(R,k){var D=(0,u.default)(k);for(var V in R)D.indexOf(V)===-1&&D.push(V);return D.reduce(function(H,te){return H[te]=function(F,ee){if(F===void 0)return ee;if(ee===void 0)return F;var ie=F===void 0?"undefined":(0,o.default)(F),M=ee===void 0?"undefined":(0,o.default)(ee);switch(ie){case"string":switch(M){case"string":return[ee,F].filter(Boolean).join(" ");case"object":return x({className:F,style:ee});case"function":return function(Z){for(var X=arguments.length,ce=Array(X>1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae2?D-2:0),H=2;H3?k-3:0),V=3;V1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=H.defaultBase16,ee=F===void 0?g:F,ie=H.base16Themes,M=ie===void 0?null:ie,Z=L(te,M);Z&&(te=(0,a.default)({},Z,te));var X=v.reduce(function(xe,Pe){return xe[Pe]=te[Pe]||ee[Pe],xe},{}),ce=(0,u.default)(te).reduce(function(xe,Pe){return v.indexOf(Pe)===-1&&(xe[Pe]=te[Pe]),xe},{}),ae=R(X),Ce=d(ce,ae);return(0,c.default)(T,2).apply(void 0,[Ce].concat(D))},3),i.getBase16Theme=function(R,k){if(R&&R.extend&&(R=R.extend),typeof R=="string"){var D=R.split(":"),V=(0,l.default)(D,2),H=V[0],te=V[1];R=(k||{})[H]||f[H],te==="inverted"&&(R=C(R))}return R&&R.hasOwnProperty("base00")?R:void 0})},function(r,i,s){var o,a=typeof Reflect=="object"?Reflect:null,l=a&&typeof a.apply=="function"?a.apply:function(d,T,C){return Function.prototype.apply.call(d,T,C)};o=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(d){return Object.getOwnPropertyNames(d).concat(Object.getOwnPropertySymbols(d))}:function(d){return Object.getOwnPropertyNames(d)};var u=Number.isNaN||function(d){return d!=d};function c(){c.init.call(this)}r.exports=c,r.exports.once=function(d,T){return new Promise(function(C,L){function R(D){d.removeListener(T,k),L(D)}function k(){typeof d.removeListener=="function"&&d.removeListener("error",R),C([].slice.call(arguments))}x(d,T,k,{once:!0}),T!=="error"&&function(D,V,H){typeof D.on=="function"&&x(D,"error",V,H)}(d,R,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(d){if(typeof d!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof d)}function h(d){return d._maxListeners===void 0?c.defaultMaxListeners:d._maxListeners}function y(d,T,C,L){var R,k,D,V;if(p(C),(k=d._events)===void 0?(k=d._events=Object.create(null),d._eventsCount=0):(k.newListener!==void 0&&(d.emit("newListener",T,C.listener?C.listener:C),k=d._events),D=k[T]),D===void 0)D=k[T]=C,++d._eventsCount;else if(typeof D=="function"?D=k[T]=L?[C,D]:[D,C]:L?D.unshift(C):D.push(C),(R=h(d))>0&&D.length>R&&!D.warned){D.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+D.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=d,H.type=T,H.count=D.length,V=H,console&&console.warn&&console.warn(V)}return d}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(d,T,C){var L={fired:!1,wrapFn:void 0,target:d,type:T,listener:C},R=m.bind(L);return R.listener=C,L.wrapFn=R,R}function g(d,T,C){var L=d._events;if(L===void 0)return[];var R=L[T];return R===void 0?[]:typeof R=="function"?C?[R.listener||R]:[R]:C?function(k){for(var D=new Array(k.length),V=0;V0&&(k=T[0]),k instanceof Error)throw k;var D=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw D.context=k,D}var V=R[d];if(V===void 0)return!1;if(typeof V=="function")l(V,this,T);else{var H=V.length,te=b(V,H);for(C=0;C=0;k--)if(C[k]===T||C[k].listener===T){D=C[k].listener,R=k;break}if(R<0)return this;R===0?C.shift():function(V,H){for(;H+1=0;L--)this.removeListener(d,T[L]);return this},c.prototype.listeners=function(d){return g(this,d,!0)},c.prototype.rawListeners=function(d){return g(this,d,!1)},c.listenerCount=function(d,T){return typeof d.listenerCount=="function"?d.listenerCount(T):v.call(d,T)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(r,i,s){r.exports.Dispatcher=s(140)},function(r,i,s){r.exports=s(142)},function(r,i,s){i.__esModule=!0;var o=u(s(50)),a=u(s(65)),l=typeof a.default=="function"&&typeof o.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function u(c){return c&&c.__esModule?c:{default:c}}i.default=typeof a.default=="function"&&l(o.default)==="symbol"?function(c){return c===void 0?"undefined":l(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":l(c)}},function(r,i,s){r.exports={default:s(51),__esModule:!0}},function(r,i,s){s(20),s(29),r.exports=s(30).f("iterator")},function(r,i,s){var o=s(21),a=s(22);r.exports=function(l){return function(u,c){var f,p,h=String(a(u)),y=o(c),m=h.length;return y<0||y>=m?l?"":void 0:(f=h.charCodeAt(y))<55296||f>56319||y+1===m||(p=h.charCodeAt(y+1))<56320||p>57343?l?h.charAt(y):f:l?h.slice(y,y+2):p-56320+(f-55296<<10)+65536}}},function(r,i,s){var o=s(54);r.exports=function(a,l,u){if(o(a),l===void 0)return a;switch(u){case 1:return function(c){return a.call(l,c)};case 2:return function(c,f){return a.call(l,c,f)};case 3:return function(c,f,p){return a.call(l,c,f,p)}}return function(){return a.apply(l,arguments)}}},function(r,i){r.exports=function(s){if(typeof s!="function")throw TypeError(s+" is not a function!");return s}},function(r,i,s){var o=s(38),a=s(16),l=s(28),u={};s(6)(u,s(2)("iterator"),function(){return this}),r.exports=function(c,f,p){c.prototype=o(u,{next:a(1,p)}),l(c,f+" Iterator")}},function(r,i,s){var o=s(7),a=s(10),l=s(13);r.exports=s(4)?Object.defineProperties:function(u,c){a(u);for(var f,p=l(c),h=p.length,y=0;h>y;)o.f(u,f=p[y++],c[f]);return u}},function(r,i,s){var o=s(9),a=s(58),l=s(59);r.exports=function(u){return function(c,f,p){var h,y=o(c),m=a(y.length),_=l(p,m);if(u&&f!=f){for(;m>_;)if((h=y[_++])!=h)return!0}else for(;m>_;_++)if((u||_ in y)&&y[_]===f)return u||_||0;return!u&&-1}}},function(r,i,s){var o=s(21),a=Math.min;r.exports=function(l){return l>0?a(o(l),9007199254740991):0}},function(r,i,s){var o=s(21),a=Math.max,l=Math.min;r.exports=function(u,c){return(u=o(u))<0?a(u+c,0):l(u,c)}},function(r,i,s){var o=s(3).document;r.exports=o&&o.documentElement},function(r,i,s){var o=s(5),a=s(18),l=s(25)("IE_PROTO"),u=Object.prototype;r.exports=Object.getPrototypeOf||function(c){return c=a(c),o(c,l)?c[l]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?u:null}},function(r,i,s){var o=s(63),a=s(64),l=s(12),u=s(9);r.exports=s(34)(Array,"Array",function(c,f){this._t=u(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),l.Arguments=l.Array,o("keys"),o("values"),o("entries")},function(r,i){r.exports=function(){}},function(r,i){r.exports=function(s,o){return{value:o,done:!!s}}},function(r,i,s){r.exports={default:s(66),__esModule:!0}},function(r,i,s){s(67),s(73),s(74),s(75),r.exports=s(1).Symbol},function(r,i,s){var o=s(3),a=s(5),l=s(4),u=s(15),c=s(37),f=s(68).KEY,p=s(8),h=s(26),y=s(28),m=s(17),_=s(2),g=s(30),v=s(31),b=s(69),x=s(70),d=s(10),T=s(11),C=s(18),L=s(9),R=s(23),k=s(16),D=s(38),V=s(71),H=s(72),te=s(32),F=s(7),ee=s(13),ie=H.f,M=F.f,Z=V.f,X=o.Symbol,ce=o.JSON,ae=ce&&ce.stringify,Ce=_("_hidden"),xe=_("toPrimitive"),Pe={}.propertyIsEnumerable,se=h("symbol-registry"),_e=h("symbols"),me=h("op-symbols"),ge=Object.prototype,Ie=typeof X=="function"&&!!te.f,st=o.QObject,on=!st||!st.prototype||!st.prototype.findChild,Qt=l&&p(function(){return D(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a!=7})?function(U,G,Y){var pe=ie(ge,G);pe&&delete ge[G],M(U,G,Y),pe&&U!==ge&&M(ge,G,pe)}:M,Ut=function(U){var G=_e[U]=D(X.prototype);return G._k=U,G},At=Ie&&typeof X.iterator=="symbol"?function(U){return typeof U=="symbol"}:function(U){return U instanceof X},Vt=function(U,G,Y){return U===ge&&Vt(me,G,Y),d(U),G=R(G,!0),d(Y),a(_e,G)?(Y.enumerable?(a(U,Ce)&&U[Ce][G]&&(U[Ce][G]=!1),Y=D(Y,{enumerable:k(0,!1)})):(a(U,Ce)||M(U,Ce,k(1,{})),U[Ce][G]=!0),Qt(U,G,Y)):M(U,G,Y)},wt=function(U,G){d(U);for(var Y,pe=b(G=L(G)),Se=0,he=pe.length;he>Se;)Vt(U,Y=pe[Se++],G[Y]);return U},vt=function(U){var G=Pe.call(this,U=R(U,!0));return!(this===ge&&a(_e,U)&&!a(me,U))&&(!(G||!a(this,U)||!a(_e,U)||a(this,Ce)&&this[Ce][U])||G)},sn=function(U,G){if(U=L(U),G=R(G,!0),U!==ge||!a(_e,G)||a(me,G)){var Y=ie(U,G);return!Y||!a(_e,G)||a(U,Ce)&&U[Ce][G]||(Y.enumerable=!0),Y}},ve=function(U){for(var G,Y=Z(L(U)),pe=[],Se=0;Y.length>Se;)a(_e,G=Y[Se++])||G==Ce||G==f||pe.push(G);return pe},Bt=function(U){for(var G,Y=U===ge,pe=Z(Y?me:L(U)),Se=[],he=0;pe.length>he;)!a(_e,G=pe[he++])||Y&&!a(ge,G)||Se.push(_e[G]);return Se};Ie||(c((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var U=m(arguments.length>0?arguments[0]:void 0),G=function(Y){this===ge&&G.call(me,Y),a(this,Ce)&&a(this[Ce],U)&&(this[Ce][U]=!1),Qt(this,U,k(1,Y))};return l&&on&&Qt(ge,U,{configurable:!0,set:G}),Ut(U)}).prototype,"toString",function(){return this._k}),H.f=sn,F.f=Vt,s(41).f=V.f=ve,s(19).f=vt,te.f=Bt,l&&!s(14)&&c(ge,"propertyIsEnumerable",vt,!0),g.f=function(U){return Ut(_(U))}),u(u.G+u.W+u.F*!Ie,{Symbol:X});for(var It="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),an=0;It.length>an;)_(It[an++]);for(var Je=ee(_.store),K=0;Je.length>K;)v(Je[K++]);u(u.S+u.F*!Ie,"Symbol",{for:function(U){return a(se,U+="")?se[U]:se[U]=X(U)},keyFor:function(U){if(!At(U))throw TypeError(U+" is not a symbol!");for(var G in se)if(se[G]===U)return G},useSetter:function(){on=!0},useSimple:function(){on=!1}}),u(u.S+u.F*!Ie,"Object",{create:function(U,G){return G===void 0?D(U):wt(D(U),G)},defineProperty:Vt,defineProperties:wt,getOwnPropertyDescriptor:sn,getOwnPropertyNames:ve,getOwnPropertySymbols:Bt});var z=p(function(){te.f(1)});u(u.S+u.F*z,"Object",{getOwnPropertySymbols:function(U){return te.f(C(U))}}),ce&&u(u.S+u.F*(!Ie||p(function(){var U=X();return ae([U])!="[null]"||ae({a:U})!="{}"||ae(Object(U))!="{}"})),"JSON",{stringify:function(U){for(var G,Y,pe=[U],Se=1;arguments.length>Se;)pe.push(arguments[Se++]);if(Y=G=pe[1],(T(G)||U!==void 0)&&!At(U))return x(G)||(G=function(he,We){if(typeof Y=="function"&&(We=Y.call(this,he,We)),!At(We))return We}),pe[1]=G,ae.apply(ce,pe)}}),X.prototype[xe]||s(6)(X.prototype,xe,X.prototype.valueOf),y(X,"Symbol"),y(Math,"Math",!0),y(o.JSON,"JSON",!0)},function(r,i,s){var o=s(17)("meta"),a=s(11),l=s(5),u=s(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!s(8)(function(){return f(Object.preventExtensions({}))}),h=function(m){u(m,o,{value:{i:"O"+ ++c,w:{}}})},y=r.exports={KEY:o,NEED:!1,fastKey:function(m,_){if(!a(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!l(m,o)){if(!f(m))return"F";if(!_)return"E";h(m)}return m[o].i},getWeak:function(m,_){if(!l(m,o)){if(!f(m))return!0;if(!_)return!1;h(m)}return m[o].w},onFreeze:function(m){return p&&y.NEED&&f(m)&&!l(m,o)&&h(m),m}}},function(r,i,s){var o=s(13),a=s(32),l=s(19);r.exports=function(u){var c=o(u),f=a.f;if(f)for(var p,h=f(u),y=l.f,m=0;h.length>m;)y.call(u,p=h[m++])&&c.push(p);return c}},function(r,i,s){var o=s(24);r.exports=Array.isArray||function(a){return o(a)=="Array"}},function(r,i,s){var o=s(9),a=s(41).f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(c){return u&&l.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return u.slice()}}(c):a(o(c))}},function(r,i,s){var o=s(19),a=s(16),l=s(9),u=s(23),c=s(5),f=s(35),p=Object.getOwnPropertyDescriptor;i.f=s(4)?p:function(h,y){if(h=l(h),y=u(y,!0),f)try{return p(h,y)}catch{}if(c(h,y))return a(!o.f.call(h,y),h[y])}},function(r,i){},function(r,i,s){s(31)("asyncIterator")},function(r,i,s){s(31)("observable")},function(r,i,s){i.__esModule=!0;var o,a=s(77),l=(o=a)&&o.__esModule?o:{default:o};i.default=l.default||function(u){for(var c=1;cg;)for(var x,d=f(arguments[g++]),T=v?a(d).concat(v(d)):a(d),C=T.length,L=0;C>L;)x=T[L++],o&&!b.call(d,x)||(m[x]=d[x]);return m}:p},function(r,i,s){i.__esModule=!0;var o=l(s(82)),a=l(s(85));function l(u){return u&&u.__esModule?u:{default:u}}i.default=function(u,c){if(Array.isArray(u))return u;if((0,o.default)(Object(u)))return function(f,p){var h=[],y=!0,m=!1,_=void 0;try{for(var g,v=(0,a.default)(f);!(y=(g=v.next()).done)&&(h.push(g.value),!p||h.length!==p);y=!0);}catch(b){m=!0,_=b}finally{try{!y&&v.return&&v.return()}finally{if(m)throw _}}return h}(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(r,i,s){r.exports={default:s(83),__esModule:!0}},function(r,i,s){s(29),s(20),r.exports=s(84)},function(r,i,s){var o=s(42),a=s(2)("iterator"),l=s(12);r.exports=s(1).isIterable=function(u){var c=Object(u);return c[a]!==void 0||"@@iterator"in c||l.hasOwnProperty(o(c))}},function(r,i,s){r.exports={default:s(86),__esModule:!0}},function(r,i,s){s(29),s(20),r.exports=s(87)},function(r,i,s){var o=s(10),a=s(88);r.exports=s(1).getIterator=function(l){var u=a(l);if(typeof u!="function")throw TypeError(l+" is not iterable!");return o(u.call(l))}},function(r,i,s){var o=s(42),a=s(2)("iterator"),l=s(12);r.exports=s(1).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||l[o(u)]}},function(r,i,s){r.exports={default:s(90),__esModule:!0}},function(r,i,s){s(91),r.exports=s(1).Object.keys},function(r,i,s){var o=s(18),a=s(13);s(92)("keys",function(){return function(l){return a(o(l))}})},function(r,i,s){var o=s(15),a=s(1),l=s(8);r.exports=function(u,c){var f=(a.Object||{})[u]||Object[u],p={};p[u]=c(f),o(o.S+o.F*l(function(){f(1)}),"Object",p)}},function(r,i,s){(function(o){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l=/^\s+|\s+$/g,u=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,y=/^\[object .+?Constructor\]$/,m=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,g=parseInt,v=typeof o=="object"&&o&&o.Object===Object&&o,b=typeof self=="object"&&self&&self.Object===Object&&self,x=v||b||Function("return this")();function d(K,z,U){switch(U.length){case 0:return K.call(z);case 1:return K.call(z,U[0]);case 2:return K.call(z,U[0],U[1]);case 3:return K.call(z,U[0],U[1],U[2])}return K.apply(z,U)}function T(K,z){return!!(K&&K.length)&&function(U,G,Y){if(G!=G)return function(he,We,ht,oe){for(var fe=he.length,ye=ht+(oe?1:-1);oe?ye--:++ye-1}function C(K){return K!=K}function L(K,z){for(var U=K.length,G=0;U--;)K[U]===z&&G++;return G}function R(K,z){for(var U=-1,G=K.length,Y=0,pe=[];++U2?D:void 0);function Pe(K){return It(K)?ce(K):{}}function se(K){return!(!It(K)||function(z){return!!ee&&ee in z}(K))&&(function(z){var U=It(z)?Z.call(z):"";return U=="[object Function]"||U=="[object GeneratorFunction]"}(K)||function(z){var U=!1;if(z!=null&&typeof z.toString!="function")try{U=!!(z+"")}catch{}return U}(K)?X:y).test(function(z){if(z!=null){try{return ie.call(z)}catch{}try{return z+""}catch{}}return""}(K))}function _e(K,z,U,G){for(var Y=-1,pe=K.length,Se=U.length,he=-1,We=z.length,ht=ae(pe-Se,0),oe=Array(We+ht),fe=!G;++he1&&Ke.reverse(),oe&&We1?"& ":"")+z[G],z=z.join(U>2?", ":" "),K.replace(u,`{ -/* [wrapped with `+z+`] */ -`)}function wt(K,z){return!!(z=z??9007199254740991)&&(typeof K=="number"||_.test(K))&&K>-1&&K%1==0&&K1&&l--,c=6*l<1?o+6*(a-o)*l:2*l<1?a:3*l<2?o+(a-o)*(2/3-l)*6:o,u[y]=255*c;return u}},function(r,i,s){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o,l=typeof self=="object"&&self&&self.Object===Object&&self,u=a||l||Function("return this")();function c(R,k,D){switch(D.length){case 0:return R.call(k);case 1:return R.call(k,D[0]);case 2:return R.call(k,D[0],D[1]);case 3:return R.call(k,D[0],D[1],D[2])}return R.apply(k,D)}function f(R,k){for(var D=-1,V=k.length,H=R.length;++D-1&&H%1==0&&H<=9007199254740991}(V.length)&&!function(H){var te=function(F){var ee=typeof F;return!!F&&(ee=="object"||ee=="function")}(H)?y.call(H):"";return te=="[object Function]"||te=="[object GeneratorFunction]"}(V)}(D)}(k)&&h.call(k,"callee")&&(!_.call(k,"callee")||y.call(k)=="[object Arguments]")}(R)||!!(g&&R&&R[g])}var x=Array.isArray,d,T,C,L=(T=function(R){var k=(R=function V(H,te,F,ee,ie){var M=-1,Z=H.length;for(F||(F=b),ie||(ie=[]);++M0&&F(X)?te>1?V(X,te-1,F,ee,ie):f(ie,X):ee||(ie[ie.length]=X)}return ie}(R,1)).length,D=k;for(d;D--;)if(typeof R[D]!="function")throw new TypeError("Expected a function");return function(){for(var V=0,H=k?R[V].apply(this,arguments):arguments[0];++V2?l-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,S=_(I);if(O){var E=_(this).constructor;w=Reflect.construct(S,arguments,E)}else w=S.apply(this,arguments);return v(this,w)}}s.r(i);var x=s(0),d=s.n(x);function T(){var I=this.constructor.getDerivedStateFromProps(this.props,this.state);I!=null&&this.setState(I)}function C(I){this.setState((function(O){var w=this.constructor.getDerivedStateFromProps(I,O);return w??null}).bind(this))}function L(I,O){try{var w=this.props,S=this.state;this.props=I,this.state=O,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(w,S)}finally{this.props=w,this.state=S}}function R(I){var O=I.prototype;if(!O||!O.isReactComponent)throw new Error("Can only polyfill class components");if(typeof I.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function")return I;var w=null,S=null,E=null;if(typeof O.componentWillMount=="function"?w="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"?S="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(S="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"?E="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(E="UNSAFE_componentWillUpdate"),w!==null||S!==null||E!==null){var $=I.displayName||I.name,Q=typeof I.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+$+" uses "+Q+" but also contains the following legacy lifecycles:"+(w!==null?` - `+w:"")+(S!==null?` - `+S:"")+(E!==null?` - `+E:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof I.getDerivedStateFromProps=="function"&&(O.componentWillMount=T,O.componentWillReceiveProps=C),typeof O.getSnapshotBeforeUpdate=="function"){if(typeof O.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");O.componentWillUpdate=L;var q=O.componentDidUpdate;O.componentDidUpdate=function(N,ne,le){var be=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:le;q.call(this,N,ne,be)}}return I}function k(I,O){if(I==null)return{};var w,S,E={},$=Object.keys(I);for(S=0;S<$.length;S++)w=$[S],O.indexOf(w)>=0||(E[w]=I[w]);return E}function D(I,O){if(I==null)return{};var w,S,E=k(I,O);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(I);for(S=0;S<$.length;S++)w=$[S],O.indexOf(w)>=0||Object.prototype.propertyIsEnumerable.call(I,w)&&(E[w]=I[w])}return E}function V(I){var O=function(w){return{}.toString.call(w).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(I);return O==="number"&&(O=isNaN(I)?"nan":(0|I)!=I?"float":"integer"),O}T.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,L.__suppressDeprecationWarning=!0;var H={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},te={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},F={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},ee=s(45),ie=function(I){var O=function(w){return{backgroundColor:w.base00,ellipsisColor:w.base09,braceColor:w.base07,expandedIcon:w.base0D,collapsedIcon:w.base0E,keyColor:w.base07,arrayKeyColor:w.base0C,objectSize:w.base04,copyToClipboard:w.base0F,copyToClipboardCheck:w.base0D,objectBorder:w.base02,dataTypes:{boolean:w.base0E,date:w.base0D,float:w.base0B,function:w.base0D,integer:w.base0F,string:w.base09,nan:w.base08,null:w.base0A,undefined:w.base05,regexp:w.base0A,background:w.base02},editVariable:{editIcon:w.base0E,cancelIcon:w.base09,removeIcon:w.base09,addIcon:w.base0E,checkIcon:w.base0E,background:w.base01,color:w.base0A,border:w.base07},addKeyModal:{background:w.base05,border:w.base04,color:w.base0A,labelColor:w.base01},validationFailure:{background:w.base09,iconColor:w.base01,fontColor:w.base01}}}(I);return{"app-container":{fontFamily:F.globalFontFamily,cursor:F.globalCursor,backgroundColor:O.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:O.ellipsisColor,fontSize:F.ellipsisFontSize,lineHeight:F.ellipsisLineHeight,cursor:F.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:F.braceCursor,fontWeight:F.braceFontWeight,color:O.braceColor},"expanded-icon":{color:O.expandedIcon},"collapsed-icon":{color:O.collapsedIcon},colon:{display:"inline-block",margin:F.keyMargin,color:O.keyColor,verticalAlign:"top"},objectKeyVal:function(w,S){return{style:c({paddingTop:F.keyValPaddingTop,paddingRight:F.keyValPaddingRight,paddingBottom:F.keyValPaddingBottom,borderLeft:F.keyValBorderLeft+" "+O.objectBorder,":hover":{paddingLeft:S.paddingLeft-1+"px",borderLeft:F.keyValBorderHover+" "+O.objectBorder}},S)}},"object-key-val-no-border":{padding:F.keyValPadding},"pushed-content":{marginLeft:F.pushedContentMarginLeft},variableValue:function(w,S){return{style:c({display:"inline-block",paddingRight:F.variableValuePaddingRight,position:"relative"},S)}},"object-name":{display:"inline-block",color:O.keyColor,letterSpacing:F.keyLetterSpacing,fontStyle:F.keyFontStyle,verticalAlign:F.keyVerticalAlign,opacity:F.keyOpacity,":hover":{opacity:F.keyOpacityHover}},"array-key":{display:"inline-block",color:O.arrayKeyColor,letterSpacing:F.keyLetterSpacing,fontStyle:F.keyFontStyle,verticalAlign:F.keyVerticalAlign,opacity:F.keyOpacity,":hover":{opacity:F.keyOpacityHover}},"object-size":{color:O.objectSize,borderRadius:F.objectSizeBorderRadius,fontStyle:F.objectSizeFontStyle,margin:F.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:F.dataTypeFontSize,marginRight:F.dataTypeMarginRight,opacity:F.datatypeOpacity},boolean:{display:"inline-block",color:O.dataTypes.boolean},date:{display:"inline-block",color:O.dataTypes.date},"date-value":{marginLeft:F.dateValueMarginLeft},float:{display:"inline-block",color:O.dataTypes.float},function:{display:"inline-block",color:O.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:O.dataTypes.integer},string:{display:"inline-block",color:O.dataTypes.string},nan:{display:"inline-block",color:O.dataTypes.nan,fontSize:F.nanFontSize,fontWeight:F.nanFontWeight,backgroundColor:O.dataTypes.background,padding:F.nanPadding,borderRadius:F.nanBorderRadius},null:{display:"inline-block",color:O.dataTypes.null,fontSize:F.nullFontSize,fontWeight:F.nullFontWeight,backgroundColor:O.dataTypes.background,padding:F.nullPadding,borderRadius:F.nullBorderRadius},undefined:{display:"inline-block",color:O.dataTypes.undefined,fontSize:F.undefinedFontSize,padding:F.undefinedPadding,borderRadius:F.undefinedBorderRadius,backgroundColor:O.dataTypes.background},regexp:{display:"inline-block",color:O.dataTypes.regexp},"copy-to-clipboard":{cursor:F.clipboardCursor},"copy-icon":{color:O.copyToClipboard,fontSize:F.iconFontSize,marginRight:F.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:O.copyToClipboardCheck,marginLeft:F.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:F.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:F.metaDataPadding},"icon-container":{display:"inline-block",width:F.iconContainerWidth},tooltip:{padding:F.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.removeIcon,cursor:F.iconCursor,fontSize:F.iconFontSize,marginRight:F.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.addIcon,cursor:F.iconCursor,fontSize:F.iconFontSize,marginRight:F.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.editIcon,cursor:F.iconCursor,fontSize:F.iconFontSize,marginRight:F.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:F.iconCursor,color:O.editVariable.checkIcon,fontSize:F.iconFontSize,paddingRight:F.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:F.iconCursor,color:O.editVariable.cancelIcon,fontSize:F.iconFontSize,paddingRight:F.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:F.editInputMinWidth,borderRadius:F.editInputBorderRadius,backgroundColor:O.editVariable.background,color:O.editVariable.color,padding:F.editInputPadding,marginRight:F.editInputMarginRight,fontFamily:F.editInputFontFamily},"detected-row":{paddingTop:F.detectedRowPaddingTop},"key-modal-request":{position:F.addKeyCoverPosition,top:F.addKeyCoverPositionPx,left:F.addKeyCoverPositionPx,right:F.addKeyCoverPositionPx,bottom:F.addKeyCoverPositionPx,backgroundColor:F.addKeyCoverBackground},"key-modal":{width:F.addKeyModalWidth,backgroundColor:O.addKeyModal.background,marginLeft:F.addKeyModalMargin,marginRight:F.addKeyModalMargin,padding:F.addKeyModalPadding,borderRadius:F.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:O.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:O.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:O.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:O.addKeyModal.labelColor,fontSize:F.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:O.editVariable.addIcon,fontSize:F.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:O.ellipsisColor,fontSize:F.ellipsisFontSize,lineHeight:F.ellipsisLineHeight,cursor:F.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:O.validationFailure.fontColor,backgroundColor:O.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:O.validationFailure.iconColor,fontSize:F.iconFontSize,transform:"rotate(45deg)"}}};function M(I,O,w){return I||console.error("theme has not been set"),function(S){var E=H;return S!==!1&&S!=="none"||(E=te),Object(ee.createStyling)(ie,{defaultBase16:E})(S)}(I)(O,w)}var Z=function(I){m(w,I);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props,E=(S.rjvId,S.type_name),$=S.displayDataTypes,Q=S.theme;return $?d.a.createElement("span",Object.assign({className:"data-type-label"},M(Q,"data-type-label")),E):null}}]),w}(d.a.PureComponent),X=function(I){m(w,I);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"boolean"),d.a.createElement(Z,Object.assign({type_name:"bool"},S)),S.value?"true":"false")}}]),w}(d.a.PureComponent),ce=function(I){m(w,I);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"date"),d.a.createElement(Z,Object.assign({type_name:"date"},S)),d.a.createElement("span",Object.assign({className:"date-value"},M(S.theme,"date-value")),S.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),w}(d.a.PureComponent),ae=function(I){m(w,I);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"float"),d.a.createElement(Z,Object.assign({type_name:"float"},S)),this.props.value)}}]),w}(d.a.PureComponent);function Ce(I,O){(O==null||O>I.length)&&(O=I.length);for(var w=0,S=new Array(O);w=I.length?{done:!0}:{done:!1,value:I[S++]}},e:function(N){throw N},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $,Q=!0,q=!1;return{s:function(){w=w.call(I)},n:function(){var N=w.next();return Q=N.done,N},e:function(N){q=!0,$=N},f:function(){try{Q||w.return==null||w.return()}finally{if(q)throw $}}}}function se(I){return function(O){if(Array.isArray(O))return Ce(O)}(I)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(I)||xe(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _e=s(46),me=new(s(47)).Dispatcher,ge=new(function(I){m(w,I);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;QE&&(q.style.cursor="pointer",this.state.collapsed&&(Q=d.a.createElement("span",null,Q.substring(0,E),d.a.createElement("span",M($,"ellipsis")," ...")))),d.a.createElement("div",M($,"string"),d.a.createElement(Z,Object.assign({type_name:"string"},S)),d.a.createElement("span",Object.assign({className:"string-value"},q,{onClick:this.toggleCollapsed}),'"',Q,'"'))}}]),w}(d.a.PureComponent),wt=function(I){m(w,I);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){return d.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),w}(d.a.PureComponent);function vt(){return(vt=Object.assign?Object.assign.bind():function(I){for(var O=1;O0?be:null,namespace:le.splice(0,le.length-1),existing_value:Ve,variable_removed:!1,key_name:null};V(Ve)==="object"?me.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ze,data:mt}):me.dispatch({name:"VARIABLE_ADDED",rjvId:Ze,data:c(c({},mt),{},{new_value:[].concat(se(Ve),[null])})})}})))},S.getRemoveObject=function(q){var N=S.props,ne=N.theme,le=(N.hover,N.namespace),be=N.name,Ve=N.src,Ze=N.rjvId;if(le.length!==1)return d.a.createElement("span",{className:"click-to-remove",style:{display:q?"inline-block":"none"}},d.a.createElement(Do,Object.assign({className:"click-to-remove-icon"},M(ne,"removeVarIcon"),{onClick:function(){me.dispatch({name:"VARIABLE_REMOVED",rjvId:Ze,data:{name:be,namespace:le.splice(0,le.length-1),existing_value:Ve,variable_removed:!0}})}})))},S.render=function(){var q=S.props,N=q.theme,ne=q.onDelete,le=q.onAdd,be=q.enableClipboard,Ve=q.src,Ze=q.namespace,Le=q.rowHovered;return d.a.createElement("div",Object.assign({},M(N,"object-meta-data"),{className:"object-meta-data",onClick:function(mt){mt.stopPropagation()}}),S.getObjectSize(),be?d.a.createElement(Ga,{rowHovered:Le,clickCallback:be,src:Ve,theme:N,namespace:Ze}):null,le!==!1?S.getAddAttribute(Le):null,ne!==!1?S.getRemoveObject(Le):null)},S}return h(w)}(d.a.PureComponent);function Qa(I){var O=I.parent_type,w=I.namespace,S=I.quotesOnKeys,E=I.theme,$=I.jsvRoot,Q=I.name,q=I.displayArrayKey,N=I.name?I.name:"";return!$||Q!==!1&&Q!==null?O=="array"?q?d.a.createElement("span",Object.assign({},M(E,"array-key"),{key:w}),d.a.createElement("span",{className:"array-key"},N),d.a.createElement("span",M(E,"colon"),":")):d.a.createElement("span",null):d.a.createElement("span",Object.assign({},M(E,"object-name"),{key:w}),d.a.createElement("span",{className:"object-key"},S&&d.a.createElement("span",{style:{verticalAlign:"top"}},'"'),d.a.createElement("span",null,N),S&&d.a.createElement("span",{style:{verticalAlign:"top"}},'"')),d.a.createElement("span",M(E,"colon"),":")):d.a.createElement("span",null)}function Yu(I){var O=I.theme;switch(I.iconStyle){case"triangle":return d.a.createElement(Fo,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}));case"square":return d.a.createElement(br,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}));default:return d.a.createElement(pn,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}))}}function qu(I){var O=I.theme;switch(I.iconStyle){case"triangle":return d.a.createElement(Un,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return d.a.createElement(zn,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}));default:return d.a.createElement($r,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}))}}var Rp=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Gu=function(I){m(w,I);var O=b(w);function w(S){var E;return f(this,w),(E=O.call(this,S)).toggleCollapsed=function($){var Q=[];for(var q in E.state.expanded)Q.push(E.state.expanded[q]);Q[$]=!Q[$],E.setState({expanded:Q})},E.state={expanded:[]},E}return h(w,[{key:"getExpandedIcon",value:function(S){var E=this.props,$=E.theme,Q=E.iconStyle;return this.state.expanded[S]?d.a.createElement(Yu,{theme:$,iconStyle:Q}):d.a.createElement(qu,{theme:$,iconStyle:Q})}},{key:"render",value:function(){var S=this,E=this.props,$=E.src,Q=E.groupArraysAfterLength,q=(E.depth,E.name),N=E.theme,ne=E.jsvRoot,le=E.namespace,be=(E.parent_type,D(E,Rp)),Ve=0,Ze=5*this.props.indentWidth;ne||(Ve=5*this.props.indentWidth);var Le=Q,mt=Math.ceil($.length/Le);return d.a.createElement("div",Object.assign({className:"object-key-val"},M(N,ne?"jsv-root":"objectKeyVal",{paddingLeft:Ve})),d.a.createElement(Qa,this.props),d.a.createElement("span",null,d.a.createElement(Xa,Object.assign({size:$.length},this.props))),se(Array(mt)).map(function(Rt,nt){return d.a.createElement("div",Object.assign({key:nt,className:"object-key-val array-group"},M(N,"objectKeyVal",{marginLeft:6,paddingLeft:Ze})),d.a.createElement("span",M(N,"brace-row"),d.a.createElement("div",Object.assign({className:"icon-container"},M(N,"icon-container"),{onClick:function(Fn){S.toggleCollapsed(nt)}}),S.getExpandedIcon(nt)),S.state.expanded[nt]?d.a.createElement(Xu,Object.assign({key:q+nt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Le,index_offset:nt*Le,src:$.slice(nt*Le,nt*Le+Le),namespace:le,type:"array",parent_type:"array_group",theme:N},be)):d.a.createElement("span",Object.assign({},M(N,"brace"),{onClick:function(Fn){S.toggleCollapsed(nt)},className:"array-group-brace"}),"[",d.a.createElement("div",Object.assign({},M(N,"array-group-meta-data"),{className:"array-group-meta-data"}),d.a.createElement("span",Object.assign({className:"object-size"},M(N,"object-size")),nt*Le," - ",nt*Le+Le>$.length?$.length:nt*Le+Le)),"]")))}))}}]),w}(d.a.PureComponent),ze=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],vn=function(I){m(w,I);var O=b(w);function w(S){var E;f(this,w),(E=O.call(this,S)).toggleCollapsed=function(){E.setState({expanded:!E.state.expanded},function(){Ie.set(E.props.rjvId,E.props.namespace,"expanded",E.state.expanded)})},E.getObjectContent=function(Q,q,N){return d.a.createElement("div",{className:"pushed-content object-container"},d.a.createElement("div",Object.assign({className:"object-content"},M(E.props.theme,"pushed-content")),E.renderObjectContents(q,N)))},E.getEllipsis=function(){return E.state.size===0?null:d.a.createElement("div",Object.assign({},M(E.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:E.toggleCollapsed}),"...")},E.getObjectMetaData=function(Q){var q=E.props,N=(q.rjvId,q.theme,E.state),ne=N.size,le=N.hovered;return d.a.createElement(Xa,Object.assign({rowHovered:le,size:ne},E.props))},E.renderObjectContents=function(Q,q){var N,ne=E.props,le=ne.depth,be=ne.parent_type,Ve=ne.index_offset,Ze=ne.groupArraysAfterLength,Le=ne.namespace,mt=E.state.object_type,Rt=[],nt=Object.keys(Q||{});return E.props.sortKeys&&mt!=="array"&&(nt=nt.sort()),nt.forEach(function(Fn){if(N=new xI(Fn,Q[Fn]),be==="array_group"&&Ve&&(N.name=parseInt(N.name)+Ve),Q.hasOwnProperty(Fn))if(N.type==="object")Rt.push(d.a.createElement(Xu,Object.assign({key:N.name,depth:le+1,name:N.name,src:N.value,namespace:Le.concat(N.name),parent_type:mt},q)));else if(N.type==="array"){var Ci=Xu;Ze&&N.value.length>Ze&&(Ci=Gu),Rt.push(d.a.createElement(Ci,Object.assign({key:N.name,depth:le+1,name:N.name,src:N.value,namespace:Le.concat(N.name),type:"array",parent_type:mt},q)))}else Rt.push(d.a.createElement(Ku,Object.assign({key:N.name+"_"+Le,variable:N,singleIndent:5,namespace:Le,type:E.props.type},q)))}),Rt};var $=w.getState(S);return E.state=c(c({},$),{},{prevProps:{}}),E}return h(w,[{key:"getBraceStart",value:function(S,E){var $=this,Q=this.props,q=Q.src,N=Q.theme,ne=Q.iconStyle;if(Q.parent_type==="array_group")return d.a.createElement("span",null,d.a.createElement("span",M(N,"brace"),S==="array"?"[":"{"),E?this.getObjectMetaData(q):null);var le=E?Yu:qu;return d.a.createElement("span",null,d.a.createElement("span",Object.assign({onClick:function(be){$.toggleCollapsed()}},M(N,"brace-row")),d.a.createElement("div",Object.assign({className:"icon-container"},M(N,"icon-container")),d.a.createElement(le,{theme:N,iconStyle:ne})),d.a.createElement(Qa,this.props),d.a.createElement("span",M(N,"brace"),S==="array"?"[":"{")),E?this.getObjectMetaData(q):null)}},{key:"render",value:function(){var S=this,E=this.props,$=E.depth,Q=E.src,q=(E.namespace,E.name,E.type,E.parent_type),N=E.theme,ne=E.jsvRoot,le=E.iconStyle,be=D(E,ze),Ve=this.state,Ze=Ve.object_type,Le=Ve.expanded,mt={};return ne||q==="array_group"?q==="array_group"&&(mt.borderLeft=0,mt.display="inline"):mt.paddingLeft=5*this.props.indentWidth,d.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return S.setState(c(c({},S.state),{},{hovered:!0}))},onMouseLeave:function(){return S.setState(c(c({},S.state),{},{hovered:!1}))}},M(N,ne?"jsv-root":"objectKeyVal",mt)),this.getBraceStart(Ze,Le),Le?this.getObjectContent($,Q,c({theme:N,iconStyle:le},be)):this.getEllipsis(),d.a.createElement("span",{className:"brace-row"},d.a.createElement("span",{style:c(c({},M(N,"brace").style),{},{paddingLeft:Le?"3px":"0px"})},Ze==="array"?"]":"}"),Le?null:this.getObjectMetaData(Q)))}}],[{key:"getDerivedStateFromProps",value:function(S,E){var $=E.prevProps;return S.src!==$.src||S.collapsed!==$.collapsed||S.name!==$.name||S.namespace!==$.namespace||S.rjvId!==$.rjvId?c(c({},w.getState(S)),{},{prevProps:S}):null}}]),w}(d.a.PureComponent);vn.getState=function(I){var O=Object.keys(I.src).length,w=(I.collapsed===!1||I.collapsed!==!0&&I.collapsed>I.depth)&&(!I.shouldCollapse||I.shouldCollapse({name:I.name,src:I.src,type:V(I.src),namespace:I.namespace})===!1)&&O!==0;return{expanded:Ie.get(I.rjvId,I.namespace,"expanded",w),object_type:I.type==="array"?"array":"object",parent_type:I.type==="array"?"array":"object",size:O,hovered:!1}};var xI=h(function I(O,w){f(this,I),this.name=O,this.value=w,this.type=V(w)});R(vn);var Xu=vn,SI=function(I){m(w,I);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;Qbe.groupArraysAfterLength&&(Ze=Gu),d.a.createElement("div",{className:"pretty-json-container object-container"},d.a.createElement("div",{className:"object-content"},d.a.createElement(Ze,Object.assign({namespace:Ve,depth:0,jsvRoot:!0},be))))},S}return h(w)}(d.a.PureComponent),_I=function(I){m(w,I);var O=b(w);function w(S){var E;return f(this,w),(E=O.call(this,S)).closeModal=function(){me.dispatch({rjvId:E.props.rjvId,name:"RESET"})},E.submit=function(){E.props.submit(E.state.input)},E.state={input:S.input?S.input:""},E}return h(w,[{key:"render",value:function(){var S=this,E=this.props,$=E.theme,Q=E.rjvId,q=E.isValid,N=this.state.input,ne=q(N);return d.a.createElement("div",Object.assign({className:"key-modal-request"},M($,"key-modal-request"),{onClick:this.closeModal}),d.a.createElement("div",Object.assign({},M($,"key-modal"),{onClick:function(le){le.stopPropagation()}}),d.a.createElement("div",M($,"key-modal-label"),"Key Name:"),d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("input",Object.assign({},M($,"key-modal-input"),{className:"key-modal-input",ref:function(le){return le&&le.focus()},spellCheck:!1,value:N,placeholder:"...",onChange:function(le){S.setState({input:le.target.value})},onKeyPress:function(le){ne&&le.key==="Enter"?S.submit():le.key==="Escape"&&S.closeModal()}})),ne?d.a.createElement(Ti,Object.assign({},M($,"key-modal-submit"),{className:"key-modal-submit",onClick:function(le){return S.submit()}})):null),d.a.createElement("span",M($,"key-modal-cancel"),d.a.createElement(Qi,Object.assign({},M($,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){me.dispatch({rjvId:Q,name:"RESET"})}})))))}}]),w}(d.a.PureComponent),EI=function(I){m(w,I);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;QIr.setFrameHeight(),children:B.jsx(M8,{src:e??{},name:null,collapsed:2,collapseStringsAfterLength:140,style:{fontSize:"14px"}})})}const F8=To(B.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z"}),"AccessTimeRounded"),D8=To(B.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),P8=To(B.jsx("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");function j8({title:e,placement:t,children:n}){return B.jsx(n6,{title:e,componentsProps:{tooltip:{sx:{color:({palette:r})=>r.text.primary,backgroundColor:({palette:r})=>r.grey[50],border:({palette:r})=>`1px solid ${r.grey[300]}`,boxShadow:"0px 8px 16px 0px #0000000D"}}},placement:t,children:n})}function KE({node:e,children:t}){const{startTime:n,endTime:r,selector:i}=e;return B.jsx(j8,{title:B.jsxs(cn,{sx:{lineHeight:1.5},children:[B.jsxs("span",{children:[B.jsx("b",{children:"Selector: "}),i]}),B.jsx("br",{}),B.jsxs("span",{children:[B.jsx("b",{children:"Start: "}),new Date(n).toLocaleDateString()," ",new Date(n).toLocaleTimeString()]}),B.jsx("br",{}),B.jsxs("span",{children:[B.jsx("b",{children:"End: "}),new Date(r).toLocaleDateString()," ",new Date(r).toLocaleTimeString()]})]}),children:t})}function YE({node:e,depth:t,totalTime:n,treeStart:r,selectedNodeId:i,setSelectedNodeId:s}){A.useEffect(()=>Ir.setFrameHeight());const[o,a]=A.useState(!0),{nodeId:l,startTime:u,timeTaken:c,selector:f,label:p}=e,h=i===l;return B.jsxs(B.Fragment,{children:[B.jsxs(z_,{onClick:()=>s(l??null),sx:{...N8,background:h?({palette:y})=>y.primary.lighter:void 0},children:[B.jsx(ia,{children:B.jsxs(cn,{sx:{ml:t,display:"flex",flexDirection:"row"},children:[e.children.length>0&&B.jsx(UB,{onClick:()=>a(!o),disableRipple:!0,size:"small",children:o?B.jsx(D8,{}):B.jsx(P8,{})}),B.jsxs(cn,{sx:{display:"flex",alignItems:"center",ml:e.children.length===0?5:0},children:[B.jsx(Rn,{fontWeight:"bold",children:p}),B.jsx(Rn,{variant:"code",sx:{ml:1,px:1},children:f})]})]})}),B.jsxs(ia,{align:"right",children:[c," ms"]}),B.jsx(ia,{sx:{minWidth:500,padding:0},children:B.jsx(KE,{node:e,children:B.jsx(cn,{sx:{left:`${(u-r)/n*100}%`,width:`${c/n*100}%`,background:({palette:y})=>i===null||h?y.grey[500]:y.grey[300],...L8}})})})]}),o?e.children.map(y=>B.jsx(YE,{selectedNodeId:i,setSelectedNodeId:s,node:y,depth:t+1,totalTime:n,treeStart:r},y.nodeId)):null]})}const L8={position:"relative",height:20,borderRadius:.5},N8={cursor:"pointer","&:hover":{background:({palette:e})=>e.primary.lighter}};function $8({root:e,selectedNodeId:t,setSelectedNodeId:n}){const{timeTaken:r,startTime:i}=e;return B.jsx(P6,{children:B.jsxs(m6,{sx:z8,"aria-label":"Table breakdown of the components in the current app",size:"small",children:[B.jsx(V6,{children:B.jsxs(z_,{children:[B.jsx(ia,{width:275,children:"Method"}),B.jsx(ia,{width:75,children:"Duration"}),B.jsx(ia,{children:"Timeline"})]})}),B.jsx(_6,{children:B.jsx(YE,{selectedNodeId:t,setSelectedNodeId:n,node:e,depth:0,totalTime:r,treeStart:i})})]})})}const z8={borderRadius:4,border:({palette:e})=>`0.5px solid ${e.grey[300]}`,minWidth:650,"& th":{backgroundColor:({palette:e})=>e.grey[100],color:({palette:e})=>e.grey[600],fontWeight:600},"& .MuiTableCell-root":{borderRight:({palette:e})=>`1px solid ${e.grey[300]}`},"& .MuiTableCell-root:last-child":{borderRight:"none"},"& .MuiTableBody-root .MuiTableCell-root":{mx:1}},Vg=(...e)=>e.map(t=>Array.isArray(t)?t:[t]).flat(),U8={value:"label-and-value-value"};function qE({label:e,value:t,align:n="start",sx:r={}}){return B.jsxs(cn,{sx:Vg(W8,r),children:[B.jsx(Rn,{variant:"subtitle1",sx:V8,children:e}),B.jsx(cn,{className:U8.value,sx:{display:"flex",flexDirection:"column",alignItems:n},children:t})]})}const V8={display:"flex",flexDirection:"column",fontWeight:({typography:e})=>e.fontWeightBold},W8={display:"flex",flexDirection:"column",marginRight:3};function GE({header:e,children:t}){return B.jsxs(cn,{sx:H8,children:[B.jsx(cn,{className:"panel-header",children:B.jsx(Rn,{variant:"body2",fontWeight:"bold",color:"grey.600",children:e})}),B.jsx(cn,{className:"panel-content",children:t})]})}const H8=({spacing:e,palette:t})=>({borderRadius:e(.5),border:`1px solid ${t.grey[300]}`,width:"100%","& .panel-header":{background:t.grey[100],p:1,borderBottom:`1px solid ${t.grey[300]}`},"& .panel-content":{p:2}});function Ll({title:e,subtitle:t,body:n,children:r}){return B.jsxs(Ea,{gap:1,children:[B.jsxs(cn,{sx:{display:"flex",gap:1,alignItems:"baseline"},children:[B.jsx(Rn,{variant:"body2",fontWeight:"bold",children:e}),t&&B.jsx(Rn,{variant:"code",children:t})]}),B.jsx(Rn,{children:n}),r]})}const K8={border:({palette:e})=>`1px solid ${e.grey[300]}`,pl:2,py:1,borderRadius:.5,width:"fit-content"};function XE({recordJSON:e}){const{main_input:t,main_output:n,main_error:r}=e;return B.jsx(GE,{header:"Trace I/O",children:B.jsxs(Ea,{gap:2,children:[B.jsx(Ll,{title:"Input",subtitle:"Select.RecordInput",body:t??"No input found."}),B.jsx(Ll,{title:"Output",subtitle:"Select.RecordOutput",body:n??"No output found."}),r&&B.jsx(Ll,{title:"Error",body:r??"No error found."})]})})}function Y8({selectedNode:e,recordJSON:t}){const{timeTaken:n,raw:r,selector:i}=e,{args:s,rets:o}=r??{};let a=B.jsx(Rn,{children:"No return values recorded"});return o&&(typeof o=="string"&&(a=B.jsx(Rn,{children:o})),typeof o=="object"&&(a=B.jsx(Ys,{src:o}))),B.jsxs(B.Fragment,{children:[B.jsx(Ea,{direction:"row",sx:K8,children:B.jsx(qE,{label:"Time taken",value:B.jsxs(Rn,{children:[n," ms"]})})}),B.jsxs(ra,{container:!0,gap:1,children:[B.jsx(ra,{item:!0,xs:12,children:B.jsx(GE,{header:"Span I/O",children:B.jsxs(Ea,{gap:2,children:[B.jsx(Ll,{title:"Arguments",subtitle:i?`${i}.args`:void 0,children:s?B.jsx(Ys,{src:s}):"No arguments recorded."}),B.jsx(Ll,{title:"Return values",subtitle:i?`${i}.rets`:void 0,children:a})]})})}),B.jsx(ra,{item:!0,xs:12,children:B.jsx(XE,{recordJSON:t})})]})]})}function q8({root:e,recordJSON:t}){const{timeTaken:n}=e;return B.jsxs(B.Fragment,{children:[B.jsx(Ea,{direction:"row",sx:G8,children:B.jsx(qE,{label:"Latency",value:B.jsxs(Rn,{children:[n," ms"]})})}),B.jsx(XE,{recordJSON:t})]})}const G8={border:({palette:e})=>`1px solid ${e.grey[300]}`,pl:2,py:1,borderRadius:.5,width:"fit-content"};function X8({selectedNode:e,recordJSON:t}){return e?e.isRoot?B.jsx(q8,{root:e,recordJSON:t}):B.jsx(Y8,{selectedNode:e,recordJSON:t}):B.jsx(B.Fragment,{children:"Node not found."})}var Wg={},Fh={};const Q8=Wi(Uk);var H1;function QE(){return H1||(H1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Q8}(Fh)),Fh}var J8=Dd;Object.defineProperty(Wg,"__esModule",{value:!0});var JE=Wg.default=void 0,Z8=J8(QE()),eL=B,tL=(0,Z8.default)((0,eL.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"}),"KeyboardArrowDownRounded");JE=Wg.default=tL;var Hg={},nL=Dd;Object.defineProperty(Hg,"__esModule",{value:!0});var ZE=Hg.default=void 0,rL=nL(QE()),iL=B,oL=(0,rL.default)((0,iL.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0z"}),"KeyboardArrowUpRounded");ZE=Hg.default=oL;function sL(e){return tn("MuiSimpleTreeView",e)}nn("MuiSimpleTreeView",["root"]);const aL=(e,t)=>{const n=A.useRef({}),[r,i]=A.useState(()=>{const o={};return e.forEach(a=>{a.models&&Object.entries(a.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},o[l]=u.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,a])=>{const l=a.isControlled?t[o]:r[o];return[o,{value:l,setControlledValue:u=>{a.isControlled||i(c=>j({},c,{[o]:u}))}}]}))};class lL{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let o=i.length-1;o>=0;o-=1){const a=i[o];r.highPriority.has(a)&&a.apply(this,n)}for(let o=0;o{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),i=r.indexOf(t);if(i===0)return n.parentId;let s=r[i-1];for(;e.isItemExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},ry=(e,t)=>{if(e.isItemExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),i=r[r.indexOf(n.id)+1];if(i)return i;n=e.getNode(n.parentId)}return null},iy=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isItemExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},oy=e=>e.getNavigableChildrenIds(null)[0],Mo=(e,t)=>{Object.assign(e,t)},eI=(e,t)=>{Object.assign(e,t)},cL=e=>e.isPropagationStopped!==void 0,tI=({instance:e})=>{const[t]=A.useState(()=>new lL),n=A.useCallback((...i)=>{const[s,o,a={}]=i;a.defaultMuiPrevented=!1,!(cL(a)&&a.isPropagationStopped())&&t.emit(s,o,a)},[t]),r=A.useCallback((i,s)=>(t.on(i,s),()=>{t.removeListener(i,s)}),[t]);Mo(e,{$$publishEvent:n,$$subscribeEvent:r})};tI.params={};const fL=[tI];function dL(e){const t=A.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const pL=e=>{const t=[...fL,...e.plugins],n=t.reduce((_,g)=>g.getDefaultizedParams?g.getDefaultizedParams(_):_,e),r=aL(t,n),s=A.useRef({}).current,o=dL(e.apiRef),a=A.useRef(null),l=Ln(a,e.rootRef),[u,c]=A.useState(()=>{const _={};return t.forEach(g=>{g.getInitialState&&Object.assign(_,g.getInitialState(n))}),_}),f=[],p={publicAPI:o,instance:s},h=_=>{const g=_({instance:s,publicAPI:o,params:n,slots:n.slots,slotProps:n.slotProps,state:u,setState:c,rootRef:a,models:r})||{};g.getRootProps&&f.push(g.getRootProps),g.contextValue&&Object.assign(p,g.contextValue)};t.forEach(h),p.runItemPlugins=_=>{let g=null,v=null;return t.forEach(b=>{if(!b.itemPlugin)return;const x=b.itemPlugin({props:_,rootRef:g,contentRef:v});x!=null&&x.rootRef&&(g=x.rootRef),x!=null&&x.contentRef&&(v=x.contentRef)}),{contentRef:v,rootRef:g}};const y=t.map(_=>_.wrapItem).filter(_=>!!_);return p.wrapItem=({itemId:_,children:g})=>{let v=g;return y.forEach(b=>{v=b({itemId:_,children:v})}),v},{getRootProps:(_={})=>{const g=j({role:"tree"},_,{ref:l});return f.forEach(v=>{Object.assign(g,v(_))}),g},rootRef:l,contextValue:p,instance:s}},nI=A.createContext(null),hL=["element"];function mL(e,t){let n=0,r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2);if(e[i].element===t)return i;e[i].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=i-1:n=i+1}return n}const rI=A.createContext({});function yL(e){const t=A.useRef(null);return A.useEffect(()=>{t.current=e},[e]),t.current}const K1=()=>{};function gL(e){const[,t]=A.useState(),{registerDescendant:n=K1,unregisterDescendant:r=K1,descendants:i=[],parentId:s=null}=A.useContext(rI),o=i.findIndex(u=>u.element===e.element),a=yL(i),l=i.some((u,c)=>a&&a[c]&&a[c].element!==u.element);return vo(()=>{if(e.element)return n(j({},e,{index:o})),()=>{r(e.element)};t({})},[n,r,o,l,e]),{parentId:s,index:o}}function iI(e){const{children:t,id:n}=e,[r,i]=A.useState([]),s=A.useCallback(l=>{let{element:u}=l,c=Te(l,hL);i(f=>{if(f.length===0)return[j({},c,{element:u,index:0})];const p=mL(f,u);let h;if(f[p]&&f[p].element===u)h=f;else{const y=j({},c,{element:u,index:p});h=f.slice(),h.splice(p,0,y)}return h.forEach((y,m)=>{y.index=m}),h})},[]),o=A.useCallback(l=>{i(u=>u.filter(c=>l!==c.element))},[]),a=A.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:o,parentId:n}),[r,s,o,n]);return B.jsx(rI.Provider,{value:a,children:t})}function vL(e){const{value:t,children:n}=e;return B.jsx(nI.Provider,{value:t,children:B.jsx(iI,{children:n})})}const oI=({instance:e,params:t})=>{const n=My(t.id),r=A.useCallback((i,s)=>s??`${n}-${i}`,[n]);return Mo(e,{getTreeItemId:r}),{getRootProps:()=>({id:n})}};oI.params={id:!0};const sI=(e,t,n)=>{e.$$publishEvent(t,n)},aI=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},s={},o=(l,u,c)=>{var h,y;const f=r?r(l):l.id;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(l)].join(` -`));if(i[f]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Tow items were provided with the same id in the \`items\` prop: "${f}"`].join(` -`));const p=n?n(l):l.label;if(p==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(l)].join(` -`));return i[f]={id:f,label:p,index:u,parentId:c,idAttribute:void 0,expandable:!!((h=l.children)!=null&&h.length),disabled:t?t(l):!1},s[f]=l,{id:f,children:(y=l.children)==null?void 0:y.map((m,_)=>o(m,_,f))}},a=e.map((l,u)=>o(l,u,null));return{nodeMap:i,nodeTree:a,itemMap:s}},Ip=({instance:e,publicAPI:t,params:n,state:r,setState:i})=>{const s=A.useCallback(y=>r.items.nodeMap[y],[r.items.nodeMap]),o=A.useCallback(y=>r.items.itemMap[y],[r.items.itemMap]),a=A.useCallback(y=>{if(y==null)return!1;let m=e.getNode(y);if(!m)return!1;if(m.disabled)return!0;for(;m.parentId!=null;)if(m=e.getNode(m.parentId),m.disabled)return!0;return!1},[e]),l=A.useCallback(y=>Object.values(r.items.nodeMap).filter(m=>m.parentId===y).sort((m,_)=>m.index-_.index).map(m=>m.id),[r.items.nodeMap]),u=y=>{let m=e.getChildrenIds(y);return n.disabledItemsFocusable||(m=m.filter(_=>!e.isItemDisabled(_))),m},c=A.useRef(!1),f=A.useCallback(()=>{c.current=!0},[]),p=A.useCallback(()=>c.current,[]);return A.useEffect(()=>{e.areItemUpdatesPrevented()||i(y=>{const m=aI({items:n.items,isItemDisabled:n.isItemDisabled,getItemId:n.getItemId,getItemLabel:n.getItemLabel});return Object.values(y.items.nodeMap).forEach(_=>{m.nodeMap[_.id]||sI(e,"removeItem",{id:_.id})}),j({},y,{items:m})})},[e,i,n.items,n.isItemDisabled,n.getItemId,n.getItemLabel]),Mo(e,{getNode:s,getItem:o,getItemsToRender:()=>{const y=({id:m,children:_})=>{const g=r.items.nodeMap[m];return{label:g.label,itemId:g.id,id:g.idAttribute,children:_==null?void 0:_.map(y)}};return r.items.nodeTree.map(y)},getChildrenIds:l,getNavigableChildrenIds:u,isItemDisabled:a,preventItemUpdates:f,areItemUpdatesPrevented:p}),eI(t,{getItem:o}),{contextValue:{disabledItemsFocusable:n.disabledItemsFocusable}}};Ip.getInitialState=e=>({items:aI({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Ip.getDefaultizedParams=e=>j({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});Ip.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const Tp=({instance:e,params:t,models:n})=>{const r=(l,u)=>{var c;(c=t.onExpandedItemsChange)==null||c.call(t,l,u),n.expandedItems.setControlledValue(u)},i=A.useCallback(l=>Array.isArray(n.expandedItems.value)?n.expandedItems.value.indexOf(l)!==-1:!1,[n.expandedItems.value]),s=A.useCallback(l=>{var u;return!!((u=e.getNode(l))!=null&&u.expandable)},[e]),o=fn((l,u)=>{if(u==null)return;const c=n.expandedItems.value.indexOf(u)!==-1;let f;c?f=n.expandedItems.value.filter(p=>p!==u):f=[u].concat(n.expandedItems.value),t.onItemExpansionToggle&&t.onItemExpansionToggle(l,u,!c),r(l,f)});Mo(e,{isItemExpanded:i,isItemExpandable:s,toggleItemExpansion:o,expandAllSiblings:(l,u)=>{const c=e.getNode(u),p=e.getChildrenIds(c.parentId).filter(y=>e.isItemExpandable(y)&&!e.isItemExpanded(y)),h=n.expandedItems.value.concat(p);p.length>0&&(t.onItemExpansionToggle&&p.forEach(y=>{t.onItemExpansionToggle(l,y,!0)}),r(l,h))}})};Tp.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const bL=[];Tp.getDefaultizedParams=e=>j({},e,{defaultExpandedItems:e.defaultExpandedItems??bL});Tp.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const wL=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),i=e.getNode(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const s=[r.id],o=[i.id];let a=r.parentId,l=i.parentId,u=o.indexOf(a)!==-1,c=s.indexOf(l)!==-1,f=!0,p=!0;for(;!c&&!u;)f&&(s.push(a),u=o.indexOf(a)!==-1,f=a!==null,!u&&f&&(a=e.getNode(a).parentId)),p&&!u&&(o.push(l),c=s.indexOf(l)!==-1,p=l!==null,!c&&p&&(l=e.getNode(l).parentId));const h=u?a:l,y=e.getChildrenIds(h),m=s[s.indexOf(h)-1],_=o[o.indexOf(h)-1];return y.indexOf(m){const r=A.useRef(null),i=A.useRef(!1),s=A.useRef([]),o=(m,_)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=_.filter(b=>!e.isItemSelected(b)),v=n.selectedItems.value.filter(b=>!_.includes(b));g.forEach(b=>{t.onItemSelectionToggle(m,b,!0)}),v.forEach(b=>{t.onItemSelectionToggle(m,b,!1)})}else _!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(m,n.selectedItems.value,!1),_!=null&&t.onItemSelectionToggle(m,_,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(m,_),n.selectedItems.setControlledValue(_)},a=m=>Array.isArray(n.selectedItems.value)?n.selectedItems.value.indexOf(m)!==-1:n.selectedItems.value===m,l=(m,_,g=!1)=>{if(!t.disableSelection){if(g){if(Array.isArray(n.selectedItems.value)){let v;n.selectedItems.value.indexOf(_)!==-1?v=n.selectedItems.value.filter(b=>b!==_):v=[_].concat(n.selectedItems.value),o(m,v)}}else{const v=t.multiSelect?[_]:_;o(m,v)}r.current=_,i.current=!1,s.current=[]}},u=(m,_)=>{const[g,v]=wL(e,m,_),b=[g];let x=g;for(;x!==v;)x=ry(e,x),b.push(x);return b},c=(m,_)=>{let g=n.selectedItems.value.slice();const{start:v,next:b,current:x}=_;!b||!x||(s.current.indexOf(x)===-1&&(s.current=[]),i.current?s.current.indexOf(b)!==-1?(g=g.filter(d=>d===v||d!==x),s.current=s.current.filter(d=>d===v||d!==x)):(g.push(b),s.current.push(b)):(g.push(b),s.current.push(x,b)),o(m,g))},f=(m,_)=>{let g=n.selectedItems.value.slice();const{start:v,end:b}=_;i.current&&(g=g.filter(T=>s.current.indexOf(T)===-1));let x=u(v,b);x=x.filter(T=>!e.isItemDisabled(T)),s.current=x;let d=g.concat(x);d=d.filter((T,C)=>d.indexOf(T)===C),o(m,d)};return Mo(e,{isItemSelected:a,selectItem:l,selectRange:(m,_,g=!1)=>{if(t.disableSelection)return;const{start:v=r.current,end:b,current:x}=_;g?c(m,{start:v,next:b,current:x}):v!=null&&b!=null&&f(m,{start:v,end:b}),i.current=!0},rangeSelectToLast:(m,_)=>{r.current||(r.current=_);const g=i.current?r.current:_;e.selectRange(m,{start:g,end:iy(e)})},rangeSelectToFirst:(m,_)=>{r.current||(r.current=_);const g=i.current?r.current:_;e.selectRange(m,{start:g,end:oy(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),contextValue:{selection:{multiSelect:t.multiSelect}}}};Cp.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const xL=[];Cp.getDefaultizedParams=e=>j({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?xL:null)});Cp.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const Y1=1e3;class SL{constructor(t=Y1){this.timeouts=new Map,this.cleanupTimeout=Y1,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class _L{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class EL{}function IL(e){let t=0;return function(r,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new _L:new SL);const[o]=A.useState(new EL),a=A.useRef(null),l=A.useRef();l.current=s;const u=A.useRef(null);if(!a.current&&l.current){const c=(f,p)=>{var h;p.defaultMuiPrevented||(h=l.current)==null||h.call(l,f,p)};a.current=r.$$subscribeEvent(i,c),t+=1,u.current={cleanupToken:t},e.registry.register(o,()=>{var f;(f=a.current)==null||f.call(a),a.current=null,u.current=null},u.current)}else!l.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));A.useEffect(()=>{if(!a.current&&l.current){const c=(f,p)=>{var h;p.defaultMuiPrevented||(h=l.current)==null||h.call(l,f,p)};a.current=r.$$subscribeEvent(i,c)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var c;(c=a.current)==null||c.call(a),a.current=null}},[r,i])}}const TL={registry:null},CL=IL(TL),lI=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?lI(t.shadowRoot):t:null},OL=(e,t)=>{const n=i=>{const s=e.getNode(i);return s&&(s.parentId==null||e.isItemExpanded(s.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=e.getNavigableChildrenIds(null)[0]),r},Kg=({instance:e,publicAPI:t,params:n,state:r,setState:i,models:s,rootRef:o})=>{const a=OL(e,s.selectedItems.value),l=fn(x=>{const d=typeof x=="function"?x(r.focusedItemId):x;r.focusedItemId!==d&&i(T=>j({},T,{focusedItemId:d}))}),u=A.useCallback(()=>!!o.current&&o.current.contains(lI(da(o.current))),[o]),c=A.useCallback(x=>r.focusedItemId===x&&u(),[r.focusedItemId,u]),f=x=>{const d=e.getNode(x);return d&&(d.parentId==null||e.isItemExpanded(d.parentId))},p=(x,d)=>{const T=e.getNode(d),C=document.getElementById(e.getTreeItemId(d,T.idAttribute));C&&C.focus(),l(d),n.onItemFocus&&n.onItemFocus(x,d)},h=fn((x,d)=>{f(d)&&p(x,d)}),y=fn(x=>{let d;Array.isArray(s.selectedItems.value)?d=s.selectedItems.value.find(f):s.selectedItems.value!=null&&f(s.selectedItems.value)&&(d=s.selectedItems.value),d==null&&(d=e.getNavigableChildrenIds(null)[0]),p(x,d)}),m=fn(()=>{if(r.focusedItemId==null)return;const x=e.getNode(r.focusedItemId);if(x){const d=document.getElementById(e.getTreeItemId(r.focusedItemId,x.idAttribute));d&&d.blur()}l(null)});Mo(e,{isItemFocused:c,canItemBeTabbed:x=>x===a,focusItem:h,focusDefaultItem:y,removeFocusedItem:m}),eI(t,{focusItem:h}),CL(e,"removeItem",({id:x})=>{r.focusedItemId===x&&e.focusDefaultItem(null)});const g=x=>d=>{var T;(T=x.onFocus)==null||T.call(x,d),d.target===d.currentTarget&&e.focusDefaultItem(d)},v=e.getNode(r.focusedItemId),b=v?e.getTreeItemId(v.id,v.idAttribute):null;return{getRootProps:x=>({onFocus:g(x),"aria-activedescendant":b??void 0})}};Kg.getInitialState=()=>({focusedItemId:null});Kg.params={onItemFocus:!0};function kL(e){return!!e&&e.length===1&&!!e.match(/\S/)}function q1(e,t,n){for(let r=t;r{const i=za().direction==="rtl",s=A.useRef({}),o=fn(f=>{s.current=f(s.current)});A.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=h=>{f[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.nodeMap).forEach(p),s.current=f},[n.items.nodeMap,t.getItemId,e]);const a=(f,p)=>{let h,y;const m=p.toLowerCase(),_=[],g=[];return Object.keys(s.current).forEach(v=>{const b=e.getNode(v),x=b.parentId?e.isItemExpanded(b.parentId):!0,d=t.disabledItemsFocusable?!1:e.isItemDisabled(v);x&&!d&&(_.push(v),g.push(s.current[v]))}),h=_.indexOf(f)+1,h>=_.length&&(h=0),y=q1(g,h,m),y===-1&&(y=q1(g,0,m)),y>-1?_[y]:null},l=f=>!t.disableSelection&&!e.isItemDisabled(f),u=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);Mo(e,{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||f.currentTarget!==f.target)return;const h=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&l(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.selectRange(f,{end:p}):t.multiSelect?e.selectItem(f,p,!0):e.selectItem(f,p);break}case y==="Enter":{u(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):l(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem(f,p,!0)):e.isItemSelected(p)||(e.selectItem(f,p),f.preventDefault()));break}case y==="ArrowDown":{const m=ry(e,p);m&&(f.preventDefault(),e.focusItem(f,m),t.multiSelect&&f.shiftKey&&l(m)&&e.selectRange(f,{end:m,current:p},!0));break}case y==="ArrowUp":{const m=uL(e,p);m&&(f.preventDefault(),e.focusItem(f,m),t.multiSelect&&f.shiftKey&&l(m)&&e.selectRange(f,{end:m,current:p},!0));break}case(y==="ArrowRight"&&!i||y==="ArrowLeft"&&i):{if(e.isItemExpanded(p)){const m=ry(e,p);m&&(e.focusItem(f,m),f.preventDefault())}else u(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!i||y==="ArrowRight"&&i):{if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const m=e.getNode(p).parentId;m&&(e.focusItem(f,m),f.preventDefault())}break}case y==="Home":{e.focusItem(f,oy(e)),l(p)&&t.multiSelect&&h&&f.shiftKey&&e.rangeSelectToFirst(f,p),f.preventDefault();break}case y==="End":{e.focusItem(f,iy(e)),l(p)&&t.multiSelect&&h&&f.shiftKey&&e.rangeSelectToLast(f,p),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(y==="a"&&h&&t.multiSelect&&!t.disableSelection):{e.selectRange(f,{start:oy(e),end:iy(e)}),f.preventDefault();break}case(!h&&!f.shiftKey&&kL(y)):{const m=a(p,y);m!=null&&(e.focusItem(f,m),f.preventDefault());break}}}})};uI.params={};const cI=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});cI.params={};const AL=[oI,Ip,Tp,Cp,Kg,uI,cI],Op=()=>{const e=A.useContext(nI);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` -`));return e},kp=({instance:e,setState:t})=>{e.preventItemUpdates();const n=fn(s=>{t(o=>{if(o.items.nodeMap[s.id]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Tow items were provided with the same id in the \`items\` prop: "${s.id}"`].join(` -`));return j({},o,{items:j({},o.items,{nodeMap:j({},o.items.nodeMap,{[s.id]:s}),itemMap:j({},o.items.itemMap,{[s.id]:{id:s.id,label:s.label}})})})})}),r=fn(s=>{t(o=>{const a=j({},o.items.nodeMap),l=j({},o.items.itemMap);return delete a[s],delete l[s],j({},o,{items:j({},o.items,{nodeMap:a,itemMap:l})})}),sI(e,"removeItem",{id:s})}),i=fn((s,o)=>(e.updateFirstCharMap(a=>(a[s]=o,a)),()=>{e.updateFirstCharMap(a=>{const l=j({},a);return delete l[s],l})}));Mo(e,{insertJSXItem:n,removeJSXItem:r,mapFirstCharFromJSX:i})},BL=({props:e,rootRef:t,contentRef:n})=>{const{children:r,disabled:i=!1,label:s,itemId:o,id:a}=e,{instance:l}=Op(),u=b=>Array.isArray(b)?b.length>0&&b.some(u):!!b,c=u(r),[f,p]=A.useState(null),h=A.useRef(null),y=Ln(p,t),m=Ln(h,n),_=A.useMemo(()=>({element:f,id:o}),[o,f]),{index:g,parentId:v}=gL(_);return A.useEffect(()=>{if(g!==-1)return l.insertJSXItem({id:o,idAttribute:a,index:g,parentId:v,expandable:c,disabled:i}),()=>l.removeJSXItem(o)},[l,v,g,o,c,i,a]),A.useEffect(()=>{var b;if(s)return l.mapFirstCharFromJSX(o,(((b=h.current)==null?void 0:b.textContent)??"").substring(0,1).toLowerCase())},[l,o,s]),{contentRef:m,rootRef:y}};kp.itemPlugin=BL;kp.wrapItem=({children:e,itemId:t})=>B.jsx(iI,{id:t,children:e});kp.params={};const RL=[...AL,kp],ML=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},FL=["slots","slotProps","apiRef"],DL=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:s}=e,o=Te(e.props,FL);const a={};i.forEach(c=>{Object.assign(a,c.params)});const l={plugins:i,rootRef:s,slots:t??{},slotProps:n??{},apiRef:r},u={};return Object.keys(o).forEach(c=>{const f=o[c];a[c]?l[c]=f:u[c]=f}),{pluginParams:l,slots:t,slotProps:n,otherProps:u}},PL=e=>{const{classes:t}=e;return rn({root:["root"]},sL,t)},jL=tt("ul",{name:"MuiSimpleTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),LL=[];ML(["MUI X: The `SimpleTreeView` component does not support the `items` prop.","If you want to add items, you need to pass them as JSX children.","Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/"]);const NL=A.forwardRef(function(t,n){const r=Xt({props:t,name:"MuiSimpleTreeView"}),i=r,{pluginParams:s,slots:o,slotProps:a,otherProps:l}=DL({props:j({},r,{items:LL}),plugins:RL,rootRef:n}),{getRootProps:u,contextValue:c}=pL(s),f=PL(r),p=(o==null?void 0:o.root)??jL,h=hi({elementType:p,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:l,className:f.root,getSlotProps:u,ownerState:i});return B.jsx(vL,{value:c,children:B.jsx(p,j({},h))})});function fI(e){const{instance:t,selection:{multiSelect:n}}=Op(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),s=t.isItemFocused(e),o=t.isItemSelected(e),a=t.isItemDisabled(e);return{disabled:a,expanded:i,selected:o,focused:s,handleExpansion:f=>{if(!a){s||t.focusItem(f,e);const p=n&&(f.shiftKey||f.ctrlKey||f.metaKey);r&&!(p&&t.isItemExpanded(e))&&t.toggleItemExpansion(f,e)}},handleSelection:f=>{a||(s||t.focusItem(f,e),n&&(f.shiftKey||f.ctrlKey||f.metaKey)?f.shiftKey?t.selectRange(f,{end:e}):t.selectItem(f,e,!0):t.selectItem(f,e))},preventSelection:f=>{(f.shiftKey||f.ctrlKey||f.metaKey||a)&&f.preventDefault()}}}const $L=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],dI=A.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:s,expansionIcon:o,icon:a,label:l,itemId:u,onClick:c,onMouseDown:f}=t,p=Te(t,$L),{disabled:h,expanded:y,selected:m,focused:_,handleExpansion:g,handleSelection:v,preventSelection:b}=fI(u),x=a||o||s,d=C=>{b(C),f&&f(C)},T=C=>{g(C),v(C),c&&c(C)};return B.jsxs("div",j({},p,{className:Ne(i,r.root,y&&r.expanded,m&&r.selected,_&&r.focused,h&&r.disabled),onClick:T,onMouseDown:d,ref:n,children:[B.jsx("div",{className:r.iconContainer,children:x}),B.jsx("div",{className:r.label,children:l})]}))});function zL(e){return tn("MuiTreeItem",e)}const hn=nn("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),UL=To(B.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),VL=To(B.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function pI(e){const{children:t,itemId:n}=e,{wrapItem:r}=Op();return r({children:t,itemId:n})}pI.propTypes={children:fv.node,itemId:fv.string.isRequired};const WL=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],HL=["ownerState"],KL=["ownerState"],YL=["ownerState"],qL=e=>{const{classes:t}=e;return rn({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},zL,t)},GL=tt("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),XL=tt(dI,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${hn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${hn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${hn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ic(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ic(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ic(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ic(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${hn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${hn.label}`]:j({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),QL=tt(uB,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),JL=A.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:s},disabledItemsFocusable:o,instance:a}=Op(),l=Xt({props:t,name:"MuiTreeItem"}),{children:u,className:c,slots:f,slotProps:p,ContentComponent:h=dI,ContentProps:y,itemId:m,id:_,label:g,onClick:v,onMouseDown:b,onBlur:x,onKeyDown:d}=l,T=Te(l,WL),{contentRef:C,rootRef:L}=i(l),R=Ln(n,L),k=Ln(y==null?void 0:y.ref,C),D={expandIcon:(f==null?void 0:f.expandIcon)??r.slots.expandIcon??UL,collapseIcon:(f==null?void 0:f.collapseIcon)??r.slots.collapseIcon??VL,endIcon:(f==null?void 0:f.endIcon)??r.slots.endIcon,icon:f==null?void 0:f.icon,groupTransition:f==null?void 0:f.groupTransition},V=ve=>Array.isArray(ve)?ve.length>0&&ve.some(V):!!ve,H=V(u),te=a.isItemExpanded(m),F=a.isItemFocused(m),ee=a.isItemSelected(m),ie=a.isItemDisabled(m),M=j({},l,{expanded:te,focused:F,selected:ee,disabled:ie}),Z=qL(M),X=D.groupTransition??void 0,ce=hi({elementType:X,ownerState:{},externalSlotProps:p==null?void 0:p.groupTransition,additionalProps:{unmountOnExit:!0,in:te,component:"ul",role:"group"},className:Z.groupTransition}),ae=te?D.collapseIcon:D.expandIcon,Ce=hi({elementType:ae,ownerState:{},externalSlotProps:ve=>te?j({},zo(r.slotProps.collapseIcon,ve),zo(p==null?void 0:p.collapseIcon,ve)):j({},zo(r.slotProps.expandIcon,ve),zo(p==null?void 0:p.expandIcon,ve))}),xe=Te(Ce,HL),Pe=H&&ae?B.jsx(ae,j({},xe)):null,se=H?void 0:D.endIcon,_e=hi({elementType:se,ownerState:{},externalSlotProps:ve=>H?{}:j({},zo(r.slotProps.endIcon,ve),zo(p==null?void 0:p.endIcon,ve))}),me=Te(_e,KL),ge=se?B.jsx(se,j({},me)):null,Ie=D.icon,st=hi({elementType:Ie,ownerState:{},externalSlotProps:p==null?void 0:p.icon}),on=Te(st,YL),Qt=Ie?B.jsx(Ie,j({},on)):null;let Ut;s?Ut=ee:ee&&(Ut=!0);function At(ve){!F&&(!ie||o)&&ve.currentTarget===ve.target&&a.focusItem(ve,m)}function Vt(ve){x==null||x(ve),a.removeFocusedItem()}const wt=ve=>{d==null||d(ve),a.handleItemKeyDown(ve,m)},vt=a.getTreeItemId(m,_),sn=a.canItemBeTabbed(m)?0:-1;return B.jsx(pI,{itemId:m,children:B.jsxs(GL,j({className:Ne(Z.root,c),role:"treeitem","aria-expanded":H?te:void 0,"aria-selected":Ut,"aria-disabled":ie||void 0,id:vt,tabIndex:sn},T,{ownerState:M,onFocus:At,onBlur:Vt,onKeyDown:wt,ref:R,children:[B.jsx(XL,j({as:h,classes:{root:Z.content,expanded:Z.expanded,selected:Z.selected,focused:Z.focused,disabled:Z.disabled,iconContainer:Z.iconContainer,label:Z.label},label:g,itemId:m,onClick:v,onMouseDown:b,icon:Qt,expansionIcon:Pe,displayIcon:ge,ownerState:M},y,{ref:k})),u&&B.jsx(QL,j({as:X},ce,{children:u}))]}))})});function ZL({severity:e,title:t,leftIcon:n,rightIcon:r,sx:i={}}){return B.jsxs(cn,{sx:Vg(eN(e),i),children:[n&&B.jsx(cn,{sx:nN,children:n}),B.jsx(Rn,{variant:"subtitle1",sx:tN,children:t}),r&&B.jsx(cn,{sx:{paddingLeft:"4px",display:"flex"},children:r})]})}const G1={display:"flex",flexDirection:"row",padding:e=>e.spacing(1/2,1),borderRadius:"4px",width:"fit-content",height:"fit-content"},eN=e=>e==="info"?{...G1,border:({palette:t})=>`1px solid ${t.grey[300]}`,background:({palette:t})=>t.grey[100]}:{...G1,border:({palette:t})=>`1px solid ${t[e].main}`,background:({palette:t})=>t[e].light},tN={color:({palette:e})=>e.grey[900],fontWeight:({typography:e})=>e.fontWeightBold,alignSelf:"center",overflow:"auto"},nN={paddingRight:"4px",display:"flex"},rN=A.forwardRef(function(t,n){const{classes:r,className:i,label:s,itemId:o,icon:a,expansionIcon:l,displayIcon:u,node:c}=t,{disabled:f,expanded:p,selected:h,focused:y,handleExpansion:m,handleSelection:_}=fI(o),{selector:g,timeTaken:v}=c,b=a||l||u,x=T=>{m(T)},d=T=>{_(T)};return B.jsx(KE,{node:c,children:B.jsx(cn,{sx:({palette:T})=>({"&:hover > div":{background:`${T.grey[100]}`},[`&.${r.focused} > div`]:{background:`${T.grey[50]}`},[`&.${r.focused}:hover > div`]:{background:`${T.grey[100]}`},[`&.${r.selected} > div`]:{background:`${T.primary.lighter}`,border:`1px solid ${T.primary.main}`},[`&.${r.selected}:hover > div`]:{background:`${T.primary.light}`}}),className:Ne(i,r.root,{[r.expanded]:p,[r.selected]:h,[r.focused]:y,[r.disabled]:f}),onClick:d,ref:n,children:B.jsxs(cn,{sx:iN,children:[B.jsxs(cn,{width:b?"calc(100% - 40px)":"100%",children:[B.jsx(Rn,{sx:oN,fontWeight:"bold",children:s}),B.jsx(Rn,{variant:"code",sx:sN,children:g}),B.jsx(cn,{sx:aN,children:B.jsx(ZL,{leftIcon:B.jsx(F8,{sx:{fontSize:12}}),sx:lN,severity:"info",title:`${v} ms`})})]}),B.jsx(cn,{onClick:T=>x(T),children:b})]})})})}),iN=({spacing:e,palette:t})=>({display:"flex",border:`1px solid ${t.grey[300]}`,p:1,borderRadius:e(.5),width:"-webkit-fill-available",alignItems:"center",justifyContent:"space-between","& svg":{color:t.grey[600]},overflow:"hidden"}),oN={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},sN={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"inline-block",maxWidth:350,wordBreak:"anywhere"},aN={display:"flex",mt:.5,flexWrap:"wrap"},lN={alignItems:"center","& svg":{color:"grey.900"}};function hI({node:e,depth:t,totalTime:n,treeStart:r}){A.useEffect(()=>Ir.setFrameHeight());const{nodeId:i,label:s}=e;return B.jsx(JL,{sx:uN,itemId:i,label:s,ContentComponent:rN,ContentProps:{node:e},children:e.children.map(o=>B.jsx(hI,{node:o,depth:t+1,totalTime:n,treeStart:r},o.nodeId))})}const uN=({spacing:e,palette:t})=>({[`& .${hn.content}`]:{textAlign:"left",position:"relative",zIndex:1,p:0},[`& .${hn.content} ${hn.label}`]:{paddingLeft:e(1)},[`& .${hn.root}`]:{position:"relative","&:last-of-type":{"&::before":{height:`calc(54px + ${e(1)})`,width:e(2),borderBottom:`1px solid ${t.grey[300]}`}},"&::before":{content:'""',display:"block",position:"absolute",height:`calc(100% + ${e(3)})`,borderBottomLeftRadius:4,borderLeft:`1px solid ${t.grey[300]}`,left:e(-2),top:e(-1)}},[`& .${hn.groupTransition}`]:{marginLeft:0,paddingLeft:e(2),[`& .${hn.root}`]:{pt:1},[`& .${hn.root} .${hn.content}`]:{"&::before":{content:'""',position:"absolute",display:"block",width:e(2),height:e(1),top:"50%",borderBottom:`1px solid ${t.grey[300]}`,transform:"translate(-100%, -50%)"}},[`& .${hn.root}:last-of-type > .${hn.content}`]:{"&::before":{width:0}}}}),cN=e=>e.method.obj.cls.name,fN=e=>e.method.name,dN=e=>typeof e.path=="string"?e.path:e.path.path.map(t=>{if(t){if("item_or_attribute"in t)return`.${t.item_or_attribute}`;if("index"in t)return`[${t.index}]`}}).filter(Boolean).join(""),pN=e=>({startTime:e!=null&&e.start_time?new Date(e.start_time).getTime():0,endTime:e!=null&&e.end_time?new Date(e.end_time).getTime():0}),mI=(e,t,n,r)=>{const i=n[r],s=cN(i);let o=e.children.find(a=>a.name===s&&a.startTime<=new Date(t.perf.start_time).getTime()&&(!a.endTime||a.endTime>=new Date(t.perf.end_time).getTime()));if(r===n.length-1){const{startTime:a,endTime:l}=pN(t.perf);if(o){o.startTime=a,o.endTime=l,o.raw=t;return}e.children.push(new sy({name:s,raw:t,parentNodes:[...e.parentNodes,e],perf:t.perf,stackCell:i}));return}if(!o){const a=new sy({name:s,stackCell:i,parentNodes:[...e.parentNodes,e]});e.children.push(a),o=a}mI(o,t,n,r+1)},hN=(e,t)=>{const n=new sy({name:t,perf:e.perf});return e.calls.forEach(r=>{mI(n,r,r.stack,0)}),n},mN=e=>{const t={},n=[e];for(;n.length!==0;){const r=n.pop();r&&(t[r.nodeId]=r,n.push(...r.children))}return t},yI="root-root-root";class sy{constructor({children:t=[],name:n,stackCell:r,perf:i,raw:s,parentNodes:o=[]}){si(this,"children");si(this,"name");si(this,"path","");si(this,"methodName","");si(this,"startTime",0);si(this,"endTime",0);si(this,"raw");si(this,"parentNodes",[]);if(i){const a=new Date(i.start_time).getTime(),l=new Date(i.end_time).getTime();this.startTime=a,this.endTime=l}this.children=t,this.name=n,this.raw=s,this.parentNodes=o,r&&(this.path=dN(r),this.methodName=fN(r))}get timeTaken(){return this.endTime-this.startTime}get isRoot(){return this.parentNodes.length===0}get nodeId(){return this.isRoot?yI:`${this.methodName}-${this.name}-${this.startTime??""}-${this.endTime??""}`}get selector(){return["Select.Record",this.path,this.methodName].filter(Boolean).join(".")}get label(){return this.isRoot?this.name:[this.name,this.methodName].join(".")}}function yN({nodeMap:e,root:t,selectedNodeId:n,setSelectedNodeId:r}){const i=(a,l,u)=>{r(u?l:null)},{timeTaken:s,startTime:o}=t;return B.jsx(NL,{sx:{p:1,overflowY:"auto",flexGrow:0,"& > li":{minWidth:"fit-content"}},slots:{collapseIcon:ZE,expandIcon:JE},onExpandedItemsChange:()=>{setTimeout(()=>Ir.setFrameHeight(),300)},defaultSelectedItems:n??yI,defaultExpandedItems:Object.keys(e)??[],onItemSelectionToggle:i,children:B.jsx(hI,{node:t,depth:0,totalTime:s,treeStart:o})})}function X1({children:e,value:t=!1,onChange:n,sx:r={}}){return B.jsx(xF,{value:t,onChange:n,indicatorColor:"primary",variant:"scrollable",scrollButtons:"auto",sx:Vg(gN,r),children:e})}const gN=({spacing:e,palette:t})=>({minHeight:e(5),cursor:"pointer",[`& .${Ai.root}`]:{minWidth:"auto",textTransform:"none",minHeight:e(5),py:0,borderTopLeftRadius:e(.5),borderTopRightRadius:e(.5)},[`& .${Ai.selected}`]:{backgroundColor:t.primary.lighter,":hover":{backgroundColor:t.primary.lighter}},"& button:hover":{backgroundColor:t.grey[50]}}),vN=["Details","Span JSON"],bN=["Metadata","Record JSON","App JSON"],wN=["Tree","Timeline"];function xN({appJSON:e,nodeMap:t,recordJSON:n,root:r}){const[i,s]=A.useState(null),[o,a]=A.useState("Tree"),[l,u]=A.useState("Details"),c=i?t[i]:r,f=()=>{var h;if(l==="App JSON")return B.jsx(Ys,{src:e});if(l==="Span JSON")return B.jsx(Ys,{src:i===r.nodeId?n:c.raw??{}});if(l==="Record JSON")return B.jsx(Ys,{src:n});if(l==="Metadata"){const{meta:y}=n;return!y||!((h=Object.keys(y))!=null&&h.length)?B.jsx(Rn,{children:"No record metadata available."}):typeof y=="object"?B.jsx(Ys,{src:y}):B.jsxs(Rn,{children:["Invalid metadata type. Expected a dictionary but got ",String(y)??"unknown object"]})}return B.jsx(X8,{selectedNode:c,recordJSON:n})},p=o==="Timeline";return B.jsxs(ra,{container:!0,sx:{border:({palette:h})=>`0.5px solid ${h.grey[300]}`,borderRadius:.5,[`& .${Ia.item}`]:{border:({palette:h})=>`0.5px solid ${h.grey[300]}`}},children:[B.jsxs(ra,{item:!0,xs:12,md:p?12:5,lg:p?12:4,children:[B.jsx(X1,{value:o,onChange:(h,y)=>a(y),sx:{borderBottom:({palette:h})=>`1px solid ${h.grey[300]}`},children:wN.map(h=>B.jsx(yh,{label:h,value:h,id:h},h))}),p?B.jsx($8,{selectedNodeId:i,setSelectedNodeId:s,root:r}):B.jsx(yN,{selectedNodeId:i,setSelectedNodeId:s,root:r,nodeMap:t})]}),B.jsxs(ra,{item:!0,xs:12,md:p?12:7,lg:p?12:8,children:[B.jsxs(X1,{value:l,onChange:(h,y)=>u(y),sx:{borderBottom:({palette:h})=>`1px solid ${h.grey[300]}`},children:[vN.map(h=>B.jsx(yh,{label:h,value:h,id:h},h)),B.jsx(cn,{sx:{flexGrow:1}}),bN.map(h=>B.jsx(yh,{label:h,value:h,id:h},h))]}),B.jsx(Ea,{gap:2,sx:{flexGrow:1,p:1,mb:4},children:f()})]})]})}class SN extends A8{constructor(){super(...arguments);si(this,"render",()=>{const{record_json:n,app_json:r}=this.props.args,i=hN(n,r.app_id),s=mN(i);return B.jsx(xN,{root:i,recordJSON:n,nodeMap:s,appJSON:r})})}}const _N=B8(SN),EN="#061B22",gI="#0A2C37",vI="#2D736D",nd="#D3E5E4",ay="#E9F2F1",IN=nd,TN=vI,CN=gI,ON="#F2C94C",kN="#EB5757",AN="#A22C37",BN="#571610",RN=ON,MN="#F6D881",FN="#E77956",DN="#FAFAFA",PN="#F5F5F5",jN="#E0E0E0",LN="#BDBDBD",NN="#757575",$N="#212121",zN=["#54A08E","#A4CBC1","#366567","#7BADA4","#1C383E"],UN=["#F8D06D","#F0EC89","#AD743E","#F4E07B","#5C291A"],VN=["#5690C5","#8DA6BF","#274F69","#6D90B1","#0B1D26"],WN=["#E77956","#FFDBA3","#A8402D","#FBAD78","#571610"],HN=["#959CFA","#D5D1FF","#5F74B3","#B2B1FF","#314A66"],KN=["#957A89","#D2C0C4","#664F5E","#B59CA6","#352731"],YN=["#78AE79","#C7DFC3","#5D8955","#9FC79D","#436036"],qN=["#FF8DA1","#FFC9F1","#C15F84","#FFA9D0","#823966"],GN=["#74B3C0","#99D4D2","#537F88","#BFE6DD","#314B50"],XN=["#A484BD","#CBC7E4","#745E86","#B5A5D1","#45384F"],bI=[zN,UN,VN,WN,HN,KN,YN,qN,GN,XN];bI.map(e=>e[0]);const Ap=e=>Object.fromEntries(bI.map(t=>[t[0],t[e]]));Ap(1);Ap(2);Ap(3);Ap(4);const wI=["SourceSansPro","Arial","sans-serif"].join(","),Dh={WebkitFontSmoothing:"auto",height:"100%",width:"100%",margin:0,fontFamily:wI},Ft=Ny({palette:{primary:{lighter:ay,light:nd,main:vI,dark:EN},info:{light:IN,main:TN,dark:CN},action:{hover:ay,hoverOpacity:.25},error:{light:FN,main:kN},grey:{50:DN,100:PN,300:jN,500:LN,600:NN,900:$N},important:{main:MN},destructive:{main:AN}},typography:{fontFamily:wI,h1:{fontSize:"2rem",fontWeight:600,lineHeight:1.2,letterSpacing:"-0.02em",margin:0},h2:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.35,letterSpacing:"-0.02em",margin:0},h3:{fontSize:"1.5rem",fontWeight:400,lineHeight:1.35,margin:0},h4:{fontSize:"1.25rem",fontWeight:600,lineHeight:1.2,margin:0},h5:{fontSize:"1.1rem",fontWeight:600,lineHeight:1.1,margin:0},body2:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.01em",margin:0},bodyStrong:{fontSize:"1rem",fontWeight:600,lineHeight:1.5,letterSpacing:"0.01em",margin:0,color:jh[600]},fontWeightBold:600,button:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.15,letterSpacing:"0.03em",textTransform:"uppercase"},subtitle1:{fontSize:"0.75rem",fontWeight:400,lineHeight:1.3,letterSpacing:"0.01em",color:jh[600]},menu:{fontWeight:600,fontSize:"0.875rem",lineHeight:1.15,letterSpacing:"0.03em"},code:{color:"rgb(9,171,59)",fontFamily:'"Source Code Pro", monospace',margin:0,fontSize:"0.75em",borderRadius:"0.25rem",background:"rgb(250,250,250)",width:"fit-content"}}});Ft.components={MuiCssBaseline:{styleOverrides:{html:Dh,body:Dh,"#root":Dh,h1:Ft.typography.h1,h2:Ft.typography.h2,h3:Ft.typography.h3,h4:Ft.typography.h4,h5:Ft.typography.h5,p:Ft.typography.body2,".link":{color:Ft.palette.primary.main,textDecoration:"underline",cursor:"pointer"},".disabled":{color:Ft.palette.grey[400]},".input":{color:Ft.palette.grey[600],fontStyle:"italic"},".detail":Ft.typography.subtitle1,".dot":{height:Ft.spacing(2),width:Ft.spacing(2),borderRadius:Ft.spacing(2),marginRight:Ft.spacing(1),display:"flex"},a:{color:"unset","&:link":{textDecoration:"none"},"&:visited":{textDecoration:"none"}}}},MuiButton:{styleOverrides:{sizeLarge:{padding:Ft.spacing(2),height:Ft.spacing(6)},sizeMedium:{padding:Ft.spacing(2),height:Ft.spacing(6)},sizeSmall:{height:Ft.spacing(4),lineHeight:1}},variants:[{props:{color:"primary",variant:"contained"},style:{":hover":{backgroundColor:gI}}},{props:{color:"primary",variant:"outlined"},style:{borderColor:nd,":hover":{borderColor:nd,backgroundColor:ay}}},{props:{color:"important"},style:{color:Ft.palette.grey[900],":hover":{backgroundColor:RN}}},{props:{color:"destructive"},style:{color:"#FFFFFF",":hover":{background:BN}}}]},MuiInputBase:{styleOverrides:{root:{height:Ft.spacing(5)}}},MuiTouchRipple:{styleOverrides:{root:{height:Ft.spacing(6)}}}};Vm.createRoot(document.getElementById("root")).render(B.jsx(Yr.StrictMode,{children:B.jsx(Bw,{injectFirst:!0,children:B.jsx(Pk,{theme:Ft,children:B.jsx(_N,{})})})})); diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-69ff0e1b.js b/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-69ff0e1b.js new file mode 100644 index 000000000..3670e0386 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/dist/assets/index-69ff0e1b.js @@ -0,0 +1,236 @@ +var WI=Object.defineProperty;var HI=(e,t,n)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yt=(e,t,n)=>(HI(e,typeof t!="symbol"?t+"":t,n),n);function KI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var YI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var dw={exports:{}},cd={},pw={exports:{}},Ge={};/** + * @license React + * react.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 _u=Symbol.for("react.element"),GI=Symbol.for("react.portal"),qI=Symbol.for("react.fragment"),XI=Symbol.for("react.strict_mode"),QI=Symbol.for("react.profiler"),JI=Symbol.for("react.provider"),ZI=Symbol.for("react.context"),eT=Symbol.for("react.forward_ref"),tT=Symbol.for("react.suspense"),nT=Symbol.for("react.memo"),rT=Symbol.for("react.lazy"),cv=Symbol.iterator;function iT(e){return e===null||typeof e!="object"?null:(e=cv&&e[cv]||e["@@iterator"],typeof e=="function"?e:null)}var hw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mw=Object.assign,yw={};function Wa(e,t,n){this.props=e,this.context=t,this.refs=yw,this.updater=n||hw}Wa.prototype.isReactComponent={};Wa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gw(){}gw.prototype=Wa.prototype;function Sy(e,t,n){this.props=e,this.context=t,this.refs=yw,this.updater=n||hw}var _y=Sy.prototype=new gw;_y.constructor=Sy;mw(_y,Wa.prototype);_y.isPureReactComponent=!0;var fv=Array.isArray,vw=Object.prototype.hasOwnProperty,Ey={current:null},bw={key:!0,ref:!0,__self:!0,__source:!0};function ww(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)vw.call(t,r)&&!bw.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1=0)&&(n[i]=e[i]);return n}function Sw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ET=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IT=Sw(function(e){return ET.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function TT(e){if(e.sheet)return e.sheet;for(var t=0;t0?Sn(Ha,--er):0,ga--,tn===10&&(ga=1,dd--),tn}function dr(){return tn=er2||Yl(tn)>3?"":" "}function NT(e,t){for(;--t&&dr()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return Eu(e,Uc()+(t<6&&wi()==32&&dr()==32))}function Kh(e){for(;dr();)switch(tn){case e:return er;case 34:case 39:e!==34&&e!==39&&Kh(tn);break;case 40:e===41&&Kh(e);break;case 92:dr();break}return er}function $T(e,t){for(;dr()&&e+tn!==47+10;)if(e+tn===42+42&&wi()===47)break;return"/*"+Eu(t,er-1)+"*"+fd(e===47?e:dr())}function zT(e){for(;!Yl(wi());)dr();return Eu(e,er)}function UT(e){return Ow(Wc("",null,null,null,[""],e=Cw(e),0,[0],e))}function Wc(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,f=s,p=0,h=0,y=0,m=1,_=1,g=1,v=0,b="",x=i,d=o,C=r,I=b;_;)switch(y=v,v=dr()){case 40:if(y!=108&&Sn(I,f-1)==58){Hh(I+=it(Vc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:I+=Vc(v);break;case 9:case 10:case 13:case 32:I+=LT(y);break;case 92:I+=NT(Uc()-1,7);continue;case 47:switch(wi()){case 42:case 47:uc(VT($T(dr(),Uc()),t,n),l);break;default:I+="/"}break;case 123*m:a[u++]=mi(I)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:_=0;case 59+c:g==-1&&(I=it(I,/\f/g,"")),h>0&&mi(I)-f&&uc(h>32?hv(I+";",r,n,f-1):hv(it(I," ","")+";",r,n,f-2),l);break;case 59:I+=";";default:if(uc(C=pv(I,t,n,u,c,i,a,b,x=[],d=[],f),o),v===123)if(c===0)Wc(I,t,C,C,x,o,f,a,d);else switch(p===99&&Sn(I,3)===110?100:p){case 100:case 108:case 109:case 115:Wc(e,C,C,r&&uc(pv(e,C,C,0,0,i,a,b,i,x=[],f),d),i,d,f,a,r?x:d);break;default:Wc(I,C,C,C,[""],d,0,a,d)}}u=c=h=0,m=g=1,b=I="",f=s;break;case 58:f=1+mi(I),h=y;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&jT()==125)continue}switch(I+=fd(v),v*m){case 38:g=c>0?1:(I+="\f",-1);break;case 44:a[u++]=(mi(I)-1)*g,g=1;break;case 64:wi()===45&&(I+=Vc(dr())),p=wi(),c=f=mi(b=I+=zT(Uc())),v++;break;case 45:y===45&&mi(I)==2&&(m=0)}}return o}function pv(e,t,n,r,i,o,s,a,l,u,c){for(var f=i-1,p=i===0?o:[""],h=Oy(p),y=0,m=0,_=0;y0?p[g]+" "+v:it(v,/&\f/g,p[g])))&&(l[_++]=b);return pd(e,t,n,i===0?Ty:a,l,u,c)}function VT(e,t,n){return pd(e,t,n,_w,fd(PT()),Kl(e,2,-2),0)}function hv(e,t,n,r){return pd(e,t,n,Cy,Kl(e,0,r),Kl(e,r+1,-1),r)}function ta(e,t){for(var n="",r=Oy(e),i=0;i6)switch(Sn(e,t+1)){case 109:if(Sn(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+rt+"$2-$3$1"+ff+(Sn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hh(e,"stretch")?kw(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sn(e,t+1)!==115)break;case 6444:switch(Sn(e,mi(e)-3-(~Hh(e,"!important")&&10))){case 107:return it(e,":",":"+rt)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rt+(Sn(e,14)===45?"inline-":"")+"box$3$1"+rt+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(Sn(e,t+11)){case 114:return rt+e+Rn+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rt+e+Rn+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rt+e+Rn+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rt+e+Rn+e+e}return e}var JT=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Cy:t.return=kw(t.value,t.length);break;case Ew:return ta([sl(t,{value:it(t.value,"@","@"+rt)})],i);case Ty:if(t.length)return FT(t.props,function(o){switch(DT(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ta([sl(t,{props:[it(o,/:(read-\w+)/,":"+ff+"$1")]})],i);case"::placeholder":return ta([sl(t,{props:[it(o,/:(plac\w+)/,":"+rt+"input-$1")]}),sl(t,{props:[it(o,/:(plac\w+)/,":"+ff+"$1")]}),sl(t,{props:[it(o,/:(plac\w+)/,Rn+"input-$1")]})],i)}return""})}},ZT=[JT],Aw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||ZT,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),g=1;g<_.length;g++)o[_[g]]=!0;a.push(m)});var l,u=[XT,QT];{var c,f=[WT,KT(function(m){c.insert(m)})],p=HT(u.concat(i,f)),h=function(_){return ta(UT(_),p)};l=function(_,g,v,b){c=v,h(_?_+"{"+g.styles+"}":g.styles),b&&(y.inserted[g.name]=!0)}}var y={key:n,sheet:new OT({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y},Bw={exports:{}},ft={};/** @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 bn=typeof Symbol=="function"&&Symbol.for,ky=bn?Symbol.for("react.element"):60103,Ay=bn?Symbol.for("react.portal"):60106,hd=bn?Symbol.for("react.fragment"):60107,md=bn?Symbol.for("react.strict_mode"):60108,yd=bn?Symbol.for("react.profiler"):60114,gd=bn?Symbol.for("react.provider"):60109,vd=bn?Symbol.for("react.context"):60110,By=bn?Symbol.for("react.async_mode"):60111,bd=bn?Symbol.for("react.concurrent_mode"):60111,wd=bn?Symbol.for("react.forward_ref"):60112,xd=bn?Symbol.for("react.suspense"):60113,eC=bn?Symbol.for("react.suspense_list"):60120,Sd=bn?Symbol.for("react.memo"):60115,_d=bn?Symbol.for("react.lazy"):60116,tC=bn?Symbol.for("react.block"):60121,nC=bn?Symbol.for("react.fundamental"):60117,rC=bn?Symbol.for("react.responder"):60118,iC=bn?Symbol.for("react.scope"):60119;function wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ky:switch(e=e.type,e){case By:case bd:case hd:case yd:case md:case xd:return e;default:switch(e=e&&e.$$typeof,e){case vd:case wd:case _d:case Sd:case gd:return e;default:return t}}case Ay:return t}}}function Rw(e){return wr(e)===bd}ft.AsyncMode=By;ft.ConcurrentMode=bd;ft.ContextConsumer=vd;ft.ContextProvider=gd;ft.Element=ky;ft.ForwardRef=wd;ft.Fragment=hd;ft.Lazy=_d;ft.Memo=Sd;ft.Portal=Ay;ft.Profiler=yd;ft.StrictMode=md;ft.Suspense=xd;ft.isAsyncMode=function(e){return Rw(e)||wr(e)===By};ft.isConcurrentMode=Rw;ft.isContextConsumer=function(e){return wr(e)===vd};ft.isContextProvider=function(e){return wr(e)===gd};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ky};ft.isForwardRef=function(e){return wr(e)===wd};ft.isFragment=function(e){return wr(e)===hd};ft.isLazy=function(e){return wr(e)===_d};ft.isMemo=function(e){return wr(e)===Sd};ft.isPortal=function(e){return wr(e)===Ay};ft.isProfiler=function(e){return wr(e)===yd};ft.isStrictMode=function(e){return wr(e)===md};ft.isSuspense=function(e){return wr(e)===xd};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hd||e===bd||e===yd||e===md||e===xd||e===eC||typeof e=="object"&&e!==null&&(e.$$typeof===_d||e.$$typeof===Sd||e.$$typeof===gd||e.$$typeof===vd||e.$$typeof===wd||e.$$typeof===nC||e.$$typeof===rC||e.$$typeof===iC||e.$$typeof===tC)};ft.typeOf=wr;Bw.exports=ft;var oC=Bw.exports,Ry=oC,sC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},aC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},My={};My[Ry.ForwardRef]=lC;My[Ry.Memo]=Mw;function yv(e){return Ry.isMemo(e)?Mw:My[e.$$typeof]||sC}var uC=Object.defineProperty,cC=Object.getOwnPropertyNames,gv=Object.getOwnPropertySymbols,fC=Object.getOwnPropertyDescriptor,dC=Object.getPrototypeOf,vv=Object.prototype;function Dw(e,t,n){if(typeof t!="string"){if(vv){var r=dC(t);r&&r!==vv&&Dw(e,r,n)}var i=cC(t);gv&&(i=i.concat(gv(t)));for(var o=yv(e),s=yv(t),a=0;a=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bC=/[A-Z]|^ms/g,wC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jw=function(t){return t.charCodeAt(1)===45},bv=function(t){return t!=null&&typeof t!="boolean"},Hp=Sw(function(e){return jw(e)?e:e.replace(bC,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(wC,function(r,i,o){return yi={name:i,styles:o,next:yi},i})}return vC[t]!==1&&!jw(t)&&typeof n=="number"&&n!==0?n+"px":n};function Gl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return yi={name:n.name,styles:n.styles,next:yi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)yi={name:r.name,styles:r.styles,next:yi},r=r.next;var i=n.styles+";";return i}return xC(e,t,n)}case"function":{if(e!==void 0){var o=yi,s=n(e);return yi=o,Gl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function xC(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?TC:CC},Iv=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},OC=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Fw(n,r,i),_C(function(){return Pw(n,r,i)}),null},kC=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Iv(t,n,r),l=a||Ev(i),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,h=1;ht(PC(i)?n:i):t;return k.jsx(IC,{styles:r})}/** + * @mui/styled-engine v5.15.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Fy(e,t){return Yh(e,t)}const Yw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},LC=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jC,StyledEngineProvider:Kw,ThemeContext:Iu,css:Uw,default:Fy,internal_processStyles:Yw,keyframes:Ed},Symbol.toStringTag,{value:"Module"}));function Pi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gw(e){if(!Pi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Gw(e[n])}),t}function Br(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return Pi(e)&&Pi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pi(t[i])&&i in e&&Pi(e[i])?r[i]=Br(e[i],t[i],n):n.clone?r[i]=Pi(t[i])?Gw(t[i]):t[i]:r[i]=t[i])}),r}const NC=Object.freeze(Object.defineProperty({__proto__:null,default:Br,isPlainObject:Pi},Symbol.toStringTag,{value:"Module"})),$C=["values","unit","step"],zC=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function qw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Te(e,$C),o=zC(t),s=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,h){const y=s.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:h)-r/100}${n})`}function c(p){return s.indexOf(p)+1`@media (min-width:${Py[e]}px)`};function tr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||Py).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Xw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Qw(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function WC(e,...t){const n=Xw(e),r=[n,...t].reduce((i,o)=>Br(i,o),{});return Qw(Object.keys(n),r)}function HC(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function Zo({values:e,breakpoints:t,base:n}){const r=n||HC(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function Et(e){if(typeof e!="string")throw new Error(os(7));return e.charAt(0).toUpperCase()+e.slice(1)}const KC=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function Id(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function df(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Id(e,n)||r,t&&(i=t(i,r,e)),i}function Qt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Id(l,r)||{};return tr(s,a,f=>{let p=df(u,i,f);return f===p&&typeof f=="string"&&(p=df(u,i,`${t}${f==="default"?"":Et(f)}`,f)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function YC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const GC={m:"margin",p:"padding"},qC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XC=YC(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=GC[t],i=qC[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),jy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ly=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jy,...Ly];function Tu(e,t,n,r){var i;const o=(i=Id(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function Ny(e){return Tu(e,"spacing",8)}function ss(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function QC(e,t){return n=>e.reduce((r,i)=>(r[i]=ss(t,n),r),{})}function JC(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=XC(n),o=QC(i,r),s=e[n];return tr(e,s,o)}function Jw(e,t){const n=Ny(e.theme);return Object.keys(e).map(r=>JC(e,t,r,n)).reduce(Cl,{})}function Kt(e){return Jw(e,jy)}Kt.propTypes={};Kt.filterProps=jy;function Yt(e){return Jw(e,Ly)}Yt.propTypes={};Yt.filterProps=Ly;function ZC(e=8){if(e.mui)return e;const t=Ny({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Td(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Cl(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Tr(e){return typeof e!="number"?e:`${e}px solid`}function zr(e,t){return Qt({prop:e,themeKey:"borders",transform:t})}const eO=zr("border",Tr),tO=zr("borderTop",Tr),nO=zr("borderRight",Tr),rO=zr("borderBottom",Tr),iO=zr("borderLeft",Tr),oO=zr("borderColor"),sO=zr("borderTopColor"),aO=zr("borderRightColor"),lO=zr("borderBottomColor"),uO=zr("borderLeftColor"),cO=zr("outline",Tr),fO=zr("outlineColor"),Cd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ss(t,r)});return tr(e,e.borderRadius,n)}return null};Cd.propTypes={};Cd.filterProps=["borderRadius"];Td(eO,tO,nO,rO,iO,oO,sO,aO,lO,uO,Cd,cO,fO);const Od=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tu(e.theme,"spacing",8),n=r=>({gap:ss(t,r)});return tr(e,e.gap,n)}return null};Od.propTypes={};Od.filterProps=["gap"];const kd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tu(e.theme,"spacing",8),n=r=>({columnGap:ss(t,r)});return tr(e,e.columnGap,n)}return null};kd.propTypes={};kd.filterProps=["columnGap"];const Ad=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tu(e.theme,"spacing",8),n=r=>({rowGap:ss(t,r)});return tr(e,e.rowGap,n)}return null};Ad.propTypes={};Ad.filterProps=["rowGap"];const dO=Qt({prop:"gridColumn"}),pO=Qt({prop:"gridRow"}),hO=Qt({prop:"gridAutoFlow"}),mO=Qt({prop:"gridAutoColumns"}),yO=Qt({prop:"gridAutoRows"}),gO=Qt({prop:"gridTemplateColumns"}),vO=Qt({prop:"gridTemplateRows"}),bO=Qt({prop:"gridTemplateAreas"}),wO=Qt({prop:"gridArea"});Td(Od,kd,Ad,dO,pO,hO,mO,yO,gO,vO,bO,wO);function na(e,t){return t==="grey"?t:e}const xO=Qt({prop:"color",themeKey:"palette",transform:na}),SO=Qt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:na}),_O=Qt({prop:"backgroundColor",themeKey:"palette",transform:na});Td(xO,SO,_O);function cr(e){return e<=1&&e!==0?`${e*100}%`:e}const EO=Qt({prop:"width",transform:cr}),$y=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Py[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:cr(n)}};return tr(e,e.maxWidth,t)}return null};$y.filterProps=["maxWidth"];const IO=Qt({prop:"minWidth",transform:cr}),TO=Qt({prop:"height",transform:cr}),CO=Qt({prop:"maxHeight",transform:cr}),OO=Qt({prop:"minHeight",transform:cr});Qt({prop:"size",cssProperty:"width",transform:cr});Qt({prop:"size",cssProperty:"height",transform:cr});const kO=Qt({prop:"boxSizing"});Td(EO,$y,IO,TO,CO,OO,kO);const AO={border:{themeKey:"borders",transform:Tr},borderTop:{themeKey:"borders",transform:Tr},borderRight:{themeKey:"borders",transform:Tr},borderBottom:{themeKey:"borders",transform:Tr},borderLeft:{themeKey:"borders",transform:Tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cd},color:{themeKey:"palette",transform:na},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:na},backgroundColor:{themeKey:"palette",transform:na},p:{style:Yt},pt:{style:Yt},pr:{style:Yt},pb:{style:Yt},pl:{style:Yt},px:{style:Yt},py:{style:Yt},padding:{style:Yt},paddingTop:{style:Yt},paddingRight:{style:Yt},paddingBottom:{style:Yt},paddingLeft:{style:Yt},paddingX:{style:Yt},paddingY:{style:Yt},paddingInline:{style:Yt},paddingInlineStart:{style:Yt},paddingInlineEnd:{style:Yt},paddingBlock:{style:Yt},paddingBlockStart:{style:Yt},paddingBlockEnd:{style:Yt},m:{style:Kt},mt:{style:Kt},mr:{style:Kt},mb:{style:Kt},ml:{style:Kt},mx:{style:Kt},my:{style:Kt},margin:{style:Kt},marginTop:{style:Kt},marginRight:{style:Kt},marginBottom:{style:Kt},marginLeft:{style:Kt},marginX:{style:Kt},marginY:{style:Kt},marginInline:{style:Kt},marginInlineStart:{style:Kt},marginInlineEnd:{style:Kt},marginBlock:{style:Kt},marginBlockStart:{style:Kt},marginBlockEnd:{style:Kt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Od},rowGap:{style:Ad},columnGap:{style:kd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cr},maxWidth:{style:$y},minWidth:{transform:cr},height:{transform:cr},maxHeight:{transform:cr},minHeight:{transform:cr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cu=AO;function BO(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function RO(e,t){return typeof e=="function"?e(t):e}function Zw(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Id(i,u)||{};return f?f(s):tr(s,r,y=>{let m=df(p,c,y);return y===m&&typeof y=="string"&&(m=df(p,c,`${n}${y==="default"?"":Et(y)}`,y)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Cu;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=Xw(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const y=RO(u[h],o);if(y!=null)if(typeof y=="object")if(s[h])p=Cl(p,e(h,y,o,s));else{const m=tr({theme:o},y,_=>({[h]:_}));BO(m,y)?p[h]=t({sx:y,theme:o}):p=Cl(p,m)}else p=Cl(p,e(h,y,o,s))}),Qw(f,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const ex=Zw();ex.filterProps=["sx"];const Ou=ex;function tx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const MO=["breakpoints","palette","spacing","shape"];function ku(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Te(e,MO),a=qw(n),l=ZC(i);let u=Br({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},VC,o)},s);return u.applyStyles=tx,u=t.reduce((c,f)=>Br(c,f),u),u.unstable_sxConfig=j({},Cu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Ou({sx:f,theme:this})},u}const DO=Object.freeze(Object.defineProperty({__proto__:null,default:ku,private_createBreakpoints:qw,unstable_applyStyles:tx},Symbol.toStringTag,{value:"Module"}));function FO(e){return Object.keys(e).length===0}function nx(e=null){const t=B.useContext(Iu);return!t||FO(t)?e:t}const PO=ku();function zy(e=PO){return nx(e)}const jO=["sx"],LO=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Cu;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Au(e){const{sx:t}=e,n=Te(e,jO),{systemProps:r,otherProps:i}=LO(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Pi(a)?j({},r,a):r}:o=j({},r,t),j({},i,{sx:o})}const NO=Object.freeze(Object.defineProperty({__proto__:null,default:Ou,extendSxProp:Au,unstable_createStyleFunctionSx:Zw,unstable_defaultSxConfig:Cu},Symbol.toStringTag,{value:"Module"})),kv=e=>e,$O=()=>{let e=kv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kv}}},zO=$O(),Uy=zO;function rx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Ou);return B.forwardRef(function(l,u){const c=zy(n),f=Au(l),{className:p,component:h="div"}=f,y=Te(f,UO);return k.jsx(o,j({as:h,ref:u,className:Ne(p,i?i(r):r),theme:t&&c[t]||c},y))})}const ix={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function on(e,t,n="Mui"){const r=ix[t];return r?`${n}-${r}`:`${Uy.generate(e)}-${t}`}function sn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=on(e,i,n)}),r}var ox={exports:{}},dt={};/** + * @license React + * 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 Vy=Symbol.for("react.element"),Wy=Symbol.for("react.portal"),Bd=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Md=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),Fd=Symbol.for("react.context"),WO=Symbol.for("react.server_context"),Pd=Symbol.for("react.forward_ref"),jd=Symbol.for("react.suspense"),Ld=Symbol.for("react.suspense_list"),Nd=Symbol.for("react.memo"),$d=Symbol.for("react.lazy"),HO=Symbol.for("react.offscreen"),sx;sx=Symbol.for("react.module.reference");function Ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vy:switch(e=e.type,e){case Bd:case Md:case Rd:case jd:case Ld:return e;default:switch(e=e&&e.$$typeof,e){case WO:case Fd:case Pd:case $d:case Nd:case Dd:return e;default:return t}}case Wy:return t}}}dt.ContextConsumer=Fd;dt.ContextProvider=Dd;dt.Element=Vy;dt.ForwardRef=Pd;dt.Fragment=Bd;dt.Lazy=$d;dt.Memo=Nd;dt.Portal=Wy;dt.Profiler=Md;dt.StrictMode=Rd;dt.Suspense=jd;dt.SuspenseList=Ld;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return Ur(e)===Fd};dt.isContextProvider=function(e){return Ur(e)===Dd};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vy};dt.isForwardRef=function(e){return Ur(e)===Pd};dt.isFragment=function(e){return Ur(e)===Bd};dt.isLazy=function(e){return Ur(e)===$d};dt.isMemo=function(e){return Ur(e)===Nd};dt.isPortal=function(e){return Ur(e)===Wy};dt.isProfiler=function(e){return Ur(e)===Md};dt.isStrictMode=function(e){return Ur(e)===Rd};dt.isSuspense=function(e){return Ur(e)===jd};dt.isSuspenseList=function(e){return Ur(e)===Ld};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bd||e===Md||e===Rd||e===jd||e===Ld||e===HO||typeof e=="object"&&e!==null&&(e.$$typeof===$d||e.$$typeof===Nd||e.$$typeof===Dd||e.$$typeof===Fd||e.$$typeof===Pd||e.$$typeof===sx||e.getModuleId!==void 0)};dt.typeOf=Ur;ox.exports=dt;var Av=ox.exports;const KO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ax(e){const t=`${e}`.match(KO);return t&&t[1]||""}function lx(e,t=""){return e.displayName||e.name||ax(e)||t}function Bv(e,t,n){const r=lx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function YO(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return lx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Av.ForwardRef:return Bv(e,e.render,"ForwardRef");case Av.Memo:return Bv(e,e.type,"memo");default:return}}}const GO=Object.freeze(Object.defineProperty({__proto__:null,default:YO,getFunctionName:ax},Symbol.toStringTag,{value:"Module"})),qO=["ownerState"],XO=["variants"],QO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JO(e){return Object.keys(e).length===0}function ZO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const e3=ku(),t3=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cc({defaultTheme:e,theme:t,themeId:n}){return JO(t)?e:t[n]||t}function n3(e){return e?(t,n)=>n[e]:null}function Hc(e,t){let{ownerState:n}=t,r=Te(t,qO);const i=typeof e=="function"?e(j({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>Hc(o,j({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=Te(i,XO);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(j({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(j({ownerState:n},r,n)):l.style))}),a}return i}function r3(e={}){const{themeId:t,defaultTheme:n=e3,rootShouldForwardProp:r=Yp,slotShouldForwardProp:i=Yp}=e,o=s=>Ou(j({},s,{theme:cc(j({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{Yw(s,d=>d.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=n3(t3(u))}=a,h=Te(a,QO),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let _,g=Yp;u==="Root"||u==="root"?g=r:u?g=i:ZO(s)&&(g=void 0);const v=Fy(s,j({shouldForwardProp:g,label:_},h)),b=d=>typeof d=="function"&&d.__emotion_real!==d||Pi(d)?C=>Hc(d,j({},C,{theme:cc({theme:C.theme,defaultTheme:n,themeId:t})})):d,x=(d,...C)=>{let I=b(d);const L=C?C.map(b):[];l&&p&&L.push(F=>{const V=cc(j({},F,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const H=V.components[l].styleOverrides,te={};return Object.entries(H).forEach(([D,ee])=>{te[D]=Hc(ee,j({},F,{theme:V}))}),p(F,te)}),l&&!y&&L.push(F=>{var V;const H=cc(j({},F,{defaultTheme:n,themeId:t})),te=H==null||(V=H.components)==null||(V=V[l])==null?void 0:V.variants;return Hc({variants:te},j({},F,{theme:H}))}),m||L.push(o);const R=L.length-C.length;if(Array.isArray(d)&&R>0){const F=new Array(R).fill("");I=[...d,...F],I.raw=[...d.raw,...F]}const A=v(I,...L);return s.muiName&&(A.muiName=s.muiName),A};return v.withConfig&&(x.withConfig=v.withConfig),x}}const i3=r3(),o3=i3;function ux(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=j({},o),Object.keys(i).forEach(s=>{n[r][s]=ux(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function s3(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ux(t.components[n].defaultProps,r)}function cx({props:e,name:t,defaultTheme:n,themeId:r}){let i=zy(n);return r&&(i=i[r]||i),s3({theme:i,name:t,props:e})}const a3=typeof window<"u"?B.useLayoutEffect:B.useEffect,Eo=a3;function fx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const l3=Object.freeze(Object.defineProperty({__proto__:null,default:fx},Symbol.toStringTag,{value:"Module"}));function u3(e,t=0,n=1){return fx(e,t,n)}function c3(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function dx(e){if(e.type)return e;if(e.charAt(0)==="#")return dx(c3(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(os(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(os(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function f3(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fc(e,t){return e=dx(e),t=u3(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,f3(e)}function d3(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Hy(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function p3(e,t){return()=>null}function h3(e,t){var n,r;return B.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function va(e){return e&&e.ownerDocument||document}function Ky(e){return va(e).defaultView||window}function m3(e,t){return()=>null}function pf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Rv=0;function y3(e){const[t,n]=B.useState(e),r=e||t;return B.useEffect(()=>{t==null&&(Rv+=1,n(`mui-${Rv}`))},[t]),r}const Mv=Vh["useId".toString()];function Yy(e){if(Mv!==void 0){const t=Mv();return e??t}return y3(e)}function g3(e,t,n,r,i){return null}function px({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=B.useRef(e!==void 0),[o,s]=B.useState(t),a=i?e:o,l=B.useCallback(u=>{i||s(u)},[]);return[a,l]}function pn(e){const t=B.useRef(e);return Eo(()=>{t.current=e}),B.useRef((...n)=>(0,t.current)(...n)).current}function $n(...e){return B.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pf(n,t)})},e)}const Dv={};function v3(e,t){const n=B.useRef(Dv);return n.current===Dv&&(n.current=e(t)),n}const b3=[];function w3(e){B.useEffect(e,b3)}class Bu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Bu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Yo(){const e=v3(Bu.create).current;return w3(e.disposeEffect),e}let zd=!0,qh=!1;const x3=new Bu,S3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&S3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function E3(e){e.metaKey||e.altKey||e.ctrlKey||(zd=!0)}function Gp(){zd=!1}function I3(){this.visibilityState==="hidden"&&qh&&(zd=!0)}function T3(e){e.addEventListener("keydown",E3,!0),e.addEventListener("mousedown",Gp,!0),e.addEventListener("pointerdown",Gp,!0),e.addEventListener("touchstart",Gp,!0),e.addEventListener("visibilitychange",I3,!0)}function C3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zd||_3(t)}function Gy(){const e=B.useCallback(i=>{i!=null&&T3(i.ownerDocument)},[]),t=B.useRef(!1);function n(){return t.current?(qh=!0,x3.start(100,()=>{qh=!1}),t.current=!1,!0):!1}function r(i){return C3(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}let Ms;function hx(){if(Ms)return Ms;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ms="reverse",e.scrollLeft>0?Ms="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ms="negative")),document.body.removeChild(e),Ms}function O3(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(hx()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function an(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const k3=B.createContext(null),mx=k3;function yx(){return B.useContext(mx)}const A3=typeof Symbol=="function"&&Symbol.for,B3=A3?Symbol.for("mui.nested"):"__THEME_NESTED__";function R3(e,t){return typeof t=="function"?t(e):j({},e,t)}function M3(e){const{children:t,theme:n}=e,r=yx(),i=B.useMemo(()=>{const o=r===null?n:R3(r,n);return o!=null&&(o[B3]=r!==null),o},[n,r]);return k.jsx(mx.Provider,{value:i,children:t})}const D3=["value"],gx=B.createContext();function F3(e){let{value:t}=e,n=Te(e,D3);return k.jsx(gx.Provider,j({value:t??!0},n))}const qy=()=>{const e=B.useContext(gx);return e??!1},Fv={};function Pv(e,t,n,r=!1){return B.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?j({},t,{[e]:o}):o;return r?()=>s:s}return e?j({},t,{[e]:n}):j({},t,n)},[e,t,n,r])}function P3(e){const{children:t,theme:n,themeId:r}=e,i=nx(Fv),o=yx()||Fv,s=Pv(r,i,n),a=Pv(r,o,n,!0),l=s.direction==="rtl";return k.jsx(M3,{theme:a,children:k.jsx(Iu.Provider,{value:s,children:k.jsx(F3,{value:l,children:t})})})}const j3=["component","direction","spacing","divider","children","className","useFlexGap"],L3=ku(),N3=o3("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $3(e){return cx({props:e,name:"MuiStack",defaultTheme:L3})}function z3(e,t){const n=B.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],V3=({ownerState:e,theme:t})=>{let n=j({display:"flex",flexDirection:"column"},tr({theme:t},Zo({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Ny(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=Zo({values:e.direction,base:i}),s=Zo({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=Br(n,tr({theme:t},s,(l,u)=>e.useFlexGap?{gap:ss(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${U3(u?o[u]:e.direction)}`]:ss(r,l)}}))}return n=WC(t.breakpoints,n),n};function W3(e={}){const{createStyledComponent:t=N3,useThemeProps:n=$3,componentName:r="MuiStack"}=e,i=()=>an({root:["root"]},l=>on(r,l),{}),o=t(V3);return B.forwardRef(function(l,u){const c=n(l),f=Au(c),{component:p="div",direction:h="column",spacing:y=0,divider:m,children:_,className:g,useFlexGap:v=!1}=f,b=Te(f,j3),x={direction:h,spacing:y,useFlexGap:v},d=i();return k.jsx(o,j({as:p,ownerState:x,ref:u,className:Ne(d.root,g)},b,{children:m?z3(_,m):_}))})}function H3(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Jt={},vx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vx);var Ud=vx.exports;const K3=Gi(_T),Y3=Gi(l3);var bx=Ud;Object.defineProperty(Jt,"__esModule",{value:!0});var Io=Jt.alpha=Ix;Jt.blend=ik;Jt.colorChannel=void 0;var wx=Jt.darken=Qy;Jt.decomposeColor=Fr;Jt.emphasize=rk;var G3=Jt.getContrastRatio=Z3;Jt.getLuminance=hf;Jt.hexToRgb=Sx;Jt.hslToRgb=Ex;var xx=Jt.lighten=Jy;Jt.private_safeAlpha=ek;Jt.private_safeColorChannel=void 0;Jt.private_safeDarken=tk;Jt.private_safeEmphasize=Tx;Jt.private_safeLighten=nk;Jt.recomposeColor=Ka;Jt.rgbToHex=J3;var jv=bx(K3),q3=bx(Y3);function Xy(e,t=0,n=1){return(0,q3.default)(e,t,n)}function Sx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function X3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Fr(e){if(e.type)return e;if(e.charAt(0)==="#")return Fr(Sx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,jv.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,jv.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const _x=e=>{const t=Fr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Jt.colorChannel=_x;const Q3=(e,t)=>{try{return _x(e)}catch{return e}};Jt.private_safeColorChannel=Q3;function Ka(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function J3(e){if(e.indexOf("#")===0)return e;const{values:t}=Fr(e);return`#${t.map((n,r)=>X3(r===3?Math.round(255*n):n)).join("")}`}function Ex(e){e=Fr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Ka({type:a,values:l})}function hf(e){e=Fr(e);let t=e.type==="hsl"||e.type==="hsla"?Fr(Ex(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Z3(e,t){const n=hf(e),r=hf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ix(e,t){return e=Fr(e),t=Xy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ka(e)}function ek(e,t,n){try{return Ix(e,t)}catch{return e}}function Qy(e,t){if(e=Fr(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ka(e)}function tk(e,t,n){try{return Qy(e,t)}catch{return e}}function Jy(e,t){if(e=Fr(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ka(e)}function nk(e,t,n){try{return Jy(e,t)}catch{return e}}function rk(e,t=.15){return hf(e)>.5?Qy(e,t):Jy(e,t)}function Tx(e,t,n){try{return Tx(e,t)}catch{return e}}function ik(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),o=Fr(e),s=Fr(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return Ka({type:"rgb",values:a})}const ok=["mode","contrastThreshold","tonalOffset"],Lv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hl.white,default:Hl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},qp={text:{primary:Hl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Nv(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xx(e.main,i):t==="dark"&&(e.dark=wx(e.main,o)))}function sk(e="light"){return e==="dark"?{main:As[200],light:As[50],dark:As[400]}:{main:As[700],light:As[400],dark:As[800]}}function ak(e="light"){return e==="dark"?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[500],light:ks[300],dark:ks[700]}}function lk(e="light"){return e==="dark"?{main:Os[500],light:Os[300],dark:Os[700]}:{main:Os[700],light:Os[400],dark:Os[800]}}function uk(e="light"){return e==="dark"?{main:Bs[400],light:Bs[300],dark:Bs[700]}:{main:Bs[700],light:Bs[500],dark:Bs[900]}}function ck(e="light"){return e==="dark"?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:Rs[800],light:Rs[500],dark:Rs[900]}}function fk(e="light"){return e==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:"#ed6c02",light:ol[500],dark:ol[900]}}function dk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Te(e,ok),o=e.primary||sk(t),s=e.secondary||ak(t),a=e.error||lk(t),l=e.info||uk(t),u=e.success||ck(t),c=e.warning||fk(t);function f(m){return G3(m,qp.text.primary)>=n?qp.text.primary:Lv.text.primary}const p=({color:m,name:_,mainShade:g=500,lightShade:v=300,darkShade:b=700})=>{if(m=j({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(os(11,_?` (${_})`:"",g));if(typeof m.main!="string")throw new Error(os(12,_?` (${_})`:"",JSON.stringify(m.main)));return Nv(m,"light",v,r),Nv(m,"dark",b,r),m.contrastText||(m.contrastText=f(m.main)),m},h={dark:qp,light:Lv};return Br(j({common:j({},Hl),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Wh,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},h[t]),i)}const pk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function hk(e){return Math.round(e*1e5)/1e5}const $v={textTransform:"uppercase"},zv='"Roboto", "Helvetica", "Arial", sans-serif';function mk(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=zv,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=Te(n,pk),h=i/14,y=f||(g=>`${g/u*h}rem`),m=(g,v,b,x,d)=>j({fontFamily:r,fontWeight:g,fontSize:y(v),lineHeight:b},r===zv?{letterSpacing:`${hk(x/v)}em`}:{},d,c),_={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,$v),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,$v),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Br(j({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},_),p,{clone:!1})}const yk=.2,gk=.14,vk=.12;function Dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yk})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gk})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vk})`].join(",")}const bk=["none",Dt(0,2,1,-1,0,1,1,0,0,1,3,0),Dt(0,3,1,-2,0,2,2,0,0,1,5,0),Dt(0,3,3,-2,0,3,4,0,0,1,8,0),Dt(0,2,4,-1,0,4,5,0,0,1,10,0),Dt(0,3,5,-1,0,5,8,0,0,1,14,0),Dt(0,3,5,-1,0,6,10,0,0,1,18,0),Dt(0,4,5,-2,0,7,10,1,0,2,16,1),Dt(0,5,5,-3,0,8,10,1,0,3,14,2),Dt(0,5,6,-3,0,9,12,1,0,3,16,2),Dt(0,6,6,-3,0,10,14,1,0,4,18,3),Dt(0,6,7,-4,0,11,15,1,0,4,20,3),Dt(0,7,8,-4,0,12,17,2,0,5,22,4),Dt(0,7,8,-4,0,13,19,2,0,5,24,4),Dt(0,7,9,-4,0,14,21,2,0,5,26,4),Dt(0,8,9,-5,0,15,22,2,0,6,28,5),Dt(0,8,10,-5,0,16,24,2,0,6,30,5),Dt(0,8,11,-5,0,17,26,2,0,6,32,5),Dt(0,9,11,-5,0,18,28,2,0,7,34,6),Dt(0,9,12,-6,0,19,29,2,0,7,36,6),Dt(0,10,13,-6,0,20,31,3,0,8,38,7),Dt(0,10,13,-6,0,21,33,3,0,8,40,7),Dt(0,10,14,-6,0,22,35,3,0,8,42,7),Dt(0,11,14,-7,0,23,36,3,0,9,44,8),Dt(0,11,15,-7,0,24,38,3,0,9,46,8)],wk=bk,xk=["duration","easing","delay"],Sk={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Cx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Uv(e){return`${Math.round(e)}ms`}function _k(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ek(e){const t=j({},Sk,e.easing),n=j({},Cx,e.duration);return j({getAutoHeightDuration:_k,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return Te(o,xk),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:Uv(s)} ${a} ${typeof l=="string"?l:Uv(l)}`).join(",")}},e,{easing:t,duration:n})}const Ik={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tk=Ik,Ck=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zy(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Te(e,Ck);if(e.vars)throw new Error(os(18));const a=dk(r),l=ku(e);let u=Br(l,{mixins:H3(l.breakpoints,n),palette:a,shadows:wk.slice(),typography:mk(a,o),transitions:Ek(i),zIndex:j({},Tk)});return u=Br(u,s),u=t.reduce((c,f)=>Br(c,f),u),u.unstable_sxConfig=j({},Cu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Ou({sx:f,theme:this})},u}const Ok=Zy(),e0=Ok;function Ya(){const e=zy(e0);return e[ya]||e}function Zt({props:e,name:t}){return cx({props:e,name:t,defaultTheme:e0,themeId:ya})}var Ru={},Xp={exports:{}},Vv;function kk(){return Vv||(Vv=1,function(e){function t(n,r){if(n==null)return{};var i={},o=Object.keys(n),s,a;for(a=0;a=0)&&(i[s]=n[s]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xp)),Xp.exports}const Ox=Gi(LC),Ak=Gi(NC),Bk=Gi(KC),Rk=Gi(GO),Mk=Gi(DO),Dk=Gi(NO);var Ga=Ud;Object.defineProperty(Ru,"__esModule",{value:!0});var Fk=Ru.default=Gk;Ru.shouldForwardProp=Kc;Ru.systemDefaultTheme=void 0;var Er=Ga(zw()),Xh=Ga(kk()),Wv=Uk(Ox),Pk=Ak;Ga(Bk);Ga(Rk);var jk=Ga(Mk),Lk=Ga(Dk);const Nk=["ownerState"],$k=["variants"],zk=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(kx=function(r){return r?n:t})(e)}function Uk(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=kx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function Vk(e){return Object.keys(e).length===0}function Wk(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hk=Ru.systemDefaultTheme=(0,jk.default)(),Kk=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dc({defaultTheme:e,theme:t,themeId:n}){return Vk(t)?e:t[n]||t}function Yk(e){return e?(t,n)=>n[e]:null}function Yc(e,t){let{ownerState:n}=t,r=(0,Xh.default)(t,Nk);const i=typeof e=="function"?e((0,Er.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>Yc(o,(0,Er.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,Xh.default)(i,$k);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Er.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Er.default)({ownerState:n},r,n)):l.style))}),a}return i}function Gk(e={}){const{themeId:t,defaultTheme:n=Hk,rootShouldForwardProp:r=Kc,slotShouldForwardProp:i=Kc}=e,o=s=>(0,Lk.default)((0,Er.default)({},s,{theme:dc((0,Er.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,Wv.internal_processStyles)(s,d=>d.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Yk(Kk(u))}=a,h=(0,Xh.default)(a,zk),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let _,g=Kc;u==="Root"||u==="root"?g=r:u?g=i:Wk(s)&&(g=void 0);const v=(0,Wv.default)(s,(0,Er.default)({shouldForwardProp:g,label:_},h)),b=d=>typeof d=="function"&&d.__emotion_real!==d||(0,Pk.isPlainObject)(d)?C=>Yc(d,(0,Er.default)({},C,{theme:dc({theme:C.theme,defaultTheme:n,themeId:t})})):d,x=(d,...C)=>{let I=b(d);const L=C?C.map(b):[];l&&p&&L.push(F=>{const V=dc((0,Er.default)({},F,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const H=V.components[l].styleOverrides,te={};return Object.entries(H).forEach(([D,ee])=>{te[D]=Yc(ee,(0,Er.default)({},F,{theme:V}))}),p(F,te)}),l&&!y&&L.push(F=>{var V;const H=dc((0,Er.default)({},F,{defaultTheme:n,themeId:t})),te=H==null||(V=H.components)==null||(V=V[l])==null?void 0:V.variants;return Yc({variants:te},(0,Er.default)({},F,{theme:H}))}),m||L.push(o);const R=L.length-C.length;if(Array.isArray(d)&&R>0){const F=new Array(R).fill("");I=[...d,...F],I.raw=[...d.raw,...F]}const A=v(I,...L);return s.muiName&&(A.muiName=s.muiName),A};return v.withConfig&&(x.withConfig=v.withConfig),x}}function qk(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xk=e=>qk(e)&&e!=="classes",Qk=Xk,Jk=Fk({themeId:ya,defaultTheme:e0,rootShouldForwardProp:Qk}),tt=Jk,Zk=["theme"];function eA(e){let{theme:t}=e,n=Te(e,Zk);const r=t[ya];return k.jsx(P3,j({},n,{themeId:r?ya:void 0,theme:r||t}))}function tA(e){return on("MuiSvgIcon",e)}sn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nA=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rA=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Et(t)}`,`fontSize${Et(n)}`]};return an(i,tA,r)},iA=tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Et(n.color)}`],t[`fontSize${Et(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,u,c,f,p,h,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Ax=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,h=Te(r,nA),y=B.isValidElement(i)&&i.type==="svg",m=j({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:y}),_={};c||(_.viewBox=p);const g=rA(m);return k.jsxs(iA,j({as:a,className:Ne(g.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},_,h,y&&i.props,{ownerState:m,children:[y?i.props.children:i,f?k.jsx("title",{children:f}):null]}))});Ax.muiName="SvgIcon";const Hv=Ax;function si(e,t){function n(r,i){return k.jsx(Hv,j({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Hv.muiName,B.memo(B.forwardRef(n))}const oA={configure:e=>{Uy.configure(e)}},sA=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Et,createChainedFunction:d3,createSvgIcon:si,debounce:Hy,deprecatedPropType:p3,isMuiElement:h3,ownerDocument:va,ownerWindow:Ky,requirePropFactory:m3,setRef:pf,unstable_ClassNameGenerator:oA,unstable_useEnhancedEffect:Eo,unstable_useId:Yy,unsupportedProp:g3,useControlled:px,useEventCallback:pn,useForkRef:$n,useIsFocusVisible:Gy},Symbol.toStringTag,{value:"Module"}));var vt={};/** + * @license React + * 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 t0=Symbol.for("react.element"),n0=Symbol.for("react.portal"),Vd=Symbol.for("react.fragment"),Wd=Symbol.for("react.strict_mode"),Hd=Symbol.for("react.profiler"),Kd=Symbol.for("react.provider"),Yd=Symbol.for("react.context"),aA=Symbol.for("react.server_context"),Gd=Symbol.for("react.forward_ref"),qd=Symbol.for("react.suspense"),Xd=Symbol.for("react.suspense_list"),Qd=Symbol.for("react.memo"),Jd=Symbol.for("react.lazy"),lA=Symbol.for("react.offscreen"),Bx;Bx=Symbol.for("react.module.reference");function Vr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t0:switch(e=e.type,e){case Vd:case Hd:case Wd:case qd:case Xd:return e;default:switch(e=e&&e.$$typeof,e){case aA:case Yd:case Gd:case Jd:case Qd:case Kd:return e;default:return t}}case n0:return t}}}vt.ContextConsumer=Yd;vt.ContextProvider=Kd;vt.Element=t0;vt.ForwardRef=Gd;vt.Fragment=Vd;vt.Lazy=Jd;vt.Memo=Qd;vt.Portal=n0;vt.Profiler=Hd;vt.StrictMode=Wd;vt.Suspense=qd;vt.SuspenseList=Xd;vt.isAsyncMode=function(){return!1};vt.isConcurrentMode=function(){return!1};vt.isContextConsumer=function(e){return Vr(e)===Yd};vt.isContextProvider=function(e){return Vr(e)===Kd};vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t0};vt.isForwardRef=function(e){return Vr(e)===Gd};vt.isFragment=function(e){return Vr(e)===Vd};vt.isLazy=function(e){return Vr(e)===Jd};vt.isMemo=function(e){return Vr(e)===Qd};vt.isPortal=function(e){return Vr(e)===n0};vt.isProfiler=function(e){return Vr(e)===Hd};vt.isStrictMode=function(e){return Vr(e)===Wd};vt.isSuspense=function(e){return Vr(e)===qd};vt.isSuspenseList=function(e){return Vr(e)===Xd};vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vd||e===Hd||e===Wd||e===qd||e===Xd||e===lA||typeof e=="object"&&e!==null&&(e.$$typeof===Jd||e.$$typeof===Qd||e.$$typeof===Kd||e.$$typeof===Yd||e.$$typeof===Gd||e.$$typeof===Bx||e.getModuleId!==void 0)};vt.typeOf=Vr;function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qh(e,t)}function Rx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qh(e,t)}var Mx={exports:{}},xr={},Dx={exports:{}},Fx={};/** + * @license React + * scheduler.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. + */(function(e){function t(M,Z){var X=M.length;M.push(Z);e:for(;0>>1,ae=M[ce];if(0>>1;cei(Pe,X))sei(_e,Pe)?(M[ce]=_e,M[se]=X,ce=se):(M[ce]=Pe,M[xe]=X,ce=xe);else if(sei(_e,X))M[ce]=_e,M[se]=X,ce=se;else break e}}return Z}function i(M,Z){var X=M.sortIndex-Z.sortIndex;return X!==0?X:M.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,p=3,h=!1,y=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(M){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=M)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function x(M){if(m=!1,b(M),!y)if(n(l)!==null)y=!0,ee(d);else{var Z=n(u);Z!==null&&ie(x,Z.startTime-M)}}function d(M,Z){y=!1,m&&(m=!1,g(L),L=-1),h=!0;var X=p;try{for(b(Z),f=n(l);f!==null&&(!(f.expirationTime>Z)||M&&!F());){var ce=f.callback;if(typeof ce=="function"){f.callback=null,p=f.priorityLevel;var ae=ce(f.expirationTime<=Z);Z=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(l)&&r(l),b(Z)}else r(l);f=n(l)}if(f!==null)var Ce=!0;else{var xe=n(u);xe!==null&&ie(x,xe.startTime-Z),Ce=!1}return Ce}finally{f=null,p=X,h=!1}}var C=!1,I=null,L=-1,R=5,A=-1;function F(){return!(e.unstable_now()-AM||125ce?(M.sortIndex=X,t(u,M),n(l)===null&&M===n(u)&&(m?(g(L),L=-1):m=!0,ie(x,X-ce))):(M.sortIndex=ae,t(l,M),y||h||(y=!0,ee(d))),M},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(M){var Z=p;return function(){var X=p;p=Z;try{return M.apply(this,arguments)}finally{p=X}}}})(Fx);Dx.exports=Fx;var uA=Dx.exports;/** + * @license React + * react-dom.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 Px=B,mr=uA;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jh=Object.prototype.hasOwnProperty,cA=/^[: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]*$/,Kv={},Yv={};function fA(e){return Jh.call(Yv,e)?!0:Jh.call(Kv,e)?!1:cA.test(e)?Yv[e]=!0:(Kv[e]=!0,!1)}function dA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pA(e,t,n,r){if(t===null||typeof t>"u"||dA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Un(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tn[e]=new Un(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var r0=/[\-:]([a-z])/g;function i0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(r0,i0);Tn[t]=new Un(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r0,i0);Tn[t]=new Un(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r0,i0);Tn[t]=new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tn[e]=new Un(e,1,!1,e.toLowerCase(),null,!1,!1)});Tn.xlinkHref=new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tn[e]=new Un(e,1,!1,e.toLowerCase(),null,!0,!0)});function o0(e,t,n,r){var i=Tn.hasOwnProperty(t)?Tn[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Jp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xl(e):""}function hA(e){switch(e.tag){case 5:return xl(e.type);case 16:return xl("Lazy");case 13:return xl("Suspense");case 19:return xl("SuspenseList");case 0:case 2:case 15:return e=Zp(e.type,!1),e;case 11:return e=Zp(e.type.render,!1),e;case 1:return e=Zp(e.type,!0),e;default:return""}}function nm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vs:return"Fragment";case Us:return"Portal";case Zh:return"Profiler";case s0:return"StrictMode";case em:return"Suspense";case tm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nx:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case a0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case l0:return t=e.displayName||null,t!==null?t:nm(e.type)||"Memo";case oo:t=e._payload,e=e._init;try{return nm(e(t))}catch{}}return null}function mA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nm(t);case 8:return t===s0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function To(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yA(e){var t=zx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hc(e){e._valueTracker||(e._valueTracker=yA(e))}function Ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rm(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=To(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vx(e,t){t=t.checked,t!=null&&o0(e,"checked",t,!1)}function im(e,t){Vx(e,t);var n=To(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?om(e,t.type,n):t.hasOwnProperty("defaultValue")&&om(e,t.type,To(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function om(e,t,n){(t!=="number"||mf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sl=Array.isArray;function ra(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=mc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ol={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gA=["Webkit","ms","Moz","O"];Object.keys(Ol).forEach(function(e){gA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ol[t]=Ol[e]})});function Yx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ol.hasOwnProperty(e)&&Ol[e]?(""+t).trim():t+"px"}function Gx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Yx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var vA=Vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lm(e,t){if(t){if(vA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function um(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cm=null;function u0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fm=null,ia=null,oa=null;function Zv(e){if(e=Fu(e)){if(typeof fm!="function")throw Error(re(280));var t=e.stateNode;t&&(t=rp(t),fm(e.stateNode,e.type,t))}}function qx(e){ia?oa?oa.push(e):oa=[e]:ia=e}function Xx(){if(ia){var e=ia,t=oa;if(oa=ia=null,Zv(e),t)for(e=0;e>>=0,e===0?32:31-(kA(e)/AA|0)|0}var yc=64,gc=4194304;function _l(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=_l(a):(o&=s,o!==0&&(r=_l(o)))}else s=n&~i,s!==0?r=_l(s):o!==0&&(r=_l(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Mu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zr(t),e[t]=n}function DA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Al),lb=String.fromCharCode(32),ub=!1;function yS(e,t){switch(e){case"keyup":return l4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ws=!1;function c4(e,t){switch(e){case"compositionend":return gS(t);case"keypress":return t.which!==32?null:(ub=!0,lb);case"textInput":return e=t.data,e===lb&&ub?null:e;default:return null}}function f4(e,t){if(Ws)return e==="compositionend"||!g0&&yS(e,t)?(e=hS(),qc=h0=uo=null,Ws=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pb(n)}}function xS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SS(){for(var e=window,t=mf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mf(e.document)}return t}function v0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function w4(e){var t=SS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xS(n.ownerDocument.documentElement,n)){if(r!==null&&v0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=hb(n,o);var s=hb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hs=null,gm=null,Rl=null,vm=!1;function mb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vm||Hs==null||Hs!==mf(r)||(r=Hs,"selectionStart"in r&&v0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rl&&nu(Rl,r)||(Rl=r,r=Sf(gm,"onSelect"),0Gs||(e.current=Em[Gs],Em[Gs]=null,Gs--)}function _t(e,t){Gs++,Em[Gs]=e.current,e.current=t}var Co={},Dn=Mo(Co),qn=Mo(!1),as=Co;function wa(e,t){var n=e.type.contextTypes;if(!n)return Co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xn(e){return e=e.childContextTypes,e!=null}function Ef(){At(qn),At(Dn)}function Sb(e,t,n){if(Dn.current!==Co)throw Error(re(168));_t(Dn,t),_t(qn,n)}function BS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(re(108,mA(e)||"Unknown",i));return Vt({},n,r)}function If(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Co,as=Dn.current,_t(Dn,e),_t(qn,qn.current),!0}function _b(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=BS(e,t,as),r.__reactInternalMemoizedMergedChildContext=e,At(qn),At(Dn),_t(Dn,e)):At(qn),_t(qn,n)}var Fi=null,ip=!1,ph=!1;function RS(e){Fi===null?Fi=[e]:Fi.push(e)}function R4(e){ip=!0,RS(e)}function Do(){if(!ph&&Fi!==null){ph=!0;var e=0,t=ct;try{var n=Fi;for(ct=1;e>=s,i-=s,Li=1<<32-Zr(t)+i|n<L?(R=I,I=null):R=I.sibling;var A=p(g,I,b[L],x);if(A===null){I===null&&(I=R);break}e&&I&&A.alternate===null&&t(g,I),v=o(A,v,L),C===null?d=A:C.sibling=A,C=A,I=R}if(L===b.length)return n(g,I),Pt&&Uo(g,L),d;if(I===null){for(;LL?(R=I,I=null):R=I.sibling;var F=p(g,I,A.value,x);if(F===null){I===null&&(I=R);break}e&&I&&F.alternate===null&&t(g,I),v=o(F,v,L),C===null?d=F:C.sibling=F,C=F,I=R}if(A.done)return n(g,I),Pt&&Uo(g,L),d;if(I===null){for(;!A.done;L++,A=b.next())A=f(g,A.value,x),A!==null&&(v=o(A,v,L),C===null?d=A:C.sibling=A,C=A);return Pt&&Uo(g,L),d}for(I=r(g,I);!A.done;L++,A=b.next())A=h(I,g,L,A.value,x),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?L:A.key),v=o(A,v,L),C===null?d=A:C.sibling=A,C=A);return e&&I.forEach(function(V){return t(g,V)}),Pt&&Uo(g,L),d}function _(g,v,b,x){if(typeof b=="object"&&b!==null&&b.type===Vs&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case pc:e:{for(var d=b.key,C=v;C!==null;){if(C.key===d){if(d=b.type,d===Vs){if(C.tag===7){n(g,C.sibling),v=i(C,b.props.children),v.return=g,g=v;break e}}else if(C.elementType===d||typeof d=="object"&&d!==null&&d.$$typeof===oo&&Ab(d)===C.type){n(g,C.sibling),v=i(C,b.props),v.ref=dl(g,C,b),v.return=g,g=v;break e}n(g,C);break}else t(g,C);C=C.sibling}b.type===Vs?(v=ts(b.props.children,g.mode,x,b.key),v.return=g,g=v):(x=rf(b.type,b.key,b.props,null,g.mode,x),x.ref=dl(g,v,b),x.return=g,g=x)}return s(g);case Us:e:{for(C=b.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(g,v.sibling),v=i(v,b.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=xh(b,g.mode,x),v.return=g,g=v}return s(g);case oo:return C=b._init,_(g,v,C(b._payload),x)}if(Sl(b))return y(g,v,b,x);if(al(b))return m(g,v,b,x);Ec(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,b),v.return=g,g=v):(n(g,v),v=wh(b,g.mode,x),v.return=g,g=v),s(g)):n(g,v)}return _}var Sa=$S(!0),zS=$S(!1),Pu={},Si=Mo(Pu),su=Mo(Pu),au=Mo(Pu);function Xo(e){if(e===Pu)throw Error(re(174));return e}function C0(e,t){switch(_t(au,t),_t(su,e),_t(Si,Pu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:am(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=am(t,e)}At(Si),_t(Si,t)}function _a(){At(Si),At(su),At(au)}function US(e){Xo(au.current);var t=Xo(Si.current),n=am(t,e.type);t!==n&&(_t(su,e),_t(Si,n))}function O0(e){su.current===e&&(At(Si),At(su))}var Lt=Mo(0);function Bf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hh=[];function k0(){for(var e=0;en?n:4,e(!0);var r=mh.transition;mh.transition={};try{e(!1),t()}finally{ct=n,mh.transition=r}}function i_(){return jr().memoizedState}function P4(e,t,n){var r=xo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o_(e))s_(t,n);else if(n=PS(e,t,n,r),n!==null){var i=Nn();ei(n,e,r,i),a_(n,t,r)}}function j4(e,t,n){var r=xo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o_(e))s_(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ri(a,s)){var l=t.interleaved;l===null?(i.next=i,I0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=PS(e,t,i,r),n!==null&&(i=Nn(),ei(n,e,r,i),a_(n,t,r))}}function o_(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function s_(e,t){Ml=Rf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f0(e,n)}}var Mf={readContext:Pr,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},L4={readContext:Pr,useCallback:function(e,t){return pi().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:Rb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zc(4194308,4,ZS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zc(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=P4.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=pi();return e={current:e},t.memoizedState=e},useState:Bb,useDebugValue:D0,useDeferredValue:function(e){return pi().memoizedState=e},useTransition:function(){var e=Bb(!1),t=e[0];return e=F4.bind(null,e[1]),pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,i=pi();if(Pt){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),vn===null)throw Error(re(349));us&30||HS(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rb(YS.bind(null,r,o,e),[e]),r.flags|=2048,cu(9,KS.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pi(),t=vn.identifierPrefix;if(Pt){var n=Ni,r=Li;n=(r&~(1<<32-Zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gi]=t,e[ou]=r,y_(e,t,!1,!1),t.stateNode=e;e:{switch(s=um(n,r),n){case"dialog":Ot("cancel",e),Ot("close",e),i=r;break;case"iframe":case"object":case"embed":Ot("load",e),i=r;break;case"video":case"audio":for(i=0;iIa&&(t.flags|=128,r=!0,pl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Bf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Pt)return Bn(t),null}else 2*Xt()-o.renderingStartTime>Ia&&n!==1073741824&&(t.flags|=128,r=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xt(),t.sibling=null,n=Lt.current,_t(Lt,r?n&1|2:n&1),t):(Bn(t),null);case 22:case 23:return $0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ar&1073741824&&(Bn(t),t.subtreeFlags&6&&(t.flags|=8192)):Bn(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function K4(e,t){switch(w0(t),t.tag){case 1:return Xn(t.type)&&Ef(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(),At(qn),At(Dn),k0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O0(t),null;case 13:if(At(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Lt),null;case 4:return _a(),null;case 10:return E0(t.type._context),null;case 22:case 23:return $0(),null;case 24:return null;default:return null}}var Tc=!1,Mn=!1,Y4=typeof WeakSet=="function"?WeakSet:Set,de=null;function Js(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function Pm(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var zb=!1;function G4(e,t){if(bm=wf,e=SS(),v0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wm={focusedElem:e,selectionRange:n},wf=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,_=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Yr(t.type,m),_);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(x){Gt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return y=zb,zb=!1,y}function Dl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Pm(t,n,o)}i=i.next}while(i!==r)}}function ap(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function b_(e){var t=e.alternate;t!==null&&(e.alternate=null,b_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gi],delete t[ou],delete t[_m],delete t[A4],delete t[B4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function w_(e){return e.tag===5||e.tag===3||e.tag===4}function Ub(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||w_(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_f));else if(r!==4&&(e=e.child,e!==null))for(Lm(e,t,n),e=e.sibling;e!==null;)Lm(e,t,n),e=e.sibling}function Nm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Nm(e,t,n),e=e.sibling;e!==null;)Nm(e,t,n),e=e.sibling}var xn=null,Gr=!1;function no(e,t,n){for(n=n.child;n!==null;)x_(e,t,n),n=n.sibling}function x_(e,t,n){if(xi&&typeof xi.onCommitFiberUnmount=="function")try{xi.onCommitFiberUnmount(Zd,n)}catch{}switch(n.tag){case 5:Mn||Js(n,t);case 6:var r=xn,i=Gr;xn=null,no(e,t,n),xn=r,Gr=i,xn!==null&&(Gr?(e=xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xn.removeChild(n.stateNode));break;case 18:xn!==null&&(Gr?(e=xn,n=n.stateNode,e.nodeType===8?dh(e.parentNode,n):e.nodeType===1&&dh(e,n),eu(e)):dh(xn,n.stateNode));break;case 4:r=xn,i=Gr,xn=n.stateNode.containerInfo,Gr=!0,no(e,t,n),xn=r,Gr=i;break;case 0:case 11:case 14:case 15:if(!Mn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Pm(n,t,s),i=i.next}while(i!==r)}no(e,t,n);break;case 1:if(!Mn&&(Js(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Gt(n,t,a)}no(e,t,n);break;case 21:no(e,t,n);break;case 22:n.mode&1?(Mn=(r=Mn)||n.memoizedState!==null,no(e,t,n),Mn=r):no(e,t,n);break;default:no(e,t,n)}}function Vb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y4),t.forEach(function(r){var i=rB.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Hr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*X4(r/1960))-r,10e?16:e,co===null)var r=!1;else{if(e=co,co=null,Pf=0,Qe&6)throw Error(re(331));var i=Qe;for(Qe|=4,de=e.current;de!==null;){var o=de,s=o.child;if(de.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lXt()-L0?es(e,0):j0|=n),Qn(e,t)}function k_(e,t){t===0&&(e.mode&1?(t=gc,gc<<=1,!(gc&130023424)&&(gc=4194304)):t=1);var n=Nn();e=Wi(e,t),e!==null&&(Mu(e,t,n),Qn(e,n))}function nB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),k_(e,n)}function rB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),k_(e,n)}var A_;A_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qn.current)Yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yn=!1,W4(e,t,n);Yn=!!(e.flags&131072)}else Yn=!1,Pt&&t.flags&1048576&&MS(t,Cf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ef(e,t),e=t.pendingProps;var i=wa(t,Dn.current);aa(t,n),i=B0(null,t,r,e,i,n);var o=R0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xn(r)?(o=!0,If(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,T0(t),i.updater=op,t.stateNode=i,i._reactInternals=t,km(t,r,e,n),t=Rm(null,t,r,!0,o,n)):(t.tag=0,Pt&&o&&b0(t),jn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ef(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=oB(r),e=Yr(r,e),i){case 0:t=Bm(null,t,r,e,n);break e;case 1:t=Lb(null,t,r,e,n);break e;case 11:t=Pb(null,t,r,e,n);break e;case 14:t=jb(null,t,r,Yr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yr(r,i),Bm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yr(r,i),Lb(e,t,r,i,n);case 3:e:{if(p_(t),e===null)throw Error(re(387));r=t.pendingProps,o=t.memoizedState,i=o.element,jS(e,t),Af(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ea(Error(re(423)),t),t=Nb(e,t,r,n,i);break e}else if(r!==i){i=Ea(Error(re(424)),t),t=Nb(e,t,r,n,i);break e}else for(fr=vo(t.stateNode.containerInfo.firstChild),pr=t,Pt=!0,qr=null,n=zS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xa(),r===i){t=Hi(e,t,n);break e}jn(e,t,r,n)}t=t.child}return t;case 5:return US(t),e===null&&Tm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,xm(r,i)?s=null:o!==null&&xm(r,o)&&(t.flags|=32),d_(e,t),jn(e,t,s,n),t.child;case 6:return e===null&&Tm(t),null;case 13:return h_(e,t,n);case 4:return C0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sa(t,null,r,n):jn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yr(r,i),Pb(e,t,r,i,n);case 7:return jn(e,t,t.pendingProps,n),t.child;case 8:return jn(e,t,t.pendingProps.children,n),t.child;case 12:return jn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,_t(Of,r._currentValue),r._currentValue=s,o!==null)if(ri(o.value,s)){if(o.children===i.children&&!qn.current){t=Hi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=zi(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Cm(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Cm(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}jn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,aa(t,n),i=Pr(i),r=r(i),t.flags|=1,jn(e,t,r,n),t.child;case 14:return r=t.type,i=Yr(r,t.pendingProps),i=Yr(r.type,i),jb(e,t,r,i,n);case 15:return c_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yr(r,i),ef(e,t),t.tag=1,Xn(r)?(e=!0,If(t)):e=!1,aa(t,n),NS(t,r,i),km(t,r,i,n),Rm(null,t,r,!0,e,n);case 19:return m_(e,t,n);case 22:return f_(e,t,n)}throw Error(re(156,t.tag))};function B_(e,t){return rS(e,t)}function iB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(e,t,n,r){return new iB(e,t,n,r)}function U0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oB(e){if(typeof e=="function")return U0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===a0)return 11;if(e===l0)return 14}return 2}function So(e,t){var n=e.alternate;return n===null?(n=Ar(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rf(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")U0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vs:return ts(n.children,i,o,t);case s0:s=8,i|=8;break;case Zh:return e=Ar(12,n,t,i|2),e.elementType=Zh,e.lanes=o,e;case em:return e=Ar(13,n,t,i),e.elementType=em,e.lanes=o,e;case tm:return e=Ar(19,n,t,i),e.elementType=tm,e.lanes=o,e;case $x:return up(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:s=10;break e;case Nx:s=9;break e;case a0:s=11;break e;case l0:s=14;break e;case oo:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Ar(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ts(e,t,n,r){return e=Ar(7,e,r,t),e.lanes=n,e}function up(e,t,n,r){return e=Ar(22,e,r,t),e.elementType=$x,e.lanes=n,e.stateNode={isHidden:!1},e}function wh(e,t,n){return e=Ar(6,e,null,t),e.lanes=n,e}function xh(e,t,n){return t=Ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sB(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=th(0),this.expirationTimes=th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=th(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function V0(e,t,n,r,i,o,s,a,l){return e=new sB(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ar(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},T0(o),e}function aB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F_)}catch(e){console.error(e)}}F_(),Mx.exports=xr;var Y0=Mx.exports;const kc=Va(Y0),Qb={disabled:!1},Nf=Qr.createContext(null);var dB=function(t){return t.scrollTop},Il="unmounted",Wo="exited",Ho="entering",Ns="entered",Wm="exiting",Xi=function(e){Rx(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=Wo,o.appearStatus=Ho):l=Ns:r.unmountOnExit||r.mountOnEnter?l=Il:l=Wo,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Il?{status:Wo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ho&&s!==Ns&&(o=Ho):(s===Ho||s===Ns)&&(o=Wm)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ho){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:kc.findDOMNode(this);s&&dB(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wo&&this.setState({status:Il})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[kc.findDOMNode(this),a],u=l[0],c=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!i&&!s||Qb.disabled){this.safeSetState({status:Ns},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ho},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:Ns},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:kc.findDOMNode(this);if(!o||Qb.disabled){this.safeSetState({status:Wo},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Wm},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Wo},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:kc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Il)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Te(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qr.createElement(Nf.Provider,{value:null},typeof s=="function"?s(i,a):Qr.cloneElement(Qr.Children.only(s),a))},t}(Qr.Component);Xi.contextType=Nf;Xi.propTypes={};function Fs(){}Xi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fs,onEntering:Fs,onEntered:Fs,onExit:Fs,onExiting:Fs,onExited:Fs};Xi.UNMOUNTED=Il;Xi.EXITED=Wo;Xi.ENTERING=Ho;Xi.ENTERED=Ns;Xi.EXITING=Wm;const P_=Xi;function pB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(e,t){var n=function(o){return t&&B.isValidElement(o)?t(o):o},r=Object.create(null);return e&&B.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function hB(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function $f(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function xB(e){return on("MuiCollapse",e)}sn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SB=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],_B=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return an(r,xB,n)},EB=tt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>j({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&j({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),IB=tt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>j({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),TB=tt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>j({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),j_=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:u,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:y,onExited:m,onExiting:_,orientation:g="vertical",style:v,timeout:b=Cx.standard,TransitionComponent:x=P_}=r,d=Te(r,SB),C=j({},r,{orientation:g,collapsedSize:a}),I=_B(C),L=Ya(),R=Yo(),A=B.useRef(null),F=B.useRef(),V=typeof a=="number"?`${a}px`:a,H=g==="horizontal",te=H?"width":"height",D=B.useRef(null),ee=$n(n,D),ie=se=>_e=>{if(se){const me=D.current;_e===void 0?se(me):se(me,_e)}},M=()=>A.current?A.current[H?"clientWidth":"clientHeight"]:0,Z=ie((se,_e)=>{A.current&&H&&(A.current.style.position="absolute"),se.style[te]=V,f&&f(se,_e)}),X=ie((se,_e)=>{const me=M();A.current&&H&&(A.current.style.position="");const{duration:ge,easing:Ie}=$f({style:v,timeout:b,easing:u},{mode:"enter"});if(b==="auto"){const st=L.transitions.getAutoHeightDuration(me);se.style.transitionDuration=`${st}ms`,F.current=st}else se.style.transitionDuration=typeof ge=="string"?ge:`${ge}ms`;se.style[te]=`${me}px`,se.style.transitionTimingFunction=Ie,h&&h(se,_e)}),ce=ie((se,_e)=>{se.style[te]="auto",p&&p(se,_e)}),ae=ie(se=>{se.style[te]=`${M()}px`,y&&y(se)}),Ce=ie(m),xe=ie(se=>{const _e=M(),{duration:me,easing:ge}=$f({style:v,timeout:b,easing:u},{mode:"exit"});if(b==="auto"){const Ie=L.transitions.getAutoHeightDuration(_e);se.style.transitionDuration=`${Ie}ms`,F.current=Ie}else se.style.transitionDuration=typeof me=="string"?me:`${me}ms`;se.style[te]=V,se.style.transitionTimingFunction=ge,_&&_(se)}),Pe=se=>{b==="auto"&&R.start(F.current||0,se),i&&i(D.current,se)};return k.jsx(x,j({in:c,onEnter:Z,onEntered:ce,onEntering:X,onExit:ae,onExited:Ce,onExiting:xe,addEndListener:Pe,nodeRef:D,timeout:b==="auto"?null:b},d,{children:(se,_e)=>k.jsx(EB,j({as:l,className:Ne(I.root,s,{entered:I.entered,exited:!c&&V==="0px"&&I.hidden}[se]),style:j({[H?"minWidth":"minHeight"]:V},v),ref:ee},_e,{ownerState:j({},C,{state:se}),children:k.jsx(IB,{ownerState:j({},C,{state:se}),className:I.wrapper,ref:A,children:k.jsx(TB,{ownerState:j({},C,{state:se}),className:I.wrapperInner,children:o})})}))}))});j_.muiSupportAuto=!0;const CB=j_;function OB(e){return typeof e=="string"}function Tl(e,t,n){return e===void 0||OB(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}const kB={disableDefaultClasses:!1},AB=B.createContext(kB);function BB(e){const{disableDefaultClasses:t}=B.useContext(AB);return n=>t?"":e(n)}function RB(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ko(e,t,n){return typeof e=="function"?e(t,n):e}function Jb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function MB(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Ne(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),y=j({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=j({},n,i,r);return h.length>0&&(m.className=h),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const s=RB(j({},i,r)),a=Jb(r),l=Jb(i),u=t(s),c=Ne(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=j({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=j({},u,n,l,a);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const DB=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Te(e,DB),a=o?{}:Ko(r,i),{props:l,internalRef:u}=MB(j({},s,{externalSlotProps:a})),c=$n(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Tl(n,j({},l,{ref:c}),i)}function FB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=B.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},y=Ne(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&f(!0),B.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),k.jsx("span",{className:p,style:h,children:k.jsx("span",{className:y})})}const PB=sn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ir=PB,jB=["center","classes","className"];let hp=e=>e,Zb,e1,t1,n1;const Hm=550,LB=80,NB=Ed(Zb||(Zb=hp` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),$B=Ed(e1||(e1=hp` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),zB=Ed(t1||(t1=hp` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),UB=tt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),VB=tt(FB,{name:"MuiTouchRipple",slot:"Ripple"})(n1||(n1=hp` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Ir.rippleVisible,NB,Hm,({theme:e})=>e.transitions.easing.easeInOut,Ir.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ir.child,Ir.childLeaving,$B,Hm,({theme:e})=>e.transitions.easing.easeInOut,Ir.childPulsate,zB,({theme:e})=>e.transitions.easing.easeInOut),WB=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Te(r,jB),[l,u]=B.useState([]),c=B.useRef(0),f=B.useRef(null);B.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=B.useRef(!1),h=Yo(),y=B.useRef(null),m=B.useRef(null),_=B.useCallback(x=>{const{pulsate:d,rippleX:C,rippleY:I,rippleSize:L,cb:R}=x;u(A=>[...A,k.jsx(VB,{classes:{ripple:Ne(o.ripple,Ir.ripple),rippleVisible:Ne(o.rippleVisible,Ir.rippleVisible),ripplePulsate:Ne(o.ripplePulsate,Ir.ripplePulsate),child:Ne(o.child,Ir.child),childLeaving:Ne(o.childLeaving,Ir.childLeaving),childPulsate:Ne(o.childPulsate,Ir.childPulsate)},timeout:Hm,pulsate:d,rippleX:C,rippleY:I,rippleSize:L},c.current)]),c.current+=1,f.current=R},[o]),g=B.useCallback((x={},d={},C=()=>{})=>{const{pulsate:I=!1,center:L=i||d.pulsate,fakeElement:R=!1}=d;if((x==null?void 0:x.type)==="mousedown"&&p.current){p.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(p.current=!0);const A=R?null:m.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,H,te;if(L||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)V=Math.round(F.width/2),H=Math.round(F.height/2);else{const{clientX:D,clientY:ee}=x.touches&&x.touches.length>0?x.touches[0]:x;V=Math.round(D-F.left),H=Math.round(ee-F.top)}if(L)te=Math.sqrt((2*F.width**2+F.height**2)/3),te%2===0&&(te+=1);else{const D=Math.max(Math.abs((A?A.clientWidth:0)-V),V)*2+2,ee=Math.max(Math.abs((A?A.clientHeight:0)-H),H)*2+2;te=Math.sqrt(D**2+ee**2)}x!=null&&x.touches?y.current===null&&(y.current=()=>{_({pulsate:I,rippleX:V,rippleY:H,rippleSize:te,cb:C})},h.start(LB,()=>{y.current&&(y.current(),y.current=null)})):_({pulsate:I,rippleX:V,rippleY:H,rippleSize:te,cb:C})},[i,_,h]),v=B.useCallback(()=>{g({},{pulsate:!0})},[g]),b=B.useCallback((x,d)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{b(x,d)});return}y.current=null,u(C=>C.length>0?C.slice(1):C),f.current=d},[h]);return B.useImperativeHandle(n,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),k.jsx(UB,j({className:Ne(Ir.root,o.root,s),ref:m},a,{children:k.jsx(bB,{component:null,exit:!0,children:l})}))}),HB=WB;function KB(e){return on("MuiButtonBase",e)}const YB=sn("MuiButtonBase",["root","disabled","focusVisible"]),GB=YB,qB=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=an({root:["root",t&&"disabled",n&&"focusVisible"]},KB,i);return n&&r&&(s.root+=` ${r}`),s},QB=tt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),JB=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:y,onClick:m,onContextMenu:_,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:d,onMouseDown:C,onMouseLeave:I,onMouseUp:L,onTouchEnd:R,onTouchMove:A,onTouchStart:F,tabIndex:V=0,TouchRippleProps:H,touchRippleRef:te,type:D}=r,ee=Te(r,qB),ie=B.useRef(null),M=B.useRef(null),Z=$n(M,te),{isFocusVisibleRef:X,onFocus:ce,onBlur:ae,ref:Ce}=Gy(),[xe,Pe]=B.useState(!1);u&&xe&&Pe(!1),B.useImperativeHandle(i,()=>({focusVisible:()=>{Pe(!0),ie.current.focus()}}),[]);const[se,_e]=B.useState(!1);B.useEffect(()=>{_e(!0)},[]);const me=se&&!c&&!u;B.useEffect(()=>{xe&&p&&!c&&se&&M.current.pulsate()},[c,p,xe,se]);function ge(Y,pe,Se=f){return pn(he=>(pe&&pe(he),!Se&&M.current&&M.current[Y](he),!0))}const Ie=ge("start",C),st=ge("stop",_),ln=ge("stop",g),en=ge("stop",L),Wt=ge("stop",Y=>{xe&&Y.preventDefault(),I&&I(Y)}),Bt=ge("start",F),Ht=ge("stop",R),xt=ge("stop",A),bt=ge("stop",Y=>{ae(Y),X.current===!1&&Pe(!1),y&&y(Y)},!1),un=pn(Y=>{ie.current||(ie.current=Y.currentTarget),ce(Y),X.current===!0&&(Pe(!0),b&&b(Y)),v&&v(Y)}),ve=()=>{const Y=ie.current;return l&&l!=="button"&&!(Y.tagName==="A"&&Y.href)},Rt=B.useRef(!1),Tt=pn(Y=>{p&&!Rt.current&&xe&&M.current&&Y.key===" "&&(Rt.current=!0,M.current.stop(Y,()=>{M.current.start(Y)})),Y.target===Y.currentTarget&&ve()&&Y.key===" "&&Y.preventDefault(),x&&x(Y),Y.target===Y.currentTarget&&ve()&&Y.key==="Enter"&&!u&&(Y.preventDefault(),m&&m(Y))}),cn=pn(Y=>{p&&Y.key===" "&&M.current&&xe&&!Y.defaultPrevented&&(Rt.current=!1,M.current.stop(Y,()=>{M.current.pulsate(Y)})),d&&d(Y),m&&Y.target===Y.currentTarget&&ve()&&Y.key===" "&&!Y.defaultPrevented&&m(Y)});let Je=l;Je==="button"&&(ee.href||ee.to)&&(Je=h);const K={};Je==="button"?(K.type=D===void 0?"button":D,K.disabled=u):(!ee.href&&!ee.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const z=$n(n,Ce,ie),U=j({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:V,focusVisible:xe}),q=XB(U);return k.jsxs(QB,j({as:Je,className:Ne(q.root,a),ownerState:U,onBlur:bt,onClick:m,onContextMenu:st,onFocus:un,onKeyDown:Tt,onKeyUp:cn,onMouseDown:Ie,onMouseLeave:Wt,onMouseUp:en,onDragLeave:ln,onTouchEnd:Ht,onTouchMove:xt,onTouchStart:Bt,ref:z,tabIndex:u?-1:V,type:D},K,ee,{children:[s,me?k.jsx(HB,j({ref:Z,center:o},H)):null]}))}),X0=JB;function ZB(e){return on("MuiIconButton",e)}const eR=sn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tR=eR,nR=["edge","children","className","color","disabled","disableFocusRipple","size"],rR=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Et(r)}`,i&&`edge${Et(i)}`,`size${Et(o)}`]};return an(s,ZB,t)},iR=tt(X0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Et(n.color)}`],n.edge&&t[`edge${Et(n.edge)}`],t[`size${Et(n.size)}`]]}})(({theme:e,ownerState:t})=>j({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":j({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${tR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),oR=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=Te(r,nR),p=j({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),h=rR(p);return k.jsx(iR,j({className:Ne(h.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:o}))}),sR=oR;function aR(e){return on("MuiTypography",e)}sn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lR=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Et(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return an(a,aR,s)},cR=tt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Et(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),r1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dR=e=>fR[e]||e,pR=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTypography"}),i=dR(r.color),o=Au(j({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=r1}=o,y=Te(o,lR),m=j({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:h}),_=l||(f?"p":h[p]||r1[p])||"span",g=uR(m);return k.jsx(cR,j({as:_,ref:n,ownerState:m,className:Ne(g.root,a)},y))}),Nt=pR,L_="base";function hR(e){return`${L_}--${e}`}function mR(e,t){return`${L_}-${e}-${t}`}function N_(e,t){const n=ix[t];return n?hR(n):mR(e,t)}function yR(e,t){const n={};return t.forEach(r=>{n[r]=N_(e,r)}),n}function gR(e){return typeof e=="function"?e():e}const vR=B.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=B.useState(null),l=$n(B.isValidElement(r)?r.ref:null,n);if(Eo(()=>{o||a(gR(i)||document.body)},[i,o]),Eo(()=>{if(s&&!o)return pf(n,s),()=>{pf(n,null)}},[n,s,o]),o){if(B.isValidElement(r)){const u={ref:l};return B.cloneElement(r,u)}return k.jsx(B.Fragment,{children:r})}return k.jsx(B.Fragment,{children:s&&Y0.createPortal(r,s)})});var Jn="top",Lr="bottom",Nr="right",Zn="left",Q0="auto",ju=[Jn,Lr,Nr,Zn],Ta="start",du="end",bR="clippingParents",$_="viewport",ml="popper",wR="reference",i1=ju.reduce(function(e,t){return e.concat([t+"-"+Ta,t+"-"+du])},[]),z_=[].concat(ju,[Q0]).reduce(function(e,t){return e.concat([t,t+"-"+Ta,t+"-"+du])},[]),xR="beforeRead",SR="read",_R="afterRead",ER="beforeMain",IR="main",TR="afterMain",CR="beforeWrite",OR="write",kR="afterWrite",AR=[xR,SR,_R,ER,IR,TR,CR,OR,kR];function Ei(e){return e?(e.nodeName||"").toLowerCase():null}function yr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ds(e){var t=yr(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=yr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function J0(e){if(typeof ShadowRoot>"u")return!1;var t=yr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Mr(o)||!Ei(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function RR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Mr(i)||!Ei(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const MR={name:"applyStyles",enabled:!0,phase:"write",fn:BR,effect:RR,requires:["computeStyles"]};function _i(e){return e.split("-")[0]}var ns=Math.max,zf=Math.min,Ca=Math.round;function Km(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U_(){return!/^((?!chrome|android).)*safari/i.test(Km())}function Oa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Mr(e)&&(i=e.offsetWidth>0&&Ca(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ca(r.height)/e.offsetHeight||1);var s=ds(e)?yr(e):window,a=s.visualViewport,l=!U_()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function Z0(e){var t=Oa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function V_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&J0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ki(e){return yr(e).getComputedStyle(e)}function DR(e){return["table","td","th"].indexOf(Ei(e))>=0}function Fo(e){return((ds(e)?e.ownerDocument:e.document)||window.document).documentElement}function mp(e){return Ei(e)==="html"?e:e.assignedSlot||e.parentNode||(J0(e)?e.host:null)||Fo(e)}function o1(e){return!Mr(e)||Ki(e).position==="fixed"?null:e.offsetParent}function FR(e){var t=/firefox/i.test(Km()),n=/Trident/i.test(Km());if(n&&Mr(e)){var r=Ki(e);if(r.position==="fixed")return null}var i=mp(e);for(J0(i)&&(i=i.host);Mr(i)&&["html","body"].indexOf(Ei(i))<0;){var o=Ki(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Lu(e){for(var t=yr(e),n=o1(e);n&&DR(n)&&Ki(n).position==="static";)n=o1(n);return n&&(Ei(n)==="html"||Ei(n)==="body"&&Ki(n).position==="static")?t:n||FR(e)||t}function eg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jl(e,t,n){return ns(e,zf(t,n))}function PR(e,t,n){var r=jl(e,t,n);return r>n?n:r}function W_(){return{top:0,right:0,bottom:0,left:0}}function H_(e){return Object.assign({},W_(),e)}function K_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H_(typeof t!="number"?t:K_(t,ju))};function LR(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=_i(n.placement),l=eg(a),u=[Zn,Nr].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!s)){var f=jR(i.padding,n),p=Z0(o),h=l==="y"?Jn:Zn,y=l==="y"?Lr:Nr,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],_=s[l]-n.rects.reference[l],g=Lu(o),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,b=m/2-_/2,x=f[h],d=v-p[c]-f[y],C=v/2-p[c]/2+b,I=jl(x,C,d),L=l;n.modifiersData[r]=(t={},t[L]=I,t.centerOffset=I-C,t)}}function NR(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||V_(t.elements.popper,i)&&(t.elements.arrow=i))}const $R={name:"arrow",enabled:!0,phase:"main",fn:LR,effect:NR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ka(e){return e.split("-")[1]}var zR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UR(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ca(n*i)/i||0,y:Ca(r*i)/i||0}}function s1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,y=s.y,m=y===void 0?0:y,_=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=_.x,m=_.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Zn,x=Jn,d=window;if(u){var C=Lu(n),I="clientHeight",L="clientWidth";if(C===yr(n)&&(C=Fo(n),Ki(C).position!=="static"&&a==="absolute"&&(I="scrollHeight",L="scrollWidth")),C=C,i===Jn||(i===Zn||i===Nr)&&o===du){x=Lr;var R=f&&C===d&&d.visualViewport?d.visualViewport.height:C[I];m-=R-r.height,m*=l?1:-1}if(i===Zn||(i===Jn||i===Lr)&&o===du){b=Nr;var A=f&&C===d&&d.visualViewport?d.visualViewport.width:C[L];h-=A-r.width,h*=l?1:-1}}var F=Object.assign({position:a},u&&zR),V=c===!0?UR({x:h,y:m},yr(n)):{x:h,y:m};if(h=V.x,m=V.y,l){var H;return Object.assign({},F,(H={},H[x]=v?"0":"",H[b]=g?"0":"",H.transform=(d.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",H))}return Object.assign({},F,(t={},t[x]=v?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}function VR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:_i(t.placement),variation:ka(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const WR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VR,data:{}};var Ac={passive:!0};function HR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=yr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ac)}),a&&l.addEventListener("resize",n.update,Ac),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ac)}),a&&l.removeEventListener("resize",n.update,Ac)}}const KR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HR,data:{}};var YR={left:"right",right:"left",bottom:"top",top:"bottom"};function of(e){return e.replace(/left|right|bottom|top/g,function(t){return YR[t]})}var GR={start:"end",end:"start"};function a1(e){return e.replace(/start|end/g,function(t){return GR[t]})}function tg(e){var t=yr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ng(e){return Oa(Fo(e)).left+tg(e).scrollLeft}function qR(e,t){var n=yr(e),r=Fo(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=U_();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+ng(e),y:l}}function XR(e){var t,n=Fo(e),r=tg(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ns(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ns(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ng(e),l=-r.scrollTop;return Ki(i||n).direction==="rtl"&&(a+=ns(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function rg(e){var t=Ki(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Y_(e){return["html","body","#document"].indexOf(Ei(e))>=0?e.ownerDocument.body:Mr(e)&&rg(e)?e:Y_(mp(e))}function Ll(e,t){var n;t===void 0&&(t=[]);var r=Y_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=yr(r),s=i?[o].concat(o.visualViewport||[],rg(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Ll(mp(s)))}function Ym(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QR(e,t){var n=Oa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function l1(e,t,n){return t===$_?Ym(qR(e,n)):ds(t)?QR(t,n):Ym(XR(Fo(e)))}function JR(e){var t=Ll(mp(e)),n=["absolute","fixed"].indexOf(Ki(e).position)>=0,r=n&&Mr(e)?Lu(e):e;return ds(r)?t.filter(function(i){return ds(i)&&V_(i,r)&&Ei(i)!=="body"}):[]}function ZR(e,t,n,r){var i=t==="clippingParents"?JR(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,u){var c=l1(e,u,r);return l.top=ns(c.top,l.top),l.right=zf(c.right,l.right),l.bottom=zf(c.bottom,l.bottom),l.left=ns(c.left,l.left),l},l1(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function G_(e){var t=e.reference,n=e.element,r=e.placement,i=r?_i(r):null,o=r?ka(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Jn:l={x:s,y:t.y-n.height};break;case Lr:l={x:s,y:t.y+t.height};break;case Nr:l={x:t.x+t.width,y:a};break;case Zn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?eg(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ta:l[u]=l[u]-(t[c]/2-n[c]/2);break;case du:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function pu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?bR:a,u=n.rootBoundary,c=u===void 0?$_:u,f=n.elementContext,p=f===void 0?ml:f,h=n.altBoundary,y=h===void 0?!1:h,m=n.padding,_=m===void 0?0:m,g=H_(typeof _!="number"?_:K_(_,ju)),v=p===ml?wR:ml,b=e.rects.popper,x=e.elements[y?v:p],d=ZR(ds(x)?x:x.contextElement||Fo(e.elements.popper),l,c,s),C=Oa(e.elements.reference),I=G_({reference:C,element:b,strategy:"absolute",placement:i}),L=Ym(Object.assign({},b,I)),R=p===ml?L:C,A={top:d.top-R.top+g.top,bottom:R.bottom-d.bottom+g.bottom,left:d.left-R.left+g.left,right:R.right-d.right+g.right},F=e.modifiersData.offset;if(p===ml&&F){var V=F[i];Object.keys(A).forEach(function(H){var te=[Nr,Lr].indexOf(H)>=0?1:-1,D=[Jn,Lr].indexOf(H)>=0?"y":"x";A[H]+=V[D]*te})}return A}function eM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z_:l,c=ka(r),f=c?a?i1:i1.filter(function(y){return ka(y)===c}):ju,p=f.filter(function(y){return u.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,m){return y[m]=pu(e,{placement:m,boundary:i,rootBoundary:o,padding:s})[_i(m)],y},{});return Object.keys(h).sort(function(y,m){return h[y]-h[m]})}function tM(e){if(_i(e)===Q0)return[];var t=of(e);return[a1(e),t,a1(t)]}function nM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,m=n.allowedAutoPlacements,_=t.options.placement,g=_i(_),v=g===_,b=l||(v||!y?[of(_)]:tM(_)),x=[_].concat(b).reduce(function(xe,Pe){return xe.concat(_i(Pe)===Q0?eM(t,{placement:Pe,boundary:c,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:m}):Pe)},[]),d=t.rects.reference,C=t.rects.popper,I=new Map,L=!0,R=x[0],A=0;A=0,D=te?"width":"height",ee=pu(t,{placement:F,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),ie=te?H?Nr:Zn:H?Lr:Jn;d[D]>C[D]&&(ie=of(ie));var M=of(ie),Z=[];if(o&&Z.push(ee[V]<=0),a&&Z.push(ee[ie]<=0,ee[M]<=0),Z.every(function(xe){return xe})){R=F,L=!1;break}I.set(F,Z)}if(L)for(var X=y?3:1,ce=function(Pe){var se=x.find(function(_e){var me=I.get(_e);if(me)return me.slice(0,Pe).every(function(ge){return ge})});if(se)return R=se,"break"},ae=X;ae>0;ae--){var Ce=ce(ae);if(Ce==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const rM={name:"flip",enabled:!0,phase:"main",fn:nM,requiresIfExists:["offset"],data:{_skip:!1}};function u1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function c1(e){return[Jn,Nr,Lr,Zn].some(function(t){return e[t]>=0})}function iM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=pu(t,{elementContext:"reference"}),a=pu(t,{altBoundary:!0}),l=u1(s,r),u=u1(a,i,o),c=c1(l),f=c1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const oM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iM};function sM(e,t,n){var r=_i(e),i=[Zn,Jn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Zn,Nr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function aM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=z_.reduce(function(c,f){return c[f]=sM(f,t.rects,o),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const lM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aM};function uM(e){var t=e.state,n=e.name;t.modifiersData[n]=G_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const cM={name:"popperOffsets",enabled:!0,phase:"read",fn:uM,data:{}};function fM(e){return e==="x"?"y":"x"}function dM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,y=n.tetherOffset,m=y===void 0?0:y,_=pu(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=_i(t.placement),v=ka(t.placement),b=!v,x=eg(g),d=fM(x),C=t.modifiersData.popperOffsets,I=t.rects.reference,L=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,A=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(C){if(o){var H,te=x==="y"?Jn:Zn,D=x==="y"?Lr:Nr,ee=x==="y"?"height":"width",ie=C[x],M=ie+_[te],Z=ie-_[D],X=h?-L[ee]/2:0,ce=v===Ta?I[ee]:L[ee],ae=v===Ta?-L[ee]:-I[ee],Ce=t.elements.arrow,xe=h&&Ce?Z0(Ce):{width:0,height:0},Pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W_(),se=Pe[te],_e=Pe[D],me=jl(0,I[ee],xe[ee]),ge=b?I[ee]/2-X-me-se-A.mainAxis:ce-me-se-A.mainAxis,Ie=b?-I[ee]/2+X+me+_e+A.mainAxis:ae+me+_e+A.mainAxis,st=t.elements.arrow&&Lu(t.elements.arrow),ln=st?x==="y"?st.clientTop||0:st.clientLeft||0:0,en=(H=F==null?void 0:F[x])!=null?H:0,Wt=ie+ge-en-ln,Bt=ie+Ie-en,Ht=jl(h?zf(M,Wt):M,ie,h?ns(Z,Bt):Z);C[x]=Ht,V[x]=Ht-ie}if(a){var xt,bt=x==="x"?Jn:Zn,un=x==="x"?Lr:Nr,ve=C[d],Rt=d==="y"?"height":"width",Tt=ve+_[bt],cn=ve-_[un],Je=[Jn,Zn].indexOf(g)!==-1,K=(xt=F==null?void 0:F[d])!=null?xt:0,z=Je?Tt:ve-I[Rt]-L[Rt]-K+A.altAxis,U=Je?ve+I[Rt]+L[Rt]-K-A.altAxis:cn,q=h&&Je?PR(z,ve,U):jl(h?z:Tt,ve,h?U:cn);C[d]=q,V[d]=q-ve}t.modifiersData[r]=V}}const pM={name:"preventOverflow",enabled:!0,phase:"main",fn:dM,requiresIfExists:["offset"]};function hM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mM(e){return e===yr(e)||!Mr(e)?tg(e):hM(e)}function yM(e){var t=e.getBoundingClientRect(),n=Ca(t.width)/e.offsetWidth||1,r=Ca(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gM(e,t,n){n===void 0&&(n=!1);var r=Mr(t),i=Mr(t)&&yM(t),o=Fo(t),s=Oa(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ei(t)!=="body"||rg(o))&&(a=mM(t)),Mr(t)?(l=Oa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ng(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function vM(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function bM(e){var t=vM(e);return AR.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function wM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var f1={placement:"bottom",modifiers:[],strategy:"absolute"};function d1(){for(var e=arguments.length,t=new Array(e),n=0;nan({root:["root"]},BB(IM)),BM={},RM=B.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:h={},slots:y={},TransitionProps:m}=t,_=Te(t,TM),g=B.useRef(null),v=$n(g,n),b=B.useRef(null),x=$n(b,p),d=B.useRef(x);Eo(()=>{d.current=x},[x]),B.useImperativeHandle(p,()=>b.current,[]);const C=OM(c,s),[I,L]=B.useState(C),[R,A]=B.useState(Gm(i));B.useEffect(()=>{b.current&&b.current.forceUpdate()}),B.useEffect(()=>{i&&A(Gm(i))},[i]),Eo(()=>{if(!R||!u)return;const D=M=>{L(M.placement)};let ee=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{D(M)}}];l!=null&&(ee=ee.concat(l)),f&&f.modifiers!=null&&(ee=ee.concat(f.modifiers));const ie=EM(R,g.current,j({placement:C},f,{modifiers:ee}));return d.current(ie),()=>{ie.destroy(),d.current(null)}},[R,a,l,u,f,C]);const F={placement:I};m!==null&&(F.TransitionProps=m);const V=AM(),H=(r=y.root)!=null?r:"div",te=vi({elementType:H,externalSlotProps:h.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:V.root});return k.jsx(H,j({},te,{children:typeof o=="function"?o(F):o}))}),MM=B.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=BM,popperRef:h,style:y,transition:m=!1,slotProps:_={},slots:g={}}=t,v=Te(t,CM),[b,x]=B.useState(!0),d=()=>{x(!1)},C=()=>{x(!0)};if(!l&&!c&&(!m||b))return null;let I;if(o)I=o;else if(r){const A=Gm(r);I=A&&kM(A)?va(A).body:va(null).body}const L=!c&&l&&(!m||b)?"none":void 0,R=m?{in:c,onEnter:d,onExited:C}:void 0;return k.jsx(vR,{disablePortal:a,container:I,children:k.jsx(RM,j({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:m?!b:c,placement:f,popperOptions:p,popperRef:h,slotProps:_,slots:g},v,{style:j({position:"fixed",top:0,left:0,display:L},y),TransitionProps:R,children:i}))})});var ig={};Object.defineProperty(ig,"__esModule",{value:!0});var X_=ig.default=void 0,DM=PM(B),FM=Ox;function Q_(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Q_=function(r){return r?n:t})(e)}function PM(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Q_(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function jM(e){return Object.keys(e).length===0}function LM(e=null){const t=DM.useContext(FM.ThemeContext);return!t||jM(t)?e:t}X_=ig.default=LM;const NM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$M=tt(MM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zM=B.forwardRef(function(t,n){var r;const i=X_(),o=Zt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:y,placement:m,popperOptions:_,popperRef:g,transition:v,slots:b,slotProps:x}=o,d=Te(o,NM),C=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,I=j({anchorEl:s,container:c,disablePortal:f,keepMounted:p,modifiers:h,open:y,placement:m,popperOptions:_,popperRef:g,transition:v},d);return k.jsx($M,j({as:a,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:x??u},I,{ref:n}))}),J_=zM,UM=sn("MuiBox",["root"]),VM=UM,WM=Zy(),HM=VO({themeId:ya,defaultTheme:WM,defaultClassName:VM.root,generateClassName:Uy.generate}),qt=HM,KM=W3({createStyledComponent:tt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Zt({props:e,name:"MuiStack"})}),ps=KM,YM=B.createContext(),p1=YM;function GM(e){return on("MuiGrid",e)}const qM=[0,1,2,3,4,5,6,7,8,9,10],XM=["column-reverse","column","row-reverse","row"],QM=["nowrap","wrap-reverse","wrap"],yl=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],JM=sn("MuiGrid",["root","container","item","zeroMinWidth",...qM.map(e=>`spacing-xs-${e}`),...XM.map(e=>`direction-xs-${e}`),...QM.map(e=>`wrap-xs-${e}`),...yl.map(e=>`grid-xs-${e}`),...yl.map(e=>`grid-sm-${e}`),...yl.map(e=>`grid-md-${e}`),...yl.map(e=>`grid-lg-${e}`),...yl.map(e=>`grid-xl-${e}`)]),Aa=JM,ZM=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ua(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function e6({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Zo({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[i]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${ua(c)})`;u={flexBasis:f,maxWidth:f}}}o=j({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function t6({theme:e,ownerState:t}){const n=Zo({values:t.direction,breakpoints:e.breakpoints.values});return tr({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Aa.item}`]={maxWidth:"none"}),i})}function Z_({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function n6({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Zo({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Z_({breakpoints:e.breakpoints.values,values:o})),i=tr({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${ua(c)}`,[`& > .${Aa.item}`]:{paddingTop:ua(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Aa.item}`]:{paddingTop:0}}})}return i}function r6({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Zo({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Z_({breakpoints:e.breakpoints.values,values:o})),i=tr({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${ua(c)})`,marginLeft:`-${ua(c)}`,[`& > .${Aa.item}`]:{paddingLeft:ua(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Aa.item}`]:{paddingLeft:0}}})}return i}function i6(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const o6=tt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=i6(s,u,t));const f=[];return u.forEach(p=>{const h=n[p];h&&f.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>j({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),t6,n6,r6,e6);function s6(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const a6=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=s6(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const f={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return an(f,GM,t)},l6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiGrid"}),{breakpoints:i}=Ya(),o=Au(r),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:h,spacing:y=0,wrap:m="wrap",zeroMinWidth:_=!1}=o,g=Te(o,ZM),v=h||y,b=l||y,x=B.useContext(p1),d=c?a||12:x,C={},I=j({},g);i.keys.forEach(A=>{g[A]!=null&&(C[A]=g[A],delete I[A])});const L=j({},o,{columns:d,container:c,direction:f,item:p,rowSpacing:v,columnSpacing:b,wrap:m,zeroMinWidth:_,spacing:y},C,{breakpoints:i.keys}),R=a6(L);return k.jsx(p1.Provider,{value:d,children:k.jsx(o6,j({ownerState:L,className:Ne(R.root,s),as:u,ref:n},I))})}),rs=l6,u6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qm(e){return`scale(${e}, ${e**2})`}const c6={entering:{opacity:1,transform:qm(1)},entered:{opacity:1,transform:"none"}},Sh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),e2=B.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:h,style:y,timeout:m="auto",TransitionComponent:_=P_}=t,g=Te(t,u6),v=Yo(),b=B.useRef(),x=Ya(),d=B.useRef(null),C=$n(d,o.ref,n),I=D=>ee=>{if(D){const ie=d.current;ee===void 0?D(ie):D(ie,ee)}},L=I(c),R=I((D,ee)=>{wB(D);const{duration:ie,delay:M,easing:Z}=$f({style:y,timeout:m,easing:s},{mode:"enter"});let X;m==="auto"?(X=x.transitions.getAutoHeightDuration(D.clientHeight),b.current=X):X=ie,D.style.transition=[x.transitions.create("opacity",{duration:X,delay:M}),x.transitions.create("transform",{duration:Sh?X:X*.666,delay:M,easing:Z})].join(","),l&&l(D,ee)}),A=I(u),F=I(h),V=I(D=>{const{duration:ee,delay:ie,easing:M}=$f({style:y,timeout:m,easing:s},{mode:"exit"});let Z;m==="auto"?(Z=x.transitions.getAutoHeightDuration(D.clientHeight),b.current=Z):Z=ee,D.style.transition=[x.transitions.create("opacity",{duration:Z,delay:ie}),x.transitions.create("transform",{duration:Sh?Z:Z*.666,delay:Sh?ie:ie||Z*.333,easing:M})].join(","),D.style.opacity=0,D.style.transform=qm(.75),f&&f(D)}),H=I(p),te=D=>{m==="auto"&&v.start(b.current||0,D),r&&r(d.current,D)};return k.jsx(_,j({appear:i,in:a,nodeRef:d,onEnter:R,onEntered:A,onEntering:L,onExit:V,onExited:H,onExiting:F,addEndListener:te,timeout:m==="auto"?null:m},g,{children:(D,ee)=>B.cloneElement(o,j({style:j({opacity:0,transform:qm(.75),visibility:D==="exited"&&!a?"hidden":void 0},c6[D],y,o.props.style),ref:C},ee))}))});e2.muiSupportAuto=!0;const h1=e2;function f6(e){return on("MuiTooltip",e)}const d6=sn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fo=d6,p6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function h6(e){return Math.round(e*1e5)/1e5}const m6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Et(o.split("-")[0])}`],arrow:["arrow"]};return an(s,f6,t)},y6=tt(J_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${fo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${fo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${fo.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${fo.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),g6=tt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Et(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${h6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${fo.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${fo.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${fo.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${fo.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),v6=tt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Io(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Bc=!1;const m1=new Bu;let gl={x:0,y:0};function Rc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const b6=B.forwardRef(function(t,n){var r,i,o,s,a,l,u,c,f,p,h,y,m,_,g,v,b,x,d;const C=Zt({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:L,components:R={},componentsProps:A={},describeChild:F=!1,disableFocusListener:V=!1,disableHoverListener:H=!1,disableInteractive:te=!1,disableTouchListener:D=!1,enterDelay:ee=100,enterNextDelay:ie=0,enterTouchDelay:M=700,followCursor:Z=!1,id:X,leaveDelay:ce=0,leaveTouchDelay:ae=1500,onClose:Ce,onOpen:xe,open:Pe,placement:se="bottom",PopperComponent:_e,PopperProps:me={},slotProps:ge={},slots:Ie={},title:st,TransitionComponent:ln=h1,TransitionProps:en}=C,Wt=Te(C,p6),Bt=B.isValidElement(L)?L:k.jsx("span",{children:L}),Ht=Ya(),xt=qy(),[bt,un]=B.useState(),[ve,Rt]=B.useState(null),Tt=B.useRef(!1),cn=te||Z,Je=Yo(),K=Yo(),z=Yo(),U=Yo(),[q,Y]=px({controlled:Pe,default:!1,name:"Tooltip",state:"open"});let pe=q;const Se=Yy(X),he=B.useRef(),We=pn(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),U.clear()});B.useEffect(()=>We,[We]);const ht=ze=>{m1.clear(),Bc=!0,Y(!0),xe&&!pe&&xe(ze)},oe=pn(ze=>{m1.start(800+ce,()=>{Bc=!1}),Y(!1),Ce&&pe&&Ce(ze),Je.start(Ht.transitions.duration.shortest,()=>{Tt.current=!1})}),fe=ze=>{Tt.current&&ze.type!=="touchstart"||(bt&&bt.removeAttribute("title"),K.clear(),z.clear(),ee||Bc&&ie?K.start(Bc?ie:ee,()=>{ht(ze)}):ht(ze))},ye=ze=>{K.clear(),z.start(ce,()=>{oe(ze)})},{isFocusVisibleRef:Ee,onBlur:He,onFocus:wt,ref:Ct}=Gy(),[,St]=B.useState(!1),Ke=ze=>{He(ze),Ee.current===!1&&(St(!1),ye(ze))},jt=ze=>{bt||un(ze.currentTarget),wt(ze),Ee.current===!0&&(St(!0),fe(ze))},mn=ze=>{Tt.current=!0;const wn=Bt.props;wn.onTouchStart&&wn.onTouchStart(ze)},Wr=ze=>{mn(ze),z.clear(),Je.clear(),We(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(M,()=>{document.body.style.WebkitUserSelect=he.current,fe(ze)})},_r=ze=>{Bt.props.onTouchEnd&&Bt.props.onTouchEnd(ze),We(),z.start(ae,()=>{oe(ze)})};B.useEffect(()=>{if(!pe)return;function ze(wn){(wn.key==="Escape"||wn.key==="Esc")&&oe(wn)}return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[oe,pe]);const Vn=$n(Bt.ref,Ct,un,n);!st&&st!==0&&(pe=!1);const Wn=B.useRef(),No=ze=>{const wn=Bt.props;wn.onMouseMove&&wn.onMouseMove(ze),gl={x:ze.clientX,y:ze.clientY},Wn.current&&Wn.current.update()},ci={},$o=typeof st=="string";F?(ci.title=!pe&&$o&&!H?st:null,ci["aria-describedby"]=pe?Se:null):(ci["aria-label"]=$o?st:null,ci["aria-labelledby"]=pe&&!$o?Se:null);const ir=j({},ci,Wt,Bt.props,{className:Ne(Wt.className,Bt.props.className),onTouchStart:mn,ref:Vn},Z?{onMouseMove:No}:{}),to={};D||(ir.onTouchStart=Wr,ir.onTouchEnd=_r),H||(ir.onMouseOver=Rc(fe,ir.onMouseOver),ir.onMouseLeave=Rc(ye,ir.onMouseLeave),cn||(to.onMouseOver=fe,to.onMouseLeave=ye)),V||(ir.onFocus=Rc(jt,ir.onFocus),ir.onBlur=Rc(Ke,ir.onBlur),cn||(to.onFocus=jt,to.onBlur=Ke));const Lp=B.useMemo(()=>{var ze;let wn=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return(ze=me.popperOptions)!=null&&ze.modifiers&&(wn=wn.concat(me.popperOptions.modifiers)),j({},me.popperOptions,{modifiers:wn})},[ve,me]),Ai=j({},C,{isRtl:xt,arrow:I,disableInteractive:cn,placement:se,PopperComponentProp:_e,touch:Tt.current}),On=m6(Ai),tl=(r=(i=Ie.popper)!=null?i:R.Popper)!=null?r:y6,Zu=(o=(s=(a=Ie.transition)!=null?a:R.Transition)!=null?s:ln)!=null?o:h1,nl=(l=(u=Ie.tooltip)!=null?u:R.Tooltip)!=null?l:g6,rl=(c=(f=Ie.arrow)!=null?f:R.Arrow)!=null?c:v6,ec=Tl(tl,j({},me,(p=ge.popper)!=null?p:A.popper,{className:Ne(On.popper,me==null?void 0:me.className,(h=(y=ge.popper)!=null?y:A.popper)==null?void 0:h.className)}),Ai),tc=Tl(Zu,j({},en,(m=ge.transition)!=null?m:A.transition),Ai),Np=Tl(nl,j({},(_=ge.tooltip)!=null?_:A.tooltip,{className:Ne(On.tooltip,(g=(v=ge.tooltip)!=null?v:A.tooltip)==null?void 0:g.className)}),Ai),nc=Tl(rl,j({},(b=ge.arrow)!=null?b:A.arrow,{className:Ne(On.arrow,(x=(d=ge.arrow)!=null?d:A.arrow)==null?void 0:x.className)}),Ai);return k.jsxs(B.Fragment,{children:[B.cloneElement(Bt,ir),k.jsx(tl,j({as:_e??J_,placement:se,anchorEl:Z?{getBoundingClientRect:()=>({top:gl.y,left:gl.x,right:gl.x,bottom:gl.y,width:0,height:0})}:bt,popperRef:Wn,open:bt?pe:!1,id:Se,transition:!0},to,ec,{popperOptions:Lp,children:({TransitionProps:ze})=>k.jsx(Zu,j({timeout:Ht.transitions.duration.shorter},ze,tc,{children:k.jsxs(nl,j({},Np,{children:[st,I?k.jsx(rl,j({},nc,{ref:Rt})):null]}))}))}))]})}),w6=b6;function x6(e){return on("MuiTab",e)}const S6=sn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Di=S6,_6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],E6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:l}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Et(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return an(u,x6,t)},I6=tt(X0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Et(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Di.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Di.selected}`]:{opacity:1},[`&.${Di.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Di.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Di.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),T6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:h,onFocus:y,selected:m,selectionFollowsFocus:_,textColor:g="inherit",value:v,wrapped:b=!1}=r,x=Te(r,_6),d=j({},r,{disabled:o,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:u,label:!!f,fullWidth:a,textColor:g,wrapped:b}),C=E6(d),I=l&&f&&B.isValidElement(l)?B.cloneElement(l,{className:Ne(C.iconWrapper,l.props.className)}):l,L=A=>{!m&&p&&p(A,v),h&&h(A)},R=A=>{_&&!m&&p&&p(A,v),y&&y(A)};return k.jsxs(I6,j({focusRipple:!s,className:Ne(C.root,i),ref:n,role:"tab","aria-selected":m,disabled:o,onClick:L,onFocus:R,ownerState:d,tabIndex:m?0:-1},x,{children:[u==="top"||u==="start"?k.jsxs(B.Fragment,{children:[I,f]}):k.jsxs(B.Fragment,{children:[f,I]}),c]}))}),_h=T6,C6=B.createContext(),t2=C6;function O6(e){return on("MuiTable",e)}sn("MuiTable",["root","stickyHeader"]);const k6=["className","component","padding","size","stickyHeader"],A6=e=>{const{classes:t,stickyHeader:n}=e;return an({root:["root",n&&"stickyHeader"]},O6,t)},B6=tt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),y1="table",R6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTable"}),{className:i,component:o=y1,padding:s="normal",size:a="medium",stickyHeader:l=!1}=r,u=Te(r,k6),c=j({},r,{component:o,padding:s,size:a,stickyHeader:l}),f=A6(c),p=B.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return k.jsx(t2.Provider,{value:p,children:k.jsx(B6,j({as:o,role:o===y1?null:"table",ref:n,className:Ne(f.root,i),ownerState:c},u))})}),M6=R6,D6=B.createContext(),yp=D6;function F6(e){return on("MuiTableBody",e)}sn("MuiTableBody",["root"]);const P6=["className","component"],j6=e=>{const{classes:t}=e;return an({root:["root"]},F6,t)},L6=tt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),N6={variant:"body"},g1="tbody",$6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTableBody"}),{className:i,component:o=g1}=r,s=Te(r,P6),a=j({},r,{component:o}),l=j6(a);return k.jsx(yp.Provider,{value:N6,children:k.jsx(L6,j({className:Ne(l.root,i),as:o,ref:n,role:o===g1?null:"rowgroup",ownerState:a},s))})}),z6=$6;function U6(e){return on("MuiTableCell",e)}const V6=sn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),W6=V6,H6=["align","className","component","padding","scope","size","sortDirection","variant"],K6=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Et(r)}`,i!=="normal"&&`padding${Et(i)}`,`size${Et(o)}`]};return an(a,U6,t)},Y6=tt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Et(n.size)}`],n.padding!=="normal"&&t[`padding${Et(n.padding)}`],n.align!=="inherit"&&t[`align${Et(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?xx(Io(e.palette.divider,1),.88):wx(Io(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${W6.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),G6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:a,scope:l,size:u,sortDirection:c,variant:f}=r,p=Te(r,H6),h=B.useContext(t2),y=B.useContext(yp),m=y&&y.variant==="head";let _;s?_=s:_=m?"th":"td";let g=l;_==="td"?g=void 0:!g&&m&&(g="col");const v=f||y&&y.variant,b=j({},r,{align:i,component:_,padding:a||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:v==="head"&&h&&h.stickyHeader,variant:v}),x=K6(b);let d=null;return c&&(d=c==="asc"?"ascending":"descending"),k.jsx(Y6,j({as:_,ref:n,className:Ne(x.root,o),"aria-sort":d,scope:g,ownerState:b},p))}),ca=G6;function q6(e){return on("MuiTableContainer",e)}sn("MuiTableContainer",["root"]);const X6=["className","component"],Q6=e=>{const{classes:t}=e;return an({root:["root"]},q6,t)},J6=tt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Z6=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=Te(r,X6),a=j({},r,{component:o}),l=Q6(a);return k.jsx(J6,j({ref:n,as:o,className:Ne(l.root,i),ownerState:a},s))}),eD=Z6;function tD(e){return on("MuiTableHead",e)}sn("MuiTableHead",["root"]);const nD=["className","component"],rD=e=>{const{classes:t}=e;return an({root:["root"]},tD,t)},iD=tt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),oD={variant:"head"},v1="thead",sD=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTableHead"}),{className:i,component:o=v1}=r,s=Te(r,nD),a=j({},r,{component:o}),l=rD(a);return k.jsx(yp.Provider,{value:oD,children:k.jsx(iD,j({as:o,className:Ne(l.root,i),ref:n,role:o===v1?null:"rowgroup",ownerState:a},s))})}),aD=sD,lD=si(k.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),uD=si(k.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function cD(e){return on("MuiTableRow",e)}const fD=sn("MuiTableRow",["root","selected","hover","head","footer"]),b1=fD,dD=["className","component","hover","selected"],pD=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return an({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},cD,t)},hD=tt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${b1.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${b1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Io(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Io(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),w1="tr",mD=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTableRow"}),{className:i,component:o=w1,hover:s=!1,selected:a=!1}=r,l=Te(r,dD),u=B.useContext(yp),c=j({},r,{component:o,hover:s,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=pD(c);return k.jsx(hD,j({as:o,ref:n,className:Ne(f.root,i),role:o===w1?null:"row",ownerState:c},l))}),n2=mD;function yD(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gD(e,t,n,r={},i=()=>{}){const{ease:o=yD,duration:s=300}=r;let a=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const h=Math.min(1,(p-a)/s);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const vD=["onChange"],bD={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function wD(e){const{onChange:t}=e,n=Te(e,vD),r=B.useRef(),i=B.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Eo(()=>{const s=Hy(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),a=Ky(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),B.useEffect(()=>{o(),t(r.current)},[t]),k.jsx("div",j({style:bD,ref:i},n))}function xD(e){return on("MuiTabScrollButton",e)}const SD=sn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_D=SD,ED=["className","slots","slotProps","direction","orientation","disabled"],ID=e=>{const{classes:t,orientation:n,disabled:r}=e;return an({root:["root",n,r&&"disabled"]},xD,t)},TD=tt(X0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${_D.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),CD=B.forwardRef(function(t,n){var r,i;const o=Zt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:u}=o,c=Te(o,ED),f=qy(),p=j({isRtl:f},o),h=ID(p),y=(r=a.StartScrollButtonIcon)!=null?r:lD,m=(i=a.EndScrollButtonIcon)!=null?i:uD,_=vi({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=vi({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return k.jsx(TD,j({component:"div",className:Ne(h.root,s),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?k.jsx(y,j({},_)):k.jsx(m,j({},g))}))}),OD=CD;function kD(e){return on("MuiTabs",e)}const AD=sn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Eh=AD,BD=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],x1=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,S1=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Mc=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},RD=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return an({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},kD,l)},MD=tt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Eh.scrollButtons}`]:t.scrollButtons},{[`& .${Eh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Eh.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),DD=tt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),FD=tt("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),PD=tt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),jD=tt(wD)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),_1={},LD=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiTabs"}),i=Ya(),o=qy(),{"aria-label":s,"aria-labelledby":a,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:y="primary",onChange:m,orientation:_="horizontal",ScrollButtonComponent:g=OD,scrollButtons:v="auto",selectionFollowsFocus:b,slots:x={},slotProps:d={},TabIndicatorProps:C={},TabScrollButtonProps:I={},textColor:L="primary",value:R,variant:A="standard",visibleScrollbar:F=!1}=r,V=Te(r,BD),H=A==="scrollable",te=_==="vertical",D=te?"scrollTop":"scrollLeft",ee=te?"top":"left",ie=te?"bottom":"right",M=te?"clientHeight":"clientWidth",Z=te?"height":"width",X=j({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:y,orientation:_,vertical:te,scrollButtons:v,textColor:L,variant:A,visibleScrollbar:F,fixed:!H,hideScrollbar:H&&!F,scrollableX:H&&!te,scrollableY:H&&te,centered:u&&!H,scrollButtonsHideMobile:!h}),ce=RD(X),ae=vi({elementType:x.StartScrollButtonIcon,externalSlotProps:d.startScrollButtonIcon,ownerState:X}),Ce=vi({elementType:x.EndScrollButtonIcon,externalSlotProps:d.endScrollButtonIcon,ownerState:X}),[xe,Pe]=B.useState(!1),[se,_e]=B.useState(_1),[me,ge]=B.useState(!1),[Ie,st]=B.useState(!1),[ln,en]=B.useState(!1),[Wt,Bt]=B.useState({overflow:"hidden",scrollbarWidth:0}),Ht=new Map,xt=B.useRef(null),bt=B.useRef(null),un=()=>{const oe=xt.current;let fe;if(oe){const Ee=oe.getBoundingClientRect();fe={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollLeftNormalized:O3(oe,o?"rtl":"ltr"),scrollWidth:oe.scrollWidth,top:Ee.top,bottom:Ee.bottom,left:Ee.left,right:Ee.right}}let ye;if(oe&&R!==!1){const Ee=bt.current.children;if(Ee.length>0){const He=Ee[Ht.get(R)];ye=He?He.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:ye}},ve=pn(()=>{const{tabsMeta:oe,tabMeta:fe}=un();let ye=0,Ee;if(te)Ee="top",fe&&oe&&(ye=fe.top-oe.top+oe.scrollTop);else if(Ee=o?"right":"left",fe&&oe){const wt=o?oe.scrollLeftNormalized+oe.clientWidth-oe.scrollWidth:oe.scrollLeft;ye=(o?-1:1)*(fe[Ee]-oe[Ee]+wt)}const He={[Ee]:ye,[Z]:fe?fe[Z]:0};if(isNaN(se[Ee])||isNaN(se[Z]))_e(He);else{const wt=Math.abs(se[Ee]-He[Ee]),Ct=Math.abs(se[Z]-He[Z]);(wt>=1||Ct>=1)&&_e(He)}}),Rt=(oe,{animation:fe=!0}={})=>{fe?gD(D,xt.current,oe,{duration:i.transitions.duration.standard}):xt.current[D]=oe},Tt=oe=>{let fe=xt.current[D];te?fe+=oe:(fe+=oe*(o?-1:1),fe*=o&&hx()==="reverse"?-1:1),Rt(fe)},cn=()=>{const oe=xt.current[M];let fe=0;const ye=Array.from(bt.current.children);for(let Ee=0;Eeoe){Ee===0&&(fe=oe);break}fe+=He[M]}return fe},Je=()=>{Tt(-1*cn())},K=()=>{Tt(cn())},z=B.useCallback(oe=>{Bt({overflow:null,scrollbarWidth:oe})},[]),U=()=>{const oe={};oe.scrollbarSizeListener=H?k.jsx(jD,{onChange:z,className:Ne(ce.scrollableX,ce.hideScrollbar)}):null;const ye=H&&(v==="auto"&&(me||Ie)||v===!0);return oe.scrollButtonStart=ye?k.jsx(g,j({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ae},orientation:_,direction:o?"right":"left",onClick:Je,disabled:!me},I,{className:Ne(ce.scrollButtons,I.className)})):null,oe.scrollButtonEnd=ye?k.jsx(g,j({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:_,direction:o?"left":"right",onClick:K,disabled:!Ie},I,{className:Ne(ce.scrollButtons,I.className)})):null,oe},q=pn(oe=>{const{tabsMeta:fe,tabMeta:ye}=un();if(!(!ye||!fe)){if(ye[ee]fe[ie]){const Ee=fe[D]+(ye[ie]-fe[ie]);Rt(Ee,{animation:oe})}}}),Y=pn(()=>{H&&v!==!1&&en(!ln)});B.useEffect(()=>{const oe=Hy(()=>{xt.current&&ve()});let fe;const ye=wt=>{wt.forEach(Ct=>{Ct.removedNodes.forEach(St=>{var Ke;(Ke=fe)==null||Ke.unobserve(St)}),Ct.addedNodes.forEach(St=>{var Ke;(Ke=fe)==null||Ke.observe(St)})}),oe(),Y()},Ee=Ky(xt.current);Ee.addEventListener("resize",oe);let He;return typeof ResizeObserver<"u"&&(fe=new ResizeObserver(oe),Array.from(bt.current.children).forEach(wt=>{fe.observe(wt)})),typeof MutationObserver<"u"&&(He=new MutationObserver(ye),He.observe(bt.current,{childList:!0})),()=>{var wt,Ct;oe.clear(),Ee.removeEventListener("resize",oe),(wt=He)==null||wt.disconnect(),(Ct=fe)==null||Ct.disconnect()}},[ve,Y]),B.useEffect(()=>{const oe=Array.from(bt.current.children),fe=oe.length;if(typeof IntersectionObserver<"u"&&fe>0&&H&&v!==!1){const ye=oe[0],Ee=oe[fe-1],He={root:xt.current,threshold:.99},wt=jt=>{ge(!jt[0].isIntersecting)},Ct=new IntersectionObserver(wt,He);Ct.observe(ye);const St=jt=>{st(!jt[0].isIntersecting)},Ke=new IntersectionObserver(St,He);return Ke.observe(Ee),()=>{Ct.disconnect(),Ke.disconnect()}}},[H,v,ln,c==null?void 0:c.length]),B.useEffect(()=>{Pe(!0)},[]),B.useEffect(()=>{ve()}),B.useEffect(()=>{q(_1!==se)},[q,se]),B.useImperativeHandle(l,()=>({updateIndicator:ve,updateScrollButtons:Y}),[ve,Y]);const pe=k.jsx(PD,j({},C,{className:Ne(ce.indicator,C.className),ownerState:X,style:j({},se,C.style)}));let Se=0;const he=B.Children.map(c,oe=>{if(!B.isValidElement(oe))return null;const fe=oe.props.value===void 0?Se:oe.props.value;Ht.set(fe,Se);const ye=fe===R;return Se+=1,B.cloneElement(oe,j({fullWidth:A==="fullWidth",indicator:ye&&!xe&&pe,selected:ye,selectionFollowsFocus:b,onChange:m,textColor:L,value:fe},Se===1&&R===!1&&!oe.props.tabIndex?{tabIndex:0}:{}))}),We=oe=>{const fe=bt.current,ye=va(fe).activeElement;if(ye.getAttribute("role")!=="tab")return;let He=_==="horizontal"?"ArrowLeft":"ArrowUp",wt=_==="horizontal"?"ArrowRight":"ArrowDown";switch(_==="horizontal"&&o&&(He="ArrowRight",wt="ArrowLeft"),oe.key){case He:oe.preventDefault(),Mc(fe,ye,S1);break;case wt:oe.preventDefault(),Mc(fe,ye,x1);break;case"Home":oe.preventDefault(),Mc(fe,null,x1);break;case"End":oe.preventDefault(),Mc(fe,null,S1);break}},ht=U();return k.jsxs(MD,j({className:Ne(ce.root,f),ownerState:X,ref:n,as:p},V,{children:[ht.scrollButtonStart,ht.scrollbarSizeListener,k.jsxs(DD,{className:ce.scroller,ownerState:X,style:{overflow:Wt.overflow,[te?`margin${o?"Left":"Right"}`:"marginBottom"]:F?void 0:-Wt.scrollbarWidth},ref:xt,children:[k.jsx(FD,{"aria-label":s,"aria-labelledby":a,"aria-orientation":_==="vertical"?"vertical":null,className:ce.flexContainer,ownerState:X,onKeyDown:We,ref:bt,role:"tablist",children:he}),xe&&pe]}),ht.scrollButtonEnd]}))}),ND=LD;var Xm={},E1=Y0;Xm.createRoot=E1.createRoot,Xm.hydrateRoot=E1.hydrateRoot;var r2={exports:{}},pt={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var I1=Object.getOwnPropertySymbols,$D=Object.prototype.hasOwnProperty,zD=Object.prototype.propertyIsEnumerable;function UD(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function VD(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var WD=VD()?Object.assign:function(e,t){for(var n,r=UD(e),i,o=1;oUf.length&&Uf.push(e)}function Qm(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Nu:case HD:o=!0}}if(o)return n(r,e,t===""?"."+Ih(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var s=0;s0){const e=new Array(arguments.length);for(let t=0;t>>0)+this.high*4294967296};W.Long.prototype.equals=function(e){return this.low==e.low&&this.high==e.high};W.Long.ZERO=new W.Long(0,0);W.Builder=function(e){if(e)var t=e;else var t=1024;this.bb=W.ByteBuffer.allocate(t),this.space=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};W.Builder.prototype.clear=function(){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};W.Builder.prototype.forceDefaults=function(e){this.force_defaults=e};W.Builder.prototype.dataBuffer=function(){return this.bb};W.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};W.Builder.prototype.prep=function(e,t){e>this.minalign&&(this.minalign=e);for(var n=~(this.bb.capacity()-this.space+t)+1&e-1;this.space=0&&this.vtable[t]==0;t--);for(var n=t+1;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);var r=2;this.addInt16(e-this.object_start);var i=(n+r)*W.SIZEOF_SHORT;this.addInt16(i);var o=0,s=this.space;e:for(t=0;t=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,W.SIZEOF_INT),this.addOffset(e),this.bb.setPosition(this.space)};W.Builder.prototype.requiredField=function(e,t){var n=this.bb.capacity()-e,r=n-this.bb.readInt32(n),i=this.bb.readInt16(r+t)!=0;if(!i)throw new Error("FlatBuffers: field "+t+" must be set")};W.Builder.prototype.startVector=function(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(W.SIZEOF_INT,e*t),this.prep(n,e*t)};W.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()};W.Builder.prototype.createString=function(e){if(e instanceof Uint8Array)var t=e;else for(var t=[],n=0;n=56320)r=i;else{var o=e.charCodeAt(n++);r=(i<<10)+o+(65536-56623104-56320)}r<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(r&63|128))}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(var n=0,s=this.space,a=this.bb.bytes();n>24};W.ByteBuffer.prototype.readUint8=function(e){return this.bytes_[e]};W.ByteBuffer.prototype.readInt16=function(e){return this.readUint16(e)<<16>>16};W.ByteBuffer.prototype.readUint16=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8};W.ByteBuffer.prototype.readInt32=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24};W.ByteBuffer.prototype.readUint32=function(e){return this.readInt32(e)>>>0};W.ByteBuffer.prototype.readInt64=function(e){return new W.Long(this.readInt32(e),this.readInt32(e+4))};W.ByteBuffer.prototype.readUint64=function(e){return new W.Long(this.readUint32(e),this.readUint32(e+4))};W.ByteBuffer.prototype.readFloat32=function(e){return W.int32[0]=this.readInt32(e),W.float32[0]};W.ByteBuffer.prototype.readFloat64=function(e){return W.int32[W.isLittleEndian?0:1]=this.readInt32(e),W.int32[W.isLittleEndian?1:0]=this.readInt32(e+4),W.float64[0]};W.ByteBuffer.prototype.writeInt8=function(e,t){this.bytes_[e]=t};W.ByteBuffer.prototype.writeUint8=function(e,t){this.bytes_[e]=t};W.ByteBuffer.prototype.writeInt16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8};W.ByteBuffer.prototype.writeUint16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8};W.ByteBuffer.prototype.writeInt32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24};W.ByteBuffer.prototype.writeUint32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24};W.ByteBuffer.prototype.writeInt64=function(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)};W.ByteBuffer.prototype.writeUint64=function(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)};W.ByteBuffer.prototype.writeFloat32=function(e,t){W.float32[0]=t,this.writeInt32(e,W.int32[0])};W.ByteBuffer.prototype.writeFloat64=function(e,t){W.float64[0]=t,this.writeInt32(e,W.int32[W.isLittleEndian?0:1]),this.writeInt32(e+4,W.int32[W.isLittleEndian?1:0])};W.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length>10)+55296,(o&1024-1)+56320))}return r};W.ByteBuffer.prototype.__indirect=function(e){return e+this.readInt32(e)};W.ByteBuffer.prototype.__vector=function(e){return e+this.readInt32(e)+W.SIZEOF_INT};W.ByteBuffer.prototype.__vector_len=function(e){return this.readInt32(e+this.readInt32(e))};W.ByteBuffer.prototype.__has_identifier=function(e){if(e.length!=W.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+W.FILE_IDENTIFIER_LENGTH);for(var t=0;t57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=e.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=o&1023,l=s&1023;i.push(65536+(a<<10)+l),r+=1}else i.push(65533)}r+=1}return i}function y5(e){for(var t="",n=0;n>10)+55296,(r&1023)+56320))}return t}var Vf=-1;function cg(e){this.tokens=[].slice.call(e)}cg.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Vf},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Ra=-1;function Th(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Wf="utf-8";function Hf(e,t){if(!(this instanceof Hf))return new Hf(e,t);if(e=e!==void 0?String(e).toLowerCase():Wf,e!==Wf)throw new Error("Encoding not supported. Only utf-8 is supported");t=gp(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Hf.prototype={decode:function(t,n){var r;typeof t=="object"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=gp(n),this._streaming||(this._decoder=new g5({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var i=new cg(r),o=[],s;!i.endOfStream()&&(s=this._decoder.handler(i,i.read()),s!==Ra);)s!==null&&(Array.isArray(s)?o.push.apply(o,s):o.push(s));if(!this._streaming){do{if(s=this._decoder.handler(i,i.read()),s===Ra)break;s!==null&&(Array.isArray(s)?o.push.apply(o,s):o.push(s))}while(!i.endOfStream());this._decoder=null}return o.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(o[0]===65279?(this._BOMseen=!0,o.shift()):this._BOMseen=!0),y5(o)}};function Kf(e,t){if(!(this instanceof Kf))return new Kf(e,t);if(e=e!==void 0?String(e).toLowerCase():Wf,e!==Wf)throw new Error("Encoding not supported. Only utf-8 is supported");t=gp(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Kf.prototype={encode:function(t,n){t=t?String(t):"",n=gp(n),this._streaming||(this._encoder=new v5(this._options)),this._streaming=!!n.stream;for(var r=[],i=new cg(m5(t)),o;!i.endOfStream()&&(o=this._encoder.handler(i,i.read()),o!==Ra);)Array.isArray(o)?r.push.apply(r,o):r.push(o);if(!this._streaming){for(;o=this._encoder.handler(i,i.read()),o!==Ra;)Array.isArray(o)?r.push.apply(r,o):r.push(o);this._encoder=null}return new Uint8Array(r)}};function g5(e){var t=e.fatal,n=0,r=0,i=0,o=128,s=191;this.handler=function(a,l){if(l===Vf&&i!==0)return i=0,Th(t);if(l===Vf)return Ra;if(i===0){if(ji(l,0,127))return l;if(ji(l,194,223))i=1,n=l-192;else if(ji(l,224,239))l===224&&(o=160),l===237&&(s=159),i=2,n=l-224;else if(ji(l,240,244))l===240&&(o=144),l===244&&(s=143),i=3,n=l-240;else return Th(t);return n=n<<6*i,null}if(!ji(l,o,s))return n=i=r=0,o=128,s=191,a.prepend(l),Th(t);if(o=128,s=191,r+=1,n+=l-128<<6*(i-r),r!==i)return null;var u=n;return n=i=r=0,u}}function v5(e){e.fatal,this.handler=function(t,n){if(n===Vf)return Ra;if(ji(n,0,127))return n;var r,i;ji(n,128,2047)?(r=1,i=192):ji(n,2048,65535)?(r=2,i=224):ji(n,65536,1114111)&&(r=3,i=240);for(var o=[(n>>6*r)+i];r>0;){var s=n>>6*(r-1);o.push(128|s&63),r-=1}return o}}const Yf=typeof Buffer=="function"?Buffer:null,v2=typeof TextDecoder=="function"&&typeof TextEncoder=="function",ty=(e=>{if(v2||!Yf){const t=new e("utf-8");return n=>t.decode(n)}return t=>{const{buffer:n,byteOffset:r,length:i}=Ye(t);return Yf.from(n,r,i).toString()}})(typeof TextDecoder<"u"?TextDecoder:Hf),vp=(e=>{if(v2||!Yf){const t=new e;return n=>t.encode(n)}return(t="")=>Ye(Yf.from(t,"utf8"))})(typeof TextEncoder<"u"?TextEncoder:Kf),$t=Object.freeze({done:!0,value:void 0});class R1{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class xs{tee(){return this._getDOMStream().tee()}pipe(t,n){return this._getNodeStream().pipe(t,n)}pipeTo(t,n){return this._getDOMStream().pipeTo(t,n)}pipeThrough(t,n){return this._getDOMStream().pipeThrough(t,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class b5 extends xs{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}async cancel(t){await 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($t);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return ur.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return ur.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}async throw(t){return await this.abort(t),$t}async return(t){return await this.close(),$t}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await 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((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve($t)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(`${this} is closed`)}}const[w5,bp]=(()=>{const e=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=()=>{throw e()},t.asUintN=()=>{throw e()},typeof BigInt<"u"?[BigInt,!0]:[t,!1]})(),[Ja,C$]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[t,!1]})(),[zu,O$]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[t,!1]})(),x5=e=>typeof e=="number",b2=e=>typeof e=="boolean",$r=e=>typeof e=="function",gr=e=>e!=null&&Object(e)===e,ko=e=>gr(e)&&$r(e.then),ii=e=>gr(e)&&$r(e[Symbol.iterator]),Ji=e=>gr(e)&&$r(e[Symbol.asyncIterator]),ny=e=>gr(e)&&gr(e.schema),w2=e=>gr(e)&&"done"in e&&"value"in e,x2=e=>gr(e)&&$r(e.stat)&&x5(e.fd),S2=e=>gr(e)&&fg(e.body),S5=e=>gr(e)&&$r(e.abort)&&$r(e.getWriter)&&!(e instanceof xs),fg=e=>gr(e)&&$r(e.cancel)&&$r(e.getReader)&&!(e instanceof xs),_5=e=>gr(e)&&$r(e.end)&&$r(e.write)&&b2(e.writable)&&!(e instanceof xs),_2=e=>gr(e)&&$r(e.read)&&$r(e.pipe)&&b2(e.readable)&&!(e instanceof xs);var E5=W.ByteBuffer;const dg=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function I5(e){let t=e[0]?[e[0]]:[],n,r,i,o;for(let s,a,l=0,u=0,c=e.length;++lc+f.byteLength,0),i,o,s,a=0,l=-1,u=Math.min(t||1/0,r);for(let c=n.length;++lot(Int32Array,e),T5=e=>ot(Ja,e),Ye=e=>ot(Uint8Array,e),C5=e=>ot(zu,e),ry=e=>(e.next(),e);function*O5(e,t){const n=function*(i){yield i},r=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof dg?n(t):ii(t)?t:n(t);yield*ry(function*(i){let o=null;do o=i.next(yield ot(e,o));while(!o.done)}(r[Symbol.iterator]()))}const k5=e=>O5(Uint8Array,e);async function*E2(e,t){if(ko(t))return yield*E2(e,await t);const n=async function*(o){yield await o},r=async function*(o){yield*ry(function*(s){let a=null;do a=s.next(yield a&&a.value);while(!a.done)}(o[Symbol.iterator]()))},i=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof dg?n(t):ii(t)?r(t):Ji(t)?t:n(t);yield*ry(async function*(o){let s=null;do s=await o.next(yield ot(e,s));while(!s.done)}(i[Symbol.asyncIterator]()))}const A5=e=>E2(Uint8Array,e);function pg(e,t,n){if(e!==0){n=n.slice(0,t+1);for(let r=-1;++r<=t;)n[r]+=e}return n}function B5(e,t){let n=0,r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n(e.next(),e);function*R5(e){let t,n=!1,r=[],i,o,s,a=0;function l(){return o==="peek"?Ii(r,s)[0]:([i,r,a]=Ii(r,s),i)}({cmd:o,size:s}=yield null);let u=k5(e)[Symbol.iterator]();try{do if({done:t,value:i}=isNaN(s-a)?u.next(void 0):u.next(s-a),!t&&i.byteLength>0&&(r.push(i),a+=i.byteLength),t||s<=a)do({cmd:o,size:s}=yield l());while(s0&&(r.push(i),a+=i.byteLength),t||s<=a)do({cmd:o,size:s}=yield l());while(s0&&(r.push(Ye(i)),a+=i.byteLength),t||s<=a)do({cmd:o,size:s}=yield l());while(s{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(t){const{reader:n,source:r}=this;n&&await n.cancel(t).catch(()=>{}),r&&r.locked&&this.releaseLock()}async read(t){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=!this.supportsBYOB||typeof t!="number"?await this.getDefaultReader().read():await this.readFromBYOBReader(t);return!n.done&&(n.value=Ye(n)),n}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(t){return await I2(this.getBYOBReader(),new ArrayBuffer(t),0,t)}}async function I2(e,t,n,r){if(n>=r)return{done:!1,value:new Uint8Array(t,0,r)};const{done:i,value:o}=await e.read(new Uint8Array(t,n,r-n));return(n+=o.byteLength){let n=i=>r([t,i]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};async function*P5(e){let t=[],n="error",r=!1,i=null,o,s,a=0,l=[],u;function c(){return o==="peek"?Ii(l,s)[0]:([u,l,a]=Ii(l,s),u)}if({cmd:o,size:s}=yield null,e.isTTY)return yield new Uint8Array(0);try{t[0]=Ch(e,"end"),t[1]=Ch(e,"error");do{if(t[2]=Ch(e,"readable"),[n,i]=await Promise.race(t.map(p=>p[2])),n==="error")break;if((r=n==="end")||(isFinite(s-a)?(u=Ye(e.read(s-a)),u.byteLength0&&(l.push(u),a+=u.byteLength)),r||s<=a)do({cmd:o,size:s}=yield c());while(s{for(const[_,g]of p)e.off(_,g);try{const _=e.destroy;_&&_.call(e,h),h=void 0}catch(_){h=_||h}finally{h!=null?m(h):y()}})}}class qe{}var J;(function(e){(function(t){(function(n){(function(r){(function(i){i[i.V1=0]="V1",i[i.V2=1]="V2",i[i.V3=2]="V3",i[i.V4=3]="V4"})(r.MetadataVersion||(r.MetadataVersion={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.Sparse=0]="Sparse",i[i.Dense=1]="Dense"})(r.UnionMode||(r.UnionMode={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.HALF=0]="HALF",i[i.SINGLE=1]="SINGLE",i[i.DOUBLE=2]="DOUBLE"})(r.Precision||(r.Precision={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.DAY=0]="DAY",i[i.MILLISECOND=1]="MILLISECOND"})(r.DateUnit||(r.DateUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.SECOND=0]="SECOND",i[i.MILLISECOND=1]="MILLISECOND",i[i.MICROSECOND=2]="MICROSECOND",i[i.NANOSECOND=3]="NANOSECOND"})(r.TimeUnit||(r.TimeUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.YEAR_MONTH=0]="YEAR_MONTH",i[i.DAY_TIME=1]="DAY_TIME"})(r.IntervalUnit||(r.IntervalUnit={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.NONE=0]="NONE",i[i.Null=1]="Null",i[i.Int=2]="Int",i[i.FloatingPoint=3]="FloatingPoint",i[i.Binary=4]="Binary",i[i.Utf8=5]="Utf8",i[i.Bool=6]="Bool",i[i.Decimal=7]="Decimal",i[i.Date=8]="Date",i[i.Time=9]="Time",i[i.Timestamp=10]="Timestamp",i[i.Interval=11]="Interval",i[i.List=12]="List",i[i.Struct_=13]="Struct_",i[i.Union=14]="Union",i[i.FixedSizeBinary=15]="FixedSizeBinary",i[i.FixedSizeList=16]="FixedSizeList",i[i.Map=17]="Map",i[i.Duration=18]="Duration",i[i.LargeBinary=19]="LargeBinary",i[i.LargeUtf8=20]="LargeUtf8",i[i.LargeList=21]="LargeList"})(r.Type||(r.Type={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.Little=0]="Little",i[i.Big=1]="Big"})(r.Endianness||(r.Endianness={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsNull(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startNull(s){s.startObject(0)}static endNull(s){return s.endObject()}static createNull(s){return i.startNull(s),i.endNull(s)}}r.Null=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsStruct_(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startStruct_(s){s.startObject(0)}static endStruct_(s){return s.endObject()}static createStruct_(s){return i.startStruct_(s),i.endStruct_(s)}}r.Struct_=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsList(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startList(s){s.startObject(0)}static endList(s){return s.endObject()}static createList(s){return i.startList(s),i.endList(s)}}r.List=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsLargeList(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startLargeList(s){s.startObject(0)}static endLargeList(s){return s.endObject()}static createLargeList(s){return i.startLargeList(s),i.endLargeList(s)}}r.LargeList=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsFixedSizeList(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}listSize(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):0}static startFixedSizeList(s){s.startObject(1)}static addListSize(s,a){s.addFieldInt32(0,a,0)}static endFixedSizeList(s){return s.endObject()}static createFixedSizeList(s,a){return i.startFixedSizeList(s),i.addListSize(s,a),i.endFixedSizeList(s)}}r.FixedSizeList=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsMap(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}keysSorted(){let s=this.bb.__offset(this.bb_pos,4);return s?!!this.bb.readInt8(this.bb_pos+s):!1}static startMap(s){s.startObject(1)}static addKeysSorted(s,a){s.addFieldInt8(0,+a,0)}static endMap(s){return s.endObject()}static createMap(s,a){return i.startMap(s),i.addKeysSorted(s,a),i.endMap(s)}}r.Map=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsUnion(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}mode(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.UnionMode.Sparse}typeIds(s){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.readInt32(this.bb.__vector(this.bb_pos+a)+s*4):0}typeIdsLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}typeIdsArray(){let s=this.bb.__offset(this.bb_pos,6);return s?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+s),this.bb.__vector_len(this.bb_pos+s)):null}static startUnion(s){s.startObject(2)}static addMode(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.UnionMode.Sparse)}static addTypeIds(s,a){s.addFieldOffset(1,a,0)}static createTypeIdsVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addInt32(a[l]);return s.endVector()}static startTypeIdsVector(s,a){s.startVector(4,a,4)}static endUnion(s){return s.endObject()}static createUnion(s,a,l){return i.startUnion(s),i.addMode(s,a),i.addTypeIds(s,l),i.endUnion(s)}}r.Union=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsInt(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}bitWidth(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):0}isSigned(){let s=this.bb.__offset(this.bb_pos,6);return s?!!this.bb.readInt8(this.bb_pos+s):!1}static startInt(s){s.startObject(2)}static addBitWidth(s,a){s.addFieldInt32(0,a,0)}static addIsSigned(s,a){s.addFieldInt8(1,+a,0)}static endInt(s){return s.endObject()}static createInt(s,a,l){return i.startInt(s),i.addBitWidth(s,a),i.addIsSigned(s,l),i.endInt(s)}}r.Int=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsFloatingPoint(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}precision(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.Precision.HALF}static startFloatingPoint(s){s.startObject(1)}static addPrecision(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.Precision.HALF)}static endFloatingPoint(s){return s.endObject()}static createFloatingPoint(s,a){return i.startFloatingPoint(s),i.addPrecision(s,a),i.endFloatingPoint(s)}}r.FloatingPoint=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsUtf8(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startUtf8(s){s.startObject(0)}static endUtf8(s){return s.endObject()}static createUtf8(s){return i.startUtf8(s),i.endUtf8(s)}}r.Utf8=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsBinary(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startBinary(s){s.startObject(0)}static endBinary(s){return s.endObject()}static createBinary(s){return i.startBinary(s),i.endBinary(s)}}r.Binary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsLargeUtf8(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startLargeUtf8(s){s.startObject(0)}static endLargeUtf8(s){return s.endObject()}static createLargeUtf8(s){return i.startLargeUtf8(s),i.endLargeUtf8(s)}}r.LargeUtf8=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsLargeBinary(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startLargeBinary(s){s.startObject(0)}static endLargeBinary(s){return s.endObject()}static createLargeBinary(s){return i.startLargeBinary(s),i.endLargeBinary(s)}}r.LargeBinary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsFixedSizeBinary(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}byteWidth(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):0}static startFixedSizeBinary(s){s.startObject(1)}static addByteWidth(s,a){s.addFieldInt32(0,a,0)}static endFixedSizeBinary(s){return s.endObject()}static createFixedSizeBinary(s,a){return i.startFixedSizeBinary(s),i.addByteWidth(s,a),i.endFixedSizeBinary(s)}}r.FixedSizeBinary=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsBool(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}static startBool(s){s.startObject(0)}static endBool(s){return s.endObject()}static createBool(s){return i.startBool(s),i.endBool(s)}}r.Bool=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsDecimal(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}precision(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt32(this.bb_pos+s):0}scale(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readInt32(this.bb_pos+s):0}static startDecimal(s){s.startObject(2)}static addPrecision(s,a){s.addFieldInt32(0,a,0)}static addScale(s,a){s.addFieldInt32(1,a,0)}static endDecimal(s){return s.endObject()}static createDecimal(s,a,l){return i.startDecimal(s),i.addPrecision(s,a),i.addScale(s,l),i.endDecimal(s)}}r.Decimal=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsDate(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}unit(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.DateUnit.MILLISECOND}static startDate(s){s.startObject(1)}static addUnit(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.DateUnit.MILLISECOND)}static endDate(s){return s.endObject()}static createDate(s,a){return i.startDate(s),i.addUnit(s,a),i.endDate(s)}}r.Date=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsTime(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}unit(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}bitWidth(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readInt32(this.bb_pos+s):32}static startTime(s){s.startObject(2)}static addUnit(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static addBitWidth(s,a){s.addFieldInt32(1,a,32)}static endTime(s){return s.endObject()}static createTime(s,a,l){return i.startTime(s),i.addUnit(s,a),i.addBitWidth(s,l),i.endTime(s)}}r.Time=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsTimestamp(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}unit(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.TimeUnit.SECOND}timezone(s){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.__string(this.bb_pos+a,s):null}static startTimestamp(s){s.startObject(2)}static addUnit(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.SECOND)}static addTimezone(s,a){s.addFieldOffset(1,a,0)}static endTimestamp(s){return s.endObject()}static createTimestamp(s,a,l){return i.startTimestamp(s),i.addUnit(s,a),i.addTimezone(s,l),i.endTimestamp(s)}}r.Timestamp=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsInterval(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}unit(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}static startInterval(s){s.startObject(1)}static addUnit(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}static endInterval(s){return s.endObject()}static createInterval(s,a){return i.startInterval(s),i.addUnit(s,a),i.endInterval(s)}}r.Interval=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsDuration(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}unit(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}static startDuration(s){s.startObject(1)}static addUnit(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static endDuration(s){return s.endObject()}static createDuration(s,a){return i.startDuration(s),i.addUnit(s,a),i.endDuration(s)}}r.Duration=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsKeyValue(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}key(s){let a=this.bb.__offset(this.bb_pos,4);return a?this.bb.__string(this.bb_pos+a,s):null}value(s){let a=this.bb.__offset(this.bb_pos,6);return a?this.bb.__string(this.bb_pos+a,s):null}static startKeyValue(s){s.startObject(2)}static addKey(s,a){s.addFieldOffset(0,a,0)}static addValue(s,a){s.addFieldOffset(1,a,0)}static endKeyValue(s){return s.endObject()}static createKeyValue(s,a,l){return i.startKeyValue(s),i.addKey(s,a),i.addValue(s,l),i.endKeyValue(s)}}r.KeyValue=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsDictionaryEncoding(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}id(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}indexType(s){let a=this.bb.__offset(this.bb_pos,6);return a?(s||new e.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}isOrdered(){let s=this.bb.__offset(this.bb_pos,8);return s?!!this.bb.readInt8(this.bb_pos+s):!1}static startDictionaryEncoding(s){s.startObject(3)}static addId(s,a){s.addFieldInt64(0,a,s.createLong(0,0))}static addIndexType(s,a){s.addFieldOffset(1,a,0)}static addIsOrdered(s,a){s.addFieldInt8(2,+a,0)}static endDictionaryEncoding(s){return s.endObject()}static createDictionaryEncoding(s,a,l,u){return i.startDictionaryEncoding(s),i.addId(s,a),i.addIndexType(s,l),i.addIsOrdered(s,u),i.endDictionaryEncoding(s)}}r.DictionaryEncoding=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsField(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}name(s){let a=this.bb.__offset(this.bb_pos,4);return a?this.bb.__string(this.bb_pos+a,s):null}nullable(){let s=this.bb.__offset(this.bb_pos,6);return s?!!this.bb.readInt8(this.bb_pos+s):!1}typeType(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.readUint8(this.bb_pos+s):e.apache.arrow.flatbuf.Type.NONE}type(s){let a=this.bb.__offset(this.bb_pos,10);return a?this.bb.__union(s,this.bb_pos+a):null}dictionary(s){let a=this.bb.__offset(this.bb_pos,12);return a?(s||new e.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}children(s,a){let l=this.bb.__offset(this.bb_pos,14);return l?(a||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+s*4),this.bb):null}childrenLength(){let s=this.bb.__offset(this.bb_pos,14);return s?this.bb.__vector_len(this.bb_pos+s):0}customMetadata(s,a){let l=this.bb.__offset(this.bb_pos,16);return l?(a||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+s*4),this.bb):null}customMetadataLength(){let s=this.bb.__offset(this.bb_pos,16);return s?this.bb.__vector_len(this.bb_pos+s):0}static startField(s){s.startObject(7)}static addName(s,a){s.addFieldOffset(0,a,0)}static addNullable(s,a){s.addFieldInt8(1,+a,0)}static addTypeType(s,a){s.addFieldInt8(2,a,e.apache.arrow.flatbuf.Type.NONE)}static addType(s,a){s.addFieldOffset(3,a,0)}static addDictionary(s,a){s.addFieldOffset(4,a,0)}static addChildren(s,a){s.addFieldOffset(5,a,0)}static createChildrenVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addOffset(a[l]);return s.endVector()}static startChildrenVector(s,a){s.startVector(4,a,4)}static addCustomMetadata(s,a){s.addFieldOffset(6,a,0)}static createCustomMetadataVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addOffset(a[l]);return s.endVector()}static startCustomMetadataVector(s,a){s.startVector(4,a,4)}static endField(s){return s.endObject()}static createField(s,a,l,u,c,f,p,h){return i.startField(s),i.addName(s,a),i.addNullable(s,l),i.addTypeType(s,u),i.addType(s,c),i.addDictionary(s,f),i.addChildren(s,p),i.addCustomMetadata(s,h),i.endField(s)}}r.Field=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static createBuffer(s,a,l){return s.prep(8,16),s.writeInt64(l),s.writeInt64(a),s.offset()}}r.Buffer=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsSchema(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}endianness(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):e.apache.arrow.flatbuf.Endianness.Little}fields(s,a){let l=this.bb.__offset(this.bb_pos,6);return l?(a||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+s*4),this.bb):null}fieldsLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}customMetadata(s,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+s*4),this.bb):null}customMetadataLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}static startSchema(s){s.startObject(3)}static addEndianness(s,a){s.addFieldInt16(0,a,e.apache.arrow.flatbuf.Endianness.Little)}static addFields(s,a){s.addFieldOffset(1,a,0)}static createFieldsVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addOffset(a[l]);return s.endVector()}static startFieldsVector(s,a){s.startVector(4,a,4)}static addCustomMetadata(s,a){s.addFieldOffset(2,a,0)}static createCustomMetadataVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addOffset(a[l]);return s.endVector()}static startCustomMetadataVector(s,a){s.startVector(4,a,4)}static endSchema(s){return s.endObject()}static finishSchemaBuffer(s,a){s.finish(a)}static createSchema(s,a,l,u){return i.startSchema(s),i.addEndianness(s,a),i.addFields(s,l),i.addCustomMetadata(s,u),i.endSchema(s)}}r.Schema=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(J||(J={}));var Cn;(function(e){(function(t){(function(n){(function(r){r.Schema=J.apache.arrow.flatbuf.Schema})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));(function(e){(function(t){(function(n){(function(r){(function(i){i[i.NONE=0]="NONE",i[i.Schema=1]="Schema",i[i.DictionaryBatch=2]="DictionaryBatch",i[i.RecordBatch=3]="RecordBatch",i[i.Tensor=4]="Tensor",i[i.SparseTensor=5]="SparseTensor"})(r.MessageHeader||(r.MessageHeader={}))})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static createFieldNode(s,a,l){return s.prep(8,16),s.writeInt64(l),s.writeInt64(a),s.offset()}}r.FieldNode=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsRecordBatch(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}length(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}nodes(s,a){let l=this.bb.__offset(this.bb_pos,6);return l?(a||new e.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+l)+s*16,this.bb):null}nodesLength(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.__vector_len(this.bb_pos+s):0}buffers(s,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new J.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+l)+s*16,this.bb):null}buffersLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}static startRecordBatch(s){s.startObject(3)}static addLength(s,a){s.addFieldInt64(0,a,s.createLong(0,0))}static addNodes(s,a){s.addFieldOffset(1,a,0)}static startNodesVector(s,a){s.startVector(16,a,8)}static addBuffers(s,a){s.addFieldOffset(2,a,0)}static startBuffersVector(s,a){s.startVector(16,a,8)}static endRecordBatch(s){return s.endObject()}static createRecordBatch(s,a,l,u){return i.startRecordBatch(s),i.addLength(s,a),i.addNodes(s,l),i.addBuffers(s,u),i.endRecordBatch(s)}}r.RecordBatch=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsDictionaryBatch(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}id(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}data(s){let a=this.bb.__offset(this.bb_pos,6);return a?(s||new e.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}isDelta(){let s=this.bb.__offset(this.bb_pos,8);return s?!!this.bb.readInt8(this.bb_pos+s):!1}static startDictionaryBatch(s){s.startObject(3)}static addId(s,a){s.addFieldInt64(0,a,s.createLong(0,0))}static addData(s,a){s.addFieldOffset(1,a,0)}static addIsDelta(s,a){s.addFieldInt8(2,+a,0)}static endDictionaryBatch(s){return s.endObject()}static createDictionaryBatch(s,a,l,u){return i.startDictionaryBatch(s),i.addId(s,a),i.addData(s,l),i.addIsDelta(s,u),i.endDictionaryBatch(s)}}r.DictionaryBatch=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsMessage(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}version(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):J.apache.arrow.flatbuf.MetadataVersion.V1}headerType(){let s=this.bb.__offset(this.bb_pos,6);return s?this.bb.readUint8(this.bb_pos+s):e.apache.arrow.flatbuf.MessageHeader.NONE}header(s){let a=this.bb.__offset(this.bb_pos,8);return a?this.bb.__union(s,this.bb_pos+a):null}bodyLength(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.readInt64(this.bb_pos+s):this.bb.createLong(0,0)}customMetadata(s,a){let l=this.bb.__offset(this.bb_pos,12);return l?(a||new J.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+l)+s*4),this.bb):null}customMetadataLength(){let s=this.bb.__offset(this.bb_pos,12);return s?this.bb.__vector_len(this.bb_pos+s):0}static startMessage(s){s.startObject(5)}static addVersion(s,a){s.addFieldInt16(0,a,J.apache.arrow.flatbuf.MetadataVersion.V1)}static addHeaderType(s,a){s.addFieldInt8(1,a,e.apache.arrow.flatbuf.MessageHeader.NONE)}static addHeader(s,a){s.addFieldOffset(2,a,0)}static addBodyLength(s,a){s.addFieldInt64(3,a,s.createLong(0,0))}static addCustomMetadata(s,a){s.addFieldOffset(4,a,0)}static createCustomMetadataVector(s,a){s.startVector(4,a.length,4);for(let l=a.length-1;l>=0;l--)s.addOffset(a[l]);return s.endVector()}static startCustomMetadataVector(s,a){s.startVector(4,a,4)}static endMessage(s){return s.endObject()}static finishMessageBuffer(s,a){s.finish(a)}static createMessage(s,a,l,u,c,f){return i.startMessage(s),i.addVersion(s,a),i.addHeaderType(s,l),i.addHeader(s,u),i.addBodyLength(s,c),i.addCustomMetadata(s,f),i.endMessage(s)}}r.Message=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})(Cn||(Cn={}));J.apache.arrow.flatbuf.Type;var Ti=J.apache.arrow.flatbuf.DateUnit,lt=J.apache.arrow.flatbuf.TimeUnit,Dr=J.apache.arrow.flatbuf.Precision,Yi=J.apache.arrow.flatbuf.UnionMode,Ma=J.apache.arrow.flatbuf.IntervalUnit,gt=Cn.apache.arrow.flatbuf.MessageHeader,Xr=J.apache.arrow.flatbuf.MetadataVersion,P;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"})(P||(P={}));var we;(function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"})(we||(we={}));function T2(e,t,n,r){return(n&1<>r}function L5(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):qf(wp(n,e,t,null,T2)).subarray(0,r)),i}return n}function qf(e){let t=[],n=0,r=0,i=0;for(const s of e)s&&(i|=1<0)&&(t[n++]=i);let o=new Uint8Array(t.length+7&-8);return o.set(t),o}function*wp(e,t,n,r,i){let o=t%8,s=t>>3,a=0,l=n;for(;l>0;o=0){let u=e[s++];do yield i(r,a++,u,o);while(--l>0&&++o<8)}}function iy(e,t,n){if(n-t<=0)return 0;if(n-t<8){let o=0;for(const s of wp(e,t,n-t,e,j5))o+=s;return o}const r=n>>3<<3,i=t+(t%8===0?0:8-t%8);return iy(e,t,i)+iy(e,r,n)+N5(e,i>>3,r-i>>3)}function N5(e,t,n){let r=0,i=t|0;const o=new DataView(e.buffer,e.byteOffset,e.byteLength),s=n===void 0?e.byteLength:i+n;for(;s-i>=4;)r+=Oh(o.getUint32(i)),i+=4;for(;s-i>=2;)r+=Oh(o.getUint16(i)),i+=2;for(;s-i>=1;)r+=Oh(o.getUint8(i)),i+=1;return r}function Oh(e){let t=e|0;return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}class Ue{visitMany(t,...n){return t.map((r,i)=>this.visit(r,...n.map(o=>o[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,n=!0){return $5(this,t,n)}visitNull(t,...n){return null}visitBool(t,...n){return null}visitInt(t,...n){return null}visitFloat(t,...n){return null}visitUtf8(t,...n){return null}visitBinary(t,...n){return null}visitFixedSizeBinary(t,...n){return null}visitDate(t,...n){return null}visitTimestamp(t,...n){return null}visitTime(t,...n){return null}visitDecimal(t,...n){return null}visitList(t,...n){return null}visitStruct(t,...n){return null}visitUnion(t,...n){return null}visitDictionary(t,...n){return null}visitInterval(t,...n){return null}visitFixedSizeList(t,...n){return null}visitMap(t,...n){return null}}function $5(e,t,n=!0){let r=null,i=P.NONE;switch(t instanceof ue||t instanceof qe?i=kh(t.type):t instanceof je?i=kh(t):typeof(i=t)!="number"&&(i=P[t]),i){case P.Null:r=e.visitNull;break;case P.Bool:r=e.visitBool;break;case P.Int:r=e.visitInt;break;case P.Int8:r=e.visitInt8||e.visitInt;break;case P.Int16:r=e.visitInt16||e.visitInt;break;case P.Int32:r=e.visitInt32||e.visitInt;break;case P.Int64:r=e.visitInt64||e.visitInt;break;case P.Uint8:r=e.visitUint8||e.visitInt;break;case P.Uint16:r=e.visitUint16||e.visitInt;break;case P.Uint32:r=e.visitUint32||e.visitInt;break;case P.Uint64:r=e.visitUint64||e.visitInt;break;case P.Float:r=e.visitFloat;break;case P.Float16:r=e.visitFloat16||e.visitFloat;break;case P.Float32:r=e.visitFloat32||e.visitFloat;break;case P.Float64:r=e.visitFloat64||e.visitFloat;break;case P.Utf8:r=e.visitUtf8;break;case P.Binary:r=e.visitBinary;break;case P.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case P.Date:r=e.visitDate;break;case P.DateDay:r=e.visitDateDay||e.visitDate;break;case P.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case P.Timestamp:r=e.visitTimestamp;break;case P.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case P.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case P.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case P.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case P.Time:r=e.visitTime;break;case P.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case P.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case P.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case P.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case P.Decimal:r=e.visitDecimal;break;case P.List:r=e.visitList;break;case P.Struct:r=e.visitStruct;break;case P.Union:r=e.visitUnion;break;case P.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case P.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case P.Dictionary:r=e.visitDictionary;break;case P.Interval:r=e.visitInterval;break;case P.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case P.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case P.FixedSizeList:r=e.visitFixedSizeList;break;case P.Map:r=e.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${P[i]}'`)}function kh(e){switch(e.typeId){case P.Null:return P.Null;case P.Int:const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?P.Int8:P.Uint8;case 16:return n?P.Int16:P.Uint16;case 32:return n?P.Int32:P.Uint32;case 64:return n?P.Int64:P.Uint64}return P.Int;case P.Float:switch(e.precision){case Dr.HALF:return P.Float16;case Dr.SINGLE:return P.Float32;case Dr.DOUBLE:return P.Float64}return P.Float;case P.Binary:return P.Binary;case P.Utf8:return P.Utf8;case P.Bool:return P.Bool;case P.Decimal:return P.Decimal;case P.Time:switch(e.unit){case lt.SECOND:return P.TimeSecond;case lt.MILLISECOND:return P.TimeMillisecond;case lt.MICROSECOND:return P.TimeMicrosecond;case lt.NANOSECOND:return P.TimeNanosecond}return P.Time;case P.Timestamp:switch(e.unit){case lt.SECOND:return P.TimestampSecond;case lt.MILLISECOND:return P.TimestampMillisecond;case lt.MICROSECOND:return P.TimestampMicrosecond;case lt.NANOSECOND:return P.TimestampNanosecond}return P.Timestamp;case P.Date:switch(e.unit){case Ti.DAY:return P.DateDay;case Ti.MILLISECOND:return P.DateMillisecond}return P.Date;case P.Interval:switch(e.unit){case Ma.DAY_TIME:return P.IntervalDayTime;case Ma.YEAR_MONTH:return P.IntervalYearMonth}return P.Interval;case P.Map:return P.Map;case P.List:return P.List;case P.Struct:return P.Struct;case P.Union:switch(e.mode){case Yi.Dense:return P.DenseUnion;case Yi.Sparse:return P.SparseUnion}return P.Union;case P.FixedSizeBinary:return P.FixedSizeBinary;case P.FixedSizeList:return P.FixedSizeList;case P.Dictionary:return P.Dictionary}throw new Error(`Unrecognized type '${P[e.typeId]}'`)}Ue.prototype.visitInt8=null;Ue.prototype.visitInt16=null;Ue.prototype.visitInt32=null;Ue.prototype.visitInt64=null;Ue.prototype.visitUint8=null;Ue.prototype.visitUint16=null;Ue.prototype.visitUint32=null;Ue.prototype.visitUint64=null;Ue.prototype.visitFloat16=null;Ue.prototype.visitFloat32=null;Ue.prototype.visitFloat64=null;Ue.prototype.visitDateDay=null;Ue.prototype.visitDateMillisecond=null;Ue.prototype.visitTimestampSecond=null;Ue.prototype.visitTimestampMillisecond=null;Ue.prototype.visitTimestampMicrosecond=null;Ue.prototype.visitTimestampNanosecond=null;Ue.prototype.visitTimeSecond=null;Ue.prototype.visitTimeMillisecond=null;Ue.prototype.visitTimeMicrosecond=null;Ue.prototype.visitTimeNanosecond=null;Ue.prototype.visitDenseUnion=null;Ue.prototype.visitSparseUnion=null;Ue.prototype.visitIntervalDayTime=null;Ue.prototype.visitIntervalYearMonth=null;class Oe extends Ue{compareSchemas(t,n){return t===n||n instanceof t.constructor&&hr.compareFields(t.fields,n.fields)}compareFields(t,n){return t===n||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every((r,i)=>hr.compareField(r,n[i]))}compareField(t,n){return t===n||n instanceof t.constructor&&t.name===n.name&&t.nullable===n.nullable&&hr.visit(t.type,n.type)}}function rr(e,t){return t instanceof e.constructor}function Uu(e,t){return e===t||rr(e,t)}function Zi(e,t){return e===t||rr(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function xp(e,t){return e===t||rr(e,t)&&e.precision===t.precision}function z5(e,t){return e===t||rr(e,t)&&e.byteWidth===t.byteWidth}function mg(e,t){return e===t||rr(e,t)&&e.unit===t.unit}function Vu(e,t){return e===t||rr(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Wu(e,t){return e===t||rr(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function U5(e,t){return e===t||rr(e,t)&&e.children.length===t.children.length&&hr.compareFields(e.children,t.children)}function V5(e,t){return e===t||rr(e,t)&&e.children.length===t.children.length&&hr.compareFields(e.children,t.children)}function yg(e,t){return e===t||rr(e,t)&&e.mode===t.mode&&e.typeIds.every((n,r)=>n===t.typeIds[r])&&hr.compareFields(e.children,t.children)}function W5(e,t){return e===t||rr(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&hr.visit(e.indices,t.indices)&&hr.visit(e.dictionary,t.dictionary)}function gg(e,t){return e===t||rr(e,t)&&e.unit===t.unit}function H5(e,t){return e===t||rr(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&hr.compareFields(e.children,t.children)}function K5(e,t){return e===t||rr(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&hr.compareFields(e.children,t.children)}Oe.prototype.visitNull=Uu;Oe.prototype.visitBool=Uu;Oe.prototype.visitInt=Zi;Oe.prototype.visitInt8=Zi;Oe.prototype.visitInt16=Zi;Oe.prototype.visitInt32=Zi;Oe.prototype.visitInt64=Zi;Oe.prototype.visitUint8=Zi;Oe.prototype.visitUint16=Zi;Oe.prototype.visitUint32=Zi;Oe.prototype.visitUint64=Zi;Oe.prototype.visitFloat=xp;Oe.prototype.visitFloat16=xp;Oe.prototype.visitFloat32=xp;Oe.prototype.visitFloat64=xp;Oe.prototype.visitUtf8=Uu;Oe.prototype.visitBinary=Uu;Oe.prototype.visitFixedSizeBinary=z5;Oe.prototype.visitDate=mg;Oe.prototype.visitDateDay=mg;Oe.prototype.visitDateMillisecond=mg;Oe.prototype.visitTimestamp=Vu;Oe.prototype.visitTimestampSecond=Vu;Oe.prototype.visitTimestampMillisecond=Vu;Oe.prototype.visitTimestampMicrosecond=Vu;Oe.prototype.visitTimestampNanosecond=Vu;Oe.prototype.visitTime=Wu;Oe.prototype.visitTimeSecond=Wu;Oe.prototype.visitTimeMillisecond=Wu;Oe.prototype.visitTimeMicrosecond=Wu;Oe.prototype.visitTimeNanosecond=Wu;Oe.prototype.visitDecimal=Uu;Oe.prototype.visitList=U5;Oe.prototype.visitStruct=V5;Oe.prototype.visitUnion=yg;Oe.prototype.visitDenseUnion=yg;Oe.prototype.visitSparseUnion=yg;Oe.prototype.visitDictionary=W5;Oe.prototype.visitInterval=gg;Oe.prototype.visitIntervalDayTime=gg;Oe.prototype.visitIntervalYearMonth=gg;Oe.prototype.visitFixedSizeList=H5;Oe.prototype.visitMap=K5;const hr=new Oe;class je{static isNull(t){return t&&t.typeId===P.Null}static isInt(t){return t&&t.typeId===P.Int}static isFloat(t){return t&&t.typeId===P.Float}static isBinary(t){return t&&t.typeId===P.Binary}static isUtf8(t){return t&&t.typeId===P.Utf8}static isBool(t){return t&&t.typeId===P.Bool}static isDecimal(t){return t&&t.typeId===P.Decimal}static isDate(t){return t&&t.typeId===P.Date}static isTime(t){return t&&t.typeId===P.Time}static isTimestamp(t){return t&&t.typeId===P.Timestamp}static isInterval(t){return t&&t.typeId===P.Interval}static isList(t){return t&&t.typeId===P.List}static isStruct(t){return t&&t.typeId===P.Struct}static isUnion(t){return t&&t.typeId===P.Union}static isFixedSizeBinary(t){return t&&t.typeId===P.FixedSizeBinary}static isFixedSizeList(t){return t&&t.typeId===P.FixedSizeList}static isMap(t){return t&&t.typeId===P.Map}static isDictionary(t){return t&&t.typeId===P.Dictionary}get typeId(){return P.NONE}compareTo(t){return hr.visit(this,t)}}je[Symbol.toStringTag]=(e=>(e.children=null,e.ArrayType=Array,e[Symbol.toStringTag]="DataType"))(je.prototype);let Da=class extends je{toString(){return"Null"}get typeId(){return P.Null}};Da[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(Da.prototype);class nr extends je{constructor(t,n){super(),this.isSigned=t,this.bitWidth=n}get typeId(){return P.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?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}nr[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(nr.prototype);class vg extends nr{constructor(){super(!0,8)}}class bg extends nr{constructor(){super(!0,16)}}class hs extends nr{constructor(){super(!0,32)}}let Fa=class extends nr{constructor(){super(!0,64)}};class wg extends nr{constructor(){super(!1,8)}}class xg extends nr{constructor(){super(!1,16)}}class Sg extends nr{constructor(){super(!1,32)}}let Pa=class extends nr{constructor(){super(!1,64)}};Object.defineProperty(vg.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(bg.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(hs.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Fa.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(wg.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(xg.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Sg.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Pa.prototype,"ArrayType",{value:Uint32Array});class ms extends je{constructor(t){super(),this.precision=t}get typeId(){return P.Float}get ArrayType(){switch(this.precision){case Dr.HALF:return Uint16Array;case Dr.SINGLE:return Float32Array;case Dr.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}ms[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(ms.prototype);class Sp extends ms{constructor(){super(Dr.HALF)}}class _g extends ms{constructor(){super(Dr.SINGLE)}}class Eg extends ms{constructor(){super(Dr.DOUBLE)}}Object.defineProperty(Sp.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(_g.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Eg.prototype,"ArrayType",{value:Float64Array});let hu=class extends je{constructor(){super()}get typeId(){return P.Binary}toString(){return"Binary"}};hu[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(hu.prototype);let ja=class extends je{constructor(){super()}get typeId(){return P.Utf8}toString(){return"Utf8"}};ja[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(ja.prototype);let mu=class extends je{constructor(){super()}get typeId(){return P.Bool}toString(){return"Bool"}};mu[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(mu.prototype);let Xf=class extends je{constructor(t,n){super(),this.scale=t,this.precision=n}get typeId(){return P.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};Xf[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Xf.prototype);class La extends je{constructor(t){super(),this.unit=t}get typeId(){return P.Date}toString(){return`Date${(this.unit+1)*32}<${Ti[this.unit]}>`}}La[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(La.prototype);class Y5 extends La{constructor(){super(Ti.DAY)}}class M1 extends La{constructor(){super(Ti.MILLISECOND)}}class Qf extends je{constructor(t,n){super(),this.unit=t,this.bitWidth=n}get typeId(){return P.Time}toString(){return`Time${this.bitWidth}<${lt[this.unit]}>`}}Qf[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Time"))(Qf.prototype);class Jf extends je{constructor(t,n){super(),this.unit=t,this.timezone=n}get typeId(){return P.Timestamp}toString(){return`Timestamp<${lt[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}Jf[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(Jf.prototype);class Zf extends je{constructor(t){super(),this.unit=t}get typeId(){return P.Interval}toString(){return`Interval<${Ma[this.unit]}>`}}Zf[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(Zf.prototype);let Na=class extends je{constructor(t){super(),this.children=[t]}get typeId(){return P.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}};Na[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(Na.prototype);let oi=class extends je{constructor(t){super(),this.children=t}get typeId(){return P.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};oi[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(oi.prototype);class yu extends je{constructor(t,n,r){super(),this.mode=t,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,o,s)=>(i[o]=s)&&i||i,Object.create(null))}get typeId(){return P.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}yu[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(yu.prototype);let ed=class extends je{constructor(t){super(),this.byteWidth=t}get typeId(){return P.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};ed[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(ed.prototype);let gu=class extends je{constructor(t,n){super(),this.listSize=t,this.children=[n]}get typeId(){return P.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}>`}};gu[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(gu.prototype);let vu=class extends je{constructor(t,n=!1){super(),this.children=[t],this.keysSorted=n}get typeId(){return P.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};vu[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(vu.prototype);const G5=(e=>()=>++e)(-1);class Ao extends je{constructor(t,n,r,i){super(),this.indices=n,this.dictionary=t,this.isOrdered=i||!1,this.id=r==null?G5():typeof r=="number"?r:r.low}get typeId(){return P.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}>`}}Ao[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(Ao.prototype);function C2(e){let t=e;switch(e.typeId){case P.Decimal:return 4;case P.Timestamp:return 2;case P.Date:return 1+t.unit;case P.Interval:return 1+t.unit;case P.Int:return 1+ +(t.bitWidth>32);case P.Time:return 1+ +(t.bitWidth>32);case P.FixedSizeList:return t.listSize;case P.FixedSizeBinary:return t.byteWidth;default:return 1}}const q5=-1;class ue{constructor(t,n,r,i,o,s,a){this.type=t,this.dictionary=a,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),this.childData=(s||[]).map(u=>u instanceof ue?u:u.data);let l;o instanceof ue?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets):(this.stride=C2(t),o&&((l=o[0])&&(this.valueOffsets=l),(l=o[1])&&(this.values=l),(l=o[2])&&(this.nullBitmap=l),(l=o[3])&&(this.typeIds=l)))}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,{valueOffsets:n,values:r,nullBitmap:i,typeIds:o}=this;return n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),o&&(t+=o.byteLength),this.childData.reduce((s,a)=>s+a.byteLength,t)}get nullCount(){let t=this._nullCount,n;return t<=q5&&(n=this.nullBitmap)&&(this._nullCount=t=this.length-iy(n,this.offset,this.offset+this.length)),t}clone(t,n=this.offset,r=this.length,i=this._nullCount,o=this,s=this.childData){return new ue(t,n,r,i,o,s,this.dictionary)}slice(t,n){const{stride:r,typeId:i,childData:o}=this,s=+(this._nullCount===0)-1,a=i===16?r:1,l=this._sliceBuffers(t,n,r,i);return this.clone(this.type,this.offset+t,n,s,l,!o.length||this.valueOffsets?o:this._sliceChildren(o,a*t,a*n))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===P.Null)return this.clone(this.type,0,t,0);const{length:n,nullCount:r}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<0&&i.set(hg(this.offset,n,this.nullBitmap),0);const o=this.buffers;return o[we.VALIDITY]=i,this.clone(this.type,0,t,r+(t-n),o)}_sliceBuffers(t,n,r,i){let o,{buffers:s}=this;return(o=s[we.TYPE])&&(s[we.TYPE]=o.subarray(t,t+n)),(o=s[we.OFFSET])&&(s[we.OFFSET]=o.subarray(t,t+n+1))||(o=s[we.DATA])&&(s[we.DATA]=i===6?o:o.subarray(r*t,r*(t+n))),s}_sliceChildren(t,n,r){return t.map(i=>i.slice(n,r))}static new(t,n,r,i,o,s,a){switch(o instanceof ue?o=o.buffers:o||(o=[]),t.typeId){case P.Null:return ue.Null(t,n,r);case P.Int:return ue.Int(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Dictionary:return ue.Dictionary(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[],a);case P.Float:return ue.Float(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Bool:return ue.Bool(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Decimal:return ue.Decimal(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Date:return ue.Date(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Time:return ue.Time(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Timestamp:return ue.Timestamp(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Interval:return ue.Interval(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.FixedSizeBinary:return ue.FixedSizeBinary(t,n,r,i||0,o[we.VALIDITY],o[we.DATA]||[]);case P.Binary:return ue.Binary(t,n,r,i||0,o[we.VALIDITY],o[we.OFFSET]||[],o[we.DATA]||[]);case P.Utf8:return ue.Utf8(t,n,r,i||0,o[we.VALIDITY],o[we.OFFSET]||[],o[we.DATA]||[]);case P.List:return ue.List(t,n,r,i||0,o[we.VALIDITY],o[we.OFFSET]||[],(s||[])[0]);case P.FixedSizeList:return ue.FixedSizeList(t,n,r,i||0,o[we.VALIDITY],(s||[])[0]);case P.Struct:return ue.Struct(t,n,r,i||0,o[we.VALIDITY],s||[]);case P.Map:return ue.Map(t,n,r,i||0,o[we.VALIDITY],o[we.OFFSET]||[],(s||[])[0]);case P.Union:return ue.Union(t,n,r,i||0,o[we.VALIDITY],o[we.TYPE]||[],o[we.OFFSET]||s,s)}throw new Error(`Unrecognized typeId ${t.typeId}`)}static Null(t,n,r){return new ue(t,n,r,0)}static Int(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Dictionary(t,n,r,i,o,s,a){return new ue(t,n,r,i,[void 0,ot(t.indices.ArrayType,s),Ye(o)],[],a)}static Float(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Bool(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Decimal(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Date(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Time(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Timestamp(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Interval(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static FixedSizeBinary(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,ot(t.ArrayType,s),Ye(o)])}static Binary(t,n,r,i,o,s,a){return new ue(t,n,r,i,[vl(s),Ye(a),Ye(o)])}static Utf8(t,n,r,i,o,s,a){return new ue(t,n,r,i,[vl(s),Ye(a),Ye(o)])}static List(t,n,r,i,o,s,a){return new ue(t,n,r,i,[vl(s),void 0,Ye(o)],[a])}static FixedSizeList(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,void 0,Ye(o)],[s])}static Struct(t,n,r,i,o,s){return new ue(t,n,r,i,[void 0,void 0,Ye(o)],s)}static Map(t,n,r,i,o,s,a){return new ue(t,n,r,i,[vl(s),void 0,Ye(o)],[a])}static Union(t,n,r,i,o,s,a,l){const u=[void 0,void 0,Ye(o),ot(t.ArrayType,s)];return t.mode===Yi.Sparse?new ue(t,n,r,i,u,a):(u[we.OFFSET]=vl(a),new ue(t,n,r,i,u,l))}}ue.prototype.childData=Object.freeze([]);const X5=void 0;function $l(e){if(e===null)return"null";if(e===X5)return"undefined";switch(typeof e){case"number":return`${e}`;case"bigint":return`${e}`;case"string":return`"${e}"`}return typeof e[Symbol.toPrimitive]=="function"?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e)}function Q5(e){if(!e||e.length<=0)return function(i){return!0};let t="",n=e.filter(r=>r===r);return n.length>0&&(t=` + switch (x) {${n.map(r=>` + case ${J5(r)}:`).join("")} + return false; + }`),e.length!==n.length&&(t=`if (x !== x) return false; +${t}`),new Function("x",`${t} +return true;`)}function J5(e){return typeof e!="bigint"?$l(e):bp?`${$l(e)}n`:`"${$l(e)}"`}const Ah=(e,t)=>(e*t+63&-64||64)/t,Z5=(e,t=0)=>e.length>=t?e.subarray(0,t):Gf(new e.constructor(t),e,0);class Hu{constructor(t,n=1){this.buffer=t,this.stride=n,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=t.length/n|0)}get byteLength(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,n){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;const n=this.stride,r=this.length*n,i=this.buffer.length;r>=i&&this._resize(i===0?Ah(r*1,this.BYTES_PER_ELEMENT):Ah(r*2,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Ah(t*this.stride,this.BYTES_PER_ELEMENT);const n=Z5(this.buffer,t);return this.clear(),n}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=Gf(new this.ArrayType(t),this.buffer)}}Hu.prototype.offset=0;class Ku extends Hu{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,n){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=n,this}}class O2 extends Ku{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,n){const{buffer:r}=this.reserve(t-this.length+1),i=t>>3,o=t%8,s=r[i]>>o&1;return n?s===0&&(r[i]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}}class A2 extends Hu{get ArrayType64(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?Ja:zu)}set(t,n){switch(this.reserve(t-this.length+1),typeof n){case"bigint":this.buffer64[t]=n;break;case"number":this.buffer[t*this.stride]=n;break;default:this.buffer.set(n,t*this.stride)}return this}_resize(t){const n=super._resize(t),r=n.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return bp&&(this.buffer64=new this.ArrayType64(n.buffer,n.byteOffset,r)),n}}let Ut=class{constructor({type:t,nullValues:n}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=n,this.stride=C2(t),this._nulls=new O2,n&&n.length>0&&(this._isValid=Q5(n))}static new(t){}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}static throughIterable(t){return eF(t)}static throughAsyncIterable(t){return tF(t)}toVector(){return qe.new(this.flush())}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),this._typeIds&&(t+=this._typeIds.byteLength),this.children.reduce((n,r)=>n+r.byteLength,t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((n,r)=>n+r.reservedByteLength,t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,n){return this.setValid(t,this.isValid(n))&&this.setValue(t,n),this}setValue(t,n){this._setValue(this,t,n)}setValid(t,n){return this.length=this._nulls.set(t,+n).length,n}addChild(t,n=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){const t=[],n=this._values,r=this._offsets,i=this._typeIds,{length:o,nullCount:s}=this;i?(t[we.TYPE]=i.flush(o),r&&(t[we.OFFSET]=r.flush(o))):r?(n&&(t[we.DATA]=n.flush(r.last())),t[we.OFFSET]=r.flush(o)):n&&(t[we.DATA]=n.flush(o)),s>0&&(t[we.VALIDITY]=this._nulls.flush(o));const a=ue.new(this.type,0,o,s,t,this.children.map(l=>l.flush()));return this.clear(),a}finish(){return this.finished=!0,this.children.forEach(t=>t.finish()),this}clear(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach(t=>t.clear()),this}};Ut.prototype.length=1;Ut.prototype.stride=1;Ut.prototype.children=null;Ut.prototype.finished=!1;Ut.prototype.nullValues=null;Ut.prototype._isValid=()=>!0;class Po extends Ut{constructor(t){super(t),this._values=new Ku(new this.ArrayType(0),this.stride)}setValue(t,n){const r=this._values;return r.reserve(t-r.length+1),super.setValue(t,n)}}class _p extends Ut{constructor(t){super(t),this._pendingLength=0,this._offsets=new k2}setValue(t,n){const r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=n.length,r.set(t,n)}setValid(t,n){return super.setValid(t,n)?!0:((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){const t=this._pending,n=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,n),this}}function eF(e){const{["queueingStrategy"]:t="count"}=e,{["highWaterMark"]:n=t!=="bytes"?1e3:2**14}=e,r=t!=="bytes"?"length":"byteLength";return function*(i){let o=0,s=Ut.new(e);for(const a of i)s.append(a)[r]>=n&&++o&&(yield s.toVector());(s.finish().length>0||o===0)&&(yield s.toVector())}}function tF(e){const{["queueingStrategy"]:t="count"}=e,{["highWaterMark"]:n=t!=="bytes"?1e3:2**14}=e,r=t!=="bytes"?"length":"byteLength";return async function*(i){let o=0,s=Ut.new(e);for await(const a of i)s.append(a)[r]>=n&&++o&&(yield s.toVector());(s.finish().length>0||o===0)&&(yield s.toVector())}}class nF extends Ut{constructor(t){super(t),this._values=new O2}setValue(t,n){this._values.set(t,+n)}}class rF extends Ut{setValue(t,n){}setValid(t,n){return this.length=Math.max(t+1,this.length),n}}class Ig extends Po{}class iF extends Ig{}class oF extends Ig{}class sF extends Po{}class aF extends Ut{constructor({type:t,nullValues:n,dictionaryHashFunction:r}){super({type:new Ao(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Ut.new({type:this.type.indices,nullValues:n}),this.dictionary=Ut.new({type:this.type.dictionary,nullValues:null}),typeof r=="function"&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,n){const r=this.indices;return n=r.setValid(t,n),this.length=r.length,n}setValue(t,n){let r=this._keysToIndices,i=this.valueToKey(n),o=r[i];return o===void 0&&(r[i]=o=this._dictionaryOffset+this.dictionary.append(n).length-1),this.indices.setValue(t,o)}flush(){const t=this.type,n=this._dictionary,r=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=n?n.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return typeof t=="string"?t:`${t}`}}class lF extends Po{}const B2=new Float64Array(1),Ps=new Uint32Array(B2.buffer);function uF(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function R2(e){if(e!==e)return 32256;B2[0]=e;let t=(Ps[1]&2147483648)>>16&65535,n=Ps[1]&2146435072,r=0;return n>=1089470464?Ps[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Ps[1]&1048575)>>10):n<=1056964608?(r=1048576+(Ps[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Ps[1]&1048575)+512>>10),t|n|r&65535}class Ep extends Po{}class cF extends Ep{setValue(t,n){this._values.set(t,R2(n))}}class fF extends Ep{setValue(t,n){this._values.set(t,n)}}class dF extends Ep{setValue(t,n){this._values.set(t,n)}}const pF=Symbol.for("isArrowBigNum");function li(e,...t){return t.length===0?Object.setPrototypeOf(ot(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}li.prototype[pF]=!0;li.prototype.toJSON=function(){return`"${is(this)}"`};li.prototype.valueOf=function(){return M2(this)};li.prototype.toString=function(){return is(this)};li.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return M2(this);case"string":return is(this);case"default":return td(this)}return is(this)};function fa(...e){return li.apply(this,e)}function da(...e){return li.apply(this,e)}function bu(...e){return li.apply(this,e)}Object.setPrototypeOf(fa.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(da.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(bu.prototype,Object.create(Uint32Array.prototype));Object.assign(fa.prototype,li.prototype,{constructor:fa,signed:!0,TypedArray:Int32Array,BigIntArray:Ja});Object.assign(da.prototype,li.prototype,{constructor:da,signed:!1,TypedArray:Uint32Array,BigIntArray:zu});Object.assign(bu.prototype,li.prototype,{constructor:bu,signed:!0,TypedArray:Uint32Array,BigIntArray:zu});function M2(e){let{buffer:t,byteOffset:n,length:r,signed:i}=e,o=new Int32Array(t,n,r),s=0,a=0,l=o.length,u,c;for(;a>>0),s+=(c>>>0)+u*a**32;return s}let is,td;bp?(td=e=>e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:Bh(e),is=e=>e.byteLength===8?`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`:Bh(e)):(is=Bh,td=is);function Bh(e){let t="",n=new Uint32Array(2),r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),o=-1,s=r.length-1;do{for(n[0]=r[o=0];ot=>(ArrayBuffer.isView(t)&&(e.buffer=t.buffer,e.byteOffset=t.byteOffset,e.byteLength=t.byteLength,t=td(e),e.buffer=null),t))({BigIntArray:Ja});class Yu extends Po{}class SF extends Yu{}class _F extends Yu{}class EF extends Yu{}class IF extends Yu{}class Gu extends Po{}class TF extends Gu{}class CF extends Gu{}class OF extends Gu{}class kF extends Gu{}class Tg extends Po{}class AF extends Tg{}class BF extends Tg{}class D2 extends _p{constructor(t){super(t),this._values=new Hu(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,n){return super.setValue(t,Ye(n))}_flushPending(t,n){const r=this._offsets,i=this._values.reserve(n).buffer;let o=0,s=0,a=0,l;for([o,l]of t)l===void 0?r.set(o,0):(s=l.length,i.set(l,a),r.set(o,s),a+=s)}}class Cg extends _p{constructor(t){super(t),this._values=new Hu(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,n){return super.setValue(t,vp(n))}_flushPending(t,n){}}Cg.prototype._flushPending=D2.prototype._flushPending;class F2{get length(){return this._values.length}get(t){return this._values[t]}clear(){return this._values=null,this}bind(t){return t instanceof qe?t:(this._values=t,this)}}const _n=Symbol.for("parent"),pa=Symbol.for("rowIndex"),lr=Symbol.for("keyToIdx"),or=Symbol.for("idxToVal"),oy=Symbol.for("nodejs.util.inspect.custom");class $i{constructor(t,n){this[_n]=t,this.size=n}entries(){return this[Symbol.iterator]()}has(t){return this.get(t)!==void 0}get(t){let n;if(t!=null){const r=this[lr]||(this[lr]=new Map);let i=r.get(t);if(i!==void 0){const o=this[or]||(this[or]=new Array(this.size));(n=o[i])!==void 0||(o[i]=n=this.getValue(i))}else if((i=this.getIndex(t))>-1){r.set(t,i);const o=this[or]||(this[or]=new Array(this.size));(n=o[i])!==void 0||(o[i]=n=this.getValue(i))}}return n}set(t,n){if(t!=null){const r=this[lr]||(this[lr]=new Map);let i=r.get(t);if(i===void 0&&r.set(t,i=this.getIndex(t)),i>-1){const o=this[or]||(this[or]=new Array(this.size));o[i]=this.setValue(i,n)}}return this}clear(){throw new Error(`Clearing ${this[Symbol.toStringTag]} not supported.`)}delete(t){throw new Error(`Deleting ${this[Symbol.toStringTag]} values not supported.`)}*[Symbol.iterator](){const t=this.keys(),n=this.values(),r=this[lr]||(this[lr]=new Map),i=this[or]||(this[or]=new Array(this.size));for(let o,s,a=0,l,u;!((l=t.next()).done||(u=n.next()).done);++a)o=l.value,s=u.value,i[a]=s,r.has(o)||r.set(o,a),yield[o,s]}forEach(t,n){const r=this.keys(),i=this.values(),o=n===void 0?t:(l,u,c)=>t.call(n,l,u,c),s=this[lr]||(this[lr]=new Map),a=this[or]||(this[or]=new Array(this.size));for(let l,u,c=0,f,p;!((f=r.next()).done||(p=i.next()).done);++c)l=f.value,u=p.value,a[c]=u,s.has(l)||s.set(l,c),o(u,l,this)}toArray(){return[...this.values()]}toJSON(){const t={};return this.forEach((n,r)=>t[r]=n),t}inspect(){return this.toString()}[oy](){return this.toString()}toString(){const t=[];return this.forEach((n,r)=>{r=$l(r),n=$l(n),t.push(`${r}: ${n}`)}),`{ ${t.join(", ")} }`}}$i[Symbol.toStringTag]=(e=>(Object.defineProperties(e,{size:{writable:!0,enumerable:!1,configurable:!1,value:0},[_n]:{writable:!0,enumerable:!1,configurable:!1,value:null},[pa]:{writable:!0,enumerable:!1,configurable:!1,value:-1}}),e[Symbol.toStringTag]="Row"))($i.prototype);class P2 extends $i{constructor(t){return super(t,t.length),RF(this)}keys(){return this[_n].getChildAt(0)[Symbol.iterator]()}values(){return this[_n].getChildAt(1)[Symbol.iterator]()}getKey(t){return this[_n].getChildAt(0).get(t)}getIndex(t){return this[_n].getChildAt(0).indexOf(t)}getValue(t){return this[_n].getChildAt(1).get(t)}setValue(t,n){this[_n].getChildAt(1).set(t,n)}}class j2 extends $i{constructor(t){return super(t,t.type.children.length),L2(this)}*keys(){for(const t of this[_n].type.children)yield t.name}*values(){for(const t of this[_n].type.children)yield this[t.name]}getKey(t){return this[_n].type.children[t].name}getIndex(t){return this[_n].type.children.findIndex(n=>n.name===t)}getValue(t){return this[_n].getChildAt(t).get(this[pa])}setValue(t,n){return this[_n].getChildAt(t).set(this[pa],n)}}Object.setPrototypeOf($i.prototype,Map.prototype);const L2=(()=>{const e={enumerable:!0,configurable:!1,get:null,set:null};return t=>{let n=-1,r=t[lr]||(t[lr]=new Map);const i=s=>function(){return this.get(s)},o=s=>function(a){return this.set(s,a)};for(const s of t.keys())r.set(s,++n),e.get=i(s),e.set=o(s),t.hasOwnProperty(s)||(e.enumerable=!0,Object.defineProperty(t,s,e)),t.hasOwnProperty(n)||(e.enumerable=!1,Object.defineProperty(t,n,e));return e.get=e.set=null,t}})(),RF=(()=>{if(typeof Proxy>"u")return L2;const e=$i.prototype.has,t=$i.prototype.get,n=$i.prototype.set,r=$i.prototype.getKey,i={isExtensible(){return!1},deleteProperty(){return!1},preventExtensions(){return!0},ownKeys(o){return[...o.keys()].map(s=>`${s}`)},has(o,s){switch(s){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case _n:case pa:case or:case lr:case oy:return!0}return typeof s=="number"&&!o.has(s)&&(s=o.getKey(s)),o.has(s)},get(o,s,a){switch(s){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case _n:case pa:case or:case lr:case oy:return Reflect.get(o,s,a)}return typeof s=="number"&&!e.call(a,s)&&(s=r.call(a,s)),t.call(a,s)},set(o,s,a,l){switch(s){case _n:case pa:case or:case lr:return Reflect.set(o,s,a,l);case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:return!1}return typeof s=="number"&&!e.call(l,s)&&(s=r.call(l,s)),e.call(l,s)?!!n.call(l,s,a):!1}};return o=>new Proxy(o,i)})();let D1;function N2(e,t,n,r){let{length:i=0}=e,o=typeof t!="number"?0:t,s=typeof n!="number"?i:n;return o<0&&(o=(o%i+i)%i),s<0&&(s=(s%i+i)%i),si&&(s=i),r?r(e,o,s):[o,s]}const MF=bp?w5(0):0,F1=e=>e!==e;function el(e){let t=typeof e;if(t!=="object"||e===null)return F1(e)?F1:t!=="bigint"?n=>n===e:n=>MF+n===e;if(e instanceof Date){const n=e.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(e)?n=>n?B5(e,n):!1:e instanceof Map?FF(e):Array.isArray(e)?DF(e):e instanceof qe?PF(e):jF(e)}function DF(e){const t=[];for(let n=-1,r=e.length;++nn[++t]=el(r)),Ip(n)}function PF(e){const t=[];for(let n=-1,r=e.length;++n!1;const n=[];for(let r=-1,i=t.length;++r{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return LF(e,n);case Map:case P2:case j2:return P1(e,n,n.keys());case Object:case void 0:return P1(e,n,t||Object.keys(n))}return n instanceof qe?NF(e,n):!1}}function LF(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r`}get data(){return this._chunks[0]?this._chunks[0].data:null}get ArrayType(){return this._type.ArrayType}get numChildren(){return this._numChildren}get stride(){return this._chunks[0]?this._chunks[0].stride:1}get byteLength(){return this._chunks.reduce((t,n)=>t+n.byteLength,0)}get nullCount(){let t=this._nullCount;return t<0&&(this._nullCount=t=this._chunks.reduce((n,{nullCount:r})=>n+r,0)),t}get indices(){if(je.isDictionary(this._type)){if(!this._indices){const t=this._chunks;this._indices=t.length===1?t[0].indices:En.concat(...t.map(n=>n.indices))}return this._indices}return null}get dictionary(){return je.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}*[Symbol.iterator](){for(const t of this._chunks)yield*t}clone(t=this._chunks){return new En(this._type,t)}concat(...t){return this.clone(En.flatten(this,...t))}slice(t,n){return N2(this,t,n,this._sliceInternal)}getChildAt(t){if(t<0||t>=this._numChildren)return null;let n=this._children||(this._children=[]),r,i,o;return(r=n[t])?r:(i=(this._type.children||[])[t])&&(o=this._chunks.map(s=>s.getChildAt(t)).filter(s=>s!=null),o.length>0)?n[t]=new En(i.type,o):null}search(t,n){let r=t,i=this._chunkOffsets,o=i.length-1;if(r<0||r>=i[o])return null;if(o<=1)return n?n(this,0,r):[0,r];let s=0,a=0,l=0;do{if(s+1===o)return n?n(this,s,r-a):[s,r-a];l=s+(o-s)/2|0,r>=i[l]?s=l:o=l}while(r=(a=i[s]));return null}isValid(t){return!!this.search(t,this.isValidInternal)}get(t){return this.search(t,this.getInternal)}set(t,n){this.search(t,({chunks:r},i,o)=>r[i].set(o,n))}indexOf(t,n){return n&&typeof n=="number"?this.search(n,(r,i,o)=>this.indexOfInternal(r,i,o,t)):this.indexOfInternal(this,0,Math.max(0,n||0),t)}toArray(){const{chunks:t}=this,n=t.length;let r=this._type.ArrayType;if(n<=0)return new r(0);if(n<=1)return t[0].toArray();let i=0,o=new Array(n);for(let l=-1;++l=r)break;if(n>=f+c)continue;if(f>=n&&f+c<=r){i.push(u);continue}const p=Math.max(0,n-f),h=Math.min(r-f,c);i.push(u.slice(p,h))}return t.clone(i)}}function $F(e){let t=new Uint32Array((e||[]).length+1),n=t[0]=0,r=t.length;for(let i=0;++i(t.set(e,n),n+e.length),UF=(e,t,n)=>{let r=n;for(let i=-1,o=e.length;++io>0)&&(t=t.clone({nullable:!0}));return new Jr(t,i)}get field(){return this._field}get name(){return this._field.name}get nullable(){return this._field.nullable}get metadata(){return this._field.metadata}clone(t=this._chunks){return new Jr(this._field,t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let n=this._children||(this._children=[]),r,i,o;return(r=n[t])?r:(i=(this.type.children||[])[t])&&(o=this._chunks.map(s=>s.getChildAt(t)).filter(s=>s!=null),o.length>0)?n[t]=new Jr(i,o):null}}class j1 extends Jr{constructor(t,n,r){super(t,[n],r),this._chunk=n}search(t,n){return n?n(this,0,t):[0,t]}isValid(t){return this._chunk.isValid(t)}get(t){return this._chunk.get(t)}set(t,n){this._chunk.set(t,n)}indexOf(t,n){return this._chunk.indexOf(t,n)}}const Jo=Array.isArray,$2=(e,t)=>Og(e,t,[],0),VF=e=>{const[t,n]=kg(e,[[],[]]);return n.map((r,i)=>r instanceof Jr?Jr.new(r.field.clone(t[i]),r):r instanceof qe?Jr.new(t[i],r):Jr.new(t[i],[]))},z2=e=>kg(e,[[],[]]),WF=(e,t)=>sy(e,t,[],0),HF=(e,t)=>U2(e,t,[],0);function Og(e,t,n,r){let i,o=r,s=-1,a=t.length;for(;++si.getChildAt(u)),n,o).length:i instanceof qe&&(n[o++]=i);return n}const KF=(e,[t,n],r)=>(e[0][r]=t,e[1][r]=n,e);function kg(e,t){let n,r;switch(r=e.length){case 0:return t;case 1:if(n=t[0],!e[0])return t;if(Jo(e[0]))return kg(e[0],t);e[0]instanceof ue||e[0]instanceof qe||e[0]instanceof je||([n,e]=Object.entries(e[0]).reduce(KF,t));break;default:Jo(n=e[r-1])?e=Jo(e[0])?e[0]:e.slice(0,r-1):(e=Jo(e[0])?e[0]:e,n=[])}let i=-1,o=-1,s=-1,a=e.length,l,u,[c,f]=t;for(;++s`${n}: ${t}`).join(", ")} }>`}compareTo(t){return hr.compareSchemas(this,t)}select(...t){const n=t.reduce((r,i)=>(r[i]=!0)&&r,Object.create(null));return new ut(this.fields.filter(r=>n[r.name]),this.metadata)}selectAt(...t){return new ut(t.map(n=>this.fields[n]).filter(Boolean),this.metadata)}assign(...t){const n=t[0]instanceof ut?t[0]:new ut($2(Xe,t)),r=[...this.fields],i=Fc(Fc(new Map,this.metadata),n.metadata),o=n.fields.filter(a=>{const l=r.findIndex(u=>u.name===a.name);return~l?(r[l]=a.clone({metadata:Fc(Fc(new Map,r[l].metadata),a.metadata)}))&&!1:!0}),s=ay(o,new Map);return new ut([...r,...o],i,new Map([...this.dictionaries,...s]))}}class Xe{constructor(t,n,r=!1,i){this.name=t,this.type=n,this.nullable=r,this.metadata=i||new Map}static new(...t){let[n,r,i,o]=t;return t[0]&&typeof t[0]=="object"&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),o===void 0&&(o=t[0].metadata)),new Xe(`${n}`,r,i,o)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}compareTo(t){return hr.compareField(this,t)}clone(...t){let[n,r,i,o]=t;return!t[0]||typeof t[0]!="object"?[n=this.name,r=this.type,i=this.nullable,o=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:o=this.metadata}=t[0],Xe.new(n,r,i,o)}}function Fc(e,t){return new Map([...e||new Map,...t||new Map])}function ay(e,t=new Map){for(let n=-1,r=e.length;++n0&&ay(o.children,t)}return t}ut.prototype.fields=null;ut.prototype.metadata=null;ut.prototype.dictionaries=null;Xe.prototype.type=null;Xe.prototype.name=null;Xe.prototype.nullable=null;Xe.prototype.metadata=null;class YF extends _p{constructor(t){super(t),this._run=new F2,this._offsets=new k2}addChild(t,n="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Na(new Xe(n,t.type,!0)),this.numChildren-1}clear(){return this._run.clear(),super.clear()}_flushPending(t){const n=this._run,r=this._offsets,i=this._setValue;let o=0,s;for([o,s]of t)s===void 0?r.set(o,0):(r.set(o,s.length),i(this,o,n.bind(s)))}}class GF extends Ut{constructor(){super(...arguments),this._run=new F2}setValue(t,n){super.setValue(t,this._run.bind(n))}addChild(t,n="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");const r=this.children.push(t);return this.type=new gu(this.type.listSize,new Xe(n,t.type,!0)),r}clear(){return this._run.clear(),super.clear()}}class qF extends _p{set(t,n){return super.set(t,n)}setValue(t,n){n=n instanceof Map?n:new Map(Object.entries(n));const r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.size),this._pendingLength+=n.size,r.set(t,n)}addChild(t,n=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new vu(new Xe(n,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){const n=this._offsets,r=this._setValue;t.forEach((i,o)=>{i===void 0?n.set(o,0):(n.set(o,i.size),r(this,o,i))})}}class XF extends Ut{addChild(t,n=`${this.numChildren}`){const r=this.children.push(t);return this.type=new oi([...this.type.children,new Xe(n,t.type,!0)]),r}}class Ag extends Ut{constructor(t){super(t),this._typeIds=new Ku(new Int8Array(0),1),typeof t.valueToChildTypeId=="function"&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,n){return this.set(this.length,t,n)}set(t,n,r){return r===void 0&&(r=this._valueToChildTypeId(this,n,t)),this.setValid(t,this.isValid(n))&&this.setValue(t,n,r),this}setValue(t,n,r){this._typeIds.set(t,r),super.setValue(t,n)}addChild(t,n=`${this.children.length}`){const r=this.children.push(t),{type:{children:i,mode:o,typeIds:s}}=this,a=[...i,new Xe(n,t.type)];return this.type=new yu(o,[...s,r],a),r}_valueToChildTypeId(t,n,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}}class QF extends Ag{}class JF extends Ag{constructor(t){super(t),this._offsets=new Ku(new Int32Array(0))}setValue(t,n,r){const i=this.type.typeIdToChildIndex[r];return this._offsets.set(t,this.getChildAt(i).length),super.setValue(t,n,r)}}class Me extends Ue{}const ZF=(e,t,n)=>{e[t]=n/864e5|0},Bg=(e,t,n)=>{e[t]=n%4294967296|0,e[t+1]=n/4294967296|0},eP=(e,t,n)=>{e[t]=n*1e3%4294967296|0,e[t+1]=n*1e3/4294967296|0},tP=(e,t,n)=>{e[t]=n*1e6%4294967296|0,e[t+1]=n*1e6/4294967296|0},V2=(e,t,n,r)=>{const{[n]:i,[n+1]:o}=t;i!=null&&o!=null&&e.set(r.subarray(0,o-i),i)},nP=({offset:e,values:t},n,r)=>{const i=e+n;r?t[i>>3]|=1<>3]&=~(1<{ZF(e,t,n.valueOf())},H2=({values:e},t,n)=>{Bg(e,t*2,n.valueOf())},Oi=({stride:e,values:t},n,r)=>{t[e*n]=r},K2=({stride:e,values:t},n,r)=>{t[e*n]=R2(r)},Rg=(e,t,n)=>{switch(typeof n){case"bigint":e.values64[t]=n;break;case"number":e.values[t*e.stride]=n;break;default:const r=n,{stride:i,ArrayType:o}=e,s=ot(o,r);e.values.set(s.subarray(0,i),i*t)}},rP=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},iP=({values:e,valueOffsets:t},n,r)=>V2(e,t,n,r),oP=({values:e,valueOffsets:t},n,r)=>{V2(e,t,n,vp(r))},sP=(e,t,n)=>{e.type.bitWidth<64?Oi(e,t,n):Rg(e,t,n)},aP=(e,t,n)=>{e.type.precision!==Dr.HALF?Oi(e,t,n):K2(e,t,n)},lP=(e,t,n)=>{e.type.unit===Ti.DAY?W2(e,t,n):H2(e,t,n)},Y2=({values:e},t,n)=>Bg(e,t*2,n/1e3),G2=({values:e},t,n)=>Bg(e,t*2,n),q2=({values:e},t,n)=>eP(e,t*2,n),X2=({values:e},t,n)=>tP(e,t*2,n),uP=(e,t,n)=>{switch(e.type.unit){case lt.SECOND:return Y2(e,t,n);case lt.MILLISECOND:return G2(e,t,n);case lt.MICROSECOND:return q2(e,t,n);case lt.NANOSECOND:return X2(e,t,n)}},Q2=({values:e,stride:t},n,r)=>{e[t*n]=r},J2=({values:e,stride:t},n,r)=>{e[t*n]=r},Z2=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},eE=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},cP=(e,t,n)=>{switch(e.type.unit){case lt.SECOND:return Q2(e,t,n);case lt.MILLISECOND:return J2(e,t,n);case lt.MICROSECOND:return Z2(e,t,n);case lt.NANOSECOND:return eE(e,t,n)}},fP=({values:e},t,n)=>{e.set(n.subarray(0,4),4*t)},dP=(e,t,n)=>{const r=e.getChildAt(0),i=e.valueOffsets;for(let o=-1,s=i[t],a=i[t+1];s{const r=e.getChildAt(0),i=e.valueOffsets,o=n instanceof Map?[...n]:Object.entries(n);for(let s=-1,a=i[t],l=i[t+1];a(n,r,i)=>n&&n.set(e,t[i]),mP=(e,t)=>(n,r,i)=>n&&n.set(e,t.get(i)),yP=(e,t)=>(n,r,i)=>n&&n.set(e,t.get(r.name)),gP=(e,t)=>(n,r,i)=>n&&n.set(e,t[r.name]),vP=(e,t,n)=>{const r=n instanceof Map?yP(t,n):n instanceof qe?mP(t,n):Array.isArray(n)?hP(t,n):gP(t,n);e.type.children.forEach((i,o)=>r(e.getChildAt(o),i,o))},bP=(e,t,n)=>{e.type.mode===Yi.Dense?tE(e,t,n):nE(e,t,n)},tE=(e,t,n)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(e.valueOffsets[t],n)},nE=(e,t,n)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(t,n)},wP=(e,t,n)=>{const r=e.getKey(t);r!==null&&e.setValue(r,n)},xP=(e,t,n)=>{e.type.unit===Ma.DAY_TIME?rE(e,t,n):iE(e,t,n)},rE=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},iE=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},SP=(e,t,n)=>{const r=e.getChildAt(0),{stride:i}=e;for(let o=-1,s=t*i;++o0){const r=e.children||[],i={nullValues:e.nullValues},o=Array.isArray(r)?(s,a)=>r[a]||i:({name:s})=>r[s]||i;t.children.forEach((s,a)=>{const{type:l}=s,u=o(s,a);n.children.push(sE({...u,type:l}))})}return n}Object.keys(P).map(e=>P[e]).filter(e=>typeof e=="number"&&e!==P.NONE).forEach(e=>{const t=oE.visit(e);t.prototype._setValue=Tp.getVisitFn(e)});Cg.prototype._setValue=Tp.visitBinary;var $a;(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,this}static getRootAsFooter(s,a){return(a||new i).__init(s.readInt32(s.position())+s.position(),s)}version(){let s=this.bb.__offset(this.bb_pos,4);return s?this.bb.readInt16(this.bb_pos+s):J.apache.arrow.flatbuf.MetadataVersion.V1}schema(s){let a=this.bb.__offset(this.bb_pos,6);return a?(s||new J.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+a),this.bb):null}dictionaries(s,a){let l=this.bb.__offset(this.bb_pos,8);return l?(a||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+l)+s*24,this.bb):null}dictionariesLength(){let s=this.bb.__offset(this.bb_pos,8);return s?this.bb.__vector_len(this.bb_pos+s):0}recordBatches(s,a){let l=this.bb.__offset(this.bb_pos,10);return l?(a||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+l)+s*24,this.bb):null}recordBatchesLength(){let s=this.bb.__offset(this.bb_pos,10);return s?this.bb.__vector_len(this.bb_pos+s):0}static startFooter(s){s.startObject(4)}static addVersion(s,a){s.addFieldInt16(0,a,J.apache.arrow.flatbuf.MetadataVersion.V1)}static addSchema(s,a){s.addFieldOffset(1,a,0)}static addDictionaries(s,a){s.addFieldOffset(2,a,0)}static startDictionariesVector(s,a){s.startVector(24,a,8)}static addRecordBatches(s,a){s.addFieldOffset(3,a,0)}static startRecordBatchesVector(s,a){s.startVector(24,a,8)}static endFooter(s){return s.endObject()}static finishFooterBuffer(s,a){s.finish(a)}static createFooter(s,a,l,u,c){return i.startFooter(s),i.addVersion(s,a),i.addSchema(s,l),i.addDictionaries(s,u),i.addRecordBatches(s,c),i.endFooter(s)}}r.Footer=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})($a||($a={}));(function(e){(function(t){(function(n){(function(r){class i{constructor(){this.bb=null,this.bb_pos=0}__init(s,a){return this.bb_pos=s,this.bb=a,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 createBlock(s,a,l,u){return s.prep(8,24),s.writeInt64(u),s.pad(4),s.writeInt32(l),s.writeInt64(a),s.offset()}}r.Block=i})(n.flatbuf||(n.flatbuf={}))})(t.arrow||(t.arrow={}))})(e.apache||(e.apache={}))})($a||($a={}));var L1=W.Long,EP=W.Builder,IP=W.ByteBuffer,TP=$a.apache.arrow.flatbuf.Block,di=$a.apache.arrow.flatbuf.Footer;class wu{constructor(t,n=Xr.V4,r,i){this.schema=t,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new IP(Ye(t));const n=di.getRootAsFooter(t),r=ut.decode(n.schema());return new CP(r,n)}static encode(t){const n=new EP,r=ut.encode(n,t.schema);di.startRecordBatchesVector(n,t.numRecordBatches),[...t.recordBatches()].slice().reverse().forEach(s=>Bo.encode(n,s));const i=n.endVector();di.startDictionariesVector(n,t.numDictionaries),[...t.dictionaryBatches()].slice().reverse().forEach(s=>Bo.encode(n,s));const o=n.endVector();return di.startFooter(n),di.addSchema(n,r),di.addVersion(n,Xr.V4),di.addRecordBatches(n,i),di.addDictionaries(n,o),di.finishFooterBuffer(n,di.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,n=-1,r=this.numRecordBatches;++n=0&&t=0&&t=0&&t=0&&t0)return super.write(t)}toString(t=!1){return t?ty(this.toUint8Array(!0)):this.toUint8Array(!1).then(ty)}toUint8Array(t=!1){return t?Ii(this._values)[0]:(async()=>{let n=[],r=0;for await(const i of this)n.push(i),r+=i.byteLength;return Ii(n,r)[0]})()}}class rd{constructor(t){t&&(this.source=new OP(ur.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 ys{constructor(t){t instanceof ys?this.source=t.source:t instanceof zl?this.source=new zo(ur.fromAsyncIterable(t)):_2(t)?this.source=new zo(ur.fromNodeStream(t)):fg(t)?this.source=new zo(ur.fromDOMStream(t)):S2(t)?this.source=new zo(ur.fromDOMStream(t.body)):ii(t)?this.source=new zo(ur.fromIterable(t)):ko(t)?this.source=new zo(ur.fromAsyncIterable(t)):Ji(t)&&(this.source=new zo(ur.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 OP{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,n="read"){return this.source.next({cmd:n,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||$t)}return(t){return Object.create(this.source.return&&this.source.return(t)||$t)}}class zo{constructor(t){this.source=t,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}async cancel(t){await this.return(t)}get closed(){return this._closedPromise}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await this.next(t,"peek")).value}async next(t,n="read"){return await this.source.next({cmd:n,size:t})}async throw(t){const n=this.source.throw&&await this.source.throw(t)||$t;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)}async return(t){const n=this.source.return&&await this.source.return(t)||$t;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)}}class N1 extends rd{constructor(t,n){super(),this.position=0,this.buffer=Ye(t),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(t){const{buffer:n,byteOffset:r}=this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t{this.size=(await t.stat()).size,delete this._pending})()}async readInt32(t){const{buffer:n,byteOffset:r}=await this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}async seek(t){return this._pending&&await this._pending,this.position=Math.min(t,this.size),t>>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 i=n[3]*r[3];this.buffer[0]=i&65535;let o=i>>>16;return i=n[2]*r[3],o+=i,i=n[3]*r[2]>>>0,o+=i,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(t){const n=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],n>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(t){return this.buffer[1]>>0,n[2]=this.buffer[2]+t.buffer[2]>>>0,n[1]=this.buffer[1]+t.buffer[1]>>>0,n[0]=this.buffer[0]+t.buffer[0]>>>0,n[0]>>0&&++n[1],n[1]>>0&&++n[2],n[2]>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${ea(this.buffer[3])} ${ea(this.buffer[2])} ${ea(this.buffer[1])} ${ea(this.buffer[0])}`}static multiply(t,n){return new hi(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new hi(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return hi.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return hi.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){const r=t.startsWith("-"),i=t.length;let o=new hi(n);for(let s=r?1:0;s0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,n){return this.readData(t,n)}readTypeIds(t,n){return this.readData(t,n)}readData(t,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(t){return this.dictionaries.get(t.id)}}class AP extends lE{constructor(t,n,r,i){super(new Uint8Array(0),n,r,i),this.sources=t}readNullBitmap(t,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):qf(this.sources[r])}readOffsets(t,{offset:n}=this.nextBufferRange()){return ot(Uint8Array,ot(Int32Array,this.sources[n]))}readTypeIds(t,{offset:n}=this.nextBufferRange()){return ot(Uint8Array,ot(t.ArrayType,this.sources[n]))}readData(t,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return je.isTimestamp(t)||(je.isInt(t)||je.isTime(t))&&t.bitWidth===64||je.isDate(t)&&t.unit===Ti.MILLISECOND?ot(Uint8Array,Hn.convertArray(r[n])):je.isDecimal(t)?ot(Uint8Array,hi.convertArray(r[n])):je.isBinary(t)||je.isFixedSizeBinary(t)?BP(r[n]):je.isBool(t)?qf(r[n]):je.isUtf8(t)?vp(r[n].join("")):ot(Uint8Array,ot(t.ArrayType,r[n].map(i=>+i)))}}function BP(e){const t=e.join(""),n=new Uint8Array(t.length/2);for(let r=0;r>1]=parseInt(t.substr(r,2),16);return n}var RP=W.Long,$1=J.apache.arrow.flatbuf.Null,Pc=J.apache.arrow.flatbuf.Int,Rh=J.apache.arrow.flatbuf.FloatingPoint,z1=J.apache.arrow.flatbuf.Binary,U1=J.apache.arrow.flatbuf.Bool,V1=J.apache.arrow.flatbuf.Utf8,jc=J.apache.arrow.flatbuf.Decimal,Mh=J.apache.arrow.flatbuf.Date,Lc=J.apache.arrow.flatbuf.Time,Nc=J.apache.arrow.flatbuf.Timestamp,Dh=J.apache.arrow.flatbuf.Interval,W1=J.apache.arrow.flatbuf.List,H1=J.apache.arrow.flatbuf.Struct_,js=J.apache.arrow.flatbuf.Union,bl=J.apache.arrow.flatbuf.DictionaryEncoding,Fh=J.apache.arrow.flatbuf.FixedSizeBinary,Ph=J.apache.arrow.flatbuf.FixedSizeList,jh=J.apache.arrow.flatbuf.Map;class MP extends Ue{visit(t,n){return t==null||n==null?void 0:super.visit(t,n)}visitNull(t,n){return $1.startNull(n),$1.endNull(n)}visitInt(t,n){return Pc.startInt(n),Pc.addBitWidth(n,t.bitWidth),Pc.addIsSigned(n,t.isSigned),Pc.endInt(n)}visitFloat(t,n){return Rh.startFloatingPoint(n),Rh.addPrecision(n,t.precision),Rh.endFloatingPoint(n)}visitBinary(t,n){return z1.startBinary(n),z1.endBinary(n)}visitBool(t,n){return U1.startBool(n),U1.endBool(n)}visitUtf8(t,n){return V1.startUtf8(n),V1.endUtf8(n)}visitDecimal(t,n){return jc.startDecimal(n),jc.addScale(n,t.scale),jc.addPrecision(n,t.precision),jc.endDecimal(n)}visitDate(t,n){return Mh.startDate(n),Mh.addUnit(n,t.unit),Mh.endDate(n)}visitTime(t,n){return Lc.startTime(n),Lc.addUnit(n,t.unit),Lc.addBitWidth(n,t.bitWidth),Lc.endTime(n)}visitTimestamp(t,n){const r=t.timezone&&n.createString(t.timezone)||void 0;return Nc.startTimestamp(n),Nc.addUnit(n,t.unit),r!==void 0&&Nc.addTimezone(n,r),Nc.endTimestamp(n)}visitInterval(t,n){return Dh.startInterval(n),Dh.addUnit(n,t.unit),Dh.endInterval(n)}visitList(t,n){return W1.startList(n),W1.endList(n)}visitStruct(t,n){return H1.startStruct_(n),H1.endStruct_(n)}visitUnion(t,n){js.startTypeIdsVector(n,t.typeIds.length);const r=js.createTypeIdsVector(n,t.typeIds);return js.startUnion(n),js.addMode(n,t.mode),js.addTypeIds(n,r),js.endUnion(n)}visitDictionary(t,n){const r=this.visit(t.indices,n);return bl.startDictionaryEncoding(n),bl.addId(n,new RP(t.id,0)),bl.addIsOrdered(n,t.isOrdered),r!==void 0&&bl.addIndexType(n,r),bl.endDictionaryEncoding(n)}visitFixedSizeBinary(t,n){return Fh.startFixedSizeBinary(n),Fh.addByteWidth(n,t.byteWidth),Fh.endFixedSizeBinary(n)}visitFixedSizeList(t,n){return Ph.startFixedSizeList(n),Ph.addListSize(n,t.listSize),Ph.endFixedSizeList(n)}visitMap(t,n){return jh.startMap(n),jh.addKeysSorted(n,t.keysSorted),jh.endMap(n)}}const Lh=new MP;function DP(e,t=new Map){return new ut(PP(e,t),lf(e.customMetadata),t)}function uE(e){return new vr(e.count,cE(e.columns),fE(e.columns))}function FP(e){return new Ci(uE(e.data),e.id,e.isDelta)}function PP(e,t){return(e.fields||[]).filter(Boolean).map(n=>Xe.fromJSON(n,t))}function K1(e,t){return(e.children||[]).filter(Boolean).map(n=>Xe.fromJSON(n,t))}function cE(e){return(e||[]).reduce((t,n)=>[...t,new Ss(n.count,jP(n.VALIDITY)),...cE(n.children)],[])}function fE(e,t=[]){for(let n=-1,r=(e||[]).length;++nt+ +(n===0),0)}function LP(e,t){let n,r,i,o,s,a;return!t||!(o=e.dictionary)?(s=G1(e,K1(e,t)),i=new Xe(e.name,s,e.nullable,lf(e.customMetadata))):t.has(n=o.id)?(r=(r=o.indexType)?Y1(r):new hs,a=new Ao(t.get(n),r,n,o.isOrdered),i=new Xe(e.name,a,e.nullable,lf(e.customMetadata))):(r=(r=o.indexType)?Y1(r):new hs,t.set(n,s=G1(e,K1(e,t))),a=new Ao(s,r,n,o.isOrdered),i=new Xe(e.name,a,e.nullable,lf(e.customMetadata))),i||null}function lf(e){return new Map(Object.entries(e||{}))}function Y1(e){return new nr(e.isSigned,e.bitWidth)}function G1(e,t){const n=e.type.name;switch(n){case"NONE":return new Da;case"null":return new Da;case"binary":return new hu;case"utf8":return new ja;case"bool":return new mu;case"list":return new Na((t||[])[0]);case"struct":return new oi(t||[]);case"struct_":return new oi(t||[])}switch(n){case"int":{const r=e.type;return new nr(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=e.type;return new ms(Dr[r.precision])}case"decimal":{const r=e.type;return new Xf(r.scale,r.precision)}case"date":{const r=e.type;return new La(Ti[r.unit])}case"time":{const r=e.type;return new Qf(lt[r.unit],r.bitWidth)}case"timestamp":{const r=e.type;return new Jf(lt[r.unit],r.timezone)}case"interval":{const r=e.type;return new Zf(Ma[r.unit])}case"union":{const r=e.type;return new yu(Yi[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const r=e.type;return new ed(r.byteWidth)}case"fixedsizelist":{const r=e.type;return new gu(r.listSize,(t||[])[0])}case"map":{const r=e.type;return new vu((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var gs=W.Long,NP=W.Builder,$P=W.ByteBuffer,fn=J.apache.arrow.flatbuf.Type,Kr=J.apache.arrow.flatbuf.Field,Ri=J.apache.arrow.flatbuf.Schema,zP=J.apache.arrow.flatbuf.Buffer,ro=Cn.apache.arrow.flatbuf.Message,po=J.apache.arrow.flatbuf.KeyValue,UP=Cn.apache.arrow.flatbuf.FieldNode,q1=J.apache.arrow.flatbuf.Endianness,io=Cn.apache.arrow.flatbuf.RecordBatch,zs=Cn.apache.arrow.flatbuf.DictionaryBatch;class Ln{constructor(t,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=typeof t=="number"?t:t.low}static fromJSON(t,n){const r=new Ln(0,Xr.V4,n);return r._createHeader=VP(t,n),r}static decode(t){t=new $P(Ye(t));const n=ro.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),o=n.headerType(),s=new Ln(r,i,o);return s._createHeader=WP(n,o),s}static encode(t){let n=new NP,r=-1;return t.isSchema()?r=ut.encode(n,t.header()):t.isRecordBatch()?r=vr.encode(n,t.header()):t.isDictionaryBatch()&&(r=Ci.encode(n,t.header())),ro.startMessage(n),ro.addVersion(n,Xr.V4),ro.addHeader(n,r),ro.addHeaderType(n,t.headerType),ro.addBodyLength(n,new gs(t.bodyLength,0)),ro.finishMessageBuffer(n,ro.endMessage(n)),n.asUint8Array()}static from(t,n=0){if(t instanceof ut)return new Ln(0,Xr.V4,gt.Schema,t);if(t instanceof vr)return new Ln(n,Xr.V4,gt.RecordBatch,t);if(t instanceof Ci)return new Ln(n,Xr.V4,gt.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===gt.Schema}isRecordBatch(){return this.headerType===gt.RecordBatch}isDictionaryBatch(){return this.headerType===gt.DictionaryBatch}}let vr=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,n,r){this._nodes=n,this._buffers=r,this._length=typeof t=="number"?t:t.low}};class Ci{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}constructor(t,n,r=!1){this._data=t,this._isDelta=r,this._id=typeof n=="number"?n:n.low}}class bi{constructor(t,n){this.offset=typeof t=="number"?t:t.low,this.length=typeof n=="number"?n:n.low}}class Ss{constructor(t,n){this.length=typeof t=="number"?t:t.low,this.nullCount=typeof n=="number"?n:n.low}}function VP(e,t){return()=>{switch(t){case gt.Schema:return ut.fromJSON(e);case gt.RecordBatch:return vr.fromJSON(e);case gt.DictionaryBatch:return Ci.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${gt[t]}, type: ${t} }`)}}function WP(e,t){return()=>{switch(t){case gt.Schema:return ut.decode(e.header(new Ri));case gt.RecordBatch:return vr.decode(e.header(new io),e.version());case gt.DictionaryBatch:return Ci.decode(e.header(new zs),e.version())}throw new Error(`Unrecognized Message type: { name: ${gt[t]}, type: ${t} }`)}}Xe.encode=tj;Xe.decode=ZP;Xe.fromJSON=LP;ut.encode=ej;ut.decode=HP;ut.fromJSON=DP;vr.encode=nj;vr.decode=KP;vr.fromJSON=uE;Ci.encode=rj;Ci.decode=YP;Ci.fromJSON=FP;Ss.encode=ij;Ss.decode=qP;bi.encode=oj;bi.decode=GP;function HP(e,t=new Map){const n=JP(e,t);return new ut(n,uf(e),t)}function KP(e,t=Xr.V4){return new vr(e.length(),XP(e),QP(e,t))}function YP(e,t=Xr.V4){return new Ci(vr.decode(e.data(),t),e.id(),e.isDelta())}function GP(e){return new bi(e.offset(),e.length())}function qP(e){return new Ss(e.length(),e.nullCount())}function XP(e){const t=[];for(let n,r=-1,i=-1,o=e.nodesLength();++rXe.encode(e,o));Ri.startFieldsVector(e,n.length);const r=Ri.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?Ri.createCustomMetadataVector(e,[...t.metadata].map(([o,s])=>{const a=e.createString(`${o}`),l=e.createString(`${s}`);return po.startKeyValue(e),po.addKey(e,a),po.addValue(e,l),po.endKeyValue(e)})):-1;return Ri.startSchema(e),Ri.addFields(e,r),Ri.addEndianness(e,sj?q1.Little:q1.Big),i!==-1&&Ri.addCustomMetadata(e,i),Ri.endSchema(e)}function tj(e,t){let n=-1,r=-1,i=-1,o=t.type,s=t.typeId;je.isDictionary(o)?(s=o.dictionary.typeId,i=Lh.visit(o,e),r=Lh.visit(o.dictionary,e)):r=Lh.visit(o,e);const a=(o.children||[]).map(c=>Xe.encode(e,c)),l=Kr.createChildrenVector(e,a),u=t.metadata&&t.metadata.size>0?Kr.createCustomMetadataVector(e,[...t.metadata].map(([c,f])=>{const p=e.createString(`${c}`),h=e.createString(`${f}`);return po.startKeyValue(e),po.addKey(e,p),po.addValue(e,h),po.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),Kr.startField(e),Kr.addType(e,r),Kr.addTypeType(e,s),Kr.addChildren(e,l),Kr.addNullable(e,!!t.nullable),n!==-1&&Kr.addName(e,n),i!==-1&&Kr.addDictionary(e,i),u!==-1&&Kr.addCustomMetadata(e,u),Kr.endField(e)}function nj(e,t){const n=t.nodes||[],r=t.buffers||[];io.startNodesVector(e,n.length),n.slice().reverse().forEach(s=>Ss.encode(e,s));const i=e.endVector();io.startBuffersVector(e,r.length),r.slice().reverse().forEach(s=>bi.encode(e,s));const o=e.endVector();return io.startRecordBatch(e),io.addLength(e,new gs(t.length,0)),io.addNodes(e,i),io.addBuffers(e,o),io.endRecordBatch(e)}function rj(e,t){const n=vr.encode(e,t.data);return zs.startDictionaryBatch(e),zs.addId(e,new gs(t.id,0)),zs.addIsDelta(e,t.isDelta),zs.addData(e,n),zs.endDictionaryBatch(e)}function ij(e,t){return UP.createFieldNode(e,new gs(t.length,0),new gs(t.nullCount,0))}function oj(e,t){return zP.createBuffer(e,new gs(t.offset,0),new gs(t.length,0))}const sj=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256}();var dE=W.ByteBuffer;const Dg=e=>`Expected ${gt[e]} Message in stream, but was null or length 0.`,Fg=e=>`Header pointer of flatbuffer-encoded ${gt[e]} Message is null or length 0.`,pE=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,hE=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class mE{constructor(t){this.source=t instanceof rd?t:new rd(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?$t:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(Dg(t));return n.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const n=Ye(this.source.read(t));if(n.byteLength[...i,...o.VALIDITY&&[o.VALIDITY]||[],...o.TYPE&&[o.TYPE]||[],...o.OFFSET&&[o.OFFSET]||[],...o.DATA&&[o.DATA]||[],...n(o.children)],[])}}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(Dg(t));return n.value}readSchema(){const t=gt.Schema,n=this.readMessage(t),r=n&&n.header();if(!n||!r)throw new Error(Fg(t));return r}}const Cp=4,ly="ARROW1",xu=new Uint8Array(ly.length);for(let e=0;e2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");je.isNull(t.type)||ti.call(this,i<=0?new Uint8Array(0):hg(n.offset,r,n.nullBitmap)),this.nodes.push(new Ss(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.indices)}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function ti(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new bi(this._byteLength,t)),this._byteLength+=t,this}function cj(e){const{type:t,length:n,typeIds:r,valueOffsets:i}=e;if(ti.call(this,r),t.mode===Yi.Sparse)return uy.call(this,e);if(t.mode===Yi.Dense){if(e.offset<=0)return ti.call(this,i),uy.call(this,e);{const o=r.reduce((c,f)=>Math.max(c,f),r[0]),s=new Int32Array(o+1),a=new Int32Array(o+1).fill(-1),l=new Int32Array(n),u=pg(-i[0],n,i);for(let c,f,p=-1;++p=e.length?ti.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?ti.call(this,hg(e.offset,e.length,t)):ti.call(this,qf(e))}function jo(e){return ti.call(this,e.values.subarray(0,e.length*e.stride))}function gE(e){const{length:t,values:n,valueOffsets:r}=e,i=r[0],o=r[t],s=Math.min(o-i,n.byteLength-i);return ti.call(this,pg(-r[0],t,r)),ti.call(this,n.subarray(i,i+s)),this}function jg(e){const{length:t,valueOffsets:n}=e;return n&&ti.call(this,pg(n[0],t,n)),this.visit(e.getChildAt(0))}function uy(e){return this.visitMany(e.type.children.map((t,n)=>e.getChildAt(n)).filter(Boolean))[0]}rn.prototype.visitBool=fj;rn.prototype.visitInt=jo;rn.prototype.visitFloat=jo;rn.prototype.visitUtf8=gE;rn.prototype.visitBinary=gE;rn.prototype.visitFixedSizeBinary=jo;rn.prototype.visitDate=jo;rn.prototype.visitTimestamp=jo;rn.prototype.visitTime=jo;rn.prototype.visitDecimal=jo;rn.prototype.visitList=jg;rn.prototype.visitStruct=uy;rn.prototype.visitUnion=cj;rn.prototype.visitInterval=jo;rn.prototype.visitFixedSizeList=jg;rn.prototype.visitMap=jg;class Lg extends xs{constructor(t){super(),this._position=0,this._started=!1,this._sink=new zl,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,gr(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,n){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 ko(t)?t.then(n=>this.writeAll(n)):Ji(t)?Ug(this,t):zg(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,n=null){return t===this._sink||t instanceof zl?this._sink=t:(this._sink=new zl,t&&S5(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&_5(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,(!n||!n.compareTo(this._schema))&&(n===null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(t){let n=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof et&&!(n=t.schema))return this.finish()&&void 0;if(t instanceof Gn&&!(n=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!n.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}t instanceof Gn?t instanceof Bp||this._writeRecordBatch(t):t instanceof et?this.writeAll(t.chunks):ii(t)&&this.writeAll(t)}_writeMessage(t,n=8){const r=n-1,i=Ln.encode(t),o=i.byteLength,s=this._writeLegacyIpcFormat?4:8,a=o+s+r&~r,l=a-o-s;return t.headerType===gt.RecordBatch?this._recordBatchBlocks.push(new Bo(a,t.bodyLength,this._position)):t.headerType===gt.DictionaryBatch&&this._dictionaryBlocks.push(new Bo(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),o>0&&this._write(i),this._writePadding(l)}_write(t){if(this._started){const n=Ye(t);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(t){return this._writeMessage(Ln.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(xu)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:n,nodes:r,bufferRegions:i,buffers:o}=rn.assemble(t),s=new vr(t.length,r,i),a=Ln.from(s,n);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(o)}_writeDictionaryBatch(t,n,r=!1){this._dictionaryDeltaOffsets.set(n,t.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:i,nodes:o,bufferRegions:s,buffers:a}=rn.assemble(t),l=new vr(t.length,o,s),u=new Ci(l,n,r),c=Ln.from(u,i);return this._writeMessage(c)._writeBodyBuffers(a)}_writeBodyBuffers(t){let n,r,i;for(let o=-1,s=t.length;++o0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[n,r]of t.dictionaries){let i=this._dictionaryDeltaOffsets.get(n)||0;if(i===0||(r=r.slice(i)).length>0){const o="chunks"in r?r.chunks:[r];for(const s of o)this._writeDictionaryBatch(s,n,i>0),i+=s.length}}return this}}class Ng extends Lg{static writeAll(t,n){const r=new Ng(n);return ko(t)?t.then(i=>r.writeAll(i)):Ji(t)?Ug(r,t):zg(r,t)}}class $g extends Lg{constructor(){super(),this._autoDestroy=!0}static writeAll(t){const n=new $g;return ko(t)?t.then(r=>n.writeAll(r)):Ji(t)?Ug(n,t):zg(n,t)}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const n=wu.encode(new wu(t,Xr.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function zg(e,t){let n=t;t instanceof et&&(n=t.chunks,e.reset(void 0,t.schema));for(const r of n)e.write(r);return e.finish()}async function Ug(e,t){for await(const n of t)e.write(n);return e.finish()}const Nh=new Uint8Array(0),vE=e=>[Nh,Nh,new Uint8Array(e),Nh];function dj(e,t,n=t.reduce((r,i)=>Math.max(r,i.length),0)){let r,i,o=-1,s=t.length;const a=[...e.fields],l=[],u=(n+63&-64)>>3;for(;++ot)),e)}function bE(e,t){return hj(e,t.map(n=>n instanceof En?n.chunks.map(r=>r.data):[n.data]))}function hj(e,t){const n=[...e.fields],r=[],i={numBatches:t.reduce((f,p)=>Math.max(f,p.length),0)};let o=0,s=0,a=-1,l=t.length,u,c=[];for(;i.numBatches-- >0;){for(s=Number.POSITIVE_INFINITY,a=-1;++a0&&(r[o++]=[s,c.slice()]))}return[e=new ut(n,e.metadata),r.map(f=>new Gn(e,...f))]}function mj(e,t,n,r,i){let o,s,a=0,l=-1,u=r.length;const c=(t+63&-64)>>3;for(;++l=t?a===t?n[l]=o:(n[l]=o.slice(0,t),o=o.slice(t,a-t),i.numBatches=Math.max(i.numBatches,r[l].unshift(o))):((s=e[l]).nullable||(e[l]=s.clone({nullable:!0})),n[l]=o?o._changeLengthAndBackfillNullBitmap(t):ue.new(s.type,0,t,t,vE(c)));return n}class It extends qe{constructor(t,n){super(),this._children=n,this.numChildren=t.childData.length,this._bindDataAccessors(this.data=t)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${P[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(t,n=this._children){return qe.new(t,n)}concat(...t){return En.concat(this,...t)}slice(t,n){return N2(this,t,n,this._sliceInternal)}isValid(t){if(this.nullCount>0){const n=this.offset+t;return(this.nullBitmap[n>>3]&1<=this.numChildren?null:(this._children||(this._children=[]))[t]||(this._children[t]=qe.new(this.data.childData[t]))}toJSON(){return[...this]}_sliceInternal(t,n,r){return t.clone(t.data.slice(n,r-n),null)}_bindDataAccessors(t){}}It.prototype[Symbol.isConcatSpreadable]=!0;class yj extends It{asUtf8(){return qe.new(this.data.clone(new ja))}}class gj extends It{static from(t){return vs(()=>new mu,t)}}class Vg extends It{static from(...t){return t.length===2?vs(()=>t[1]===Ti.DAY?new Y5:new M1,t[0]):vs(()=>new M1,t[0])}}class vj extends Vg{}class bj extends Vg{}class wj extends It{}class Wg extends It{constructor(t){super(t),this.indices=qe.new(t.clone(this.type.indices))}static from(...t){if(t.length===3){const[n,r,i]=t,o=new Ao(n.type,r,null,null);return qe.new(ue.Dictionary(o,0,i.length,0,null,i,n))}return vs(()=>t[0].type,t[0])}get dictionary(){return this.data.dictionary}reverseLookup(t){return this.dictionary.indexOf(t)}getKey(t){return this.indices.get(t)}getValue(t){return this.dictionary.get(t)}setKey(t,n){return this.indices.set(t,n)}setValue(t,n){return this.dictionary.set(t,n)}}Wg.prototype.indices=null;class xj extends It{}class Sj extends It{}class Op extends It{static from(t){let n=Ij(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let r=Ej(t.constructor)||n;if(n===null&&(n=r),n&&n===r){let i=new n,o=t.byteLength/i.ArrayType.BYTES_PER_ELEMENT;if(!_j(n,t.constructor))return qe.new(ue.Float(i,0,o,0,null,t))}}if(n)return vs(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${t.constructor.name}`):new TypeError("Unrecognized FloatVector input")}}class wE extends Op{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}}class xE extends Op{}class SE extends Op{}const _j=(e,t)=>e===Sp&&t!==Uint16Array,Ej=e=>{switch(e){case Uint16Array:return Sp;case Float32Array:return _g;case Float64Array:return Eg;default:return null}},Ij=e=>{switch(e){case wE:return Sp;case xE:return _g;case SE:return Eg;default:return null}};class Hg extends It{}class Tj extends Hg{}class Cj extends Hg{}class ui extends It{static from(...t){let[n,r=!1]=t,i=Aj(this,r);if(n instanceof ArrayBuffer||ArrayBuffer.isView(n)){let o=kj(n.constructor,r)||i;if(i===null&&(i=o),i&&i===o){let s=new i,a=n.byteLength/s.ArrayType.BYTES_PER_ELEMENT;return Oj(i,n.constructor)&&(a*=.5),qe.new(ue.Int(s,0,a,0,null,n))}}if(i)return vs(()=>new i,n);throw n instanceof DataView||n instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${n.constructor.name}`):new TypeError("Unrecognized IntVector input")}}class _E extends ui{}class EE extends ui{}class IE extends ui{}class TE extends ui{toBigInt64Array(){return T5(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}}class CE extends ui{}class OE extends ui{}class kE extends ui{}class AE extends ui{toBigUint64Array(){return C5(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}}const Oj=(e,t)=>(e===Fa||e===Pa)&&(t===Int32Array||t===Uint32Array),kj=(e,t)=>{switch(e){case Int8Array:return vg;case Int16Array:return bg;case Int32Array:return t?Fa:hs;case Ja:return Fa;case Uint8Array:return wg;case Uint16Array:return xg;case Uint32Array:return t?Pa:Sg;case zu:return Pa;default:return null}},Aj=(e,t)=>{switch(e){case _E:return vg;case EE:return bg;case IE:return t?Fa:hs;case TE:return Fa;case CE:return wg;case OE:return xg;case kE:return t?Pa:Sg;case AE:return Pa;default:return null}};class Bj extends It{}class Rj extends It{asList(){const t=this.type.children[0];return qe.new(this.data.clone(new Na(t)))}bind(t){const n=this.getChildAt(0),{[t]:r,[t+1]:i}=this.valueOffsets;return new P2(n.slice(r,i))}}class Mj extends It{}const Dj=Symbol.for("rowIndex");class kp extends It{bind(t){const n=this._row||(this._row=new j2(this)),r=Object.create(n);return r[Dj]=t,r}}class Xu extends It{}class Fj extends Xu{}class Pj extends Xu{}class jj extends Xu{}class Lj extends Xu{}class Qu extends It{}class Nj extends Qu{}class $j extends Qu{}class zj extends Qu{}class Uj extends Qu{}class Kg extends It{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}}class Vj extends Kg{get valueOffsets(){return this.data.valueOffsets}}class Wj extends Kg{}class Hj extends It{static from(t){return vs(()=>new ja,t)}asBinary(){return qe.new(this.data.clone(new hu))}}function Z1(e){return function(){return e(this)}}function Kj(e){return function(t){return e(this,t)}}function ew(e){return function(t,n){return e(this,t,n)}}class ke extends Ue{}const Yj=(e,t)=>864e5*e[t],Yg=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),Gj=(e,t)=>4294967296*(e[t+1]/1e3)+(e[t]>>>0)/1e3,qj=(e,t)=>4294967296*(e[t+1]/1e6)+(e[t]>>>0)/1e6,BE=e=>new Date(e),Xj=(e,t)=>BE(Yj(e,t)),Qj=(e,t)=>BE(Yg(e,t)),Jj=(e,t)=>null,RE=(e,t,n)=>{const{[n]:r,[n+1]:i}=t;return r!=null&&i!=null?e.subarray(r,i):null},Zj=({offset:e,values:t},n)=>{const r=e+n;return(t[r>>3]&1<Xj(e,t),DE=({values:e},t)=>Qj(e,t*2),ki=({stride:e,values:t},n)=>t[e*n],FE=({stride:e,values:t},n)=>uF(t[e*n]),Gg=({stride:e,values:t,type:n},r)=>Za.new(t.subarray(e*r,e*(r+1)),n.isSigned),eL=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),tL=({values:e,valueOffsets:t},n)=>RE(e,t,n),nL=({values:e,valueOffsets:t},n)=>{const r=RE(e,t,n);return r!==null?ty(r):null},rL=(e,t)=>e.type.bitWidth<64?ki(e,t):Gg(e,t),iL=(e,t)=>e.type.precision!==Dr.HALF?ki(e,t):FE(e,t),oL=(e,t)=>e.type.unit===Ti.DAY?ME(e,t):DE(e,t),PE=({values:e},t)=>1e3*Yg(e,t*2),jE=({values:e},t)=>Yg(e,t*2),LE=({values:e},t)=>Gj(e,t*2),NE=({values:e},t)=>qj(e,t*2),sL=(e,t)=>{switch(e.type.unit){case lt.SECOND:return PE(e,t);case lt.MILLISECOND:return jE(e,t);case lt.MICROSECOND:return LE(e,t);case lt.NANOSECOND:return NE(e,t)}},$E=({values:e,stride:t},n)=>e[t*n],zE=({values:e,stride:t},n)=>e[t*n],UE=({values:e},t)=>Za.signed(e.subarray(2*t,2*(t+1))),VE=({values:e},t)=>Za.signed(e.subarray(2*t,2*(t+1))),aL=(e,t)=>{switch(e.type.unit){case lt.SECOND:return $E(e,t);case lt.MILLISECOND:return zE(e,t);case lt.MICROSECOND:return UE(e,t);case lt.NANOSECOND:return VE(e,t)}},lL=({values:e},t)=>Za.decimal(e.subarray(4*t,4*(t+1))),uL=(e,t)=>{const n=e.getChildAt(0),{valueOffsets:r,stride:i}=e;return n.slice(r[t*i],r[t*i+1])},cL=(e,t)=>e.bind(t),fL=(e,t)=>e.bind(t),dL=(e,t)=>e.type.mode===Yi.Dense?WE(e,t):HE(e,t),WE=(e,t)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(e.valueOffsets[t]):null},HE=(e,t)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(t):null},pL=(e,t)=>e.getValue(e.getKey(t)),hL=(e,t)=>e.type.unit===Ma.DAY_TIME?KE(e,t):YE(e,t),KE=({values:e},t)=>e.subarray(2*t,2*(t+1)),YE=({values:e},t)=>{const n=e[t],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r},mL=(e,t)=>{const n=e.getChildAt(0),{stride:r}=e;return n.slice(t*r,(t+1)*r)};ke.prototype.visitNull=Jj;ke.prototype.visitBool=Zj;ke.prototype.visitInt=rL;ke.prototype.visitInt8=ki;ke.prototype.visitInt16=ki;ke.prototype.visitInt32=ki;ke.prototype.visitInt64=Gg;ke.prototype.visitUint8=ki;ke.prototype.visitUint16=ki;ke.prototype.visitUint32=ki;ke.prototype.visitUint64=Gg;ke.prototype.visitFloat=iL;ke.prototype.visitFloat16=FE;ke.prototype.visitFloat32=ki;ke.prototype.visitFloat64=ki;ke.prototype.visitUtf8=nL;ke.prototype.visitBinary=tL;ke.prototype.visitFixedSizeBinary=eL;ke.prototype.visitDate=oL;ke.prototype.visitDateDay=ME;ke.prototype.visitDateMillisecond=DE;ke.prototype.visitTimestamp=sL;ke.prototype.visitTimestampSecond=PE;ke.prototype.visitTimestampMillisecond=jE;ke.prototype.visitTimestampMicrosecond=LE;ke.prototype.visitTimestampNanosecond=NE;ke.prototype.visitTime=aL;ke.prototype.visitTimeSecond=$E;ke.prototype.visitTimeMillisecond=zE;ke.prototype.visitTimeMicrosecond=UE;ke.prototype.visitTimeNanosecond=VE;ke.prototype.visitDecimal=lL;ke.prototype.visitList=uL;ke.prototype.visitStruct=fL;ke.prototype.visitUnion=dL;ke.prototype.visitDenseUnion=WE;ke.prototype.visitSparseUnion=HE;ke.prototype.visitDictionary=pL;ke.prototype.visitInterval=hL;ke.prototype.visitIntervalDayTime=KE;ke.prototype.visitIntervalYearMonth=YE;ke.prototype.visitFixedSizeList=mL;ke.prototype.visitMap=cL;const Ap=new ke;class Ae extends Ue{}function yL(e,t){return t===null&&e.length>0?0:-1}function gL(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const i of wp(n,e.data.offset+(t||0),e.length,n,T2)){if(!i)return r;++r}return-1}function $e(e,t,n){if(t===void 0)return-1;if(t===null)return gL(e,n);const r=el(t);for(let i=(n||0)-1,o=e.length;++ii&1<0)return vL(e);const{type:t,typeId:n,length:r}=e;return e.stride===1&&(n===P.Timestamp||n===P.Int&&t.bitWidth!==64||n===P.Time&&t.bitWidth!==64||n===P.Float&&t.precision>0)?e.values.subarray(0,r)[Symbol.iterator]():function*(i){for(let o=-1;++oe+t,$h=e=>`Cannot compute the byte width of variable-width column ${e}`;class bL extends Ue{visitNull(t){return 0}visitInt(t){return t.bitWidth/8}visitFloat(t){return t.ArrayType.BYTES_PER_ELEMENT}visitBinary(t){throw new Error($h(t))}visitUtf8(t){throw new Error($h(t))}visitBool(t){return 1/8}visitDecimal(t){return 16}visitDate(t){return(t.unit+1)*4}visitTime(t){return t.bitWidth/8}visitTimestamp(t){return t.unit===lt.SECOND?4:8}visitInterval(t){return(t.unit+1)*4}visitList(t){throw new Error($h(t))}visitStruct(t){return this.visitFields(t.children).reduce(wl,0)}visitUnion(t){return this.visitFields(t.children).reduce(wl,0)}visitFixedSizeBinary(t){return t.byteWidth}visitFixedSizeList(t){return t.listSize*this.visitFields(t.children).reduce(wl,0)}visitMap(t){return this.visitFields(t.children).reduce(wl,0)}visitDictionary(t){return this.visit(t.indices)}visitFields(t){return(t||[]).map(n=>this.visit(n.type))}visitSchema(t){return this.visitFields(t.fields).reduce(wl,0)}}const QE=new bL;class wL extends Ue{visitNull(){return Mj}visitBool(){return gj}visitInt(){return ui}visitInt8(){return _E}visitInt16(){return EE}visitInt32(){return IE}visitInt64(){return TE}visitUint8(){return CE}visitUint16(){return OE}visitUint32(){return kE}visitUint64(){return AE}visitFloat(){return Op}visitFloat16(){return wE}visitFloat32(){return xE}visitFloat64(){return SE}visitUtf8(){return Hj}visitBinary(){return yj}visitFixedSizeBinary(){return xj}visitDate(){return Vg}visitDateDay(){return vj}visitDateMillisecond(){return bj}visitTimestamp(){return Xu}visitTimestampSecond(){return Fj}visitTimestampMillisecond(){return Pj}visitTimestampMicrosecond(){return jj}visitTimestampNanosecond(){return Lj}visitTime(){return Qu}visitTimeSecond(){return Nj}visitTimeMillisecond(){return $j}visitTimeMicrosecond(){return zj}visitTimeNanosecond(){return Uj}visitDecimal(){return wj}visitList(){return Bj}visitStruct(){return kp}visitUnion(){return Kg}visitDenseUnion(){return Vj}visitSparseUnion(){return Wj}visitDictionary(){return Wg}visitInterval(){return Hg}visitIntervalDayTime(){return Tj}visitIntervalYearMonth(){return Cj}visitFixedSizeList(){return Sj}visitMap(){return Rj}}const JE=new wL;qe.new=xL;qe.from=SL;function xL(e,...t){return new(JE.getVisitFn(e)())(e,...t)}function vs(e,t){if(ii(t))return qe.from({nullValues:[null,void 0],type:e(),values:t});if(Ji(t))return qe.from({nullValues:[null,void 0],type:e(),values:t});const{values:n=[],type:r=e(),nullValues:i=[null,void 0]}={...t};return ii(n)?qe.from({nullValues:i,...t,type:r}):qe.from({nullValues:i,...t,type:r})}function SL(e){const{values:t=[],...n}={nullValues:[null,void 0],...e};if(ii(t)){const r=[...Ut.throughIterable(n)(t)];return r.length===1?r[0]:En.concat(r)}return(async r=>{const i=Ut.throughAsyncIterable(n);for await(const o of i(t))r.push(o);return r.length===1?r[0]:En.concat(r)})([])}It.prototype.get=function(t){return Ap.visit(this,t)};It.prototype.set=function(t,n){return Tp.visit(this,t,n)};It.prototype.indexOf=function(t,n){return qE.visit(this,t,n)};It.prototype.toArray=function(){return XE.visit(this)};It.prototype.getByteWidth=function(){return QE.visit(this.type)};It.prototype[Symbol.iterator]=function(){return qg.visit(this)};It.prototype._bindDataAccessors=TL;Object.keys(P).map(e=>P[e]).filter(e=>typeof e=="number").filter(e=>e!==P.NONE).forEach(e=>{const t=JE.visit(e);t.prototype.get=Kj(Ap.getVisitFn(e)),t.prototype.set=ew(Tp.getVisitFn(e)),t.prototype.indexOf=ew(qE.getVisitFn(e)),t.prototype.toArray=Z1(XE.getVisitFn(e)),t.prototype.getByteWidth=_L(QE.getVisitFn(e)),t.prototype[Symbol.iterator]=Z1(qg.getVisitFn(e))});function _L(e){return function(){return e(this.type)}}function EL(e){return function(t){return this.isValid(t)?e.call(this,t):null}}function IL(e){return function(t,n){L5(this.nullBitmap,this.offset+t,n!=null)&&e.call(this,t,n)}}function TL(){const e=this.nullBitmap;e&&e.byteLength>0&&(this.get=EL(this.get),this.set=IL(this.set))}class et extends En{constructor(...t){let n=null;t[0]instanceof ut&&(n=t.shift());let r=$2(Gn,t);if(!n&&!(n=r[0]&&r[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");r[0]||(r[0]=new Bp(n)),super(new oi(n.fields),r),this._schema=n,this._chunks=r}static empty(t=new ut([])){return new et(t,[])}static from(t){if(!t)return et.empty();if(typeof t=="object"){let r=ii(t.values)?CL(t):Ji(t.values)?OL(t):null;if(r!==null)return r}let n=ni.from(t);return ko(n)?(async()=>await et.from(await n))():n.isSync()&&(n=n.open())?n.schema?new et(n.schema,[...n]):et.empty():(async r=>{const i=await r,o=i.schema,s=[];if(o){for await(let a of i)s.push(a);return new et(o,s)}return et.empty()})(n.open())}static async fromAsync(t){return await et.from(t)}static fromStruct(t){return et.new(t.data.childData,t.type.children)}static new(...t){return new et(...pj(VF(t)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(t=this._chunks){return new et(this._schema,t)}getColumn(t){return this.getColumnAt(this.getColumnIndex(t))}getColumnAt(t){return this.getChildAt(t)}getColumnIndex(t){return this._schema.fields.findIndex(n=>n.name===t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let n,r;const i=this._schema.fields,o=this._children||(this._children=[]);if(r=o[t])return r;if(n=i[t]){const s=this._chunks.map(a=>a.getChildAt(t)).filter(a=>a!=null);if(s.length>0)return o[t]=new Jr(n,s)}return null}serialize(t="binary",n=!0){return(n?Ng:$g).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...t){const n=this._schema.fields.reduce((r,i,o)=>r.set(i.name,o),new Map);return this.selectAt(...t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(...t){const n=this._schema.selectAt(...t);return new et(n,this._chunks.map(({length:r,data:{childData:i}})=>new Gn(n,r,t.map(o=>i[o]).filter(Boolean))))}assign(t){const n=this._schema.fields,[r,i]=t.schema.fields.reduce((a,l,u)=>{const[c,f]=a,p=n.findIndex(h=>h.name===l.name);return~p?f[p]=u:c.push(u),a},[[],[]]),o=this._schema.assign(t.schema),s=[...n.map((a,l,u,c=i[l])=>c===void 0?this.getColumnAt(l):t.getColumnAt(c)),...r.map(a=>t.getColumnAt(a))].filter(Boolean);return new et(...bE(o,s))}}function CL(e){const{type:t}=e;return t instanceof oi?et.fromStruct(kp.from(e)):null}function OL(e){const{type:t}=e;return t instanceof oi?kp.from(e).then(n=>et.fromStruct(n)):null}class Gn extends kp{constructor(...t){let n,r=t[0],i;if(t[1]instanceof ue)[,n,i]=t;else{const o=r.fields,[,s,a]=t;n=ue.Struct(new oi(o),0,s,0,null,a)}super(n,i),this._schema=r}static from(t){return ii(t.values),et.from(t)}static new(...t){const[n,r]=z2(t),i=r.filter(o=>o instanceof qe);return new Gn(...dj(new ut(n),i.map(o=>o.data)))}clone(t,n=this._children){return new Gn(this._schema,t,n)}concat(...t){const n=this._schema,r=En.flatten(this,...t);return new et(n,r.map(({data:i})=>new Gn(n,i)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Xg.collect(this))}select(...t){const n=this._schema.fields.reduce((r,i,o)=>r.set(i.name,o),new Map);return this.selectAt(...t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(...t){const n=this._schema.selectAt(...t),r=t.map(i=>this.data.childData[i]).filter(Boolean);return new Gn(n,this.length,r)}}class Bp extends Gn{constructor(t){super(t,0,t.fields.map(n=>ue.new(n.type,0,0,0)))}}class Xg extends Ue{constructor(){super(...arguments),this.dictionaries=new Map}static collect(t){return new Xg().visit(t.data,new oi(t.schema.fields)).dictionaries}visit(t,n){return je.isDictionary(n)?this.visitDictionary(t,n):(t.childData.forEach((r,i)=>this.visit(r,n.children[i].type)),this)}visitDictionary(t,n){const r=t.dictionary;return r&&r.length>0&&this.dictionaries.set(n.id,r),this}}class ni extends xs{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 n=this._impl.open(t);return ko(n)?n.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 ur.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return ur.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,n){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof ni?t:ny(t)?RL(t):x2(t)?FL(t):ko(t)?(async()=>await ni.from(await t))():S2(t)||fg(t)||_2(t)||Ji(t)?DL(new ys(t)):ML(new rd(t))}static readAll(t){return t instanceof ni?t.isSync()?tw(t):nw(t):ny(t)||ArrayBuffer.isView(t)||ii(t)||w2(t)?tw(t):nw(t)}}class od extends ni{constructor(t){super(t),this._impl=t}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}}class sd extends ni{constructor(t){super(t),this._impl=t}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class ZE extends od{constructor(t){super(t),this._impl=t}}class kL extends sd{constructor(t){super(t),this._impl=t}}class eI{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,n){return new Gn(this.schema,t.length,this._loadVectors(t,n,this.schema.fields))}_loadDictionaryBatch(t,n){const{id:r,isDelta:i,data:o}=t,{dictionaries:s,schema:a}=this,l=s.get(r);if(i||!l){const u=a.dictionaries.get(r);return l&&i?l.concat(qe.new(this._loadVectors(o,n,[u])[0])):qe.new(this._loadVectors(o,n,[u])[0])}return l}_loadVectors(t,n,r){return new lE(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}class ad extends eI{constructor(t,n){super(n),this._reader=ny(t)?new lj(this._handle=t):new mE(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=nI(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):$t}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):$t}next(){if(this.closed)return $t;let t,{_reader:n}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength),o=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bp(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class ld extends eI{constructor(t,n){super(n),this._reader=new aj(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(t){return this.closed||(this.autoDestroy=nI(this,t),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(t):$t}async return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(t):$t}async next(){if(this.closed)return $t;let t,{_reader:n}=this;for(;t=await this._readNextMessageAndValidate();)if(t.isSchema())await this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=await n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=await n.readMessageBody(t.bodyLength),o=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bp(this.schema)}):await this.return()}async _readNextMessageAndValidate(t){return await this._reader.readMessage(t)}}class tI extends ad{constructor(t,n){super(t instanceof N1?t:new N1(t),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){if(this.closed)return null;this._footer||this.open();const n=this._footer&&this._footer.getRecordBatch(t);if(n&&this._handle.seek(n.offset)){const r=this._reader.readMessage(gt.RecordBatch);if(r&&r.isRecordBatch()){const i=r.header(),o=this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(i,o)}}return null}_readDictionaryBatch(t){const n=this._footer&&this._footer.getDictionaryBatch(t);if(n&&this._handle.seek(n.offset)){const r=this._reader.readMessage(gt.DictionaryBatch);if(r&&r.isDictionaryBatch()){const i=r.header(),o=this._reader.readMessageBody(r.bodyLength),s=this._loadDictionaryBatch(i,o);this.dictionaries.set(i.id,s)}}}_readFooter(){const{_handle:t}=this,n=t.size-yE,r=t.readInt32(n),i=t.readAt(n-r,r);return wu.decode(i)}_readNextMessageAndValidate(t){if(this._footer||this.open(),this._footer&&this._recordBatchIndex=4?Pg(t)?new ZE(new tI(e.read())):new od(new ad(e)):new od(new ad(function*(){}()))}async function DL(e){const t=await e.peek(qu+7&-8);return t&&t.byteLength>=4?Pg(t)?new ZE(new tI(await e.read())):new sd(new ld(e)):new sd(new ld(async function*(){}()))}async function FL(e){const{size:t}=await e.stat(),n=new id(e,t);return t>=uj&&Pg(await n.readAt(0,qu+7&-8))?new kL(new AL(n)):new sd(new ld(n))}function PL(e,t){if(Ji(e))return LL(e,t);if(ii(e))return jL(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function jL(e,t){let n=null;const r=t&&t.type==="bytes"||!1,i=t&&t.highWaterMark||2**24;return new ReadableStream({...t,start(s){o(s,n||(n=e[Symbol.iterator]()))},pull(s){n?o(s,n):s.close()},cancel(){(n&&n.return&&n.return()||!0)&&(n=null)}},{highWaterMark:r?i:void 0,...t});function o(s,a){let l,u=null,c=s.desiredSize||null;for(;!(u=a.next(r?c:null)).done;)if(ArrayBuffer.isView(u.value)&&(l=Ye(u.value))&&(c!=null&&r&&(c=c-l.byteLength+1),u.value=l),s.enqueue(u.value),c!=null&&--c<=0)return;s.close()}}function LL(e,t){let n=null;const r=t&&t.type==="bytes"||!1,i=t&&t.highWaterMark||2**24;return new ReadableStream({...t,async start(s){await o(s,n||(n=e[Symbol.asyncIterator]()))},async pull(s){n?await o(s,n):s.close()},async cancel(){(n&&n.return&&await n.return()||!0)&&(n=null)}},{highWaterMark:r?i:void 0,...t});async function o(s,a){let l,u=null,c=s.desiredSize||null;for(;!(u=await a.next(r?c:null)).done;)if(ArrayBuffer.isView(u.value)&&(l=Ye(u.value))&&(c!=null&&r&&(c=c-l.byteLength+1),u.value=l),s.enqueue(u.value),c!=null&&--c<=0)return;s.close()}}function NL(e){return new $L(e)}class $L{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;const{["readableStrategy"]:n,["writableStrategy"]:r,["queueingStrategy"]:i="count",...o}=t;this._controller=null,this._builder=Ut.new(o),this._getSize=i!=="bytes"?rw:iw;const{["highWaterMark"]:s=i==="bytes"?2**14:1e3}={...n},{["highWaterMark"]:a=i==="bytes"?2**14:1e3}={...r};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:l=>{this._maybeFlush(this._builder,this._controller=l)},start:l=>{this._maybeFlush(this._builder,this._controller=l)}},{highWaterMark:s,size:i!=="bytes"?rw:iw}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:l=>this._writeValueAndReturnChunkSize(l)})}_writeValueAndReturnChunkSize(t){const n=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-n}_maybeFlush(t,n){n!==null&&(this._bufferedSize>=n.desiredSize&&++this._numChunks&&this._enqueue(n,t.toVector()),t.finished&&((t.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(n,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(n,null)))}_enqueue(t,n){this._bufferedSize=0,this._controller=null,n===null?t.close():t.enqueue(n)}}const rw=e=>e.length,iw=e=>e.byteLength;function zL(e,t){const n=new zl;let r=null;const i=new ReadableStream({async cancel(){await n.close()},async start(a){await s(a,r||(r=await o()))},async pull(a){r?await s(a,r):a.close()}});return{writable:new WritableStream(n,{highWaterMark:2**14,...e}),readable:i};async function o(){return await(await ni.from(n)).open(t)}async function s(a,l){let u=a.desiredSize,c=null;for(;!(c=await l.next()).done;)if(a.enqueue(c.value),u!=null&&--u<=0)return;a.close()}}function UL(e,t){const n=new this(e),r=new ys(n),i=new ReadableStream({type:"bytes",async cancel(){await r.cancel()},async pull(s){await o(s)},async start(s){await o(s)}},{highWaterMark:2**14,...t});return{writable:new WritableStream(n,e),readable:i};async function o(s){let a=null,l=s.desiredSize;for(;a=await r.read(l||null);)if(s.enqueue(a),l!=null&&(l-=a.byteLength)<=0)return;s.close()}}class ha{eq(t){return t instanceof ha||(t=new ma(t)),new VL(this,t)}le(t){return t instanceof ha||(t=new ma(t)),new WL(this,t)}ge(t){return t instanceof ha||(t=new ma(t)),new HL(this,t)}lt(t){return new cf(this.ge(t))}gt(t){return new cf(this.le(t))}ne(t){return new cf(this.eq(t))}}class ma extends ha{constructor(t){super(),this.v=t}}class rI extends ha{constructor(t){super(),this.name=t}bind(t){if(!this.colidx){this.colidx=-1;const r=t.schema.fields;for(let i=-1;++in.get(r)}}class Qg{and(...t){return new ev(this,...t)}or(...t){return new tv(this,...t)}not(){return new cf(this)}}class Jg extends Qg{constructor(t,n){super(),this.left=t,this.right=n}bind(t){return this.left instanceof ma?this.right instanceof ma?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof ma?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}class Zg extends Qg{constructor(...t){super(),this.children=t}}Zg.prototype.children=Object.freeze([]);class ev extends Zg{constructor(...t){t=t.reduce((n,r)=>n.concat(r instanceof ev?r.children:r),[]),super(...t)}bind(t){const n=this.children.map(r=>r.bind(t));return(r,i)=>n.every(o=>o(r,i))}}class tv extends Zg{constructor(...t){t=t.reduce((n,r)=>n.concat(r instanceof tv?r.children:r),[]),super(...t)}bind(t){const n=this.children.map(r=>r.bind(t));return(r,i)=>n.some(o=>o(r,i))}}class VL extends Jg{_bindLitLit(t,n,r){const i=n.v==r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),o=r.bind(t);return(s,a)=>i(s,a)==o(s,a)}_bindColLit(t,n,r){const i=n.bind(t);if(n.vector instanceof Wg){let o;const s=n.vector;return s.dictionary!==this.lastDictionary?(o=s.reverseLookup(r.v),this.lastDictionary=s.dictionary,this.lastKey=o):o=this.lastKey,o===-1?()=>!1:a=>s.getKey(a)===o}else return(o,s)=>i(o,s)==r.v}_bindLitCol(t,n,r){return this._bindColLit(t,r,n)}}class WL extends Jg{_bindLitLit(t,n,r){const i=n.v<=r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),o=r.bind(t);return(s,a)=>i(s,a)<=o(s,a)}_bindColLit(t,n,r){const i=n.bind(t);return(o,s)=>i(o,s)<=r.v}_bindLitCol(t,n,r){const i=r.bind(t);return(o,s)=>n.v<=i(o,s)}}class HL extends Jg{_bindLitLit(t,n,r){const i=n.v>=r.v;return()=>i}_bindColCol(t,n,r){const i=n.bind(t),o=r.bind(t);return(s,a)=>i(s,a)>=o(s,a)}_bindColLit(t,n,r){const i=n.bind(t);return(o,s)=>i(o,s)>=r.v}_bindLitCol(t,n,r){const i=r.bind(t);return(o,s)=>n.v>=i(o,s)}}class cf extends Qg{constructor(t){super(),this.child=t}bind(t){const n=this.child.bind(t);return(r,i)=>!n(r,i)}}et.prototype.countBy=function(e){return new Ju(this.chunks).countBy(e)};et.prototype.scan=function(e,t){return new Ju(this.chunks).scan(e,t)};et.prototype.scanReverse=function(e,t){return new Ju(this.chunks).scanReverse(e,t)};et.prototype.filter=function(e){return new Ju(this.chunks).filter(e)};class Ju extends et{filter(t){return new nv(this.chunks,t)}scan(t,n){const r=this.chunks,i=r.length;for(let o=-1;++o=0;){const s=r[o];n&&n(s);for(let a=s.length;--a>=0;)t(a,s)}}countBy(t){const n=this.chunks,r=n.length,i=typeof t=="string"?new rI(t):t;i.bind(n[r-1]);const o=i.vector;if(!je.isDictionary(o.type))throw new Error("countBy currently only supports dictionary-encoded columns");const s=Math.ceil(Math.log(o.length)/Math.log(256)),a=s==4?Uint32Array:s>=2?Uint16Array:Uint8Array,l=new a(o.dictionary.length);for(let u=-1;++u=0;){const s=r[o],a=this._predicate.bind(s);let l=!1;for(let u=s.length;--u>=0;)a(u,s)&&(n&&!l&&(n(s),l=!0),t(u,s))}}count(){let t=0;const n=this._chunks,r=n.length;for(let i=-1;++i=2?Uint16Array:Uint8Array,l=new a(o.dictionary.length);for(let u=-1;++u=o.headerRows&&a=o.headerColumns;if(l){var f=["blank"];return a>0&&f.push("level"+s),{type:"blank",classNames:f.join(" "),content:""}}else if(c){var p=a-o.headerColumns,f=["col_heading","level"+s,"col"+p];return{type:"columns",classNames:f.join(" "),content:o.getContent(o.columnsTable,p,s)}}else if(u){var h=s-o.headerRows,f=["row_heading","level"+a,"row"+h];return{type:"index",id:"T_"+o.uuid+"level"+a+"_row"+h,classNames:f.join(" "),content:o.getContent(o.indexTable,h,a)}}else{var h=s-o.headerRows,p=a-o.headerColumns,f=["data","row"+h,"col"+p],y=o.styler?o.getContent(o.styler.displayValuesTable,h,p):o.getContent(o.dataTable,h,p);return{type:"data",id:"T_"+o.uuid+"row"+h+"_col"+p,classNames:f.join(" "),content:y}}},this.getContent=function(s,a,l){var u=s.getColumnAt(l);if(u===null)return"";var c=o.getColumnTypeId(s,l);switch(c){case P.Timestamp:return o.nanosToDate(u.get(a));default:return u.get(a)}},this.dataTable=et.from(t),this.indexTable=et.from(n),this.columnsTable=et.from(r),this.styler=i?{caption:i.caption,displayValuesTable:et.from(i.displayValues),styles:i.styles,uuid:i.uuid}:void 0}return Object.defineProperty(e.prototype,"rows",{get:function(){return this.indexTable.length+this.columnsTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataRows",{get:function(){return this.dataTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.dataTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.indexTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){return{data:this.dataTable.serialize(),index:this.indexTable.serialize(),columns:this.columnsTable.serialize()}},e.prototype.getColumnTypeId=function(t,n){return t.schema.fields[n].type.typeId},e.prototype.nanosToDate=function(t){return new Date(t/1e6)},e}();/** + * @license + * Copyright 2018-2021 Streamlit Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var Ul=globalThis&&globalThis.__assign||function(){return Ul=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?e.argsDataframeToObject(t.dfs):{};n=Ul(Ul({},n),r);var i=!!t.disabled,o=t.theme;o&&KL(o);var s={disabled:i,args:n,theme:o},a=new CustomEvent(e.RENDER_EVENT,{detail:s});e.events.dispatchEvent(a)},e.argsDataframeToObject=function(t){var n=t.map(function(r){var i=r.key,o=r.value;return[i,e.toArrowTable(o)]});return Object.fromEntries(n)},e.toArrowTable=function(t){var n=t.data,r=n.data,i=n.index,o=n.columns,s=n.styler;return new ow(r,i,o,s)},e.sendBackMsg=function(t,n){window.parent.postMessage(Ul({isStreamlitMessage:!0,type:t},n),"*")},e}(),KL=function(e){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML=` + :root { + --primary-color: `+e.primaryColor+`; + --background-color: `+e.backgroundColor+`; + --secondary-background-color: `+e.secondaryBackgroundColor+`; + --text-color: `+e.textColor+`; + --font: `+e.font+`; + } + + body { + background-color: var(--background-color); + color: var(--text-color); + } + `};function YL(e){var t=!1;try{t=e instanceof BigInt64Array||e instanceof BigUint64Array}catch{}return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array||t}/** + * @license + * Copyright 2018-2021 Streamlit Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var oI=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),GL=function(e){oI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){kr.setFrameHeight()},t.prototype.componentDidUpdate=function(){kr.setFrameHeight()},t}($s.PureComponent);function qL(e){var t=function(n){oI(r,n);function r(i){var o=n.call(this,i)||this;return o.componentDidMount=function(){kr.events.addEventListener(kr.RENDER_EVENT,o.onRenderEvent),kr.setComponentReady()},o.componentDidUpdate=function(){o.state.componentError!=null&&kr.setFrameHeight()},o.componentWillUnmount=function(){kr.events.removeEventListener(kr.RENDER_EVENT,o.onRenderEvent)},o.onRenderEvent=function(s){var a=s;o.setState({renderData:a.detail})},o.render=function(){return o.state.componentError!=null?$s.createElement("div",null,$s.createElement("h1",null,"Component Error"),$s.createElement("span",null,o.state.componentError.message)):o.state.renderData==null?null:$s.createElement(e,{width:window.innerWidth,disabled:o.state.renderData.disabled,args:o.state.renderData.args,theme:o.state.renderData.theme})},o.state={renderData:void 0,componentError:void 0},o}return r.getDerivedStateFromError=function(i){return{componentError:i}},r}($s.PureComponent);return hC(t,e)}var sI={exports:{}};(function(e,t){(function(n,r){e.exports=r(B)})(YI,function(n){return function(r){var i={};function o(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return r[s].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=r,o.c=i,o.d=function(s,a,l){o.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,a){if(1&a&&(s=o(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var u in s)o.d(l,u,(function(c){return s[c]}).bind(null,u));return l},o.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(a,"a",a),a},o.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},o.p="",o(o.s=48)}([function(r,i){r.exports=n},function(r,i){var o=r.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(r,i,o){var s=o(26)("wks"),a=o(17),l=o(3).Symbol,u=typeof l=="function";(r.exports=function(c){return s[c]||(s[c]=u&&l[c]||(u?l:a)("Symbol."+c))}).store=s},function(r,i){var o=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(r,i,o){r.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,i){var o={}.hasOwnProperty;r.exports=function(s,a){return o.call(s,a)}},function(r,i,o){var s=o(7),a=o(16);r.exports=o(4)?function(l,u,c){return s.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},function(r,i,o){var s=o(10),a=o(35),l=o(23),u=Object.defineProperty;i.f=o(4)?Object.defineProperty:function(c,f,p){if(s(c),f=l(f,!0),s(p),a)try{return u(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(r,i){r.exports=function(o){try{return!!o()}catch{return!0}}},function(r,i,o){var s=o(40),a=o(22);r.exports=function(l){return s(a(l))}},function(r,i,o){var s=o(11);r.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(r,i){r.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(r,i){r.exports={}},function(r,i,o){var s=o(39),a=o(27);r.exports=Object.keys||function(l){return s(l,a)}},function(r,i){r.exports=!0},function(r,i,o){var s=o(3),a=o(1),l=o(53),u=o(6),c=o(5),f=function(p,h,y){var m,_,g,v=p&f.F,b=p&f.G,x=p&f.S,d=p&f.P,C=p&f.B,I=p&f.W,L=b?a:a[h]||(a[h]={}),R=L.prototype,A=b?s:x?s[h]:(s[h]||{}).prototype;for(m in b&&(y=h),y)(_=!v&&A&&A[m]!==void 0)&&c(L,m)||(g=_?A[m]:y[m],L[m]=b&&typeof A[m]!="function"?y[m]:C&&_?l(g,s):I&&A[m]==g?function(F){var V=function(H,te,D){if(this instanceof F){switch(arguments.length){case 0:return new F;case 1:return new F(H);case 2:return new F(H,te)}return new F(H,te,D)}return F.apply(this,arguments)};return V.prototype=F.prototype,V}(g):d&&typeof g=="function"?l(Function.call,g):g,d&&((L.virtual||(L.virtual={}))[m]=g,p&f.R&&R&&!R[m]&&u(R,m,g)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,r.exports=f},function(r,i){r.exports=function(o,s){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:s}}},function(r,i){var o=0,s=Math.random();r.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++o+s).toString(36))}},function(r,i,o){var s=o(22);r.exports=function(a){return Object(s(a))}},function(r,i){i.f={}.propertyIsEnumerable},function(r,i,o){var s=o(52)(!0);o(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,l=this._t,u=this._i;return u>=l.length?{value:void 0,done:!0}:(a=s(l,u),this._i+=a.length,{value:a,done:!1})})},function(r,i){var o=Math.ceil,s=Math.floor;r.exports=function(a){return isNaN(a=+a)?0:(a>0?s:o)(a)}},function(r,i){r.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(r,i,o){var s=o(11);r.exports=function(a,l){if(!s(a))return a;var u,c;if(l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a))||typeof(u=a.valueOf)=="function"&&!s(c=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(r,i){var o={}.toString;r.exports=function(s){return o.call(s).slice(8,-1)}},function(r,i,o){var s=o(26)("keys"),a=o(17);r.exports=function(l){return s[l]||(s[l]=a(l))}},function(r,i,o){var s=o(1),a=o(3),l=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(r.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,i,o){var s=o(7).f,a=o(5),l=o(2)("toStringTag");r.exports=function(u,c,f){u&&!a(u=f?u:u.prototype,l)&&s(u,l,{configurable:!0,value:c})}},function(r,i,o){o(62);for(var s=o(3),a=o(6),l=o(12),u=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;y--;)delete f.prototype[l[y]];return f()};r.exports=Object.create||function(p,h){var y;return p!==null?(c.prototype=s(p),y=new c,c.prototype=null,y[u]=p):y=f(),h===void 0?y:a(y,h)}},function(r,i,o){var s=o(5),a=o(9),l=o(57)(!1),u=o(25)("IE_PROTO");r.exports=function(c,f){var p,h=a(c),y=0,m=[];for(p in h)p!=u&&s(h,p)&&m.push(p);for(;f.length>y;)s(h,p=f[y++])&&(~l(m,p)||m.push(p));return m}},function(r,i,o){var s=o(24);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(r,i,o){var s=o(39),a=o(27).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(l){return s(l,a)}},function(r,i,o){var s=o(24),a=o(2)("toStringTag"),l=s(function(){return arguments}())=="Arguments";r.exports=function(u){var c,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(h,y){try{return h[y]}catch{}}(c=Object(u),a))=="string"?f:l?s(c):(p=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(r,i){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}r.exports=o},function(r,i){var o=/-?\d+(\.\d+)?%?/g;r.exports=function(s){return s.match(o)}},function(r,i,o){Object.defineProperty(i,"__esModule",{value:!0}),i.getBase16Theme=i.createStyling=i.invertTheme=void 0;var s=_(o(49)),a=_(o(76)),l=_(o(81)),u=_(o(89)),c=_(o(93)),f=function(R){if(R&&R.__esModule)return R;var A={};if(R!=null)for(var F in R)Object.prototype.hasOwnProperty.call(R,F)&&(A[F]=R[F]);return A.default=R,A}(o(94)),p=_(o(132)),h=_(o(133)),y=_(o(138)),m=o(139);function _(R){return R&&R.__esModule?R:{default:R}}var g=f.default,v=(0,u.default)(g),b=(0,y.default)(h.default,m.rgb2yuv,function(R){var A,F=(0,l.default)(R,3),V=F[0],H=F[1],te=F[2];return[(A=V,A<.25?1:A<.5?.9-A:1.1-A),H,te]},m.yuv2rgb,p.default),x=function(R){return function(A){return{className:[A.className,R.className].filter(Boolean).join(" "),style:(0,a.default)({},A.style||{},R.style||{})}}},d=function(R,A){var F=(0,u.default)(A);for(var V in R)F.indexOf(V)===-1&&F.push(V);return F.reduce(function(H,te){return H[te]=function(D,ee){if(D===void 0)return ee;if(ee===void 0)return D;var ie=D===void 0?"undefined":(0,s.default)(D),M=ee===void 0?"undefined":(0,s.default)(ee);switch(ie){case"string":switch(M){case"string":return[ee,D].filter(Boolean).join(" ");case"object":return x({className:D,style:ee});case"function":return function(Z){for(var X=arguments.length,ce=Array(X>1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae1?X-1:0),ae=1;ae2?F-2:0),H=2;H3?A-3:0),V=3;V1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=H.defaultBase16,ee=D===void 0?g:D,ie=H.base16Themes,M=ie===void 0?null:ie,Z=L(te,M);Z&&(te=(0,a.default)({},Z,te));var X=v.reduce(function(xe,Pe){return xe[Pe]=te[Pe]||ee[Pe],xe},{}),ce=(0,u.default)(te).reduce(function(xe,Pe){return v.indexOf(Pe)===-1&&(xe[Pe]=te[Pe]),xe},{}),ae=R(X),Ce=d(ce,ae);return(0,c.default)(C,2).apply(void 0,[Ce].concat(F))},3),i.getBase16Theme=function(R,A){if(R&&R.extend&&(R=R.extend),typeof R=="string"){var F=R.split(":"),V=(0,l.default)(F,2),H=V[0],te=V[1];R=(A||{})[H]||f[H],te==="inverted"&&(R=I(R))}return R&&R.hasOwnProperty("base00")?R:void 0})},function(r,i,o){var s,a=typeof Reflect=="object"?Reflect:null,l=a&&typeof a.apply=="function"?a.apply:function(d,C,I){return Function.prototype.apply.call(d,C,I)};s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(d){return Object.getOwnPropertyNames(d).concat(Object.getOwnPropertySymbols(d))}:function(d){return Object.getOwnPropertyNames(d)};var u=Number.isNaN||function(d){return d!=d};function c(){c.init.call(this)}r.exports=c,r.exports.once=function(d,C){return new Promise(function(I,L){function R(F){d.removeListener(C,A),L(F)}function A(){typeof d.removeListener=="function"&&d.removeListener("error",R),I([].slice.call(arguments))}x(d,C,A,{once:!0}),C!=="error"&&function(F,V,H){typeof F.on=="function"&&x(F,"error",V,H)}(d,R,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(d){if(typeof d!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof d)}function h(d){return d._maxListeners===void 0?c.defaultMaxListeners:d._maxListeners}function y(d,C,I,L){var R,A,F,V;if(p(I),(A=d._events)===void 0?(A=d._events=Object.create(null),d._eventsCount=0):(A.newListener!==void 0&&(d.emit("newListener",C,I.listener?I.listener:I),A=d._events),F=A[C]),F===void 0)F=A[C]=I,++d._eventsCount;else if(typeof F=="function"?F=A[C]=L?[I,F]:[F,I]:L?F.unshift(I):F.push(I),(R=h(d))>0&&F.length>R&&!F.warned){F.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=d,H.type=C,H.count=F.length,V=H,console&&console.warn&&console.warn(V)}return d}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(d,C,I){var L={fired:!1,wrapFn:void 0,target:d,type:C,listener:I},R=m.bind(L);return R.listener=I,L.wrapFn=R,R}function g(d,C,I){var L=d._events;if(L===void 0)return[];var R=L[C];return R===void 0?[]:typeof R=="function"?I?[R.listener||R]:[R]:I?function(A){for(var F=new Array(A.length),V=0;V0&&(A=C[0]),A instanceof Error)throw A;var F=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw F.context=A,F}var V=R[d];if(V===void 0)return!1;if(typeof V=="function")l(V,this,C);else{var H=V.length,te=b(V,H);for(I=0;I=0;A--)if(I[A]===C||I[A].listener===C){F=I[A].listener,R=A;break}if(R<0)return this;R===0?I.shift():function(V,H){for(;H+1=0;L--)this.removeListener(d,C[L]);return this},c.prototype.listeners=function(d){return g(this,d,!0)},c.prototype.rawListeners=function(d){return g(this,d,!1)},c.listenerCount=function(d,C){return typeof d.listenerCount=="function"?d.listenerCount(C):v.call(d,C)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(r,i,o){r.exports.Dispatcher=o(140)},function(r,i,o){r.exports=o(142)},function(r,i,o){i.__esModule=!0;var s=u(o(50)),a=u(o(65)),l=typeof a.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function u(c){return c&&c.__esModule?c:{default:c}}i.default=typeof a.default=="function"&&l(s.default)==="symbol"?function(c){return c===void 0?"undefined":l(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":l(c)}},function(r,i,o){r.exports={default:o(51),__esModule:!0}},function(r,i,o){o(20),o(29),r.exports=o(30).f("iterator")},function(r,i,o){var s=o(21),a=o(22);r.exports=function(l){return function(u,c){var f,p,h=String(a(u)),y=s(c),m=h.length;return y<0||y>=m?l?"":void 0:(f=h.charCodeAt(y))<55296||f>56319||y+1===m||(p=h.charCodeAt(y+1))<56320||p>57343?l?h.charAt(y):f:l?h.slice(y,y+2):p-56320+(f-55296<<10)+65536}}},function(r,i,o){var s=o(54);r.exports=function(a,l,u){if(s(a),l===void 0)return a;switch(u){case 1:return function(c){return a.call(l,c)};case 2:return function(c,f){return a.call(l,c,f)};case 3:return function(c,f,p){return a.call(l,c,f,p)}}return function(){return a.apply(l,arguments)}}},function(r,i){r.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(r,i,o){var s=o(38),a=o(16),l=o(28),u={};o(6)(u,o(2)("iterator"),function(){return this}),r.exports=function(c,f,p){c.prototype=s(u,{next:a(1,p)}),l(c,f+" Iterator")}},function(r,i,o){var s=o(7),a=o(10),l=o(13);r.exports=o(4)?Object.defineProperties:function(u,c){a(u);for(var f,p=l(c),h=p.length,y=0;h>y;)s.f(u,f=p[y++],c[f]);return u}},function(r,i,o){var s=o(9),a=o(58),l=o(59);r.exports=function(u){return function(c,f,p){var h,y=s(c),m=a(y.length),_=l(p,m);if(u&&f!=f){for(;m>_;)if((h=y[_++])!=h)return!0}else for(;m>_;_++)if((u||_ in y)&&y[_]===f)return u||_||0;return!u&&-1}}},function(r,i,o){var s=o(21),a=Math.min;r.exports=function(l){return l>0?a(s(l),9007199254740991):0}},function(r,i,o){var s=o(21),a=Math.max,l=Math.min;r.exports=function(u,c){return(u=s(u))<0?a(u+c,0):l(u,c)}},function(r,i,o){var s=o(3).document;r.exports=s&&s.documentElement},function(r,i,o){var s=o(5),a=o(18),l=o(25)("IE_PROTO"),u=Object.prototype;r.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,l)?c[l]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?u:null}},function(r,i,o){var s=o(63),a=o(64),l=o(12),u=o(9);r.exports=o(34)(Array,"Array",function(c,f){this._t=u(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},function(r,i){r.exports=function(){}},function(r,i){r.exports=function(o,s){return{value:s,done:!!o}}},function(r,i,o){r.exports={default:o(66),__esModule:!0}},function(r,i,o){o(67),o(73),o(74),o(75),r.exports=o(1).Symbol},function(r,i,o){var s=o(3),a=o(5),l=o(4),u=o(15),c=o(37),f=o(68).KEY,p=o(8),h=o(26),y=o(28),m=o(17),_=o(2),g=o(30),v=o(31),b=o(69),x=o(70),d=o(10),C=o(11),I=o(18),L=o(9),R=o(23),A=o(16),F=o(38),V=o(71),H=o(72),te=o(32),D=o(7),ee=o(13),ie=H.f,M=D.f,Z=V.f,X=s.Symbol,ce=s.JSON,ae=ce&&ce.stringify,Ce=_("_hidden"),xe=_("toPrimitive"),Pe={}.propertyIsEnumerable,se=h("symbol-registry"),_e=h("symbols"),me=h("op-symbols"),ge=Object.prototype,Ie=typeof X=="function"&&!!te.f,st=s.QObject,ln=!st||!st.prototype||!st.prototype.findChild,en=l&&p(function(){return F(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a!=7})?function(U,q,Y){var pe=ie(ge,q);pe&&delete ge[q],M(U,q,Y),pe&&U!==ge&&M(ge,q,pe)}:M,Wt=function(U){var q=_e[U]=F(X.prototype);return q._k=U,q},Bt=Ie&&typeof X.iterator=="symbol"?function(U){return typeof U=="symbol"}:function(U){return U instanceof X},Ht=function(U,q,Y){return U===ge&&Ht(me,q,Y),d(U),q=R(q,!0),d(Y),a(_e,q)?(Y.enumerable?(a(U,Ce)&&U[Ce][q]&&(U[Ce][q]=!1),Y=F(Y,{enumerable:A(0,!1)})):(a(U,Ce)||M(U,Ce,A(1,{})),U[Ce][q]=!0),en(U,q,Y)):M(U,q,Y)},xt=function(U,q){d(U);for(var Y,pe=b(q=L(q)),Se=0,he=pe.length;he>Se;)Ht(U,Y=pe[Se++],q[Y]);return U},bt=function(U){var q=Pe.call(this,U=R(U,!0));return!(this===ge&&a(_e,U)&&!a(me,U))&&(!(q||!a(this,U)||!a(_e,U)||a(this,Ce)&&this[Ce][U])||q)},un=function(U,q){if(U=L(U),q=R(q,!0),U!==ge||!a(_e,q)||a(me,q)){var Y=ie(U,q);return!Y||!a(_e,q)||a(U,Ce)&&U[Ce][q]||(Y.enumerable=!0),Y}},ve=function(U){for(var q,Y=Z(L(U)),pe=[],Se=0;Y.length>Se;)a(_e,q=Y[Se++])||q==Ce||q==f||pe.push(q);return pe},Rt=function(U){for(var q,Y=U===ge,pe=Z(Y?me:L(U)),Se=[],he=0;pe.length>he;)!a(_e,q=pe[he++])||Y&&!a(ge,q)||Se.push(_e[q]);return Se};Ie||(c((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var U=m(arguments.length>0?arguments[0]:void 0),q=function(Y){this===ge&&q.call(me,Y),a(this,Ce)&&a(this[Ce],U)&&(this[Ce][U]=!1),en(this,U,A(1,Y))};return l&&ln&&en(ge,U,{configurable:!0,set:q}),Wt(U)}).prototype,"toString",function(){return this._k}),H.f=un,D.f=Ht,o(41).f=V.f=ve,o(19).f=bt,te.f=Rt,l&&!o(14)&&c(ge,"propertyIsEnumerable",bt,!0),g.f=function(U){return Wt(_(U))}),u(u.G+u.W+u.F*!Ie,{Symbol:X});for(var Tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),cn=0;Tt.length>cn;)_(Tt[cn++]);for(var Je=ee(_.store),K=0;Je.length>K;)v(Je[K++]);u(u.S+u.F*!Ie,"Symbol",{for:function(U){return a(se,U+="")?se[U]:se[U]=X(U)},keyFor:function(U){if(!Bt(U))throw TypeError(U+" is not a symbol!");for(var q in se)if(se[q]===U)return q},useSetter:function(){ln=!0},useSimple:function(){ln=!1}}),u(u.S+u.F*!Ie,"Object",{create:function(U,q){return q===void 0?F(U):xt(F(U),q)},defineProperty:Ht,defineProperties:xt,getOwnPropertyDescriptor:un,getOwnPropertyNames:ve,getOwnPropertySymbols:Rt});var z=p(function(){te.f(1)});u(u.S+u.F*z,"Object",{getOwnPropertySymbols:function(U){return te.f(I(U))}}),ce&&u(u.S+u.F*(!Ie||p(function(){var U=X();return ae([U])!="[null]"||ae({a:U})!="{}"||ae(Object(U))!="{}"})),"JSON",{stringify:function(U){for(var q,Y,pe=[U],Se=1;arguments.length>Se;)pe.push(arguments[Se++]);if(Y=q=pe[1],(C(q)||U!==void 0)&&!Bt(U))return x(q)||(q=function(he,We){if(typeof Y=="function"&&(We=Y.call(this,he,We)),!Bt(We))return We}),pe[1]=q,ae.apply(ce,pe)}}),X.prototype[xe]||o(6)(X.prototype,xe,X.prototype.valueOf),y(X,"Symbol"),y(Math,"Math",!0),y(s.JSON,"JSON",!0)},function(r,i,o){var s=o(17)("meta"),a=o(11),l=o(5),u=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),h=function(m){u(m,s,{value:{i:"O"+ ++c,w:{}}})},y=r.exports={KEY:s,NEED:!1,fastKey:function(m,_){if(!a(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!l(m,s)){if(!f(m))return"F";if(!_)return"E";h(m)}return m[s].i},getWeak:function(m,_){if(!l(m,s)){if(!f(m))return!0;if(!_)return!1;h(m)}return m[s].w},onFreeze:function(m){return p&&y.NEED&&f(m)&&!l(m,s)&&h(m),m}}},function(r,i,o){var s=o(13),a=o(32),l=o(19);r.exports=function(u){var c=s(u),f=a.f;if(f)for(var p,h=f(u),y=l.f,m=0;h.length>m;)y.call(u,p=h[m++])&&c.push(p);return c}},function(r,i,o){var s=o(24);r.exports=Array.isArray||function(a){return s(a)=="Array"}},function(r,i,o){var s=o(9),a=o(41).f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(c){return u&&l.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return u.slice()}}(c):a(s(c))}},function(r,i,o){var s=o(19),a=o(16),l=o(9),u=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;i.f=o(4)?p:function(h,y){if(h=l(h),y=u(y,!0),f)try{return p(h,y)}catch{}if(c(h,y))return a(!s.f.call(h,y),h[y])}},function(r,i){},function(r,i,o){o(31)("asyncIterator")},function(r,i,o){o(31)("observable")},function(r,i,o){i.__esModule=!0;var s,a=o(77),l=(s=a)&&s.__esModule?s:{default:s};i.default=l.default||function(u){for(var c=1;cg;)for(var x,d=f(arguments[g++]),C=v?a(d).concat(v(d)):a(d),I=C.length,L=0;I>L;)x=C[L++],s&&!b.call(d,x)||(m[x]=d[x]);return m}:p},function(r,i,o){i.__esModule=!0;var s=l(o(82)),a=l(o(85));function l(u){return u&&u.__esModule?u:{default:u}}i.default=function(u,c){if(Array.isArray(u))return u;if((0,s.default)(Object(u)))return function(f,p){var h=[],y=!0,m=!1,_=void 0;try{for(var g,v=(0,a.default)(f);!(y=(g=v.next()).done)&&(h.push(g.value),!p||h.length!==p);y=!0);}catch(b){m=!0,_=b}finally{try{!y&&v.return&&v.return()}finally{if(m)throw _}}return h}(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(r,i,o){r.exports={default:o(83),__esModule:!0}},function(r,i,o){o(29),o(20),r.exports=o(84)},function(r,i,o){var s=o(42),a=o(2)("iterator"),l=o(12);r.exports=o(1).isIterable=function(u){var c=Object(u);return c[a]!==void 0||"@@iterator"in c||l.hasOwnProperty(s(c))}},function(r,i,o){r.exports={default:o(86),__esModule:!0}},function(r,i,o){o(29),o(20),r.exports=o(87)},function(r,i,o){var s=o(10),a=o(88);r.exports=o(1).getIterator=function(l){var u=a(l);if(typeof u!="function")throw TypeError(l+" is not iterable!");return s(u.call(l))}},function(r,i,o){var s=o(42),a=o(2)("iterator"),l=o(12);r.exports=o(1).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||l[s(u)]}},function(r,i,o){r.exports={default:o(90),__esModule:!0}},function(r,i,o){o(91),r.exports=o(1).Object.keys},function(r,i,o){var s=o(18),a=o(13);o(92)("keys",function(){return function(l){return a(s(l))}})},function(r,i,o){var s=o(15),a=o(1),l=o(8);r.exports=function(u,c){var f=(a.Object||{})[u]||Object[u],p={};p[u]=c(f),s(s.S+s.F*l(function(){f(1)}),"Object",p)}},function(r,i,o){(function(s){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l=/^\s+|\s+$/g,u=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,y=/^\[object .+?Constructor\]$/,m=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,g=parseInt,v=typeof s=="object"&&s&&s.Object===Object&&s,b=typeof self=="object"&&self&&self.Object===Object&&self,x=v||b||Function("return this")();function d(K,z,U){switch(U.length){case 0:return K.call(z);case 1:return K.call(z,U[0]);case 2:return K.call(z,U[0],U[1]);case 3:return K.call(z,U[0],U[1],U[2])}return K.apply(z,U)}function C(K,z){return!!(K&&K.length)&&function(U,q,Y){if(q!=q)return function(he,We,ht,oe){for(var fe=he.length,ye=ht+(oe?1:-1);oe?ye--:++ye-1}function I(K){return K!=K}function L(K,z){for(var U=K.length,q=0;U--;)K[U]===z&&q++;return q}function R(K,z){for(var U=-1,q=K.length,Y=0,pe=[];++U2?F:void 0);function Pe(K){return Tt(K)?ce(K):{}}function se(K){return!(!Tt(K)||function(z){return!!ee&&ee in z}(K))&&(function(z){var U=Tt(z)?Z.call(z):"";return U=="[object Function]"||U=="[object GeneratorFunction]"}(K)||function(z){var U=!1;if(z!=null&&typeof z.toString!="function")try{U=!!(z+"")}catch{}return U}(K)?X:y).test(function(z){if(z!=null){try{return ie.call(z)}catch{}try{return z+""}catch{}}return""}(K))}function _e(K,z,U,q){for(var Y=-1,pe=K.length,Se=U.length,he=-1,We=z.length,ht=ae(pe-Se,0),oe=Array(We+ht),fe=!q;++he1&&Ke.reverse(),oe&&We1?"& ":"")+z[q],z=z.join(U>2?", ":" "),K.replace(u,`{ +/* [wrapped with `+z+`] */ +`)}function xt(K,z){return!!(z=z??9007199254740991)&&(typeof K=="number"||_.test(K))&&K>-1&&K%1==0&&K1&&l--,c=6*l<1?s+6*(a-s)*l:2*l<1?a:3*l<2?s+(a-s)*(2/3-l)*6:s,u[y]=255*c;return u}},function(r,i,o){(function(s){var a=typeof s=="object"&&s&&s.Object===Object&&s,l=typeof self=="object"&&self&&self.Object===Object&&self,u=a||l||Function("return this")();function c(R,A,F){switch(F.length){case 0:return R.call(A);case 1:return R.call(A,F[0]);case 2:return R.call(A,F[0],F[1]);case 3:return R.call(A,F[0],F[1],F[2])}return R.apply(A,F)}function f(R,A){for(var F=-1,V=A.length,H=R.length;++F-1&&H%1==0&&H<=9007199254740991}(V.length)&&!function(H){var te=function(D){var ee=typeof D;return!!D&&(ee=="object"||ee=="function")}(H)?y.call(H):"";return te=="[object Function]"||te=="[object GeneratorFunction]"}(V)}(F)}(A)&&h.call(A,"callee")&&(!_.call(A,"callee")||y.call(A)=="[object Arguments]")}(R)||!!(g&&R&&R[g])}var x=Array.isArray,d,C,I,L=(C=function(R){var A=(R=function V(H,te,D,ee,ie){var M=-1,Z=H.length;for(D||(D=b),ie||(ie=[]);++M0&&D(X)?te>1?V(X,te-1,D,ee,ie):f(ie,X):ee||(ie[ie.length]=X)}return ie}(R,1)).length,F=A;for(d;F--;)if(typeof R[F]!="function")throw new TypeError("Expected a function");return function(){for(var V=0,H=A?R[V].apply(this,arguments):arguments[0];++V2?l-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,S=_(T);if(O){var E=_(this).constructor;w=Reflect.construct(S,arguments,E)}else w=S.apply(this,arguments);return v(this,w)}}o.r(i);var x=o(0),d=o.n(x);function C(){var T=this.constructor.getDerivedStateFromProps(this.props,this.state);T!=null&&this.setState(T)}function I(T){this.setState((function(O){var w=this.constructor.getDerivedStateFromProps(T,O);return w??null}).bind(this))}function L(T,O){try{var w=this.props,S=this.state;this.props=T,this.state=O,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(w,S)}finally{this.props=w,this.state=S}}function R(T){var O=T.prototype;if(!O||!O.isReactComponent)throw new Error("Can only polyfill class components");if(typeof T.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function")return T;var w=null,S=null,E=null;if(typeof O.componentWillMount=="function"?w="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"?S="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(S="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"?E="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(E="UNSAFE_componentWillUpdate"),w!==null||S!==null||E!==null){var $=T.displayName||T.name,Q=typeof T.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+$+" uses "+Q+" but also contains the following legacy lifecycles:"+(w!==null?` + `+w:"")+(S!==null?` + `+S:"")+(E!==null?` + `+E:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof T.getDerivedStateFromProps=="function"&&(O.componentWillMount=C,O.componentWillReceiveProps=I),typeof O.getSnapshotBeforeUpdate=="function"){if(typeof O.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");O.componentWillUpdate=L;var G=O.componentDidUpdate;O.componentDidUpdate=function(N,ne,le){var be=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:le;G.call(this,N,ne,be)}}return T}function A(T,O){if(T==null)return{};var w,S,E={},$=Object.keys(T);for(S=0;S<$.length;S++)w=$[S],O.indexOf(w)>=0||(E[w]=T[w]);return E}function F(T,O){if(T==null)return{};var w,S,E=A(T,O);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(T);for(S=0;S<$.length;S++)w=$[S],O.indexOf(w)>=0||Object.prototype.propertyIsEnumerable.call(T,w)&&(E[w]=T[w])}return E}function V(T){var O=function(w){return{}.toString.call(w).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(T);return O==="number"&&(O=isNaN(T)?"nan":(0|T)!=T?"float":"integer"),O}C.__suppressDeprecationWarning=!0,I.__suppressDeprecationWarning=!0,L.__suppressDeprecationWarning=!0;var H={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},te={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},D={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},ee=o(45),ie=function(T){var O=function(w){return{backgroundColor:w.base00,ellipsisColor:w.base09,braceColor:w.base07,expandedIcon:w.base0D,collapsedIcon:w.base0E,keyColor:w.base07,arrayKeyColor:w.base0C,objectSize:w.base04,copyToClipboard:w.base0F,copyToClipboardCheck:w.base0D,objectBorder:w.base02,dataTypes:{boolean:w.base0E,date:w.base0D,float:w.base0B,function:w.base0D,integer:w.base0F,string:w.base09,nan:w.base08,null:w.base0A,undefined:w.base05,regexp:w.base0A,background:w.base02},editVariable:{editIcon:w.base0E,cancelIcon:w.base09,removeIcon:w.base09,addIcon:w.base0E,checkIcon:w.base0E,background:w.base01,color:w.base0A,border:w.base07},addKeyModal:{background:w.base05,border:w.base04,color:w.base0A,labelColor:w.base01},validationFailure:{background:w.base09,iconColor:w.base01,fontColor:w.base01}}}(T);return{"app-container":{fontFamily:D.globalFontFamily,cursor:D.globalCursor,backgroundColor:O.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:O.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:D.braceCursor,fontWeight:D.braceFontWeight,color:O.braceColor},"expanded-icon":{color:O.expandedIcon},"collapsed-icon":{color:O.collapsedIcon},colon:{display:"inline-block",margin:D.keyMargin,color:O.keyColor,verticalAlign:"top"},objectKeyVal:function(w,S){return{style:c({paddingTop:D.keyValPaddingTop,paddingRight:D.keyValPaddingRight,paddingBottom:D.keyValPaddingBottom,borderLeft:D.keyValBorderLeft+" "+O.objectBorder,":hover":{paddingLeft:S.paddingLeft-1+"px",borderLeft:D.keyValBorderHover+" "+O.objectBorder}},S)}},"object-key-val-no-border":{padding:D.keyValPadding},"pushed-content":{marginLeft:D.pushedContentMarginLeft},variableValue:function(w,S){return{style:c({display:"inline-block",paddingRight:D.variableValuePaddingRight,position:"relative"},S)}},"object-name":{display:"inline-block",color:O.keyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"array-key":{display:"inline-block",color:O.arrayKeyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"object-size":{color:O.objectSize,borderRadius:D.objectSizeBorderRadius,fontStyle:D.objectSizeFontStyle,margin:D.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:D.dataTypeFontSize,marginRight:D.dataTypeMarginRight,opacity:D.datatypeOpacity},boolean:{display:"inline-block",color:O.dataTypes.boolean},date:{display:"inline-block",color:O.dataTypes.date},"date-value":{marginLeft:D.dateValueMarginLeft},float:{display:"inline-block",color:O.dataTypes.float},function:{display:"inline-block",color:O.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:O.dataTypes.integer},string:{display:"inline-block",color:O.dataTypes.string},nan:{display:"inline-block",color:O.dataTypes.nan,fontSize:D.nanFontSize,fontWeight:D.nanFontWeight,backgroundColor:O.dataTypes.background,padding:D.nanPadding,borderRadius:D.nanBorderRadius},null:{display:"inline-block",color:O.dataTypes.null,fontSize:D.nullFontSize,fontWeight:D.nullFontWeight,backgroundColor:O.dataTypes.background,padding:D.nullPadding,borderRadius:D.nullBorderRadius},undefined:{display:"inline-block",color:O.dataTypes.undefined,fontSize:D.undefinedFontSize,padding:D.undefinedPadding,borderRadius:D.undefinedBorderRadius,backgroundColor:O.dataTypes.background},regexp:{display:"inline-block",color:O.dataTypes.regexp},"copy-to-clipboard":{cursor:D.clipboardCursor},"copy-icon":{color:O.copyToClipboard,fontSize:D.iconFontSize,marginRight:D.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:O.copyToClipboardCheck,marginLeft:D.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:D.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:D.metaDataPadding},"icon-container":{display:"inline-block",width:D.iconContainerWidth},tooltip:{padding:D.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.removeIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.addIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.editIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:D.iconCursor,color:O.editVariable.checkIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:D.iconCursor,color:O.editVariable.cancelIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:D.editInputMinWidth,borderRadius:D.editInputBorderRadius,backgroundColor:O.editVariable.background,color:O.editVariable.color,padding:D.editInputPadding,marginRight:D.editInputMarginRight,fontFamily:D.editInputFontFamily},"detected-row":{paddingTop:D.detectedRowPaddingTop},"key-modal-request":{position:D.addKeyCoverPosition,top:D.addKeyCoverPositionPx,left:D.addKeyCoverPositionPx,right:D.addKeyCoverPositionPx,bottom:D.addKeyCoverPositionPx,backgroundColor:D.addKeyCoverBackground},"key-modal":{width:D.addKeyModalWidth,backgroundColor:O.addKeyModal.background,marginLeft:D.addKeyModalMargin,marginRight:D.addKeyModalMargin,padding:D.addKeyModalPadding,borderRadius:D.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:O.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:O.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:O.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:O.addKeyModal.labelColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:O.editVariable.addIcon,fontSize:D.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:O.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:O.validationFailure.fontColor,backgroundColor:O.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:O.validationFailure.iconColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"}}};function M(T,O,w){return T||console.error("theme has not been set"),function(S){var E=H;return S!==!1&&S!=="none"||(E=te),Object(ee.createStyling)(ie,{defaultBase16:E})(S)}(T)(O,w)}var Z=function(T){m(w,T);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props,E=(S.rjvId,S.type_name),$=S.displayDataTypes,Q=S.theme;return $?d.a.createElement("span",Object.assign({className:"data-type-label"},M(Q,"data-type-label")),E):null}}]),w}(d.a.PureComponent),X=function(T){m(w,T);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"boolean"),d.a.createElement(Z,Object.assign({type_name:"bool"},S)),S.value?"true":"false")}}]),w}(d.a.PureComponent),ce=function(T){m(w,T);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"date"),d.a.createElement(Z,Object.assign({type_name:"date"},S)),d.a.createElement("span",Object.assign({className:"date-value"},M(S.theme,"date-value")),S.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),w}(d.a.PureComponent),ae=function(T){m(w,T);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){var S=this.props;return d.a.createElement("div",M(S.theme,"float"),d.a.createElement(Z,Object.assign({type_name:"float"},S)),this.props.value)}}]),w}(d.a.PureComponent);function Ce(T,O){(O==null||O>T.length)&&(O=T.length);for(var w=0,S=new Array(O);w=T.length?{done:!0}:{done:!1,value:T[S++]}},e:function(N){throw N},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $,Q=!0,G=!1;return{s:function(){w=w.call(T)},n:function(){var N=w.next();return Q=N.done,N},e:function(N){G=!0,$=N},f:function(){try{Q||w.return==null||w.return()}finally{if(G)throw $}}}}function se(T){return function(O){if(Array.isArray(O))return Ce(O)}(T)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(T)||xe(T)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _e=o(46),me=new(o(47)).Dispatcher,ge=new(function(T){m(w,T);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;QE&&(G.style.cursor="pointer",this.state.collapsed&&(Q=d.a.createElement("span",null,Q.substring(0,E),d.a.createElement("span",M($,"ellipsis")," ...")))),d.a.createElement("div",M($,"string"),d.a.createElement(Z,Object.assign({type_name:"string"},S)),d.a.createElement("span",Object.assign({className:"string-value"},G,{onClick:this.toggleCollapsed}),'"',Q,'"'))}}]),w}(d.a.PureComponent),xt=function(T){m(w,T);var O=b(w);function w(){return f(this,w),O.apply(this,arguments)}return h(w,[{key:"render",value:function(){return d.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),w}(d.a.PureComponent);function bt(){return(bt=Object.assign?Object.assign.bind():function(T){for(var O=1;O0?be:null,namespace:le.splice(0,le.length-1),existing_value:Ve,variable_removed:!1,key_name:null};V(Ve)==="object"?me.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ze,data:mt}):me.dispatch({name:"VARIABLE_ADDED",rjvId:Ze,data:c(c({},mt),{},{new_value:[].concat(se(Ve),[null])})})}})))},S.getRemoveObject=function(G){var N=S.props,ne=N.theme,le=(N.hover,N.namespace),be=N.name,Ve=N.src,Ze=N.rjvId;if(le.length!==1)return d.a.createElement("span",{className:"click-to-remove",style:{display:G?"inline-block":"none"}},d.a.createElement($o,Object.assign({className:"click-to-remove-icon"},M(ne,"removeVarIcon"),{onClick:function(){me.dispatch({name:"VARIABLE_REMOVED",rjvId:Ze,data:{name:be,namespace:le.splice(0,le.length-1),existing_value:Ve,variable_removed:!0}})}})))},S.render=function(){var G=S.props,N=G.theme,ne=G.onDelete,le=G.onAdd,be=G.enableClipboard,Ve=G.src,Ze=G.namespace,Le=G.rowHovered;return d.a.createElement("div",Object.assign({},M(N,"object-meta-data"),{className:"object-meta-data",onClick:function(mt){mt.stopPropagation()}}),S.getObjectSize(),be?d.a.createElement(tl,{rowHovered:Le,clickCallback:be,src:Ve,theme:N,namespace:Ze}):null,le!==!1?S.getAddAttribute(Le):null,ne!==!1?S.getRemoveObject(Le):null)},S}return h(w)}(d.a.PureComponent);function rl(T){var O=T.parent_type,w=T.namespace,S=T.quotesOnKeys,E=T.theme,$=T.jsvRoot,Q=T.name,G=T.displayArrayKey,N=T.name?T.name:"";return!$||Q!==!1&&Q!==null?O=="array"?G?d.a.createElement("span",Object.assign({},M(E,"array-key"),{key:w}),d.a.createElement("span",{className:"array-key"},N),d.a.createElement("span",M(E,"colon"),":")):d.a.createElement("span",null):d.a.createElement("span",Object.assign({},M(E,"object-name"),{key:w}),d.a.createElement("span",{className:"object-key"},S&&d.a.createElement("span",{style:{verticalAlign:"top"}},'"'),d.a.createElement("span",null,N),S&&d.a.createElement("span",{style:{verticalAlign:"top"}},'"')),d.a.createElement("span",M(E,"colon"),":")):d.a.createElement("span",null)}function ec(T){var O=T.theme;switch(T.iconStyle){case"triangle":return d.a.createElement(No,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}));case"square":return d.a.createElement(_r,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}));default:return d.a.createElement(mn,Object.assign({},M(O,"expanded-icon"),{className:"expanded-icon"}))}}function tc(T){var O=T.theme;switch(T.iconStyle){case"triangle":return d.a.createElement(Wn,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return d.a.createElement(Vn,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}));default:return d.a.createElement(Wr,Object.assign({},M(O,"collapsed-icon"),{className:"collapsed-icon"}))}}var Np=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],nc=function(T){m(w,T);var O=b(w);function w(S){var E;return f(this,w),(E=O.call(this,S)).toggleCollapsed=function($){var Q=[];for(var G in E.state.expanded)Q.push(E.state.expanded[G]);Q[$]=!Q[$],E.setState({expanded:Q})},E.state={expanded:[]},E}return h(w,[{key:"getExpandedIcon",value:function(S){var E=this.props,$=E.theme,Q=E.iconStyle;return this.state.expanded[S]?d.a.createElement(ec,{theme:$,iconStyle:Q}):d.a.createElement(tc,{theme:$,iconStyle:Q})}},{key:"render",value:function(){var S=this,E=this.props,$=E.src,Q=E.groupArraysAfterLength,G=(E.depth,E.name),N=E.theme,ne=E.jsvRoot,le=E.namespace,be=(E.parent_type,F(E,Np)),Ve=0,Ze=5*this.props.indentWidth;ne||(Ve=5*this.props.indentWidth);var Le=Q,mt=Math.ceil($.length/Le);return d.a.createElement("div",Object.assign({className:"object-key-val"},M(N,ne?"jsv-root":"objectKeyVal",{paddingLeft:Ve})),d.a.createElement(rl,this.props),d.a.createElement("span",null,d.a.createElement(nl,Object.assign({size:$.length},this.props))),se(Array(mt)).map(function(Mt,nt){return d.a.createElement("div",Object.assign({key:nt,className:"object-key-val array-group"},M(N,"objectKeyVal",{marginLeft:6,paddingLeft:Ze})),d.a.createElement("span",M(N,"brace-row"),d.a.createElement("div",Object.assign({className:"icon-container"},M(N,"icon-container"),{onClick:function(Fn){S.toggleCollapsed(nt)}}),S.getExpandedIcon(nt)),S.state.expanded[nt]?d.a.createElement(rc,Object.assign({key:G+nt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Le,index_offset:nt*Le,src:$.slice(nt*Le,nt*Le+Le),namespace:le,type:"array",parent_type:"array_group",theme:N},be)):d.a.createElement("span",Object.assign({},M(N,"brace"),{onClick:function(Fn){S.toggleCollapsed(nt)},className:"array-group-brace"}),"[",d.a.createElement("div",Object.assign({},M(N,"array-group-meta-data"),{className:"array-group-meta-data"}),d.a.createElement("span",Object.assign({className:"object-size"},M(N,"object-size")),nt*Le," - ",nt*Le+Le>$.length?$.length:nt*Le+Le)),"]")))}))}}]),w}(d.a.PureComponent),ze=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],wn=function(T){m(w,T);var O=b(w);function w(S){var E;f(this,w),(E=O.call(this,S)).toggleCollapsed=function(){E.setState({expanded:!E.state.expanded},function(){Ie.set(E.props.rjvId,E.props.namespace,"expanded",E.state.expanded)})},E.getObjectContent=function(Q,G,N){return d.a.createElement("div",{className:"pushed-content object-container"},d.a.createElement("div",Object.assign({className:"object-content"},M(E.props.theme,"pushed-content")),E.renderObjectContents(G,N)))},E.getEllipsis=function(){return E.state.size===0?null:d.a.createElement("div",Object.assign({},M(E.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:E.toggleCollapsed}),"...")},E.getObjectMetaData=function(Q){var G=E.props,N=(G.rjvId,G.theme,E.state),ne=N.size,le=N.hovered;return d.a.createElement(nl,Object.assign({rowHovered:le,size:ne},E.props))},E.renderObjectContents=function(Q,G){var N,ne=E.props,le=ne.depth,be=ne.parent_type,Ve=ne.index_offset,Ze=ne.groupArraysAfterLength,Le=ne.namespace,mt=E.state.object_type,Mt=[],nt=Object.keys(Q||{});return E.props.sortKeys&&mt!=="array"&&(nt=nt.sort()),nt.forEach(function(Fn){if(N=new NI(Fn,Q[Fn]),be==="array_group"&&Ve&&(N.name=parseInt(N.name)+Ve),Q.hasOwnProperty(Fn))if(N.type==="object")Mt.push(d.a.createElement(rc,Object.assign({key:N.name,depth:le+1,name:N.name,src:N.value,namespace:Le.concat(N.name),parent_type:mt},G)));else if(N.type==="array"){var Bi=rc;Ze&&N.value.length>Ze&&(Bi=nc),Mt.push(d.a.createElement(Bi,Object.assign({key:N.name,depth:le+1,name:N.name,src:N.value,namespace:Le.concat(N.name),type:"array",parent_type:mt},G)))}else Mt.push(d.a.createElement(Zu,Object.assign({key:N.name+"_"+Le,variable:N,singleIndent:5,namespace:Le,type:E.props.type},G)))}),Mt};var $=w.getState(S);return E.state=c(c({},$),{},{prevProps:{}}),E}return h(w,[{key:"getBraceStart",value:function(S,E){var $=this,Q=this.props,G=Q.src,N=Q.theme,ne=Q.iconStyle;if(Q.parent_type==="array_group")return d.a.createElement("span",null,d.a.createElement("span",M(N,"brace"),S==="array"?"[":"{"),E?this.getObjectMetaData(G):null);var le=E?ec:tc;return d.a.createElement("span",null,d.a.createElement("span",Object.assign({onClick:function(be){$.toggleCollapsed()}},M(N,"brace-row")),d.a.createElement("div",Object.assign({className:"icon-container"},M(N,"icon-container")),d.a.createElement(le,{theme:N,iconStyle:ne})),d.a.createElement(rl,this.props),d.a.createElement("span",M(N,"brace"),S==="array"?"[":"{")),E?this.getObjectMetaData(G):null)}},{key:"render",value:function(){var S=this,E=this.props,$=E.depth,Q=E.src,G=(E.namespace,E.name,E.type,E.parent_type),N=E.theme,ne=E.jsvRoot,le=E.iconStyle,be=F(E,ze),Ve=this.state,Ze=Ve.object_type,Le=Ve.expanded,mt={};return ne||G==="array_group"?G==="array_group"&&(mt.borderLeft=0,mt.display="inline"):mt.paddingLeft=5*this.props.indentWidth,d.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return S.setState(c(c({},S.state),{},{hovered:!0}))},onMouseLeave:function(){return S.setState(c(c({},S.state),{},{hovered:!1}))}},M(N,ne?"jsv-root":"objectKeyVal",mt)),this.getBraceStart(Ze,Le),Le?this.getObjectContent($,Q,c({theme:N,iconStyle:le},be)):this.getEllipsis(),d.a.createElement("span",{className:"brace-row"},d.a.createElement("span",{style:c(c({},M(N,"brace").style),{},{paddingLeft:Le?"3px":"0px"})},Ze==="array"?"]":"}"),Le?null:this.getObjectMetaData(Q)))}}],[{key:"getDerivedStateFromProps",value:function(S,E){var $=E.prevProps;return S.src!==$.src||S.collapsed!==$.collapsed||S.name!==$.name||S.namespace!==$.namespace||S.rjvId!==$.rjvId?c(c({},w.getState(S)),{},{prevProps:S}):null}}]),w}(d.a.PureComponent);wn.getState=function(T){var O=Object.keys(T.src).length,w=(T.collapsed===!1||T.collapsed!==!0&&T.collapsed>T.depth)&&(!T.shouldCollapse||T.shouldCollapse({name:T.name,src:T.src,type:V(T.src),namespace:T.namespace})===!1)&&O!==0;return{expanded:Ie.get(T.rjvId,T.namespace,"expanded",w),object_type:T.type==="array"?"array":"object",parent_type:T.type==="array"?"array":"object",size:O,hovered:!1}};var NI=h(function T(O,w){f(this,T),this.name=O,this.value=w,this.type=V(w)});R(wn);var rc=wn,$I=function(T){m(w,T);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;Qbe.groupArraysAfterLength&&(Ze=nc),d.a.createElement("div",{className:"pretty-json-container object-container"},d.a.createElement("div",{className:"object-content"},d.a.createElement(Ze,Object.assign({namespace:Ve,depth:0,jsvRoot:!0},be))))},S}return h(w)}(d.a.PureComponent),zI=function(T){m(w,T);var O=b(w);function w(S){var E;return f(this,w),(E=O.call(this,S)).closeModal=function(){me.dispatch({rjvId:E.props.rjvId,name:"RESET"})},E.submit=function(){E.props.submit(E.state.input)},E.state={input:S.input?S.input:""},E}return h(w,[{key:"render",value:function(){var S=this,E=this.props,$=E.theme,Q=E.rjvId,G=E.isValid,N=this.state.input,ne=G(N);return d.a.createElement("div",Object.assign({className:"key-modal-request"},M($,"key-modal-request"),{onClick:this.closeModal}),d.a.createElement("div",Object.assign({},M($,"key-modal"),{onClick:function(le){le.stopPropagation()}}),d.a.createElement("div",M($,"key-modal-label"),"Key Name:"),d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("input",Object.assign({},M($,"key-modal-input"),{className:"key-modal-input",ref:function(le){return le&&le.focus()},spellCheck:!1,value:N,placeholder:"...",onChange:function(le){S.setState({input:le.target.value})},onKeyPress:function(le){ne&&le.key==="Enter"?S.submit():le.key==="Escape"&&S.closeModal()}})),ne?d.a.createElement(Ai,Object.assign({},M($,"key-modal-submit"),{className:"key-modal-submit",onClick:function(le){return S.submit()}})):null),d.a.createElement("span",M($,"key-modal-cancel"),d.a.createElement(to,Object.assign({},M($,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){me.dispatch({rjvId:Q,name:"RESET"})}})))))}}]),w}(d.a.PureComponent),UI=function(T){m(w,T);var O=b(w);function w(){var S;f(this,w);for(var E=arguments.length,$=new Array(E),Q=0;Qkr.setFrameHeight(),children:k.jsx(QL,{src:e??{},name:null,collapsed:2,collapseStringsAfterLength:140,style:{fontSize:"14px"}})})}const JL=si(k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z"}),"AccessTimeRounded"),Ls=si(k.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),ZL=si(k.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),e8=si(k.jsx("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight"),t8=si(k.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z"}),"LibraryBooksOutlined"),n8=si(k.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined");var Pn=(e=>(e[e.PRIMARY=0]="PRIMARY",e[e.LIGHT=1]="LIGHT",e[e.DARK=2]="DARK",e[e.SECONDARY_LIGHT=3]="SECONDARY_LIGHT",e[e.SECONDARY_DARK=4]="SECONDARY_DARK",e))(Pn||{});const r8="#061B22",aI="#0A2C37",lI="#2D736D",ud="#D3E5E4",cy="#E9F2F1",i8=ud,o8=lI,s8=aI,a8="#F2C94C",l8="#EB5757",u8="#A22C37",c8="#571610",f8=a8,d8="#F6D881",p8="#E77956",h8="#FAFAFA",m8="#F5F5F5",y8="#E0E0E0",g8="#BDBDBD",v8="#757575",b8="#212121",fy=["#5690C5","#8DA6BF","#274F69","#6D90B1","#0B1D26"],dy=["#F8D06D","#F0EC89","#AD743E","#F4E07B","#5C291A"],w8=["#E77956","#FFDBA3","#A8402D","#FBAD78","#571610"],py=["#54A08E","#A4CBC1","#366567","#7BADA4","#1C383E"],hy=["#959CFA","#D5D1FF","#5F74B3","#B2B1FF","#314A66"],my=["#957A89","#D2C0C4","#664F5E","#B59CA6","#352731"],yy=["#78AE79","#C7DFC3","#5D8955","#9FC79D","#436036"],x8=["#FF8DA1","#FFC9F1","#C15F84","#FFA9D0","#823966"],gy=["#74B3C0","#99D4D2","#537F88","#BFE6DD","#314B50"],S8=["#A484BD","#CBC7E4","#745E86","#B5A5D1","#45384F"],uI=[fy,dy,w8,py,hy,my,yy,x8,gy,S8];uI.map(e=>e[0]);const Rp=e=>Object.fromEntries(uI.map(t=>[t[0],t[e]]));Rp(1);Rp(2);Rp(3);Rp(4);var sr=(e=>(e.UNTYPED="SpanUntyped",e.ROOT="SpanRoot",e.RETRIEVER="SpanRetriever",e.RERANKER="SpanReranker",e.LLM="SpanLLM",e.EMBEDDING="SpanEmbedding",e.TOOL="SpanTool",e.AGENT="SpanAgent",e.TASK="SpanTask",e.OTHER="SpanOther",e))(sr||{});const cI=e=>e?e.split("Span").join(""):"Other";class br{constructor(t){yt(this,"spanId");yt(this,"traceId");yt(this,"tags",[]);yt(this,"type","SpanUntyped");yt(this,"metadata");yt(this,"name");yt(this,"startTimestamp");yt(this,"endTimestamp");yt(this,"status");yt(this,"statusDescription");yt(this,"attributes");this.name=t.name,this.startTimestamp=t.start_timestamp,this.endTimestamp=t.end_timestamp??null,this.status=t.status,this.statusDescription=t.status_description??null;const[n,r]=t.context??[-1,-1];this.spanId=n,this.traceId=r,this.attributes=t.attributes??{},this.metadata=t.attributes_metadata??{}}static vendorAttr(t){return`trulens_eval@${t}`}getAttribute(t){return this.attributes[br.vendorAttr(t)]}}class fI extends br{constructor(t){super(t),this.type="SpanRoot"}}class dI extends br{constructor(n){super(n);yt(this,"inputText");yt(this,"inputEmbedding");yt(this,"distanceType");yt(this,"numContexts");yt(this,"retrievedContexts");this.type="SpanRetriever",this.inputText=this.getAttribute("input_text")??null,this.inputEmbedding=this.getAttribute("input_embedding")??null,this.distanceType=this.getAttribute("distance_type")??null,this.numContexts=this.getAttribute("num_contexts")??null,this.retrievedContexts=this.getAttribute("retrieved_contexts")??null}}class _8 extends br{constructor(t){super(t),this.type="SpanReranker"}}class pI extends br{constructor(n){super(n);yt(this,"modelName");this.type="SpanLLM",this.modelName=this.getAttribute("model_name")??null}}class E8 extends br{constructor(t){super(t),this.type="SpanEmbedding"}}class I8 extends br{constructor(t){super(t),this.type="SpanTool"}}class T8 extends br{constructor(t){super(t),this.type="SpanAgent"}}class C8 extends br{constructor(t){super(t),this.type="SpanTask"}}class O8 extends br{constructor(t){super(t),this.type="SpanOther"}}const k8=e=>{var n;switch(((n=e.attributes)==null?void 0:n[br.vendorAttr("span_type")])??"SpanUntyped"){case"SpanRoot":return new fI(e);case"SpanRetriever":return new dI(e);case"SpanReranker":return new _8(e);case"SpanLLM":return new pI(e);case"SpanEmbedding":return new E8(e);case"SpanTool":return new I8(e);case"SpanAgent":return new T8(e);case"SpanTask":return new C8(e);case"SpanOther":return new O8(e);default:return new br(e)}},Wl={backgroundColor:fy[Pn.DARK],Icon:n8,color:fy[Pn.LIGHT]},hI={[sr.UNTYPED]:Wl,[sr.ROOT]:{backgroundColor:"primary.main",Icon:Ls,color:"primary.light"},[sr.RETRIEVER]:{backgroundColor:dy[Pn.DARK],Icon:t8,color:dy[Pn.LIGHT]},[sr.RERANKER]:{backgroundColor:hy[Pn.DARK],Icon:Ls,color:hy[Pn.LIGHT]},[sr.LLM]:{backgroundColor:py[Pn.DARK],Icon:Ls,color:py[Pn.LIGHT]},[sr.EMBEDDING]:{backgroundColor:yy[Pn.DARK],Icon:Ls,color:yy[Pn.LIGHT]},[sr.TOOL]:{backgroundColor:my[Pn.DARK],Icon:Ls,color:my[Pn.LIGHT]},[sr.AGENT]:{backgroundColor:gy[Pn.DARK],Icon:Ls,color:gy[Pn.LIGHT]},[sr.TASK]:Wl,[sr.OTHER]:Wl};function A8({spanType:e=sr.UNTYPED}){const{backgroundColor:t,Icon:n,color:r}=hI[e]??Wl;return k.jsx(qt,{sx:{...R8,backgroundColor:t,color:r},children:k.jsx(n,{sx:{...B8,color:r}})})}const B8={p:.5,height:"16px",width:"16px"},R8={display:"flex",borderRadius:({spacing:e})=>e(.5),flexDirection:"column",justifyContent:"center"};function M8({title:e,placement:t,children:n}){return k.jsx(w6,{title:e,componentsProps:{tooltip:{sx:{color:({palette:r})=>r.text.primary,backgroundColor:({palette:r})=>r.grey[50],border:({palette:r})=>`1px solid ${r.grey[300]}`,boxShadow:"0px 8px 16px 0px #0000000D"}}},placement:t,children:n})}function mI({node:e,children:t}){const{startTime:n,endTime:r,selector:i,span:o}=e;return k.jsx(M8,{title:k.jsxs(qt,{sx:{lineHeight:1.5},children:[k.jsxs("span",{children:[k.jsx("b",{children:"Span type: "}),cI(o==null?void 0:o.type)]}),k.jsx("br",{}),k.jsxs("span",{children:[k.jsx("b",{children:"Selector: "}),i]}),k.jsx("br",{}),k.jsxs("span",{children:[k.jsx("b",{children:"Start: "}),new Date(n).toLocaleDateString()," ",new Date(n).toLocaleTimeString()]}),k.jsx("br",{}),k.jsxs("span",{children:[k.jsx("b",{children:"End: "}),new Date(r).toLocaleDateString()," ",new Date(r).toLocaleTimeString()]})]}),children:t})}function yI({node:e,depth:t,totalTime:n,treeStart:r,selectedNodeId:i,setSelectedNodeId:o}){B.useEffect(()=>kr.setFrameHeight());const[s,a]=B.useState(!0),{nodeId:l,startTime:u,timeTaken:c,selector:f,label:p,span:h}=e,y=i===l;return k.jsxs(k.Fragment,{children:[k.jsxs(n2,{onClick:()=>o(l??null),sx:{...F8,background:y?({palette:m})=>m.primary.lighter:void 0},children:[k.jsx(ca,{children:k.jsxs(qt,{sx:{ml:t,display:"flex",flexDirection:"row"},children:[e.children.length>0&&k.jsx(sR,{onClick:()=>a(!s),disableRipple:!0,size:"small",children:s?k.jsx(ZL,{}):k.jsx(e8,{})}),k.jsxs(qt,{sx:{display:"flex",alignItems:"center",ml:e.children.length===0?5:0,gap:1},children:[k.jsx(A8,{spanType:h==null?void 0:h.type}),k.jsx(Nt,{fontWeight:"bold",children:p}),k.jsx(Nt,{variant:"code",children:f})]})]})}),k.jsxs(ca,{align:"right",children:[c," ms"]}),k.jsx(ca,{sx:{minWidth:500,padding:0},children:k.jsx(mI,{node:e,children:k.jsx(qt,{sx:{left:`${(u-r)/n*100}%`,width:`${c/n*100}%`,background:({palette:m})=>i===null||y?m.grey[500]:m.grey[300],...D8}})})})]}),s?e.children.map(m=>k.jsx(yI,{selectedNodeId:i,setSelectedNodeId:o,node:m,depth:t+1,totalTime:n,treeStart:r},m.nodeId)):null]})}const D8={position:"relative",height:20,borderRadius:({spacing:e})=>e(.5)},F8={cursor:"pointer","&:hover":{background:({palette:e})=>e.primary.lighter}};function P8({root:e,selectedNodeId:t,setSelectedNodeId:n}){const{timeTaken:r,startTime:i}=e;return k.jsx(eD,{children:k.jsxs(M6,{sx:j8,"aria-label":"Table breakdown of the components in the current app",size:"small",children:[k.jsx(aD,{children:k.jsxs(n2,{children:[k.jsx(ca,{width:275,children:"Method"}),k.jsx(ca,{width:75,children:"Duration"}),k.jsx(ca,{children:"Timeline"})]})}),k.jsx(z6,{children:k.jsx(yI,{selectedNodeId:t,setSelectedNodeId:n,node:e,depth:0,totalTime:r,treeStart:i})})]})})}const j8={borderRadius:({spacing:e})=>e(.5),minWidth:650,"& th":{backgroundColor:({palette:e})=>e.grey[100],color:({palette:e})=>e.grey[600],fontWeight:600},"& .MuiTableCell-root":{borderRight:({palette:e})=>`1px solid ${e.grey[300]}`},"& .MuiTableCell-root:last-child":{borderRight:"none"},"& .MuiTableBody-root .MuiTableCell-root":{mx:1}},rv=(...e)=>e.map(t=>Array.isArray(t)?t:[t]).flat(),L8={value:"label-and-value-value"};function Ua({label:e,value:t,align:n="start",sx:r={}}){return k.jsxs(qt,{sx:rv($8,r),children:[k.jsx(Nt,{variant:"subtitle1",sx:N8,children:e}),k.jsx(qt,{className:L8.value,sx:{display:"flex",flexDirection:"column",alignItems:n},children:t})]})}const N8={display:"flex",flexDirection:"column",fontWeight:({typography:e})=>e.fontWeightBold},$8={display:"flex",flexDirection:"column",marginRight:3};function iv({header:e,children:t}){return k.jsxs(qt,{sx:z8,children:[k.jsx(qt,{className:"panel-header",children:k.jsx(Nt,{variant:"body2",fontWeight:"bold",color:"grey.600",children:e})}),k.jsx(qt,{className:"panel-content",children:t})]})}const z8=({spacing:e,palette:t})=>({borderRadius:e(.5),border:`1px solid ${t.grey[300]}`,width:"100%","& .panel-header":{background:t.grey[100],p:1,borderBottom:`1px solid ${t.grey[300]}`},"& .panel-content":{p:2}});function _o({title:e,subtitle:t,body:n,children:r}){return k.jsxs(ps,{gap:1,children:[k.jsxs(qt,{sx:{display:"flex",gap:1,alignItems:"baseline"},children:[k.jsx(Nt,{variant:"body2",fontWeight:"bold",children:e}),t&&k.jsx(Nt,{variant:"code",children:t})]}),k.jsx(Nt,{children:n}),r]})}const U8={border:({palette:e})=>`1px solid ${e.grey[300]}`,pl:2,py:1,borderRadius:({spacing:e})=>e(.5),width:"fit-content"};function gI({recordJSON:e}){const{main_input:t,main_output:n,main_error:r}=e;return k.jsx(iv,{header:"Trace I/O",children:k.jsxs(ps,{gap:2,children:[k.jsx(_o,{title:"Input",subtitle:"Select.RecordInput",body:t??"No input found."}),k.jsx(_o,{title:"Output",subtitle:"Select.RecordOutput",body:n??"No output found."}),r&&k.jsx(_o,{title:"Error",body:r??"No error found."})]})})}function Su({selectedNode:e,recordJSON:t,children:n,labels:r}){const{timeTaken:i,raw:o,selector:s,span:a}=e,{args:l,rets:u}=o??{};let c=k.jsx(Nt,{children:"No return values recorded"});return u&&(typeof u=="string"&&(c=k.jsx(Nt,{children:u})),typeof u=="object"&&(c=k.jsx(ho,{src:u}))),k.jsxs(k.Fragment,{children:[k.jsxs(ps,{direction:"row",sx:U8,children:[k.jsx(Ua,{label:"Span type",value:k.jsx(Nt,{children:cI(a==null?void 0:a.type)})}),k.jsx(Ua,{label:"Time taken",value:k.jsxs(Nt,{children:[i," ms"]})}),r]}),k.jsxs(rs,{container:!0,gap:1,children:[k.jsx(rs,{item:!0,xs:12,children:k.jsx(iv,{header:"Span I/O",children:k.jsxs(ps,{gap:2,children:[k.jsx(_o,{title:"Arguments",subtitle:s?`${s}.args`:void 0,children:l?k.jsx(ho,{src:l}):"No arguments recorded."}),k.jsx(_o,{title:"Return values",subtitle:s?`${s}.rets`:void 0,children:c})]})})}),n,k.jsx(rs,{item:!0,xs:12,children:k.jsx(gI,{recordJSON:t})})]})]})}function V8({selectedNode:e,recordJSON:t}){var n;return k.jsx(Su,{selectedNode:e,recordJSON:t,labels:k.jsx(Ua,{label:"Model name",value:k.jsx(Nt,{children:((n=e.span)==null?void 0:n.modelName)??"N/A"})})})}function W8({selectedNode:e,recordJSON:t}){const{span:n}=e;if(!n)return k.jsx(Su,{selectedNode:e,recordJSON:t});const{inputText:r,inputEmbedding:i,distanceType:o,numContexts:s,retrievedContexts:a}=n;return k.jsx(Su,{selectedNode:e,recordJSON:t,labels:k.jsxs(k.Fragment,{children:[k.jsx(Ua,{label:"Distance type",value:k.jsx(Nt,{children:o??"N/A"})}),k.jsx(Ua,{label:"Number of contexts",value:k.jsx(Nt,{children:s??"N/A"})})]}),children:k.jsx(rs,{item:!0,xs:12,children:k.jsx(iv,{header:"Retriever I/O",children:k.jsxs(ps,{gap:2,children:[k.jsx(_o,{title:"Input text",children:k.jsx(Nt,{children:r??"N/A"})}),k.jsx(_o,{title:"Input embedding",children:i?k.jsx(ho,{src:i}):k.jsx(Nt,{children:"N/A"})}),k.jsx(_o,{title:"Retrieved contexts",children:a!=null&&a.length?k.jsx(ho,{src:a}):k.jsx(Nt,{children:"N/A"})})]})})})})}function H8({selectedNode:e,recordJSON:t}){const{span:n}=e;return n?n instanceof pI?k.jsx(V8,{selectedNode:e,recordJSON:t}):n instanceof dI?k.jsx(W8,{selectedNode:e,recordJSON:t}):k.jsx(Su,{selectedNode:e,recordJSON:t}):k.jsx(Su,{selectedNode:e,recordJSON:t})}function K8({root:e,recordJSON:t}){const{timeTaken:n}=e;return k.jsxs(k.Fragment,{children:[k.jsx(ps,{direction:"row",sx:Y8,children:k.jsx(Ua,{label:"Latency",value:k.jsxs(Nt,{children:[n," ms"]})})}),k.jsx(gI,{recordJSON:t})]})}const Y8={border:({palette:e})=>`1px solid ${e.grey[300]}`,pl:2,py:1,borderRadius:({spacing:e})=>e(.5),width:"fit-content"};function G8({selectedNode:e,recordJSON:t}){return e?e.isRoot?k.jsx(K8,{root:e,recordJSON:t}):k.jsx(H8,{selectedNode:e,recordJSON:t}):k.jsx(k.Fragment,{children:"Node not found."})}var ov={},zh={};const q8=Gi(sA);var sw;function vI(){return sw||(sw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=q8}(zh)),zh}var X8=Ud;Object.defineProperty(ov,"__esModule",{value:!0});var bI=ov.default=void 0,Q8=X8(vI()),J8=k,Z8=(0,Q8.default)((0,J8.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"}),"KeyboardArrowDownRounded");bI=ov.default=Z8;var sv={},eN=Ud;Object.defineProperty(sv,"__esModule",{value:!0});var wI=sv.default=void 0,tN=eN(vI()),nN=k,rN=(0,tN.default)((0,nN.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0z"}),"KeyboardArrowUpRounded");wI=sv.default=rN;function iN(e){return on("MuiSimpleTreeView",e)}sn("MuiSimpleTreeView",["root"]);const oN=(e,t)=>{const n=B.useRef({}),[r,i]=B.useState(()=>{const s={};return e.forEach(a=>{a.models&&Object.entries(a.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},s[l]=u.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,a])=>{const l=a.isControlled?t[s]:r[s];return[s,{value:l,setControlledValue:u=>{a.isControlled||i(c=>j({},c,{[s]:u}))}}]}))};class sN{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const a=i[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),i=r.indexOf(t);if(i===0)return n.parentId;let o=r[i-1];for(;e.isItemExpanded(o)&&e.getNavigableChildrenIds(o).length>0;)o=e.getNavigableChildrenIds(o).pop();return o},vy=(e,t)=>{if(e.isItemExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),i=r[r.indexOf(n.id)+1];if(i)return i;n=e.getNode(n.parentId)}return null},by=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isItemExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},wy=e=>e.getNavigableChildrenIds(null)[0],Lo=(e,t)=>{Object.assign(e,t)},xI=(e,t)=>{Object.assign(e,t)},lN=e=>e.isPropagationStopped!==void 0,SI=({instance:e})=>{const[t]=B.useState(()=>new sN),n=B.useCallback((...i)=>{const[o,s,a={}]=i;a.defaultMuiPrevented=!1,!(lN(a)&&a.isPropagationStopped())&&t.emit(o,s,a)},[t]),r=B.useCallback((i,o)=>(t.on(i,o),()=>{t.removeListener(i,o)}),[t]);Lo(e,{$$publishEvent:n,$$subscribeEvent:r})};SI.params={};const uN=[SI];function cN(e){const t=B.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const fN=e=>{const t=[...uN,...e.plugins],n=t.reduce((_,g)=>g.getDefaultizedParams?g.getDefaultizedParams(_):_,e),r=oN(t,n),o=B.useRef({}).current,s=cN(e.apiRef),a=B.useRef(null),l=$n(a,e.rootRef),[u,c]=B.useState(()=>{const _={};return t.forEach(g=>{g.getInitialState&&Object.assign(_,g.getInitialState(n))}),_}),f=[],p={publicAPI:s,instance:o},h=_=>{const g=_({instance:o,publicAPI:s,params:n,slots:n.slots,slotProps:n.slotProps,state:u,setState:c,rootRef:a,models:r})||{};g.getRootProps&&f.push(g.getRootProps),g.contextValue&&Object.assign(p,g.contextValue)};t.forEach(h),p.runItemPlugins=_=>{let g=null,v=null;return t.forEach(b=>{if(!b.itemPlugin)return;const x=b.itemPlugin({props:_,rootRef:g,contentRef:v});x!=null&&x.rootRef&&(g=x.rootRef),x!=null&&x.contentRef&&(v=x.contentRef)}),{contentRef:v,rootRef:g}};const y=t.map(_=>_.wrapItem).filter(_=>!!_);return p.wrapItem=({itemId:_,children:g})=>{let v=g;return y.forEach(b=>{v=b({itemId:_,children:v})}),v},{getRootProps:(_={})=>{const g=j({role:"tree"},_,{ref:l});return f.forEach(v=>{Object.assign(g,v(_))}),g},rootRef:l,contextValue:p,instance:o}},_I=B.createContext(null),dN=["element"];function pN(e,t){let n=0,r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2);if(e[i].element===t)return i;e[i].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=i-1:n=i+1}return n}const EI=B.createContext({});function hN(e){const t=B.useRef(null);return B.useEffect(()=>{t.current=e},[e]),t.current}const aw=()=>{};function mN(e){const[,t]=B.useState(),{registerDescendant:n=aw,unregisterDescendant:r=aw,descendants:i=[],parentId:o=null}=B.useContext(EI),s=i.findIndex(u=>u.element===e.element),a=hN(i),l=i.some((u,c)=>a&&a[c]&&a[c].element!==u.element);return Eo(()=>{if(e.element)return n(j({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,l,e]),{parentId:o,index:s}}function II(e){const{children:t,id:n}=e,[r,i]=B.useState([]),o=B.useCallback(l=>{let{element:u}=l,c=Te(l,dN);i(f=>{if(f.length===0)return[j({},c,{element:u,index:0})];const p=pN(f,u);let h;if(f[p]&&f[p].element===u)h=f;else{const y=j({},c,{element:u,index:p});h=f.slice(),h.splice(p,0,y)}return h.forEach((y,m)=>{y.index=m}),h})},[]),s=B.useCallback(l=>{i(u=>u.filter(c=>l!==c.element))},[]),a=B.useMemo(()=>({descendants:r,registerDescendant:o,unregisterDescendant:s,parentId:n}),[r,o,s,n]);return k.jsx(EI.Provider,{value:a,children:t})}function yN(e){const{value:t,children:n}=e;return k.jsx(_I.Provider,{value:t,children:k.jsx(II,{children:n})})}const TI=({instance:e,params:t})=>{const n=Yy(t.id),r=B.useCallback((i,o)=>o??`${n}-${i}`,[n]);return Lo(e,{getTreeItemId:r}),{getRootProps:()=>({id:n})}};TI.params={id:!0};const CI=(e,t,n)=>{e.$$publishEvent(t,n)},OI=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s=(l,u,c)=>{var h,y;const f=r?r(l):l.id;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(l)].join(` +`));if(i[f]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Tow items were provided with the same id in the \`items\` prop: "${f}"`].join(` +`));const p=n?n(l):l.label;if(p==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(l)].join(` +`));return i[f]={id:f,label:p,index:u,parentId:c,idAttribute:void 0,expandable:!!((h=l.children)!=null&&h.length),disabled:t?t(l):!1},o[f]=l,{id:f,children:(y=l.children)==null?void 0:y.map((m,_)=>s(m,_,f))}},a=e.map((l,u)=>s(l,u,null));return{nodeMap:i,nodeTree:a,itemMap:o}},Mp=({instance:e,publicAPI:t,params:n,state:r,setState:i})=>{const o=B.useCallback(y=>r.items.nodeMap[y],[r.items.nodeMap]),s=B.useCallback(y=>r.items.itemMap[y],[r.items.itemMap]),a=B.useCallback(y=>{if(y==null)return!1;let m=e.getNode(y);if(!m)return!1;if(m.disabled)return!0;for(;m.parentId!=null;)if(m=e.getNode(m.parentId),m.disabled)return!0;return!1},[e]),l=B.useCallback(y=>Object.values(r.items.nodeMap).filter(m=>m.parentId===y).sort((m,_)=>m.index-_.index).map(m=>m.id),[r.items.nodeMap]),u=y=>{let m=e.getChildrenIds(y);return n.disabledItemsFocusable||(m=m.filter(_=>!e.isItemDisabled(_))),m},c=B.useRef(!1),f=B.useCallback(()=>{c.current=!0},[]),p=B.useCallback(()=>c.current,[]);return B.useEffect(()=>{e.areItemUpdatesPrevented()||i(y=>{const m=OI({items:n.items,isItemDisabled:n.isItemDisabled,getItemId:n.getItemId,getItemLabel:n.getItemLabel});return Object.values(y.items.nodeMap).forEach(_=>{m.nodeMap[_.id]||CI(e,"removeItem",{id:_.id})}),j({},y,{items:m})})},[e,i,n.items,n.isItemDisabled,n.getItemId,n.getItemLabel]),Lo(e,{getNode:o,getItem:s,getItemsToRender:()=>{const y=({id:m,children:_})=>{const g=r.items.nodeMap[m];return{label:g.label,itemId:g.id,id:g.idAttribute,children:_==null?void 0:_.map(y)}};return r.items.nodeTree.map(y)},getChildrenIds:l,getNavigableChildrenIds:u,isItemDisabled:a,preventItemUpdates:f,areItemUpdatesPrevented:p}),xI(t,{getItem:s}),{contextValue:{disabledItemsFocusable:n.disabledItemsFocusable}}};Mp.getInitialState=e=>({items:OI({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Mp.getDefaultizedParams=e=>j({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});Mp.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const Dp=({instance:e,params:t,models:n})=>{const r=(l,u)=>{var c;(c=t.onExpandedItemsChange)==null||c.call(t,l,u),n.expandedItems.setControlledValue(u)},i=B.useCallback(l=>Array.isArray(n.expandedItems.value)?n.expandedItems.value.indexOf(l)!==-1:!1,[n.expandedItems.value]),o=B.useCallback(l=>{var u;return!!((u=e.getNode(l))!=null&&u.expandable)},[e]),s=pn((l,u)=>{if(u==null)return;const c=n.expandedItems.value.indexOf(u)!==-1;let f;c?f=n.expandedItems.value.filter(p=>p!==u):f=[u].concat(n.expandedItems.value),t.onItemExpansionToggle&&t.onItemExpansionToggle(l,u,!c),r(l,f)});Lo(e,{isItemExpanded:i,isItemExpandable:o,toggleItemExpansion:s,expandAllSiblings:(l,u)=>{const c=e.getNode(u),p=e.getChildrenIds(c.parentId).filter(y=>e.isItemExpandable(y)&&!e.isItemExpanded(y)),h=n.expandedItems.value.concat(p);p.length>0&&(t.onItemExpansionToggle&&p.forEach(y=>{t.onItemExpansionToggle(l,y,!0)}),r(l,h))}})};Dp.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const gN=[];Dp.getDefaultizedParams=e=>j({},e,{defaultExpandedItems:e.defaultExpandedItems??gN});Dp.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const vN=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),i=e.getNode(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let a=r.parentId,l=i.parentId,u=s.indexOf(a)!==-1,c=o.indexOf(l)!==-1,f=!0,p=!0;for(;!c&&!u;)f&&(o.push(a),u=s.indexOf(a)!==-1,f=a!==null,!u&&f&&(a=e.getNode(a).parentId)),p&&!u&&(s.push(l),c=o.indexOf(l)!==-1,p=l!==null,!c&&p&&(l=e.getNode(l).parentId));const h=u?a:l,y=e.getChildrenIds(h),m=o[o.indexOf(h)-1],_=s[s.indexOf(h)-1];return y.indexOf(m){const r=B.useRef(null),i=B.useRef(!1),o=B.useRef([]),s=(m,_)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=_.filter(b=>!e.isItemSelected(b)),v=n.selectedItems.value.filter(b=>!_.includes(b));g.forEach(b=>{t.onItemSelectionToggle(m,b,!0)}),v.forEach(b=>{t.onItemSelectionToggle(m,b,!1)})}else _!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(m,n.selectedItems.value,!1),_!=null&&t.onItemSelectionToggle(m,_,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(m,_),n.selectedItems.setControlledValue(_)},a=m=>Array.isArray(n.selectedItems.value)?n.selectedItems.value.indexOf(m)!==-1:n.selectedItems.value===m,l=(m,_,g=!1)=>{if(!t.disableSelection){if(g){if(Array.isArray(n.selectedItems.value)){let v;n.selectedItems.value.indexOf(_)!==-1?v=n.selectedItems.value.filter(b=>b!==_):v=[_].concat(n.selectedItems.value),s(m,v)}}else{const v=t.multiSelect?[_]:_;s(m,v)}r.current=_,i.current=!1,o.current=[]}},u=(m,_)=>{const[g,v]=vN(e,m,_),b=[g];let x=g;for(;x!==v;)x=vy(e,x),b.push(x);return b},c=(m,_)=>{let g=n.selectedItems.value.slice();const{start:v,next:b,current:x}=_;!b||!x||(o.current.indexOf(x)===-1&&(o.current=[]),i.current?o.current.indexOf(b)!==-1?(g=g.filter(d=>d===v||d!==x),o.current=o.current.filter(d=>d===v||d!==x)):(g.push(b),o.current.push(b)):(g.push(b),o.current.push(x,b)),s(m,g))},f=(m,_)=>{let g=n.selectedItems.value.slice();const{start:v,end:b}=_;i.current&&(g=g.filter(C=>o.current.indexOf(C)===-1));let x=u(v,b);x=x.filter(C=>!e.isItemDisabled(C)),o.current=x;let d=g.concat(x);d=d.filter((C,I)=>d.indexOf(C)===I),s(m,d)};return Lo(e,{isItemSelected:a,selectItem:l,selectRange:(m,_,g=!1)=>{if(t.disableSelection)return;const{start:v=r.current,end:b,current:x}=_;g?c(m,{start:v,next:b,current:x}):v!=null&&b!=null&&f(m,{start:v,end:b}),i.current=!0},rangeSelectToLast:(m,_)=>{r.current||(r.current=_);const g=i.current?r.current:_;e.selectRange(m,{start:g,end:by(e)})},rangeSelectToFirst:(m,_)=>{r.current||(r.current=_);const g=i.current?r.current:_;e.selectRange(m,{start:g,end:wy(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),contextValue:{selection:{multiSelect:t.multiSelect}}}};Fp.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const bN=[];Fp.getDefaultizedParams=e=>j({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?bN:null)});Fp.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const lw=1e3;class wN{constructor(t=lw){this.timeouts=new Map,this.cleanupTimeout=lw,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class xN{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class SN{}function _N(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new xN:new wN);const[s]=B.useState(new SN),a=B.useRef(null),l=B.useRef();l.current=o;const u=B.useRef(null);if(!a.current&&l.current){const c=(f,p)=>{var h;p.defaultMuiPrevented||(h=l.current)==null||h.call(l,f,p)};a.current=r.$$subscribeEvent(i,c),t+=1,u.current={cleanupToken:t},e.registry.register(s,()=>{var f;(f=a.current)==null||f.call(a),a.current=null,u.current=null},u.current)}else!l.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));B.useEffect(()=>{if(!a.current&&l.current){const c=(f,p)=>{var h;p.defaultMuiPrevented||(h=l.current)==null||h.call(l,f,p)};a.current=r.$$subscribeEvent(i,c)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var c;(c=a.current)==null||c.call(a),a.current=null}},[r,i])}}const EN={registry:null},IN=_N(EN),kI=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?kI(t.shadowRoot):t:null},TN=(e,t)=>{const n=i=>{const o=e.getNode(i);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=e.getNavigableChildrenIds(null)[0]),r},av=({instance:e,publicAPI:t,params:n,state:r,setState:i,models:o,rootRef:s})=>{const a=TN(e,o.selectedItems.value),l=pn(x=>{const d=typeof x=="function"?x(r.focusedItemId):x;r.focusedItemId!==d&&i(C=>j({},C,{focusedItemId:d}))}),u=B.useCallback(()=>!!s.current&&s.current.contains(kI(va(s.current))),[s]),c=B.useCallback(x=>r.focusedItemId===x&&u(),[r.focusedItemId,u]),f=x=>{const d=e.getNode(x);return d&&(d.parentId==null||e.isItemExpanded(d.parentId))},p=(x,d)=>{const C=e.getNode(d),I=document.getElementById(e.getTreeItemId(d,C.idAttribute));I&&I.focus(),l(d),n.onItemFocus&&n.onItemFocus(x,d)},h=pn((x,d)=>{f(d)&&p(x,d)}),y=pn(x=>{let d;Array.isArray(o.selectedItems.value)?d=o.selectedItems.value.find(f):o.selectedItems.value!=null&&f(o.selectedItems.value)&&(d=o.selectedItems.value),d==null&&(d=e.getNavigableChildrenIds(null)[0]),p(x,d)}),m=pn(()=>{if(r.focusedItemId==null)return;const x=e.getNode(r.focusedItemId);if(x){const d=document.getElementById(e.getTreeItemId(r.focusedItemId,x.idAttribute));d&&d.blur()}l(null)});Lo(e,{isItemFocused:c,canItemBeTabbed:x=>x===a,focusItem:h,focusDefaultItem:y,removeFocusedItem:m}),xI(t,{focusItem:h}),IN(e,"removeItem",({id:x})=>{r.focusedItemId===x&&e.focusDefaultItem(null)});const g=x=>d=>{var C;(C=x.onFocus)==null||C.call(x,d),d.target===d.currentTarget&&e.focusDefaultItem(d)},v=e.getNode(r.focusedItemId),b=v?e.getTreeItemId(v.id,v.idAttribute):null;return{getRootProps:x=>({onFocus:g(x),"aria-activedescendant":b??void 0})}};av.getInitialState=()=>({focusedItemId:null});av.params={onItemFocus:!0};function CN(e){return!!e&&e.length===1&&!!e.match(/\S/)}function uw(e,t,n){for(let r=t;r{const i=Ya().direction==="rtl",o=B.useRef({}),s=pn(f=>{o.current=f(o.current)});B.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=h=>{f[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.nodeMap).forEach(p),o.current=f},[n.items.nodeMap,t.getItemId,e]);const a=(f,p)=>{let h,y;const m=p.toLowerCase(),_=[],g=[];return Object.keys(o.current).forEach(v=>{const b=e.getNode(v),x=b.parentId?e.isItemExpanded(b.parentId):!0,d=t.disabledItemsFocusable?!1:e.isItemDisabled(v);x&&!d&&(_.push(v),g.push(o.current[v]))}),h=_.indexOf(f)+1,h>=_.length&&(h=0),y=uw(g,h,m),y===-1&&(y=uw(g,0,m)),y>-1?_[y]:null},l=f=>!t.disableSelection&&!e.isItemDisabled(f),u=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);Lo(e,{updateFirstCharMap:s,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||f.currentTarget!==f.target)return;const h=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&l(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.selectRange(f,{end:p}):t.multiSelect?e.selectItem(f,p,!0):e.selectItem(f,p);break}case y==="Enter":{u(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):l(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem(f,p,!0)):e.isItemSelected(p)||(e.selectItem(f,p),f.preventDefault()));break}case y==="ArrowDown":{const m=vy(e,p);m&&(f.preventDefault(),e.focusItem(f,m),t.multiSelect&&f.shiftKey&&l(m)&&e.selectRange(f,{end:m,current:p},!0));break}case y==="ArrowUp":{const m=aN(e,p);m&&(f.preventDefault(),e.focusItem(f,m),t.multiSelect&&f.shiftKey&&l(m)&&e.selectRange(f,{end:m,current:p},!0));break}case(y==="ArrowRight"&&!i||y==="ArrowLeft"&&i):{if(e.isItemExpanded(p)){const m=vy(e,p);m&&(e.focusItem(f,m),f.preventDefault())}else u(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!i||y==="ArrowRight"&&i):{if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const m=e.getNode(p).parentId;m&&(e.focusItem(f,m),f.preventDefault())}break}case y==="Home":{e.focusItem(f,wy(e)),l(p)&&t.multiSelect&&h&&f.shiftKey&&e.rangeSelectToFirst(f,p),f.preventDefault();break}case y==="End":{e.focusItem(f,by(e)),l(p)&&t.multiSelect&&h&&f.shiftKey&&e.rangeSelectToLast(f,p),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(y==="a"&&h&&t.multiSelect&&!t.disableSelection):{e.selectRange(f,{start:wy(e),end:by(e)}),f.preventDefault();break}case(!h&&!f.shiftKey&&CN(y)):{const m=a(p,y);m!=null&&(e.focusItem(f,m),f.preventDefault());break}}}})};AI.params={};const BI=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});BI.params={};const ON=[TI,Mp,Dp,Fp,av,AI,BI],Pp=()=>{const e=B.useContext(_I);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` +`));return e},jp=({instance:e,setState:t})=>{e.preventItemUpdates();const n=pn(o=>{t(s=>{if(s.items.nodeMap[o.id]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Tow items were provided with the same id in the \`items\` prop: "${o.id}"`].join(` +`));return j({},s,{items:j({},s.items,{nodeMap:j({},s.items.nodeMap,{[o.id]:o}),itemMap:j({},s.items.itemMap,{[o.id]:{id:o.id,label:o.label}})})})})}),r=pn(o=>{t(s=>{const a=j({},s.items.nodeMap),l=j({},s.items.itemMap);return delete a[o],delete l[o],j({},s,{items:j({},s.items,{nodeMap:a,itemMap:l})})}),CI(e,"removeItem",{id:o})}),i=pn((o,s)=>(e.updateFirstCharMap(a=>(a[o]=s,a)),()=>{e.updateFirstCharMap(a=>{const l=j({},a);return delete l[o],l})}));Lo(e,{insertJSXItem:n,removeJSXItem:r,mapFirstCharFromJSX:i})},kN=({props:e,rootRef:t,contentRef:n})=>{const{children:r,disabled:i=!1,label:o,itemId:s,id:a}=e,{instance:l}=Pp(),u=b=>Array.isArray(b)?b.length>0&&b.some(u):!!b,c=u(r),[f,p]=B.useState(null),h=B.useRef(null),y=$n(p,t),m=$n(h,n),_=B.useMemo(()=>({element:f,id:s}),[s,f]),{index:g,parentId:v}=mN(_);return B.useEffect(()=>{if(g!==-1)return l.insertJSXItem({id:s,idAttribute:a,index:g,parentId:v,expandable:c,disabled:i}),()=>l.removeJSXItem(s)},[l,v,g,s,c,i,a]),B.useEffect(()=>{var b;if(o)return l.mapFirstCharFromJSX(s,(((b=h.current)==null?void 0:b.textContent)??"").substring(0,1).toLowerCase())},[l,s,o]),{contentRef:m,rootRef:y}};jp.itemPlugin=kN;jp.wrapItem=({children:e,itemId:t})=>k.jsx(II,{id:t,children:e});jp.params={};const AN=[...ON,jp],BN=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},RN=["slots","slotProps","apiRef"],MN=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:o}=e,s=Te(e.props,RN);const a={};i.forEach(c=>{Object.assign(a,c.params)});const l={plugins:i,rootRef:o,slots:t??{},slotProps:n??{},apiRef:r},u={};return Object.keys(s).forEach(c=>{const f=s[c];a[c]?l[c]=f:u[c]=f}),{pluginParams:l,slots:t,slotProps:n,otherProps:u}},DN=e=>{const{classes:t}=e;return an({root:["root"]},iN,t)},FN=tt("ul",{name:"MuiSimpleTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),PN=[];BN(["MUI X: The `SimpleTreeView` component does not support the `items` prop.","If you want to add items, you need to pass them as JSX children.","Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/"]);const jN=B.forwardRef(function(t,n){const r=Zt({props:t,name:"MuiSimpleTreeView"}),i=r,{pluginParams:o,slots:s,slotProps:a,otherProps:l}=MN({props:j({},r,{items:PN}),plugins:AN,rootRef:n}),{getRootProps:u,contextValue:c}=fN(o),f=DN(r),p=(s==null?void 0:s.root)??FN,h=vi({elementType:p,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:l,className:f.root,getSlotProps:u,ownerState:i});return k.jsx(yN,{value:c,children:k.jsx(p,j({},h))})});function RI(e){const{instance:t,selection:{multiSelect:n}}=Pp(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),o=t.isItemFocused(e),s=t.isItemSelected(e),a=t.isItemDisabled(e);return{disabled:a,expanded:i,selected:s,focused:o,handleExpansion:f=>{if(!a){o||t.focusItem(f,e);const p=n&&(f.shiftKey||f.ctrlKey||f.metaKey);r&&!(p&&t.isItemExpanded(e))&&t.toggleItemExpansion(f,e)}},handleSelection:f=>{a||(o||t.focusItem(f,e),n&&(f.shiftKey||f.ctrlKey||f.metaKey)?f.shiftKey?t.selectRange(f,{end:e}):t.selectItem(f,e,!0):t.selectItem(f,e))},preventSelection:f=>{(f.shiftKey||f.ctrlKey||f.metaKey||a)&&f.preventDefault()}}}const LN=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],MI=B.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:a,label:l,itemId:u,onClick:c,onMouseDown:f}=t,p=Te(t,LN),{disabled:h,expanded:y,selected:m,focused:_,handleExpansion:g,handleSelection:v,preventSelection:b}=RI(u),x=a||s||o,d=I=>{b(I),f&&f(I)},C=I=>{g(I),v(I),c&&c(I)};return k.jsxs("div",j({},p,{className:Ne(i,r.root,y&&r.expanded,m&&r.selected,_&&r.focused,h&&r.disabled),onClick:C,onMouseDown:d,ref:n,children:[k.jsx("div",{className:r.iconContainer,children:x}),k.jsx("div",{className:r.label,children:l})]}))});function NN(e){return on("MuiTreeItem",e)}const yn=sn("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),$N=si(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),zN=si(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function DI(e){const{children:t,itemId:n}=e,{wrapItem:r}=Pp();return r({children:t,itemId:n})}DI.propTypes={children:Tv.node,itemId:Tv.string.isRequired};const UN=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],VN=["ownerState"],WN=["ownerState"],HN=["ownerState"],KN=e=>{const{classes:t}=e;return an({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},NN,t)},YN=tt("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),GN=tt(MI,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${yn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${yn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${yn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fc(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${yn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${yn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${yn.label}`]:j({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),qN=tt(CB,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),XN=B.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},disabledItemsFocusable:s,instance:a}=Pp(),l=Zt({props:t,name:"MuiTreeItem"}),{children:u,className:c,slots:f,slotProps:p,ContentComponent:h=MI,ContentProps:y,itemId:m,id:_,label:g,onClick:v,onMouseDown:b,onBlur:x,onKeyDown:d}=l,C=Te(l,UN),{contentRef:I,rootRef:L}=i(l),R=$n(n,L),A=$n(y==null?void 0:y.ref,I),F={expandIcon:(f==null?void 0:f.expandIcon)??r.slots.expandIcon??$N,collapseIcon:(f==null?void 0:f.collapseIcon)??r.slots.collapseIcon??zN,endIcon:(f==null?void 0:f.endIcon)??r.slots.endIcon,icon:f==null?void 0:f.icon,groupTransition:f==null?void 0:f.groupTransition},V=ve=>Array.isArray(ve)?ve.length>0&&ve.some(V):!!ve,H=V(u),te=a.isItemExpanded(m),D=a.isItemFocused(m),ee=a.isItemSelected(m),ie=a.isItemDisabled(m),M=j({},l,{expanded:te,focused:D,selected:ee,disabled:ie}),Z=KN(M),X=F.groupTransition??void 0,ce=vi({elementType:X,ownerState:{},externalSlotProps:p==null?void 0:p.groupTransition,additionalProps:{unmountOnExit:!0,in:te,component:"ul",role:"group"},className:Z.groupTransition}),ae=te?F.collapseIcon:F.expandIcon,Ce=vi({elementType:ae,ownerState:{},externalSlotProps:ve=>te?j({},Ko(r.slotProps.collapseIcon,ve),Ko(p==null?void 0:p.collapseIcon,ve)):j({},Ko(r.slotProps.expandIcon,ve),Ko(p==null?void 0:p.expandIcon,ve))}),xe=Te(Ce,VN),Pe=H&&ae?k.jsx(ae,j({},xe)):null,se=H?void 0:F.endIcon,_e=vi({elementType:se,ownerState:{},externalSlotProps:ve=>H?{}:j({},Ko(r.slotProps.endIcon,ve),Ko(p==null?void 0:p.endIcon,ve))}),me=Te(_e,WN),ge=se?k.jsx(se,j({},me)):null,Ie=F.icon,st=vi({elementType:Ie,ownerState:{},externalSlotProps:p==null?void 0:p.icon}),ln=Te(st,HN),en=Ie?k.jsx(Ie,j({},ln)):null;let Wt;o?Wt=ee:ee&&(Wt=!0);function Bt(ve){!D&&(!ie||s)&&ve.currentTarget===ve.target&&a.focusItem(ve,m)}function Ht(ve){x==null||x(ve),a.removeFocusedItem()}const xt=ve=>{d==null||d(ve),a.handleItemKeyDown(ve,m)},bt=a.getTreeItemId(m,_),un=a.canItemBeTabbed(m)?0:-1;return k.jsx(DI,{itemId:m,children:k.jsxs(YN,j({className:Ne(Z.root,c),role:"treeitem","aria-expanded":H?te:void 0,"aria-selected":Wt,"aria-disabled":ie||void 0,id:bt,tabIndex:un},C,{ownerState:M,onFocus:Bt,onBlur:Ht,onKeyDown:xt,ref:R,children:[k.jsx(GN,j({as:h,classes:{root:Z.content,expanded:Z.expanded,selected:Z.selected,focused:Z.focused,disabled:Z.disabled,iconContainer:Z.iconContainer,label:Z.label},label:g,itemId:m,onClick:v,onMouseDown:b,icon:en,expansionIcon:Pe,displayIcon:ge,ownerState:M},y,{ref:A})),u&&k.jsx(qN,j({as:X},ce,{children:u}))]}))})});function QN({severity:e,title:t,leftIcon:n,rightIcon:r,sx:i={}}){return k.jsxs(qt,{sx:rv(JN(e),i),children:[n&&k.jsx(qt,{sx:e$,children:n}),k.jsx(Nt,{variant:"subtitle1",sx:ZN,children:t}),r&&k.jsx(qt,{sx:{paddingLeft:"4px",display:"flex"},children:r})]})}const cw={display:"flex",flexDirection:"row",padding:e=>e.spacing(1/2,1),borderRadius:({spacing:e})=>e(.5),width:"fit-content",height:"fit-content"},JN=e=>e==="info"?{...cw,border:({palette:t})=>`1px solid ${t.grey[300]}`,background:({palette:t})=>t.grey[100]}:{...cw,border:({palette:t})=>`1px solid ${t[e].main}`,background:({palette:t})=>t[e].light},ZN={color:({palette:e})=>e.grey[900],fontWeight:({typography:e})=>e.fontWeightBold,alignSelf:"center",overflow:"auto"},e$={paddingRight:"4px",display:"flex"};function t$({spanType:e=sr.UNTYPED}){const{backgroundColor:t,Icon:n,color:r}=hI[e]??Wl;return k.jsx(qt,{sx:{...r$,backgroundColor:t,color:r},children:k.jsx(n,{sx:{...n$,color:r}})})}const n$={p:1},r$={display:"flex",flexDirection:"column",justifyContent:"center"},i$=B.forwardRef(function(t,n){var C;const{classes:r,className:i,label:o,itemId:s,icon:a,expansionIcon:l,displayIcon:u,node:c}=t,{disabled:f,expanded:p,selected:h,focused:y,handleExpansion:m,handleSelection:_}=RI(s),{selector:g,timeTaken:v}=c,b=a||l||u,x=I=>{m(I)},d=I=>{_(I)};return k.jsx(mI,{node:c,children:k.jsx(qt,{sx:({palette:I})=>({"&:hover":{background:`${I.grey[100]}`},[`&.${r.focused}`]:{background:`${I.grey[50]}`},[`&.${r.focused}:hover`]:{background:`${I.grey[100]}`},[`&.${r.selected}`]:{background:`${I.primary.lighter}`,border:`1px solid ${I.primary.main}`},[`&.${r.selected}:hover`]:{background:`${I.primary.light}`},border:`1px solid ${I.grey[300]}`}),className:Ne(i,r.root,{[r.expanded]:p,[r.selected]:h,[r.focused]:y,[r.disabled]:f}),onClick:d,ref:n,children:k.jsxs(qt,{sx:o$,children:[k.jsx(t$,{spanType:(C=c.span)==null?void 0:C.type}),k.jsxs(qt,{width:b?"calc(100% - 80px)":"calc(100% - 40px)",sx:{p:1,justifyContent:"space-between"},children:[k.jsxs(qt,{children:[k.jsx(Nt,{sx:a$,fontWeight:"bold",children:o}),k.jsx(Nt,{variant:"code",sx:l$,children:g})]}),k.jsx(qt,{sx:u$,children:k.jsx(QN,{leftIcon:k.jsx(JL,{sx:{fontSize:12}}),sx:c$,severity:"info",title:`${v} ms`})})]}),k.jsx(qt,{onClick:I=>x(I),sx:s$,children:b})]})})})}),o$=()=>({display:"flex",width:"-webkit-fill-available",alignItems:"stretch",overflow:"hidden"}),s$=({palette:e})=>({pr:1,color:e.grey[600],display:"flex",flexDirection:"column",justifyContent:"center"}),a$={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},l$={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"inline-block",maxWidth:350,wordBreak:"anywhere"},u$={display:"flex",mt:.5,flexWrap:"wrap"},c$={alignItems:"center","& svg":{color:"grey.900"}};function FI({node:e,depth:t,totalTime:n,treeStart:r}){B.useEffect(()=>kr.setFrameHeight());const{nodeId:i,label:o}=e;return k.jsx(XN,{sx:f$,itemId:i,label:o,ContentComponent:i$,ContentProps:{node:e},children:e.children.map(s=>k.jsx(FI,{node:s,depth:t+1,totalTime:n,treeStart:r},s.nodeId))})}const f$=({spacing:e,palette:t})=>({[`& .${yn.content}`]:{textAlign:"left",position:"relative",zIndex:1,p:0},[`& .${yn.content} ${yn.label}`]:{paddingLeft:e(1)},[`& .${yn.root}`]:{position:"relative","&:last-of-type":{"&::before":{height:`calc(54px + ${e(1)})`,width:e(2),borderBottom:`1px solid ${t.grey[300]}`}},"&::before":{content:'""',display:"block",position:"absolute",height:`calc(100% + ${e(3)})`,borderBottomLeftRadius:4,borderLeft:`1px solid ${t.grey[300]}`,left:e(-2),top:e(-1)}},[`& .${yn.groupTransition}`]:{marginLeft:0,paddingLeft:`calc(1px + ${e(2)})`,[`& .${yn.root}`]:{pt:1},[`& .${yn.root} .${yn.content}`]:{"&::before":{content:'""',position:"absolute",display:"block",width:e(2),height:e(1),zIndex:0,top:"50%",borderBottom:`1px solid ${t.grey[300]}`,transform:"translate(calc(-100% - 1px), -50%)"}},[`& .${yn.root}:last-of-type > .${yn.content}`]:{"&::before":{width:0}}}}),d$=e=>e.method.obj.cls.name,p$=e=>e.method.name,h$=e=>typeof e.path=="string"?e.path:e.path.path.map(t=>{if(t){if("item_or_attribute"in t)return`.${t.item_or_attribute}`;if("index"in t)return`[${t.index}]`}}).filter(Boolean).join(""),m$=e=>({startTime:e!=null&&e.start_time?new Date(e.start_time).getTime():0,endTime:e!=null&&e.end_time?new Date(e.end_time).getTime():0}),PI=(e,t,n,r,i=void 0)=>{const o=n[r],s=d$(o);let a=e.children.find(l=>l.name===s&&l.startTime<=new Date(t.perf.start_time).getTime()&&(!l.endTime||l.endTime>=new Date(t.perf.end_time).getTime()));if(r===n.length-1){const{startTime:l,endTime:u}=m$(t.perf);if(a){a.startTime=l,a.endTime=u,a.raw=t,a.span=i;return}e.children.push(new xy({name:s,raw:t,parentNodes:[...e.parentNodes,e],perf:t.perf,stackCell:o,span:i}));return}if(!a){const l=new xy({name:s,stackCell:o,parentNodes:[...e.parentNodes,e]});e.children.push(l),a=l}PI(a,t,n,r+1,i)},y$=(e,t,n=[])=>{const r=new xy({name:t,perf:e.perf,span:n[0]??new fI({name:t,attributes:{},attributes_metadata:{},status:"UNSET",status_description:"",kind:"root",events:[],context:[-1,-1],start_timestamp:new Date(e.perf.start_time).getDate(),end_timestamp:new Date(e.perf.end_time).getDate()})});return e.calls.forEach((i,o)=>{PI(r,i,i.stack,0,n[o+1])}),r},g$=e=>{const t={},n=[e];for(;n.length!==0;){const r=n.pop();r&&(t[r.nodeId]=r,n.push(...r.children))}return t},jI="root-root-root";class xy{constructor({children:t=[],name:n,stackCell:r,perf:i,raw:o,parentNodes:s=[],span:a}){yt(this,"children");yt(this,"name");yt(this,"path","");yt(this,"methodName","");yt(this,"startTime",0);yt(this,"endTime",0);yt(this,"raw");yt(this,"span");yt(this,"parentNodes",[]);if(i){const l=new Date(i.start_time).getTime(),u=new Date(i.end_time).getTime();this.startTime=l,this.endTime=u}this.children=t,this.name=n,this.raw=o,this.parentNodes=s,this.span=a,r&&(this.path=h$(r),this.methodName=p$(r))}get timeTaken(){return this.endTime-this.startTime}get isRoot(){return this.parentNodes.length===0}get nodeId(){return this.isRoot?jI:`${this.methodName}-${this.name}-${this.startTime??""}-${this.endTime??""}`}get selector(){return["Select.Record",this.path,this.methodName].filter(Boolean).join(".")}get label(){return this.isRoot?this.name:[this.name,this.methodName].join(".")}}function v$({nodeMap:e,root:t,selectedNodeId:n,setSelectedNodeId:r}){const i=(a,l,u)=>{r(u?l:null)},{timeTaken:o,startTime:s}=t;return k.jsx(jN,{sx:{p:1,overflowY:"auto",flexGrow:1,"& > li":{minWidth:"fit-content"}},slots:{collapseIcon:wI,expandIcon:bI},onExpandedItemsChange:()=>{setTimeout(()=>kr.setFrameHeight(),300)},defaultSelectedItems:n??jI,defaultExpandedItems:Object.keys(e)??[],onItemSelectionToggle:i,children:k.jsx(FI,{node:t,depth:0,totalTime:o,treeStart:s})})}function fw({children:e,value:t=!1,onChange:n,sx:r={}}){return k.jsx(ND,{value:t,onChange:n,indicatorColor:"primary",variant:"scrollable",scrollButtons:"auto",sx:rv(b$,r),children:e})}const b$=({spacing:e,palette:t})=>({minHeight:e(5),cursor:"pointer",[`& .${Di.root}`]:{minWidth:"auto",textTransform:"none",minHeight:e(5),py:0,borderTopLeftRadius:e(.5),borderTopRightRadius:e(.5)},[`& .${Di.selected}`]:{backgroundColor:t.primary.lighter,":hover":{backgroundColor:t.primary.lighter}},"& button:hover":{backgroundColor:t.grey[50]}}),w$=["Details","Span JSON"],x$=["Metadata","Record JSON","App JSON"],S$=["Tree","Timeline"];function _$({appJSON:e,nodeMap:t,recordJSON:n,root:r}){const[i,o]=B.useState(null),[s,a]=B.useState("Tree"),[l,u]=B.useState("Details"),c=i?t[i]:r,f=()=>{var h;if(l==="App JSON")return k.jsx(ho,{src:e});if(l==="Span JSON")return k.jsx(ho,{src:i===r.nodeId?n:c.raw??{}});if(l==="Record JSON")return k.jsx(ho,{src:n});if(l==="Metadata"){const{meta:y}=n;return!y||!((h=Object.keys(y))!=null&&h.length)?k.jsx(Nt,{children:"No record metadata available."}):typeof y=="object"?k.jsx(ho,{src:y}):k.jsxs(Nt,{children:["Invalid metadata type. Expected a dictionary but got ",String(y)??"unknown object"]})}return k.jsx(G8,{selectedNode:c,recordJSON:n})},p=s==="Timeline";return k.jsxs(rs,{container:!0,sx:{border:({palette:h})=>`1px solid ${h.grey[300]}`,borderRadius:({spacing:h})=>h(.5),[`& > .${Aa.item}`]:{border:({palette:h})=>`1px solid ${h.grey[300]}`}},children:[k.jsxs(rs,{item:!0,xs:12,md:p?12:5,lg:p?12:4,sx:{display:"flex",flexDirection:"column"},children:[k.jsx(fw,{value:s,onChange:(h,y)=>a(y),sx:{borderBottom:({palette:h})=>`2px solid ${h.grey[300]}`},children:S$.map(h=>k.jsx(_h,{label:h,value:h,id:h},h))}),p?k.jsx(P8,{selectedNodeId:i,setSelectedNodeId:o,root:r}):k.jsx(v$,{selectedNodeId:i,setSelectedNodeId:o,root:r,nodeMap:t})]}),k.jsxs(rs,{item:!0,xs:12,md:p?12:7,lg:p?12:8,children:[k.jsxs(fw,{value:l,onChange:(h,y)=>u(y),sx:{borderBottom:({palette:h})=>`2px solid ${h.grey[300]}`},children:[w$.map(h=>k.jsx(_h,{label:h,value:h,id:h},h)),k.jsx(qt,{sx:{flexGrow:1}}),x$.map(h=>k.jsx(_h,{label:h,value:h,id:h},h))]}),k.jsx(ps,{gap:2,sx:{flexGrow:1,p:1,mb:4},children:f()})]})]})}class E$ extends GL{constructor(){super(...arguments);yt(this,"render",()=>{const{record_json:n,app_json:r,raw_spans:i}=this.props.args,o=(i==null?void 0:i.map(k8))??[],s=y$(n,r.app_id,o),a=g$(s);return k.jsx(_$,{root:s,recordJSON:n,nodeMap:a,appJSON:r})})}}const I$=qL(E$),LI=["SourceSansPro","Arial","sans-serif"].join(","),Uh={WebkitFontSmoothing:"auto",height:"100%",width:"100%",margin:0,fontFamily:LI},Ft=Zy({palette:{primary:{lighter:cy,light:ud,main:lI,dark:r8},info:{light:i8,main:o8,dark:s8},action:{hover:cy,hoverOpacity:.25},error:{light:p8,main:l8},grey:{50:h8,100:m8,300:y8,500:g8,600:v8,900:b8},important:{main:d8},destructive:{main:u8}},typography:{fontFamily:LI,h1:{fontSize:"2rem",fontWeight:600,lineHeight:1.2,letterSpacing:"-0.02em",margin:0},h2:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.35,letterSpacing:"-0.02em",margin:0},h3:{fontSize:"1.5rem",fontWeight:400,lineHeight:1.35,margin:0},h4:{fontSize:"1.25rem",fontWeight:600,lineHeight:1.2,margin:0},h5:{fontSize:"1.1rem",fontWeight:600,lineHeight:1.1,margin:0},body2:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.01em",margin:0},bodyStrong:{fontSize:"1rem",fontWeight:600,lineHeight:1.5,letterSpacing:"0.01em",margin:0,color:Wh[600]},fontWeightBold:600,button:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.15,letterSpacing:"0.03em",textTransform:"uppercase"},subtitle1:{fontSize:"0.75rem",fontWeight:400,lineHeight:1.3,letterSpacing:"0.01em",color:Wh[600]},menu:{fontWeight:600,fontSize:"0.875rem",lineHeight:1.15,letterSpacing:"0.03em"},code:{color:"rgb(9,171,59)",fontFamily:'"Source Code Pro", monospace',margin:0,fontSize:"0.75em",borderRadius:"0.25rem",background:"rgb(250,250,250)",width:"fit-content"}}});Ft.components={MuiCssBaseline:{styleOverrides:{html:Uh,body:Uh,"#root":Uh,h1:Ft.typography.h1,h2:Ft.typography.h2,h3:Ft.typography.h3,h4:Ft.typography.h4,h5:Ft.typography.h5,p:Ft.typography.body2,".link":{color:Ft.palette.primary.main,textDecoration:"underline",cursor:"pointer"},".disabled":{color:Ft.palette.grey[400]},".input":{color:Ft.palette.grey[600],fontStyle:"italic"},".detail":Ft.typography.subtitle1,".dot":{height:Ft.spacing(2),width:Ft.spacing(2),borderRadius:Ft.spacing(2),marginRight:Ft.spacing(1),display:"flex"},a:{color:"unset","&:link":{textDecoration:"none"},"&:visited":{textDecoration:"none"}}}},MuiButton:{styleOverrides:{sizeLarge:{padding:Ft.spacing(2),height:Ft.spacing(6)},sizeMedium:{padding:Ft.spacing(2),height:Ft.spacing(6)},sizeSmall:{height:Ft.spacing(4),lineHeight:1}},variants:[{props:{color:"primary",variant:"contained"},style:{":hover":{backgroundColor:aI}}},{props:{color:"primary",variant:"outlined"},style:{borderColor:ud,":hover":{borderColor:ud,backgroundColor:cy}}},{props:{color:"important"},style:{color:Ft.palette.grey[900],":hover":{backgroundColor:f8}}},{props:{color:"destructive"},style:{color:"#FFFFFF",":hover":{background:c8}}}]},MuiInputBase:{styleOverrides:{root:{height:Ft.spacing(5)}}},MuiTouchRipple:{styleOverrides:{root:{height:Ft.spacing(6)}}}};Xm.createRoot(document.getElementById("root")).render(k.jsx(Qr.StrictMode,{children:k.jsx(Kw,{injectFirst:!0,children:k.jsx(eA,{theme:Ft,children:k.jsx(I$,{})})})})); diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/dist/index.html b/trulens_eval/trulens_eval/react_components/record_viewer/dist/index.html index 630558b75..3d6b5a9d6 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/dist/index.html +++ b/trulens_eval/trulens_eval/react_components/record_viewer/dist/index.html @@ -4,7 +4,7 @@ Record viewer - + diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordInfo.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordInfo.tsx index 4f20951d7..92c287e74 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordInfo.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordInfo.tsx @@ -89,18 +89,24 @@ export default function RecordInfo({ appJSON, nodeMap, recordJSON, root }: Recor `0.5px solid ${palette.grey[300]}`, - borderRadius: 0.5, - [`& .${gridClasses.item}`]: { - border: ({ palette }) => `0.5px solid ${palette.grey[300]}`, + border: ({ palette }) => `1px solid ${palette.grey[300]}`, + borderRadius: ({ spacing }) => spacing(0.5), + [`& > .${gridClasses.item}`]: { + border: ({ palette }) => `1px solid ${palette.grey[300]}`, }, }} > - + setSelectedSpanView(value as SPAN_VIEW)} - sx={{ borderBottom: ({ palette }) => `1px solid ${palette.grey[300]}` }} + sx={{ borderBottom: ({ palette }) => `2px solid ${palette.grey[300]}` }} > {SPAN_VIEWS.map((tab) => ( @@ -123,7 +129,7 @@ export default function RecordInfo({ appJSON, nodeMap, recordJSON, root }: Recor setSelectedTab(value as RECORD_CONTENT_TABS)} - sx={{ borderBottom: ({ palette }) => `1px solid ${palette.grey[300]}` }} + sx={{ borderBottom: ({ palette }) => `2px solid ${palette.grey[300]}` }} > {SPAN_TREE_TABS.map((tab) => ( diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTable.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTable.tsx index 046ad4394..67b85db95 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTable.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTable.tsx @@ -38,8 +38,7 @@ export default function RecordTable({ root, selectedNodeId, setSelectedNodeId }: } const recordTableSx: SxProps = { - borderRadius: 4, - border: ({ palette }) => `0.5px solid ${palette.grey[300]}`, + borderRadius: ({ spacing }) => spacing(0.5), minWidth: 650, '& th': { diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTableRow.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTableRow.tsx index e37db81da..aec89fc2e 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTableRow.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/RecordTableRow.tsx @@ -3,6 +3,7 @@ import { Box, IconButton, SxProps, TableCell, TableRow, Theme, Typography } from import { useEffect, useState } from 'react'; import { Streamlit } from 'streamlit-component-lib'; +import SpanIconDisplay from '@/RecordTable/SpanIconDisplay'; import { SpanTooltip } from '@/SpanTooltip'; import { StackTreeNode } from '@/utils/StackTreeNode'; @@ -27,7 +28,7 @@ export default function RecordTableRowRecursive({ const [expanded, setExpanded] = useState(true); - const { nodeId, startTime, timeTaken, selector, label } = node; + const { nodeId, startTime, timeTaken, selector, label, span } = node; const isNodeSelected = selectedNodeId === nodeId; @@ -47,11 +48,11 @@ export default function RecordTableRowRecursive({ {expanded ? : } )} - + + + {label} - - {selector} - + {selector} @@ -90,7 +91,7 @@ export default function RecordTableRowRecursive({ const recordBarSx: SxProps = { position: 'relative', height: 20, - borderRadius: 0.5, + borderRadius: ({ spacing }) => spacing(0.5), }; const recordRowSx: SxProps = { diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/SpanIconDisplay.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/SpanIconDisplay.tsx new file mode 100644 index 000000000..ffc4d1e71 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTable/SpanIconDisplay.tsx @@ -0,0 +1,31 @@ +import { Box, SxProps, Theme } from '@mui/material'; + +import { DEFAULT_SPAN_TYPE_PROPS, SPAN_TYPE_PROPS } from '@/icons/SpanIcon'; +import { SpanType } from '@/utils/Span'; + +interface SpanIconProps { + spanType?: SpanType; +} + +export default function SpanIconDisplay({ spanType = SpanType.UNTYPED }: SpanIconProps) { + const { backgroundColor, Icon, color } = SPAN_TYPE_PROPS[spanType] ?? DEFAULT_SPAN_TYPE_PROPS; + + return ( + + + + ); +} + +const iconSx: SxProps = { + p: 0.5, + height: '16px', + width: '16px', +}; + +const containerSx: SxProps = { + display: 'flex', + borderRadius: ({ spacing }) => spacing(0.5), + flexDirection: 'column', + justifyContent: 'center', +}; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeDetails.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeDetails.tsx index 2834e23eb..f94e580c8 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeDetails.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeDetails.tsx @@ -1,56 +1,20 @@ -import { Grid, Stack, Typography } from '@mui/material'; - -import JSONViewer from '@/JSONViewer'; -import LabelAndValue from '@/LabelAndValue'; -import Panel from '@/Panel'; -import Section from '@/RecordTree/Details/Section'; -import { summarySx } from '@/RecordTree/Details/styles'; -import TracePanel from '@/RecordTree/Details/TracePanel'; +import LLMDetails from '@/RecordTree/Details/NodeSpecificDetails/LLMDetails'; +import NodeDetailsContainer from '@/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer'; +import { CommonDetailsProps } from '@/RecordTree/Details/NodeSpecificDetails/types'; +import { SpanLLM, SpanRetriever } from '@/utils/Span'; import { StackTreeNode } from '@/utils/StackTreeNode'; -import { RecordJSONRaw } from '@/utils/types'; - -type DetailsProps = { - selectedNode: StackTreeNode; - recordJSON: RecordJSONRaw; -}; - -export default function NodeDetails({ selectedNode, recordJSON }: DetailsProps) { - const { timeTaken: nodeTime, raw, selector } = selectedNode; - - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const { args, rets } = raw ?? {}; - let returnValueDisplay = No return values recorded; - if (rets) { - if (typeof rets === 'string') returnValueDisplay = {rets}; - if (typeof rets === 'object') returnValueDisplay = ; - } +import RetrieverDetails from './NodeSpecificDetails/RetrieverDetails'; - return ( - <> - - {nodeTime} ms} /> - +export default function NodeDetails({ selectedNode, recordJSON }: CommonDetailsProps) { + const { span } = selectedNode; - - - - -
- {args ? : 'No arguments recorded.'} -
+ if (!span) return ; + if (span instanceof SpanLLM) + return } recordJSON={recordJSON} />; -
- {returnValueDisplay} -
-
-
-
+ if (span instanceof SpanRetriever) + return } recordJSON={recordJSON} />; - - - -
- - ); + return ; } diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/LLMDetails.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/LLMDetails.tsx new file mode 100644 index 000000000..0db54f9e2 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/LLMDetails.tsx @@ -0,0 +1,20 @@ +import { Typography } from '@mui/material'; + +import LabelAndValue from '@/LabelAndValue'; +import NodeDetailsContainer from '@/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer'; +import { CommonDetailsProps } from '@/RecordTree/Details/NodeSpecificDetails/types'; +import { SpanLLM } from '@/utils/Span'; + +type LLMDetailsProps = CommonDetailsProps; + +export default function LLMDetails({ selectedNode, recordJSON }: LLMDetailsProps) { + return ( + {selectedNode.span?.modelName ?? 'N/A'}} /> + } + /> + ); +} diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer.tsx new file mode 100644 index 000000000..9c4965673 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer.tsx @@ -0,0 +1,62 @@ +import { Grid, Stack, Typography } from '@mui/material'; +import { PropsWithChildren, ReactElement } from 'react'; + +import JSONViewer from '@/JSONViewer'; +import LabelAndValue from '@/LabelAndValue'; +import Panel from '@/Panel'; +import { CommonDetailsProps } from '@/RecordTree/Details/NodeSpecificDetails/types'; +import Section from '@/RecordTree/Details/Section'; +import { summarySx } from '@/RecordTree/Details/styles'; +import TracePanel from '@/RecordTree/Details/TracePanel'; +import { toHumanSpanType } from '@/utils/Span'; + +type DetailsProps = PropsWithChildren< + CommonDetailsProps & { + labels?: ReactElement; + } +>; + +export default function NodeDetailsContainer({ selectedNode, recordJSON, children, labels }: DetailsProps) { + const { timeTaken: nodeTime, raw, selector, span } = selectedNode; + + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment + const { args, rets } = raw ?? {}; + + let returnValueDisplay = No return values recorded; + if (rets) { + if (typeof rets === 'string') returnValueDisplay = {rets}; + if (typeof rets === 'object') returnValueDisplay = ; + } + + return ( + <> + + {toHumanSpanType(span?.type)}} /> + {nodeTime} ms} /> + {labels} + + + + + + +
+ {args ? : 'No arguments recorded.'} +
+ +
+ {returnValueDisplay} +
+
+
+
+ + {children} + + + + +
+ + ); +} diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/RetrieverDetails.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/RetrieverDetails.tsx new file mode 100644 index 000000000..d691757f5 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/RetrieverDetails.tsx @@ -0,0 +1,50 @@ +import { Grid, Stack, Typography } from '@mui/material'; + +import JSONViewer from '@/JSONViewer'; +import LabelAndValue from '@/LabelAndValue'; +import Panel from '@/Panel'; +import NodeDetailsContainer from '@/RecordTree/Details/NodeSpecificDetails/NodeDetailsContainer'; +import { CommonDetailsProps } from '@/RecordTree/Details/NodeSpecificDetails/types'; +import Section from '@/RecordTree/Details/Section'; +import { SpanRetriever } from '@/utils/Span'; + +type RetrieverDetailsProps = CommonDetailsProps; + +export default function RetrieverDetails({ selectedNode, recordJSON }: RetrieverDetailsProps) { + const { span } = selectedNode; + + if (!span) return ; + + const { inputText, inputEmbedding, distanceType, numContexts, retrievedContexts } = span; + + return ( + + {distanceType ?? 'N/A'}} /> + {numContexts ?? 'N/A'}} /> + + } + > + + + +
+ {inputText ?? 'N/A'} +
+ +
+ {inputEmbedding ? : N/A} +
+ +
+ {retrievedContexts?.length ? : N/A} +
+
+
+
+
+ ); +} diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/types.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/types.ts new file mode 100644 index 000000000..6e24f32ad --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/NodeSpecificDetails/types.ts @@ -0,0 +1,8 @@ +import { Span } from '@/utils/Span'; +import { StackTreeNode } from '@/utils/StackTreeNode'; +import { RecordJSONRaw } from '@/utils/types'; + +export type CommonDetailsProps = { + selectedNode: StackTreeNode; + recordJSON: RecordJSONRaw; +}; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/RootDetails.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/RootDetails.tsx index 463ff06de..c7e867a8d 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/RootDetails.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/RootDetails.tsx @@ -28,6 +28,6 @@ const rootDetailsContainerSx: SxProps = { border: ({ palette }) => `1px solid ${palette.grey[300]}`, pl: 2, py: 1, - borderRadius: 0.5, + borderRadius: ({ spacing }) => spacing(0.5), width: 'fit-content', }; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/styles.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/styles.ts index d8b09452d..d42c10930 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/styles.ts +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/Details/styles.ts @@ -4,6 +4,6 @@ export const summarySx: SxProps = { border: ({ palette }) => `1px solid ${palette.grey[300]}`, pl: 2, py: 1, - borderRadius: 0.5, + borderRadius: ({ spacing }) => spacing(0.5), width: 'fit-content', }; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTree.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTree.tsx index 7ef05f854..6c4b549dc 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTree.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTree.tsx @@ -29,7 +29,7 @@ export default function RecordTree({ nodeMap, root, selectedNodeId, setSelectedN sx={{ p: 1, overflowY: 'auto', - flexGrow: 0, + flexGrow: 1, [`& > li`]: { minWidth: 'fit-content', }, diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCell.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCell.tsx index b0d0ca169..b2136ea08 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCell.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCell.tsx @@ -8,6 +8,8 @@ import { SpanTooltip } from '@/SpanTooltip'; import Tag from '@/Tag'; import { StackTreeNode } from '@/utils/StackTreeNode'; +import SpanIconDisplay from './SpanIconDisplay'; + type RecordTreeCellProps = TreeItemContentProps & { node: StackTreeNode; }; @@ -33,23 +35,24 @@ export const RecordTreeCell = forwardRef(function CustomContent(props: RecordTre ({ - [`&:hover > div`]: { + [`&:hover`]: { background: `${palette.grey[100]}`, }, - [`&.${classes.focused} > div`]: { + [`&.${classes.focused}`]: { background: `${palette.grey[50]}`, }, - [`&.${classes.focused}:hover > div`]: { + [`&.${classes.focused}:hover`]: { background: `${palette.grey[100]}`, }, - [`&.${classes.selected} > div`]: { + [`&.${classes.selected}`]: { background: `${palette.primary.lighter!}`, border: `1px solid ${palette.primary.main}`, }, - [`&.${classes.selected}:hover > div`]: { + [`&.${classes.selected}:hover`]: { background: `${palette.primary.light}`, }, + border: `1px solid ${palette.grey[300]}`, })} className={clsx(className, classes.root, { [classes.expanded]: expanded, @@ -61,13 +64,17 @@ export const RecordTreeCell = forwardRef(function CustomContent(props: RecordTre ref={ref as React.Ref} > - - - {label} - - - {selector} - + + + + + + {label} + + + {selector} + + - handleExpansionClick(event)}>{icon} + handleExpansionClick(event)} sx={iconContainerSx}> + {icon} + ); }); -const cellSx: SxProps = ({ spacing, palette }) => ({ +const cellSx: SxProps = () => ({ display: 'flex', - border: `1px solid ${palette.grey[300]}`, - p: 1, - borderRadius: spacing(0.5), width: '-webkit-fill-available', - alignItems: 'center', - justifyContent: 'space-between', - '& svg': { - color: palette.grey[600], - }, + alignItems: 'stretch', overflow: 'hidden', }); + +const iconContainerSx: SxProps = ({ palette }) => ({ + pr: 1, + color: palette.grey[600], + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', +}); + const ellipsisSx: SxProps = { textOverflow: 'ellipsis', overflow: 'hidden', diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCellRecursive.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCellRecursive.tsx index 3cbc91e93..4bc9ecdbc 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCellRecursive.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/RecordTreeCellRecursive.tsx @@ -80,7 +80,7 @@ const treeItemSx: SxProps = ({ spacing, palette }) => ({ }, [`& .${treeItemClasses.groupTransition}`]: { marginLeft: 0, - paddingLeft: spacing(2), + paddingLeft: `calc(1px + ${spacing(2)})`, [`& .${treeItemClasses.root}`]: { pt: 1, }, @@ -92,9 +92,10 @@ const treeItemSx: SxProps = ({ spacing, palette }) => ({ display: 'block', width: spacing(2), height: spacing(1), + zIndex: 0, top: '50%', borderBottom: `1px solid ${palette.grey[300]}`, - transform: 'translate(-100%, -50%)', + transform: 'translate(calc(-100% - 1px), -50%)', }, }, diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/SpanIconDisplay.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/SpanIconDisplay.tsx new file mode 100644 index 000000000..b57564b25 --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordTree/SpanIconDisplay.tsx @@ -0,0 +1,28 @@ +import { Box, SxProps, Theme } from '@mui/material'; + +import { DEFAULT_SPAN_TYPE_PROPS, SPAN_TYPE_PROPS } from '@/icons/SpanIcon'; +import { SpanType } from '@/utils/Span'; + +interface SpanIconProps { + spanType?: SpanType; +} + +export default function SpanIconDisplay({ spanType = SpanType.UNTYPED }: SpanIconProps) { + const { backgroundColor, Icon, color } = SPAN_TYPE_PROPS[spanType] ?? DEFAULT_SPAN_TYPE_PROPS; + + return ( + + + + ); +} + +const iconSx: SxProps = { + p: 1, +}; + +const containerSx: SxProps = { + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', +}; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordViewer.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordViewer.tsx index f77a193ab..8eb714de0 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordViewer.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/RecordViewer.tsx @@ -2,6 +2,7 @@ import { ReactNode } from 'react'; import { StreamlitComponentBase, withStreamlitConnection } from 'streamlit-component-lib'; import RecordInfo from '@/RecordInfo'; +import { createSpan } from '@/utils/Span'; import { DataRaw } from '@/utils/types'; import { createNodeMap, createTreeFromCalls } from '@/utils/utils'; @@ -17,12 +18,14 @@ class RecordViewer extends StreamlitComponentBase { // This seems to currently be the best way to type args, since // StreamlitComponentBase appears happy to just give it "any". - const { record_json: recordJSON, app_json: appJSON } = this.props.args as DataRaw; + const { record_json: recordJSON, app_json: appJSON, raw_spans: rawSpans } = this.props.args as DataRaw; + + const spans = rawSpans?.map(createSpan) ?? []; /** * Actual code begins */ - const root = createTreeFromCalls(recordJSON, appJSON.app_id); + const root = createTreeFromCalls(recordJSON, appJSON.app_id, spans); const nodeMap = createNodeMap(root); return ; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/SpanTooltip/SpanTooltip.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/SpanTooltip/SpanTooltip.tsx index 98629e8a8..9b6c7eed6 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/SpanTooltip/SpanTooltip.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/SpanTooltip/SpanTooltip.tsx @@ -2,6 +2,7 @@ import { Box } from '@mui/material'; import { ReactElement } from 'react'; import StyledTooltip from '@/StyledTooltip'; +import { toHumanSpanType } from '@/utils/Span'; import { StackTreeNode } from '@/utils/StackTreeNode'; type SpanTooltipProps = { @@ -10,12 +11,17 @@ type SpanTooltipProps = { }; export default function SpanTooltip({ node, children }: SpanTooltipProps) { - const { startTime, endTime, selector } = node; + const { startTime, endTime, selector, span } = node; return ( + + Span type: + {toHumanSpanType(span?.type)} + +
Selector: {selector} diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/Tag/Tag.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/Tag/Tag.tsx index 5c31dee85..b21fe1454 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/Tag/Tag.tsx +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/Tag/Tag.tsx @@ -27,7 +27,7 @@ const tagMainContainerStyles: SxProps = { display: 'flex', flexDirection: 'row', padding: (theme) => theme.spacing(1 / 2, 1), - borderRadius: '4px', + borderRadius: ({ spacing }) => spacing(0.5), width: 'fit-content', height: 'fit-content', }; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/icons/SpanIcon.tsx b/trulens_eval/trulens_eval/react_components/record_viewer/src/icons/SpanIcon.tsx new file mode 100644 index 000000000..a60926bce --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/icons/SpanIcon.tsx @@ -0,0 +1,53 @@ +import { AccountTreeOutlined, LibraryBooksOutlined, WidgetsOutlined } from '@mui/icons-material'; +import { SvgIcon } from '@mui/material'; + +import { DV_BLUE, DV_GRASS, DV_GREEN, DV_MINT, DV_PLUM, DV_PURPLE, DV_YELLOW, DVColor } from '@/utils/colors'; +import { SpanType } from '@/utils/Span'; + +export const DEFAULT_SPAN_TYPE_PROPS = { + backgroundColor: DV_BLUE[DVColor.DARK], + Icon: WidgetsOutlined, + color: DV_BLUE[DVColor.LIGHT], +}; + +export const SPAN_TYPE_PROPS: { [key in SpanType]: { backgroundColor: string; Icon: typeof SvgIcon; color: string } } = + { + [SpanType.UNTYPED]: DEFAULT_SPAN_TYPE_PROPS, + [SpanType.ROOT]: { + backgroundColor: 'primary.main', + Icon: AccountTreeOutlined, + color: 'primary.light', + }, + [SpanType.RETRIEVER]: { + backgroundColor: DV_YELLOW[DVColor.DARK], + Icon: LibraryBooksOutlined, + color: DV_YELLOW[DVColor.LIGHT], + }, + [SpanType.RERANKER]: { + backgroundColor: DV_PURPLE[DVColor.DARK], + Icon: AccountTreeOutlined, + color: DV_PURPLE[DVColor.LIGHT], + }, + [SpanType.LLM]: { + backgroundColor: DV_GREEN[DVColor.DARK], + Icon: AccountTreeOutlined, + color: DV_GREEN[DVColor.LIGHT], + }, + [SpanType.EMBEDDING]: { + backgroundColor: DV_GRASS[DVColor.DARK], + Icon: AccountTreeOutlined, + color: DV_GRASS[DVColor.LIGHT], + }, + [SpanType.TOOL]: { + backgroundColor: DV_PLUM[DVColor.DARK], + Icon: AccountTreeOutlined, + color: DV_PLUM[DVColor.LIGHT], + }, + [SpanType.AGENT]: { + backgroundColor: DV_MINT[DVColor.DARK], + Icon: AccountTreeOutlined, + color: DV_MINT[DVColor.LIGHT], + }, + [SpanType.TASK]: DEFAULT_SPAN_TYPE_PROPS, + [SpanType.OTHER]: DEFAULT_SPAN_TYPE_PROPS, + }; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/Span.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/Span.ts new file mode 100644 index 000000000..c07236b1b --- /dev/null +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/Span.ts @@ -0,0 +1,204 @@ +import { SpanRaw } from './types'; + +export enum SpanType { + UNTYPED = 'SpanUntyped', + ROOT = 'SpanRoot', + RETRIEVER = 'SpanRetriever', + RERANKER = 'SpanReranker', + LLM = 'SpanLLM', + EMBEDDING = 'SpanEmbedding', + TOOL = 'SpanTool', + AGENT = 'SpanAgent', + TASK = 'SpanTask', + OTHER = 'SpanOther', +} + +/** + * Utility function to convert the span types above to make them more human-readable + * by removing the substring 'Span'. + */ +export const toHumanSpanType = (spanType?: SpanType) => { + if (!spanType) return 'Other'; + + return spanType.split('Span').join(''); +}; + +/** + * Base class for spans. + * + * Note: keep in sync with `trulens_eval/trace/span.py`. + */ +export class Span { + // Identifier for the span + spanId: number; + + // Identifier for the trace this span belongs to. + traceId: number; + + // Tags associated with the span. + tags: string[] = []; + + // Type of span. + type: SpanType = SpanType.UNTYPED; + + // Metadata of span. + metadata: Record; + + // Name of span. + name: string; + + // Start timestamp of span. + startTimestamp: number; + + // End timestamp of span. Optional until the span finishes. + endTimestamp: number | null; + + // Status of span. + status: 'UNSET' | 'OK' | 'Error'; + + // Description of status, if available. + statusDescription: string | null; + + // Span attributes. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + attributes: Record; + + static vendorAttr(attributeName: string) { + return `trulens_eval@${attributeName}`; + } + + constructor(rawSpan: SpanRaw) { + this.name = rawSpan.name; + this.startTimestamp = rawSpan.start_timestamp; + this.endTimestamp = rawSpan.end_timestamp ?? null; + this.status = rawSpan.status; + this.statusDescription = rawSpan.status_description ?? null; + + const [spanId, traceId] = rawSpan.context ?? [-1, -1]; + this.spanId = spanId; + this.traceId = traceId; + + this.attributes = rawSpan.attributes ?? {}; + this.metadata = rawSpan.attributes_metadata ?? {}; + } + + getAttribute(attributeName: string) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-return + return this.attributes[Span.vendorAttr(attributeName)]; + } +} + +export class SpanRoot extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.ROOT; + } +} + +export class SpanRetriever extends Span { + // Input text whose related contexts are being retrieved. + inputText: string | null; + + // Embedding of the input text. + inputEmbedding: number[] | null; + + // Distance function used for ranking contexts. + distanceType: string | null; + + // The number of contexts requested, not necessarily retrieved. + numContexts: number; + + // The retrieved contexts. + retrievedContexts: string[] | null; + + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.RETRIEVER; + + this.inputText = (this.getAttribute('input_text') as string) ?? null; + this.inputEmbedding = (this.getAttribute('input_embedding') as number[]) ?? null; + this.distanceType = (this.getAttribute('distance_type') as string) ?? null; + this.numContexts = (this.getAttribute('num_contexts') as number) ?? null; + this.retrievedContexts = (this.getAttribute('retrieved_contexts') as string[]) ?? null; + } +} + +export class SpanReranker extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.RERANKER; + } +} + +export class SpanLLM extends Span { + // The model name of the LLM + modelName: string | null; + + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.LLM; + this.modelName = (this.getAttribute('model_name') as string) ?? null; + } +} + +export class SpanEmbedding extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.EMBEDDING; + } +} + +export class SpanTool extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.TOOL; + } +} + +export class SpanAgent extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.AGENT; + } +} + +export class SpanTask extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.TASK; + } +} + +export class SpanOther extends Span { + constructor(rawSpan: SpanRaw) { + super(rawSpan); + this.type = SpanType.OTHER; + } +} + +export const createSpan = (rawSpan: SpanRaw) => { + const rawSpanType = rawSpan.attributes?.[Span.vendorAttr('span_type')] ?? SpanType.UNTYPED; + + switch (rawSpanType as SpanType) { + case SpanType.ROOT: + return new SpanRoot(rawSpan); + case SpanType.RETRIEVER: + return new SpanRetriever(rawSpan); + case SpanType.RERANKER: + return new SpanReranker(rawSpan); + case SpanType.LLM: + return new SpanLLM(rawSpan); + case SpanType.EMBEDDING: + return new SpanEmbedding(rawSpan); + case SpanType.TOOL: + return new SpanTool(rawSpan); + case SpanType.AGENT: + return new SpanAgent(rawSpan); + case SpanType.TASK: + return new SpanTask(rawSpan); + case SpanType.OTHER: + return new SpanOther(rawSpan); + default: + return new Span(rawSpan); + } +}; diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/StackTreeNode.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/StackTreeNode.ts index 21d22e60f..68fe75c17 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/StackTreeNode.ts +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/StackTreeNode.ts @@ -1,9 +1,10 @@ +import { Span } from '@/utils/Span'; import { CallJSONRaw, PerfJSONRaw, StackJSONRaw } from '@/utils/types'; import { getMethodNameFromCell, getPathName } from '@/utils/utils'; export const ROOT_NODE_ID = 'root-root-root'; -export class StackTreeNode { +export class StackTreeNode { children: StackTreeNode[]; name: string; @@ -18,6 +19,8 @@ export class StackTreeNode { raw?: CallJSONRaw; + span?: SpanType; + parentNodes: StackTreeNode[] = []; constructor({ @@ -27,6 +30,7 @@ export class StackTreeNode { perf, raw, parentNodes = [], + span, }: { children?: StackTreeNode[]; name: string; @@ -34,6 +38,7 @@ export class StackTreeNode { raw?: CallJSONRaw; parentNodes?: StackTreeNode[]; perf?: PerfJSONRaw; + span?: SpanType; }) { if (perf) { const startTime = new Date(perf.start_time).getTime(); @@ -46,6 +51,7 @@ export class StackTreeNode { this.name = name; this.raw = raw; this.parentNodes = parentNodes; + this.span = span; if (stackCell) { this.path = getPathName(stackCell); diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/colors.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/colors.ts index 9806f7927..226d254cc 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/colors.ts +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/colors.ts @@ -107,18 +107,32 @@ export const BLACK: Color = '#212121'; */ // Data Vizualization Colors -export const CO01: DVColorScale = ['#54A08E', '#A4CBC1', '#366567', '#7BADA4', '#1C383E']; -export const CO02: DVColorScale = ['#F8D06D', '#F0EC89', '#AD743E', '#F4E07B', '#5C291A']; -export const CO03: DVColorScale = ['#5690C5', '#8DA6BF', '#274F69', '#6D90B1', '#0B1D26']; -export const CO04: DVColorScale = ['#E77956', '#FFDBA3', '#A8402D', '#FBAD78', '#571610']; -export const CO05: DVColorScale = ['#959CFA', '#D5D1FF', '#5F74B3', '#B2B1FF', '#314A66']; -export const CO06: DVColorScale = ['#957A89', '#D2C0C4', '#664F5E', '#B59CA6', '#352731']; -export const CO07: DVColorScale = ['#78AE79', '#C7DFC3', '#5D8955', '#9FC79D', '#436036']; -export const CO08: DVColorScale = ['#FF8DA1', '#FFC9F1', '#C15F84', '#FFA9D0', '#823966']; -export const CO09: DVColorScale = ['#74B3C0', '#99D4D2', '#537F88', '#BFE6DD', '#314B50']; -export const CO10: DVColorScale = ['#A484BD', '#CBC7E4', '#745E86', '#B5A5D1', '#45384F']; -const DVColors: DVColorScale[] = [CO01, CO02, CO03, CO04, CO05, CO06, CO07, CO08, CO09, CO10]; +// Data Vizualization Colors +export const DV_BLUE: DVColorScale = ['#5690C5', '#8DA6BF', '#274F69', '#6D90B1', '#0B1D26']; +export const DV_YELLOW: DVColorScale = ['#F8D06D', '#F0EC89', '#AD743E', '#F4E07B', '#5C291A']; +export const DV_RED: DVColorScale = ['#E77956', '#FFDBA3', '#A8402D', '#FBAD78', '#571610']; +export const DV_GREEN: DVColorScale = ['#54A08E', '#A4CBC1', '#366567', '#7BADA4', '#1C383E']; +export const DV_PURPLE: DVColorScale = ['#959CFA', '#D5D1FF', '#5F74B3', '#B2B1FF', '#314A66']; +export const DV_PLUM: DVColorScale = ['#957A89', '#D2C0C4', '#664F5E', '#B59CA6', '#352731']; +export const DV_GRASS: DVColorScale = ['#78AE79', '#C7DFC3', '#5D8955', '#9FC79D', '#436036']; +export const DV_PINK: DVColorScale = ['#FF8DA1', '#FFC9F1', '#C15F84', '#FFA9D0', '#823966']; +export const DV_MINT: DVColorScale = ['#74B3C0', '#99D4D2', '#537F88', '#BFE6DD', '#314B50']; +export const DV_LAVENDER: DVColorScale = ['#A484BD', '#CBC7E4', '#745E86', '#B5A5D1', '#45384F']; + +const DVColors: DVColorScale[] = [ + DV_BLUE, + DV_YELLOW, + DV_RED, + DV_GREEN, + DV_PURPLE, + DV_PLUM, + DV_GRASS, + DV_PINK, + DV_MINT, + DV_LAVENDER, +]; + // List of primary Datavizualization Colors export const COLORS: Color[] = DVColors.map((c) => c[DVColor.PRIMARY]); // Returns an Object that maps color primary dataviz colors to the selected color hue diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/types.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/types.ts index d661852f2..753cb60fd 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/types.ts +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/types.ts @@ -132,7 +132,21 @@ export interface RecordJSONRaw { [others: string]: any; } +export interface SpanRaw { + name: string; + start_timestamp: number; + end_timestamp: number | null; + attributes: Record; + attributes_metadata: Record; + status: 'UNSET' | 'OK' | 'Error'; + status_description: string | null; + kind: string; + events: []; + context: [number, number]; +} + export interface DataRaw { app_json: AppJSONRaw; record_json: RecordJSONRaw; + raw_spans: SpanRaw[]; } diff --git a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/utils.ts b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/utils.ts index af143882b..729043743 100644 --- a/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/utils.ts +++ b/trulens_eval/trulens_eval/react_components/record_viewer/src/utils/utils.ts @@ -1,3 +1,4 @@ +import { Span, SpanRoot } from '@/utils/Span'; import { StackTreeNode } from '@/utils/StackTreeNode'; import { CallJSONRaw, PerfJSONRaw, RecordJSONRaw, StackJSONRaw } from '@/utils/types'; @@ -64,7 +65,13 @@ export const getStartAndEndTimes = (perf: PerfJSONRaw) => { }; }; -const addCallToTree = (tree: StackTreeNode, call: CallJSONRaw, stack: StackJSONRaw[], index: number) => { +const addCallToTree = ( + tree: StackTreeNode, + call: CallJSONRaw, + stack: StackJSONRaw[], + index: number, + span: Span | undefined = undefined +) => { const stackCell = stack[index]; const name = getClassNameFromCell(stackCell); @@ -86,6 +93,7 @@ const addCallToTree = (tree: StackTreeNode, call: CallJSONRaw, stack: StackJSONR matchingNode.startTime = startTime; matchingNode.endTime = endTime; matchingNode.raw = call; + matchingNode.span = span; return; } @@ -98,6 +106,7 @@ const addCallToTree = (tree: StackTreeNode, call: CallJSONRaw, stack: StackJSONR parentNodes: [...tree.parentNodes, tree], perf: call.perf, stackCell, + span, }) ); @@ -116,17 +125,31 @@ const addCallToTree = (tree: StackTreeNode, call: CallJSONRaw, stack: StackJSONR matchingNode = newNode; } - addCallToTree(matchingNode, call, stack, index + 1); + addCallToTree(matchingNode, call, stack, index + 1, span); }; -export const createTreeFromCalls = (recordJSON: RecordJSONRaw, appName: string) => { +export const createTreeFromCalls = (recordJSON: RecordJSONRaw, appName: string, spans: Span[] = []) => { const tree = new StackTreeNode({ name: appName, perf: recordJSON.perf, + span: + spans[0] ?? + new SpanRoot({ + name: appName, + attributes: {}, + attributes_metadata: {}, + status: 'UNSET', + status_description: '', + kind: 'root', + events: [], + context: [-1, -1], + start_timestamp: new Date(recordJSON.perf.start_time).getDate(), + end_timestamp: new Date(recordJSON.perf.end_time).getDate(), + }), }); - recordJSON.calls.forEach((call) => { - addCallToTree(tree, call, call.stack, 0); + recordJSON.calls.forEach((call, index) => { + addCallToTree(tree, call, call.stack, 0, spans[index + 1]); }); return tree;