@stlite/desktop 0.76.0 → 0.76.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dump_artifacts.js +35 -35
- package/build/assets/{FileDownload.esm-B0LHj-_3.js → FileDownload.esm-BP72wB_u.js} +1 -1
- package/build/assets/{FormClearHelper-CQJ4hAhl.js → FormClearHelper-BIZNCxvb.js} +1 -1
- package/build/assets/{Hooks-CaWvNnPE.js → Hooks-C30HoPXz.js} +1 -1
- package/build/assets/{InputInstructions-dmd87zjO.js → InputInstructions-B9wXy3U4.js} +1 -1
- package/build/assets/{ProgressBar-DOQ5M8oh.js → ProgressBar-BlPlcnwu.js} +1 -1
- package/build/assets/{RenderInPortalIfExists-CtbwYFE8.js → RenderInPortalIfExists-DSHuT3NO.js} +1 -1
- package/build/assets/{Toolbar-CSZCGrJs.js → Toolbar-B1zMj-jg.js} +1 -1
- package/build/assets/{base-input-DriCPmTX.js → base-input-CMN1_Ew_.js} +1 -1
- package/build/assets/{createSuper-BZXlc4Td.js → createSuper-D4gvBB5j.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-gv8SW6cw.js → data-grid-overlay-editor-CgsMGcDx.js} +1 -1
- package/build/assets/{downloader-B5dbWt3Y.js → downloader-Dv4W7rem.js} +1 -1
- package/build/assets/{es6-yncbwHpI.js → es6-R_bosjbV.js} +2 -2
- package/build/assets/{getPrototypeOf-CbwKLcHO.js → getPrototypeOf-CHt6AZp_.js} +1 -1
- package/build/assets/{iframeResizer.contentWindow-uu2vIiUi.js → iframeResizer.contentWindow-9-Xlr32c.js} +1 -1
- package/build/assets/{index-B02vCrpB.js → index-8qq2hPcx.js} +1 -1
- package/build/assets/{index-C3MTxsAN.js → index-B0CwOTPz.js} +1 -1
- package/build/assets/{index-Do5EoDM5.js → index-B1L1envm.js} +1 -1
- package/build/assets/{index-LOOgUeUX.js → index-B3bELqRU.js} +1 -1
- package/build/assets/{index-DYpupVEb.js → index-B3quCHCi.js} +1 -1
- package/build/assets/{index-e4S25aVD.js → index-BB6FwCEX.js} +1 -1
- package/build/assets/{index-CdMvOMb7.js → index-BDNxxQ4v.js} +1 -1
- package/build/assets/{index-BpYNJC6s.js → index-BEeaeEPl.js} +1 -1
- package/build/assets/{index-D3ZPLnGE.js → index-BKKZmTqZ.js} +1 -1
- package/build/assets/{index-Cnquoj5Q.js → index-BL2qQWaL.js} +1 -1
- package/build/assets/{index-IPja5Suf.js → index-BLvsCvkf.js} +1 -1
- package/build/assets/{index-RheWSraw.js → index-BZMvJ6Yf.js} +1 -1
- package/build/assets/{index-CH7n-Ppq.js → index-Be0wHUx-.js} +1 -1
- package/build/assets/{index-CVNSqCzF.js → index-BkBgJKWs.js} +1 -1
- package/build/assets/{index-C3174axP.js → index-Bu07mO_x.js} +1 -1
- package/build/assets/{index-DDWzHXvN.js → index-C9-3Tvo1.js} +1 -1
- package/build/assets/{index-CH2ZvTfO.js → index-CMQsen11.js} +1 -1
- package/build/assets/{index-BMPhLnQ5.js → index-CRKAbc7H.js} +1 -1
- package/build/assets/{index-BvFTSm46.js → index-Cjn3IAUe.js} +1 -1
- package/build/assets/{index-wvUDp42d.js → index-CoumX680.js} +1 -1
- package/build/assets/{index-BNNuO9xH.js → index-CxiUGvN5.js} +1 -1
- package/build/assets/{index-kDtQE3bj.js → index-D2caMYlF.js} +1 -1
- package/build/assets/{index-CkJQJhep.js → index-D7beHGbk.js} +5 -5
- package/build/assets/{index-XDu91tM_.js → index-DBeV5cvz.js} +1 -1
- package/build/assets/{index-DKDi9zAJ.js → index-DP9siobZ.js} +1 -1
- package/build/assets/{index-BqCUmN8g.js → index-D_ZpMtCx.js} +1 -1
- package/build/assets/{index-B8fuFO6f.js → index-DfPuZgVe.js} +1 -1
- package/build/assets/{index-D6uye6hf.js → index-DgKoCzGM.js} +1 -1
- package/build/assets/{index-BTcFSez7.js → index-DjNlghsG.js} +1 -1
- package/build/assets/{index-BIUCqSQk.js → index-DmCDp6tz.js} +1 -1
- package/build/assets/{index-DI8uuyv8.js → index-DqEaj7EU.js} +1 -1
- package/build/assets/{index-gy-vJk95.js → index-DuoBWGu3.js} +5 -5
- package/build/assets/{index-Cnm_EPJy.js → index-DxHnoro7.js} +1 -1
- package/build/assets/{index-BrGUvTwf.js → index-UQryvozB.js} +1 -1
- package/build/assets/{index-B976k_ae.js → index-W-TZSd1E.js} +1 -1
- package/build/assets/{index-C0PQ0fkc.js → index-bnfkOWdV.js} +1 -1
- package/build/assets/{index-C_hLmnGD.js → index-dkm5JtmN.js} +1 -1
- package/build/assets/{input-BPMs_pbL.js → input-OLwqq6dJ.js} +1 -1
- package/build/assets/{memory-BTS-Apkp.js → memory-K1u1sl9P.js} +1 -1
- package/build/assets/{number-overlay-editor-mb8oKGeo.js → number-overlay-editor-BPRtr2ZH.js} +1 -1
- package/build/assets/{sandbox-CX6LT8_0.js → sandbox-CuSVz6A0.js} +1 -1
- package/build/assets/{slicedToArray-CXJqkkAS.js → slicedToArray-CFP8r_hv.js} +1 -1
- package/build/assets/{textarea-Bt4dlZO-.js → textarea-BgOZDoS8.js} +1 -1
- package/build/assets/{timepicker-CmQYPfbc.js → timepicker-BD9p-9JQ.js} +1 -1
- package/build/assets/{uniqueId-DKCcDw-W.js → uniqueId-D81S8Chc.js} +1 -1
- package/build/assets/{useBasicWidgetState-HYzN-eIJ.js → useBasicWidgetState-DgnZoFWi.js} +1 -1
- package/build/assets/{useOnInputChange-DBbXtTXT.js → useOnInputChange-DTjT_cKQ.js} +1 -1
- package/build/assets/{withFullScreenWrapper-Dibt3YfW.js → withFullScreenWrapper-BzdPuFtI.js} +1 -1
- package/build/electron/main.js +2 -2
- package/build/index.html +1 -1
- package/package.json +5 -5
- package/wheels/streamlit-1.41.0-cp312-none-any.whl +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D_ZpMtCx.js","assets/RenderInPortalIfExists-DSHuT3NO.js","assets/index-DjNlghsG.js","assets/index-D7beHGbk.js","assets/FormClearHelper-BIZNCxvb.js","assets/withFullScreenWrapper-BzdPuFtI.js","assets/Toolbar-B1zMj-jg.js","assets/sprintf-C-r3gIuM.js","assets/createDownloadLinkElement-DZMwyjvU.js","assets/slicedToArray-CFP8r_hv.js","assets/getPrototypeOf-CHt6AZp_.js","assets/createSuper-D4gvBB5j.js","assets/FileDownload.esm-BP72wB_u.js","assets/index.B26BQfSF.css","assets/index-Cjn3IAUe.js","assets/threshold-C19zgWBv.js","assets/string-Bl9OLDCw.js","assets/timer-C68DGyYc.js","assets/index-B3quCHCi.js","assets/useBasicWidgetState-DgnZoFWi.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/index.CG16XVnL.css","assets/index-W-TZSd1E.js","assets/index-DxHnoro7.js","assets/index-DgKoCzGM.js","assets/index-CMQsen11.js","assets/Hooks-C30HoPXz.js","assets/index-C9-3Tvo1.js","assets/index-DmCDp6tz.js","assets/index-BL2qQWaL.js","assets/UploadFileInfo-C-jY39rj.js","assets/ProgressBar-BlPlcnwu.js","assets/index-B0CwOTPz.js","assets/InputInstructions-B9wXy3U4.js","assets/inputUtils-CptNuJwn.js","assets/textarea-BgOZDoS8.js","assets/base-input-CMN1_Ew_.js","assets/index-CxiUGvN5.js","assets/index-DqEaj7EU.js","assets/index-Be0wHUx-.js","assets/timepicker-BD9p-9JQ.js","assets/input-OLwqq6dJ.js","assets/index-BEeaeEPl.js","assets/index-DBeV5cvz.js","assets/index-BDNxxQ4v.js","assets/index-DP9siobZ.js","assets/index-B1L1envm.js","assets/index-D2caMYlF.js","assets/index-BB6FwCEX.js","assets/uniqueId-D81S8Chc.js","assets/useOnInputChange-DTjT_cKQ.js","assets/index-BKKZmTqZ.js","assets/index-BLvsCvkf.js","assets/index-CRKAbc7H.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Bn=Object.defineProperty;var Dn=Er=>{throw TypeError(Er)};var Fn=(Er,yr,Mr)=>yr in Er?Bn(Er,yr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Er[yr]=Mr;var vr=(Er,yr,Mr)=>Fn(Er,typeof yr!="symbol"?yr+"":yr,Mr),pn=(Er,yr,Mr)=>yr.has(Er)||Dn("Cannot "+Mr);var Z0=(Er,yr,Mr)=>(pn(Er,yr,"read from private field"),Mr?Mr.call(Er):yr.get(Er)),Nr=(Er,yr,Mr)=>yr.has(Er)?Dn("Cannot add the same private member more than once"):yr instanceof WeakSet?yr.add(Er):yr.set(Er,Mr),Rr=(Er,yr,Mr,Tr)=>(pn(Er,yr,"write to private field"),Tr?Tr.call(Er,Mr):yr.set(Er,Mr),Mr),ar=(Er,yr,Mr)=>(pn(Er,yr,"access private method"),Mr);let isEqual$1,toString$8,isNullOrUndefined$1,merge$6,numbro$1,EmotionIconBase,notNullOrUndefined,hooks,formatPeriodType,moment$1,getTypeName,format,convertToSeconds,useTheme,Arrow$2,logError,PortalContext,transparentize,React$1,convertRemToPx,logWarning,_defineProperty$u,_objectWithoutProperties$o,_typeof$g,jsx,css$2,_toConsumableArray$3,_extends$Q,range$1,labelVisibilityProtoValueToEnum,Popover$1,StyledTooltipContentWrapper,StreamlitMarkdown$1,PLACEMENT,ACCESSIBILITY_TYPE,hasLightBackgroundColor,LibContext,debounce$4,Resizable,IndexTypeName,getAugmentedNamespace,DEFAULT_IFRAME_FEATURE_POLICY,DEFAULT_IFRAME_SANDBOX_POLICY,useStliteMediaObjects,darken,BaseButtonSize,BaseButtonKind,BaseButtonTooltip,DynamicButtonLabel,IsSidebarContext,Placement,getGray90,getIncreasingGreen,getDecreasingRed,PlotlyChart$1,keysToSnakeCase,WindowDimensionsContext,Video$1,zip$1,FileUploaderState,UploadedFileInfo,StyledSpinner,ENABLE_PERIPHERALS_DOCS_URL,BaseButton,Icon$2,blend,WidgetLabel,_baseMerge,_createAssigner,getGray70,getGray30,getCategoricalColorsArray,getDivergingColorsArray,getSequentialColorsArray,getBlue80,Global,ensureError,withTheme,DynamicIcon,toaster,AlertElement,Kind,_assertThisInitialized$e,ErrorElement,StyledInlineCode,axios,Skeleton,Skeleton$1,hoistNonReactStatics$2,lib$3,parseToRgba,DeckGlJsonChart$1,_unsupportedIterableToArray$l,reactDomExports,TextInput$1,TooltipIcon,Tooltip,styled,getOverrides,LocaleContext,ButtonGroup$1,LabelVisibilityMessage,StyledWidgetLabelHelpInline,useStliteKernel,themeColors,isPresetTheme,classNames,isValidFormId,toPropertyKey,_setPrototypeOf$e,hexToRgb,withWrapper,StyledWidgetInstructions,isFromMac,SIZE$1,CUSTOM_INPUT_TYPE,DeleteAlt$1,ADJOINED,filterOptions,ENHANCER_POSITION,UISelectbox,pick$1,Slider$2,isFromWindows,__awaiter,__generator,__spread,PropTypes,ChevronLeft,ChevronRight,isInForm,toString_1,isMobile_1,CAMERA_PERMISSION_URL,StyledWidgetLabelHelp,isFocusVisible,getOverride,getOverrideProps,StyledCheckbox$1,Checkbox$1,StyledContent,BaseColorPicker,useStyletron,mergeOverride,toObjectOverride,Icon$1,UIDConsumer,StatefulMenu,mergeOverrides,ChevronDown$1,ThemeContext,forkFocus,forkBlur,Select,without$1,fuzzyFilterSelectOptions,TYPE,VirtualDropdown,createStyled,ThemeProvider$1,createThemedStyled,createThemedUseStyletron,createThemedWithStyle,expandBorderStyles,withStyle,reactIsExports$1,NumberInput$1,_hasPath,commonjsGlobal$1,classnamesExports,getDefaultExportFromCjs$1,_root,isPropValid,jsxRuntimeExports,keyframes,isObject_1,_Set,_setToArray,_SetCache,propTypesExports,_arrayIncludes,reactExports,_arrayIncludesWith,toNumber_1,useStliteMediaObjectUrl,_cacheHas,groupBy$1,__vitePreload,flatten$2,require$$0$2,__tla=(async()=>{var yr,Mr,Tr,Dr,l1,d1,Fr,b1,f1,h1,nr,$r,_n,gn,B1,K1,Xr,Mn,Tn,Y1,wn,Cn,J1,C1,p1,Rn,$n,xn,qn,r1,kn,On,Qr,c1,m1,xr,Gr,g1,yn,zn,M1;function _mergeNamespaces(ot,et){for(var ct=0;ct<et.length;ct++){const ut=et[ct];if(typeof ut!="string"&&!Array.isArray(ut)){for(const dt in ut)if(dt!=="default"&&!(dt in ot)){const ft=Object.getOwnPropertyDescriptor(ut,dt);ft&&Object.defineProperty(ot,dt,ft.get?ft:{enumerable:!0,get:()=>ut[dt]})}}}return Object.freeze(Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}))}(function(){const ot=document.createElement("link").relList;if(ot&&ot.supports&&ot.supports("modulepreload"))return;for(const ut of document.querySelectorAll('link[rel="modulepreload"]'))ct(ut);new MutationObserver(ut=>{for(const dt of ut)if(dt.type==="childList")for(const ft of dt.addedNodes)ft.tagName==="LINK"&&ft.rel==="modulepreload"&&ct(ft)}).observe(document,{childList:!0,subtree:!0});function et(ut){const dt={};return ut.integrity&&(dt.integrity=ut.integrity),ut.referrerPolicy&&(dt.referrerPolicy=ut.referrerPolicy),ut.crossOrigin==="use-credentials"?dt.credentials="include":ut.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function ct(ut){if(ut.ep)return;ut.ep=!0;const dt=et(ut);fetch(ut.href,dt)}})(),commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},getDefaultExportFromCjs$1=function(ot){return ot&&ot.__esModule&&Object.prototype.hasOwnProperty.call(ot,"default")?ot.default:ot},getAugmentedNamespace=function(ot){if(ot.__esModule)return ot;var et=ot.default;if(typeof et=="function"){var ct=function ut(){return this instanceof ut?Reflect.construct(et,arguments,this.constructor):et.apply(this,arguments)};ct.prototype=et.prototype}else ct={};return Object.defineProperty(ct,"__esModule",{value:!0}),Object.keys(ot).forEach(function(ut){var dt=Object.getOwnPropertyDescriptor(ot,ut);Object.defineProperty(ct,ut,dt.get?dt:{enumerable:!0,get:function(){return ot[ut]}})}),ct};var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={},l$4=Symbol.for("react.element"),n$4=Symbol.for("react.portal"),p$6=Symbol.for("react.fragment"),q$5=Symbol.for("react.strict_mode"),r$4=Symbol.for("react.profiler"),t$3=Symbol.for("react.provider"),u$2=Symbol.for("react.context"),v$6=Symbol.for("react.forward_ref"),w$4=Symbol.for("react.suspense"),x$4=Symbol.for("react.memo"),y$4=Symbol.for("react.lazy"),z$5=Symbol.iterator;function A$3(ot){return ot===null||typeof ot!="object"?null:(ot=z$5&&ot[z$5]||ot["@@iterator"],typeof ot=="function"?ot:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$3=Object.assign,D$4={};function E$3(ot,et,ct){this.props=ot,this.context=et,this.refs=D$4,this.updater=ct||B$4}E$3.prototype.isReactComponent={},E$3.prototype.setState=function(ot,et){if(typeof ot!="object"&&typeof ot!="function"&&ot!=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,ot,et,"setState")},E$3.prototype.forceUpdate=function(ot){this.updater.enqueueForceUpdate(this,ot,"forceUpdate")};function F$3(){}F$3.prototype=E$3.prototype;function G$4(ot,et,ct){this.props=ot,this.context=et,this.refs=D$4,this.updater=ct||B$4}var H$3=G$4.prototype=new F$3;H$3.constructor=G$4,C$3(H$3,E$3.prototype),H$3.isPureReactComponent=!0;var I$3=Array.isArray,J$3=Object.prototype.hasOwnProperty,K$3={current:null},L$3={key:!0,ref:!0,__self:!0,__source:!0};function M$3(ot,et,ct){var ut,dt={},ft=null,zt=null;if(et!=null)for(ut in et.ref!==void 0&&(zt=et.ref),et.key!==void 0&&(ft=""+et.key),et)J$3.call(et,ut)&&!L$3.hasOwnProperty(ut)&&(dt[ut]=et[ut]);var Dt=arguments.length-2;if(Dt===1)dt.children=ct;else if(1<Dt){for(var St=Array(Dt),Tt=0;Tt<Dt;Tt++)St[Tt]=arguments[Tt+2];dt.children=St}if(ot&&ot.defaultProps)for(ut in Dt=ot.defaultProps,Dt)dt[ut]===void 0&&(dt[ut]=Dt[ut]);return{$$typeof:l$4,type:ot,key:ft,ref:zt,props:dt,_owner:K$3.current}}function N$4(ot,et){return{$$typeof:l$4,type:ot.type,key:et,ref:ot.ref,props:ot.props,_owner:ot._owner}}function O$2(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===l$4}function escape$2(ot){var et={"=":"=0",":":"=2"};return"$"+ot.replace(/[=:]/g,function(ct){return et[ct]})}var P$3=/\/+/g;function Q$4(ot,et){return typeof ot=="object"&&ot!==null&&ot.key!=null?escape$2(""+ot.key):et.toString(36)}function R$3(ot,et,ct,ut,dt){var ft=typeof ot;(ft==="undefined"||ft==="boolean")&&(ot=null);var zt=!1;if(ot===null)zt=!0;else switch(ft){case"string":case"number":zt=!0;break;case"object":switch(ot.$$typeof){case l$4:case n$4:zt=!0}}if(zt)return zt=ot,dt=dt(zt),ot=ut===""?"."+Q$4(zt,0):ut,I$3(dt)?(ct="",ot!=null&&(ct=ot.replace(P$3,"$&/")+"/"),R$3(dt,et,ct,"",function(Tt){return Tt})):dt!=null&&(O$2(dt)&&(dt=N$4(dt,ct+(!dt.key||zt&&zt.key===dt.key?"":(""+dt.key).replace(P$3,"$&/")+"/")+ot)),et.push(dt)),1;if(zt=0,ut=ut===""?".":ut+":",I$3(ot))for(var Dt=0;Dt<ot.length;Dt++){ft=ot[Dt];var St=ut+Q$4(ft,Dt);zt+=R$3(ft,et,ct,St,dt)}else if(St=A$3(ot),typeof St=="function")for(ot=St.call(ot),Dt=0;!(ft=ot.next()).done;)ft=ft.value,St=ut+Q$4(ft,Dt++),zt+=R$3(ft,et,ct,St,dt);else if(ft==="object")throw et=String(ot),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(ot).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.");return zt}function S$4(ot,et,ct){if(ot==null)return ot;var ut=[],dt=0;return R$3(ot,ut,"","",function(ft){return et.call(ct,ft,dt++)}),ut}function T$3(ot){if(ot._status===-1){var et=ot._result;et=et(),et.then(function(ct){(ot._status===0||ot._status===-1)&&(ot._status=1,ot._result=ct)},function(ct){(ot._status===0||ot._status===-1)&&(ot._status=2,ot._result=ct)}),ot._status===-1&&(ot._status=0,ot._result=et)}if(ot._status===1)return ot._result.default;throw ot._result}var U$3={current:null},V$3={transition:null},W$4={ReactCurrentDispatcher:U$3,ReactCurrentBatchConfig:V$3,ReactCurrentOwner:K$3};react_production_min.Children={map:S$4,forEach:function(ot,et,ct){S$4(ot,function(){et.apply(this,arguments)},ct)},count:function(ot){var et=0;return S$4(ot,function(){et++}),et},toArray:function(ot){return S$4(ot,function(et){return et})||[]},only:function(ot){if(!O$2(ot))throw Error("React.Children.only expected to receive a single React element child.");return ot}},react_production_min.Component=E$3,react_production_min.Fragment=p$6,react_production_min.Profiler=r$4,react_production_min.PureComponent=G$4,react_production_min.StrictMode=q$5,react_production_min.Suspense=w$4,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$4,react_production_min.cloneElement=function(ot,et,ct){if(ot==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+ot+".");var ut=C$3({},ot.props),dt=ot.key,ft=ot.ref,zt=ot._owner;if(et!=null){if(et.ref!==void 0&&(ft=et.ref,zt=K$3.current),et.key!==void 0&&(dt=""+et.key),ot.type&&ot.type.defaultProps)var Dt=ot.type.defaultProps;for(St in et)J$3.call(et,St)&&!L$3.hasOwnProperty(St)&&(ut[St]=et[St]===void 0&&Dt!==void 0?Dt[St]:et[St])}var St=arguments.length-2;if(St===1)ut.children=ct;else if(1<St){Dt=Array(St);for(var Tt=0;Tt<St;Tt++)Dt[Tt]=arguments[Tt+2];ut.children=Dt}return{$$typeof:l$4,type:ot.type,key:dt,ref:ft,props:ut,_owner:zt}},react_production_min.createContext=function(ot){return ot={$$typeof:u$2,_currentValue:ot,_currentValue2:ot,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},ot.Provider={$$typeof:t$3,_context:ot},ot.Consumer=ot},react_production_min.createElement=M$3,react_production_min.createFactory=function(ot){var et=M$3.bind(null,ot);return et.type=ot,et},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(ot){return{$$typeof:v$6,render:ot}},react_production_min.isValidElement=O$2,react_production_min.lazy=function(ot){return{$$typeof:y$4,_payload:{_status:-1,_result:ot},_init:T$3}},react_production_min.memo=function(ot,et){return{$$typeof:x$4,type:ot,compare:et===void 0?null:et}},react_production_min.startTransition=function(ot){var et=V$3.transition;V$3.transition={};try{ot()}finally{V$3.transition=et}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(ot,et){return U$3.current.useCallback(ot,et)},react_production_min.useContext=function(ot){return U$3.current.useContext(ot)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(ot){return U$3.current.useDeferredValue(ot)},react_production_min.useEffect=function(ot,et){return U$3.current.useEffect(ot,et)},react_production_min.useId=function(){return U$3.current.useId()},react_production_min.useImperativeHandle=function(ot,et,ct){return U$3.current.useImperativeHandle(ot,et,ct)},react_production_min.useInsertionEffect=function(ot,et){return U$3.current.useInsertionEffect(ot,et)},react_production_min.useLayoutEffect=function(ot,et){return U$3.current.useLayoutEffect(ot,et)},react_production_min.useMemo=function(ot,et){return U$3.current.useMemo(ot,et)},react_production_min.useReducer=function(ot,et,ct){return U$3.current.useReducer(ot,et,ct)},react_production_min.useRef=function(ot){return U$3.current.useRef(ot)},react_production_min.useState=function(ot){return U$3.current.useState(ot)},react_production_min.useSyncExternalStore=function(ot,et,ct){return U$3.current.useSyncExternalStore(ot,et,ct)},react_production_min.useTransition=function(){return U$3.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,reactExports=react.exports;let React$2;React$1=getDefaultExportFromCjs$1(reactExports),React$2=_mergeNamespaces({__proto__:null,default:React$1},[reactExports]);var f$3=reactExports,k$4=Symbol.for("react.element"),l$3=Symbol.for("react.fragment"),m$5=Object.prototype.hasOwnProperty,n$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$5={key:!0,ref:!0,__self:!0,__source:!0};function q$4(ot,et,ct){var ut,dt={},ft=null,zt=null;ct!==void 0&&(ft=""+ct),et.key!==void 0&&(ft=""+et.key),et.ref!==void 0&&(zt=et.ref);for(ut in et)m$5.call(et,ut)&&!p$5.hasOwnProperty(ut)&&(dt[ut]=et[ut]);if(ot&&ot.defaultProps)for(ut in et=ot.defaultProps,et)dt[ut]===void 0&&(dt[ut]=et[ut]);return{$$typeof:k$4,type:ot,key:ft,ref:zt,props:dt,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$3,reactJsxRuntime_production_min.jsx=q$4,reactJsxRuntime_production_min.jsxs=q$4,jsxRuntime.exports=reactJsxRuntime_production_min;let reactDom,reactDom_production_min,scheduler,scheduler_production_min;jsxRuntimeExports=jsxRuntime.exports,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={},function(ot){function et(I0,F0){var p0=I0.length;I0.push(F0);e:for(;0<p0;){var x0=p0-1>>>1,c0=I0[x0];if(0<dt(c0,F0))I0[x0]=F0,I0[p0]=c0,p0=x0;else break e}}function ct(I0){return I0.length===0?null:I0[0]}function ut(I0){if(I0.length===0)return null;var F0=I0[0],p0=I0.pop();if(p0!==F0){I0[0]=p0;e:for(var x0=0,c0=I0.length,i0=c0>>>1;x0<i0;){var M0=2*(x0+1)-1,k0=I0[M0],q0=M0+1,N0=I0[q0];if(0>dt(k0,p0))q0<c0&&0>dt(N0,k0)?(I0[x0]=N0,I0[q0]=p0,x0=q0):(I0[x0]=k0,I0[M0]=p0,x0=M0);else if(q0<c0&&0>dt(N0,p0))I0[x0]=N0,I0[q0]=p0,x0=q0;else break e}}return F0}function dt(I0,F0){var p0=I0.sortIndex-F0.sortIndex;return p0!==0?p0:I0.id-F0.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ft=performance;ot.unstable_now=function(){return ft.now()}}else{var zt=Date,Dt=zt.now();ot.unstable_now=function(){return zt.now()-Dt}}var St=[],Tt=[],Rt=1,$t=null,kt=3,Bt=!1,Ft=!1,jt=!1,Kt=typeof setTimeout=="function"?setTimeout:null,Yt=typeof clearTimeout=="function"?clearTimeout:null,Ut=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Jt(I0){for(var F0=ct(Tt);F0!==null;){if(F0.callback===null)ut(Tt);else if(F0.startTime<=I0)ut(Tt),F0.sortIndex=F0.expirationTime,et(St,F0);else break;F0=ct(Tt)}}function Ht(I0){if(jt=!1,Jt(I0),!Ft)if(ct(St)!==null)Ft=!0,E0(e0);else{var F0=ct(Tt);F0!==null&&H0(Ht,F0.startTime-I0)}}function e0(I0,F0){Ft=!1,jt&&(jt=!1,Yt(o0),o0=-1),Bt=!0;var p0=kt;try{for(Jt(F0),$t=ct(St);$t!==null&&(!($t.expirationTime>F0)||I0&&!a0());){var x0=$t.callback;if(typeof x0=="function"){$t.callback=null,kt=$t.priorityLevel;var c0=x0($t.expirationTime<=F0);F0=ot.unstable_now(),typeof c0=="function"?$t.callback=c0:$t===ct(St)&&ut(St),Jt(F0)}else ut(St);$t=ct(St)}if($t!==null)var i0=!0;else{var M0=ct(Tt);M0!==null&&H0(Ht,M0.startTime-F0),i0=!1}return i0}finally{$t=null,kt=p0,Bt=!1}}var t0=!1,Zt=null,o0=-1,n0=5,r0=-1;function a0(){return!(ot.unstable_now()-r0<n0)}function u0(){if(Zt!==null){var I0=ot.unstable_now();r0=I0;var F0=!0;try{F0=Zt(!0,I0)}finally{F0?b0():(t0=!1,Zt=null)}}else t0=!1}var b0;if(typeof Ut=="function")b0=function(){Ut(u0)};else if(typeof MessageChannel<"u"){var T0=new MessageChannel,O0=T0.port2;T0.port1.onmessage=u0,b0=function(){O0.postMessage(null)}}else b0=function(){Kt(u0,0)};function E0(I0){Zt=I0,t0||(t0=!0,b0())}function H0(I0,F0){o0=Kt(function(){I0(ot.unstable_now())},F0)}ot.unstable_IdlePriority=5,ot.unstable_ImmediatePriority=1,ot.unstable_LowPriority=4,ot.unstable_NormalPriority=3,ot.unstable_Profiling=null,ot.unstable_UserBlockingPriority=2,ot.unstable_cancelCallback=function(I0){I0.callback=null},ot.unstable_continueExecution=function(){Ft||Bt||(Ft=!0,E0(e0))},ot.unstable_forceFrameRate=function(I0){0>I0||125<I0?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):n0=0<I0?Math.floor(1e3/I0):5},ot.unstable_getCurrentPriorityLevel=function(){return kt},ot.unstable_getFirstCallbackNode=function(){return ct(St)},ot.unstable_next=function(I0){switch(kt){case 1:case 2:case 3:var F0=3;break;default:F0=kt}var p0=kt;kt=F0;try{return I0()}finally{kt=p0}},ot.unstable_pauseExecution=function(){},ot.unstable_requestPaint=function(){},ot.unstable_runWithPriority=function(I0,F0){switch(I0){case 1:case 2:case 3:case 4:case 5:break;default:I0=3}var p0=kt;kt=I0;try{return F0()}finally{kt=p0}},ot.unstable_scheduleCallback=function(I0,F0,p0){var x0=ot.unstable_now();switch(typeof p0=="object"&&p0!==null?(p0=p0.delay,p0=typeof p0=="number"&&0<p0?x0+p0:x0):p0=x0,I0){case 1:var c0=-1;break;case 2:c0=250;break;case 5:c0=1073741823;break;case 4:c0=1e4;break;default:c0=5e3}return c0=p0+c0,I0={id:Rt++,callback:F0,priorityLevel:I0,startTime:p0,expirationTime:c0,sortIndex:-1},p0>x0?(I0.sortIndex=p0,et(Tt,I0),ct(St)===null&&I0===ct(Tt)&&(jt?(Yt(o0),o0=-1):jt=!0,H0(Ht,p0-x0))):(I0.sortIndex=c0,et(St,I0),Ft||Bt||(Ft=!0,E0(e0))),I0},ot.unstable_shouldYield=a0,ot.unstable_wrapCallback=function(I0){var F0=kt;return function(){var p0=kt;kt=F0;try{return I0.apply(this,arguments)}finally{kt=p0}}}}(scheduler_production_min),scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports,aa=reactExports,ca=schedulerExports;function p$4(ot){for(var et="https://reactjs.org/docs/error-decoder.html?invariant="+ot,ct=1;ct<arguments.length;ct++)et+="&args[]="+encodeURIComponent(arguments[ct]);return"Minified React error #"+ot+"; visit "+et+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(ot,et){ha(ot,et),ha(ot+"Capture",et)}function ha(ot,et){for(ea[ot]=et,ot=0;ot<et.length;ot++)da.add(et[ot])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(ot){return ja.call(ma,ot)?!0:ja.call(la,ot)?!1:ka.test(ot)?ma[ot]=!0:(la[ot]=!0,!1)}function pa(ot,et,ct,ut){if(ct!==null&&ct.type===0)return!1;switch(typeof et){case"function":case"symbol":return!0;case"boolean":return ut?!1:ct!==null?!ct.acceptsBooleans:(ot=ot.toLowerCase().slice(0,5),ot!=="data-"&&ot!=="aria-");default:return!1}}function qa(ot,et,ct,ut){if(et===null||typeof et>"u"||pa(ot,et,ct,ut))return!0;if(ut)return!1;if(ct!==null)switch(ct.type){case 3:return!et;case 4:return et===!1;case 5:return isNaN(et);case 6:return isNaN(et)||1>et}return!1}function v$5(ot,et,ct,ut,dt,ft,zt){this.acceptsBooleans=et===2||et===3||et===4,this.attributeName=ut,this.attributeNamespace=dt,this.mustUseProperty=ct,this.propertyName=ot,this.type=et,this.sanitizeURL=ft,this.removeEmptyString=zt}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(ot){z$4[ot]=new v$5(ot,0,!1,ot,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(ot){var et=ot[0];z$4[et]=new v$5(et,1,!1,ot[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(ot){z$4[ot]=new v$5(ot,2,!1,ot.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(ot){z$4[ot]=new v$5(ot,2,!1,ot,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(ot){z$4[ot]=new v$5(ot,3,!1,ot.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(ot){z$4[ot]=new v$5(ot,3,!0,ot,null,!1,!1)}),["capture","download"].forEach(function(ot){z$4[ot]=new v$5(ot,4,!1,ot,null,!1,!1)}),["cols","rows","size","span"].forEach(function(ot){z$4[ot]=new v$5(ot,6,!1,ot,null,!1,!1)}),["rowSpan","start"].forEach(function(ot){z$4[ot]=new v$5(ot,5,!1,ot.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa$1(ot){return ot[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(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(ot){z$4[ot]=new v$5(ot,1,!1,ot.toLowerCase(),null,!1,!1)}),z$4.xlinkHref=new v$5("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(ot){z$4[ot]=new v$5(ot,1,!1,ot.toLowerCase(),null,!0,!0)});function ta(ot,et,ct,ut){var dt=z$4.hasOwnProperty(et)?z$4[et]:null;(dt!==null?dt.type!==0:ut||!(2<et.length)||et[0]!=="o"&&et[0]!=="O"||et[1]!=="n"&&et[1]!=="N")&&(qa(et,ct,dt,ut)&&(ct=null),ut||dt===null?oa(et)&&(ct===null?ot.removeAttribute(et):ot.setAttribute(et,""+ct)):dt.mustUseProperty?ot[dt.propertyName]=ct===null?dt.type===3?!1:"":ct:(et=dt.attributeName,ut=dt.attributeNamespace,ct===null?ot.removeAttribute(et):(dt=dt.type,ct=dt===3||dt===4&&ct===!0?"":""+ct,ut?ot.setAttributeNS(ut,et,ct):ot.setAttribute(et,ct))))}var ua$1=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(ot){return ot===null||typeof ot!="object"?null:(ot=Ja&&ot[Ja]||ot["@@iterator"],typeof ot=="function"?ot:null)}var A$2=Object.assign,La;function Ma(ot){if(La===void 0)try{throw Error()}catch(ct){var et=ct.stack.trim().match(/\n( *(at )?)/);La=et&&et[1]||""}return`
|
|
3
3
|
`+La+ot}var Na=!1;function Oa(ot,et){if(!ot||Na)return"";Na=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(et)if(et=function(){throw Error()},Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Tt){var ut=Tt}Reflect.construct(ot,[],et)}else{try{et.call()}catch(Tt){ut=Tt}ot.call(et.prototype)}else{try{throw Error()}catch(Tt){ut=Tt}ot()}}catch(Tt){if(Tt&&ut&&typeof Tt.stack=="string"){for(var dt=Tt.stack.split(`
|
|
4
4
|
`),ft=ut.stack.split(`
|
|
@@ -6,7 +6,7 @@ var Bn=Object.defineProperty;var Dn=Er=>{throw TypeError(Er)};var Fn=(Er,yr,Mr)=
|
|
|
6
6
|
`+dt[zt].replace(" at new "," at ");return ot.displayName&&St.includes("<anonymous>")&&(St=St.replace("<anonymous>",ot.displayName)),St}while(1<=zt&&0<=Dt);break}}}finally{Na=!1,Error.prepareStackTrace=ct}return(ot=ot?ot.displayName||ot.name:"")?Ma(ot):""}function Pa(ot){switch(ot.tag){case 5:return Ma(ot.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return ot=Oa(ot.type,!1),ot;case 11:return ot=Oa(ot.type.render,!1),ot;case 1:return ot=Oa(ot.type,!0),ot;default:return""}}function Qa(ot){if(ot==null)return null;if(typeof ot=="function")return ot.displayName||ot.name||null;if(typeof ot=="string")return ot;switch(ot){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof ot=="object")switch(ot.$$typeof){case Ca:return(ot.displayName||"Context")+".Consumer";case Ba:return(ot._context.displayName||"Context")+".Provider";case Da:var et=ot.render;return ot=ot.displayName,ot||(ot=et.displayName||et.name||"",ot=ot!==""?"ForwardRef("+ot+")":"ForwardRef"),ot;case Ga:return et=ot.displayName||null,et!==null?et:Qa(ot.type)||"Memo";case Ha:et=ot._payload,ot=ot._init;try{return Qa(ot(et))}catch{}}return null}function Ra(ot){var et=ot.type;switch(ot.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return ot=et.render,ot=ot.displayName||ot.name||"",et.displayName||(ot!==""?"ForwardRef("+ot+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(ot){switch(typeof ot){case"boolean":case"number":case"string":case"undefined":return ot;case"object":return ot;default:return""}}function Ta(ot){var et=ot.type;return(ot=ot.nodeName)&&ot.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(ot){var et=Ta(ot)?"checked":"value",ct=Object.getOwnPropertyDescriptor(ot.constructor.prototype,et),ut=""+ot[et];if(!ot.hasOwnProperty(et)&&typeof ct<"u"&&typeof ct.get=="function"&&typeof ct.set=="function"){var dt=ct.get,ft=ct.set;return Object.defineProperty(ot,et,{configurable:!0,get:function(){return dt.call(this)},set:function(zt){ut=""+zt,ft.call(this,zt)}}),Object.defineProperty(ot,et,{enumerable:ct.enumerable}),{getValue:function(){return ut},setValue:function(zt){ut=""+zt},stopTracking:function(){ot._valueTracker=null,delete ot[et]}}}}function Va(ot){ot._valueTracker||(ot._valueTracker=Ua(ot))}function Wa(ot){if(!ot)return!1;var et=ot._valueTracker;if(!et)return!0;var ct=et.getValue(),ut="";return ot&&(ut=Ta(ot)?ot.checked?"true":"false":ot.value),ot=ut,ot!==ct?(et.setValue(ot),!0):!1}function Xa(ot){if(ot=ot||(typeof document<"u"?document:void 0),typeof ot>"u")return null;try{return ot.activeElement||ot.body}catch{return ot.body}}function Ya(ot,et){var ct=et.checked;return A$2({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:ct??ot._wrapperState.initialChecked})}function Za(ot,et){var ct=et.defaultValue==null?"":et.defaultValue,ut=et.checked!=null?et.checked:et.defaultChecked;ct=Sa(et.value!=null?et.value:ct),ot._wrapperState={initialChecked:ut,initialValue:ct,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab$1(ot,et){et=et.checked,et!=null&&ta(ot,"checked",et,!1)}function bb(ot,et){ab$1(ot,et);var ct=Sa(et.value),ut=et.type;if(ct!=null)ut==="number"?(ct===0&&ot.value===""||ot.value!=ct)&&(ot.value=""+ct):ot.value!==""+ct&&(ot.value=""+ct);else if(ut==="submit"||ut==="reset"){ot.removeAttribute("value");return}et.hasOwnProperty("value")?cb(ot,et.type,ct):et.hasOwnProperty("defaultValue")&&cb(ot,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(ot.defaultChecked=!!et.defaultChecked)}function db(ot,et,ct){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var ut=et.type;if(!(ut!=="submit"&&ut!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+ot._wrapperState.initialValue,ct||et===ot.value||(ot.value=et),ot.defaultValue=et}ct=ot.name,ct!==""&&(ot.name=""),ot.defaultChecked=!!ot._wrapperState.initialChecked,ct!==""&&(ot.name=ct)}function cb(ot,et,ct){(et!=="number"||Xa(ot.ownerDocument)!==ot)&&(ct==null?ot.defaultValue=""+ot._wrapperState.initialValue:ot.defaultValue!==""+ct&&(ot.defaultValue=""+ct))}var eb=Array.isArray;function fb(ot,et,ct,ut){if(ot=ot.options,et){et={};for(var dt=0;dt<ct.length;dt++)et["$"+ct[dt]]=!0;for(ct=0;ct<ot.length;ct++)dt=et.hasOwnProperty("$"+ot[ct].value),ot[ct].selected!==dt&&(ot[ct].selected=dt),dt&&ut&&(ot[ct].defaultSelected=!0)}else{for(ct=""+Sa(ct),et=null,dt=0;dt<ot.length;dt++){if(ot[dt].value===ct){ot[dt].selected=!0,ut&&(ot[dt].defaultSelected=!0);return}et!==null||ot[dt].disabled||(et=ot[dt])}et!==null&&(et.selected=!0)}}function gb$1(ot,et){if(et.dangerouslySetInnerHTML!=null)throw Error(p$4(91));return A$2({},et,{value:void 0,defaultValue:void 0,children:""+ot._wrapperState.initialValue})}function hb(ot,et){var ct=et.value;if(ct==null){if(ct=et.children,et=et.defaultValue,ct!=null){if(et!=null)throw Error(p$4(92));if(eb(ct)){if(1<ct.length)throw Error(p$4(93));ct=ct[0]}et=ct}et==null&&(et=""),ct=et}ot._wrapperState={initialValue:Sa(ct)}}function ib(ot,et){var ct=Sa(et.value),ut=Sa(et.defaultValue);ct!=null&&(ct=""+ct,ct!==ot.value&&(ot.value=ct),et.defaultValue==null&&ot.defaultValue!==ct&&(ot.defaultValue=ct)),ut!=null&&(ot.defaultValue=""+ut)}function jb(ot){var et=ot.textContent;et===ot._wrapperState.initialValue&&et!==""&&et!==null&&(ot.value=et)}function kb(ot){switch(ot){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(ot,et){return ot==null||ot==="http://www.w3.org/1999/xhtml"?kb(et):ot==="http://www.w3.org/2000/svg"&&et==="foreignObject"?"http://www.w3.org/1999/xhtml":ot}var mb,nb=function(ot){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(et,ct,ut,dt){MSApp.execUnsafeLocalFunction(function(){return ot(et,ct,ut,dt)})}:ot}(function(ot,et){if(ot.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in ot)ot.innerHTML=et;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+et.valueOf().toString()+"</svg>",et=mb.firstChild;ot.firstChild;)ot.removeChild(ot.firstChild);for(;et.firstChild;)ot.appendChild(et.firstChild)}});function ob(ot,et){if(et){var ct=ot.firstChild;if(ct&&ct===ot.lastChild&&ct.nodeType===3){ct.nodeValue=et;return}}ot.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(ot){qb.forEach(function(et){et=et+ot.charAt(0).toUpperCase()+ot.substring(1),pb[et]=pb[ot]})});function rb(ot,et,ct){return et==null||typeof et=="boolean"||et===""?"":ct||typeof et!="number"||et===0||pb.hasOwnProperty(ot)&&pb[ot]?(""+et).trim():et+"px"}function sb(ot,et){ot=ot.style;for(var ct in et)if(et.hasOwnProperty(ct)){var ut=ct.indexOf("--")===0,dt=rb(ct,et[ct],ut);ct==="float"&&(ct="cssFloat"),ut?ot.setProperty(ct,dt):ot[ct]=dt}}var tb=A$2({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 ub(ot,et){if(et){if(tb[ot]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$4(137,ot));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$4(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$4(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$4(62))}}function vb(ot,et){if(ot.indexOf("-")===-1)return typeof et.is=="string";switch(ot){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 wb=null;function xb(ot){return ot=ot.target||ot.srcElement||window,ot.correspondingUseElement&&(ot=ot.correspondingUseElement),ot.nodeType===3?ot.parentNode:ot}var yb=null,zb=null,Ab=null;function Bb(ot){if(ot=Cb(ot)){if(typeof yb!="function")throw Error(p$4(280));var et=ot.stateNode;et&&(et=Db(et),yb(ot.stateNode,ot.type,et))}}function Eb(ot){zb?Ab?Ab.push(ot):Ab=[ot]:zb=ot}function Fb(){if(zb){var ot=zb,et=Ab;if(Ab=zb=null,Bb(ot),et)for(ot=0;ot<et.length;ot++)Bb(et[ot])}}function Gb(ot,et){return ot(et)}function Hb(){}var Ib=!1;function Jb(ot,et,ct){if(Ib)return ot(et,ct);Ib=!0;try{return Gb(ot,et,ct)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(ot,et){var ct=ot.stateNode;if(ct===null)return null;var ut=Db(ct);if(ut===null)return null;ct=ut[et];e:switch(et){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ut=!ut.disabled)||(ot=ot.type,ut=!(ot==="button"||ot==="input"||ot==="select"||ot==="textarea")),ot=!ut;break e;default:ot=!1}if(ot)return null;if(ct&&typeof ct!="function")throw Error(p$4(231,et,typeof ct));return ct}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(ot,et,ct,ut,dt,ft,zt,Dt,St){var Tt=Array.prototype.slice.call(arguments,3);try{et.apply(ct,Tt)}catch(Rt){this.onError(Rt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(ot){Ob=!0,Pb=ot}};function Tb(ot,et,ct,ut,dt,ft,zt,Dt,St){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(ot,et,ct,ut,dt,ft,zt,Dt,St){if(Tb.apply(this,arguments),Ob){if(Ob){var Tt=Pb;Ob=!1,Pb=null}else throw Error(p$4(198));Qb||(Qb=!0,Rb=Tt)}}function Vb(ot){var et=ot,ct=ot;if(ot.alternate)for(;et.return;)et=et.return;else{ot=et;do et=ot,et.flags&4098&&(ct=et.return),ot=et.return;while(ot)}return et.tag===3?ct:null}function Wb(ot){if(ot.tag===13){var et=ot.memoizedState;if(et===null&&(ot=ot.alternate,ot!==null&&(et=ot.memoizedState)),et!==null)return et.dehydrated}return null}function Xb(ot){if(Vb(ot)!==ot)throw Error(p$4(188))}function Yb(ot){var et=ot.alternate;if(!et){if(et=Vb(ot),et===null)throw Error(p$4(188));return et!==ot?null:ot}for(var ct=ot,ut=et;;){var dt=ct.return;if(dt===null)break;var ft=dt.alternate;if(ft===null){if(ut=dt.return,ut!==null){ct=ut;continue}break}if(dt.child===ft.child){for(ft=dt.child;ft;){if(ft===ct)return Xb(dt),ot;if(ft===ut)return Xb(dt),et;ft=ft.sibling}throw Error(p$4(188))}if(ct.return!==ut.return)ct=dt,ut=ft;else{for(var zt=!1,Dt=dt.child;Dt;){if(Dt===ct){zt=!0,ct=dt,ut=ft;break}if(Dt===ut){zt=!0,ut=dt,ct=ft;break}Dt=Dt.sibling}if(!zt){for(Dt=ft.child;Dt;){if(Dt===ct){zt=!0,ct=ft,ut=dt;break}if(Dt===ut){zt=!0,ut=ft,ct=dt;break}Dt=Dt.sibling}if(!zt)throw Error(p$4(189))}}if(ct.alternate!==ut)throw Error(p$4(190))}if(ct.tag!==3)throw Error(p$4(188));return ct.stateNode.current===ct?ot:et}function Zb(ot){return ot=Yb(ot),ot!==null?$b(ot):null}function $b(ot){if(ot.tag===5||ot.tag===6)return ot;for(ot=ot.child;ot!==null;){var et=$b(ot);if(et!==null)return et;ot=ot.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B$3=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(ot){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,ot,void 0,(ot.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(ot){return ot>>>=0,ot===0?32:31-(pc(ot)/qc|0)|0}var rc=64,sc=4194304;function tc(ot){switch(ot&-ot){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 ot&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return ot&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return ot}}function uc(ot,et){var ct=ot.pendingLanes;if(ct===0)return 0;var ut=0,dt=ot.suspendedLanes,ft=ot.pingedLanes,zt=ct&268435455;if(zt!==0){var Dt=zt&~dt;Dt!==0?ut=tc(Dt):(ft&=zt,ft!==0&&(ut=tc(ft)))}else zt=ct&~dt,zt!==0?ut=tc(zt):ft!==0&&(ut=tc(ft));if(ut===0)return 0;if(et!==0&&et!==ut&&!(et&dt)&&(dt=ut&-ut,ft=et&-et,dt>=ft||dt===16&&(ft&4194240)!==0))return et;if(ut&4&&(ut|=ct&16),et=ot.entangledLanes,et!==0)for(ot=ot.entanglements,et&=ut;0<et;)ct=31-oc(et),dt=1<<ct,ut|=ot[ct],et&=~dt;return ut}function vc(ot,et){switch(ot){case 1:case 2:case 4:return et+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return et+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc$1(ot,et){for(var ct=ot.suspendedLanes,ut=ot.pingedLanes,dt=ot.expirationTimes,ft=ot.pendingLanes;0<ft;){var zt=31-oc(ft),Dt=1<<zt,St=dt[zt];St===-1?(!(Dt&ct)||Dt&ut)&&(dt[zt]=vc(Dt,et)):St<=et&&(ot.expiredLanes|=Dt),ft&=~Dt}}function xc(ot){return ot=ot.pendingLanes&-1073741825,ot!==0?ot:ot&1073741824?1073741824:0}function yc(){var ot=rc;return rc<<=1,!(rc&4194240)&&(rc=64),ot}function zc(ot){for(var et=[],ct=0;31>ct;ct++)et.push(ot);return et}function Ac(ot,et,ct){ot.pendingLanes|=et,et!==536870912&&(ot.suspendedLanes=0,ot.pingedLanes=0),ot=ot.eventTimes,et=31-oc(et),ot[et]=ct}function Bc(ot,et){var ct=ot.pendingLanes&~et;ot.pendingLanes=et,ot.suspendedLanes=0,ot.pingedLanes=0,ot.expiredLanes&=et,ot.mutableReadLanes&=et,ot.entangledLanes&=et,et=ot.entanglements;var ut=ot.eventTimes;for(ot=ot.expirationTimes;0<ct;){var dt=31-oc(ct),ft=1<<dt;et[dt]=0,ut[dt]=-1,ot[dt]=-1,ct&=~ft}}function Cc(ot,et){var ct=ot.entangledLanes|=et;for(ot=ot.entanglements;ct;){var ut=31-oc(ct),dt=1<<ut;dt&et|ot[ut]&et&&(ot[ut]|=et),ct&=~dt}}var C$2=0;function Dc$1(ot){return ot&=-ot,1<ot?4<ot?ot&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc$1(ot,et){switch(ot){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(et.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(et.pointerId)}}function Tc$1(ot,et,ct,ut,dt,ft){return ot===null||ot.nativeEvent!==ft?(ot={blockedOn:et,domEventName:ct,eventSystemFlags:ut,nativeEvent:ft,targetContainers:[dt]},et!==null&&(et=Cb(et),et!==null&&Fc(et)),ot):(ot.eventSystemFlags|=ut,et=ot.targetContainers,dt!==null&&et.indexOf(dt)===-1&&et.push(dt),ot)}function Uc(ot,et,ct,ut,dt){switch(et){case"focusin":return Lc=Tc$1(Lc,ot,et,ct,ut,dt),!0;case"dragenter":return Mc=Tc$1(Mc,ot,et,ct,ut,dt),!0;case"mouseover":return Nc=Tc$1(Nc,ot,et,ct,ut,dt),!0;case"pointerover":var ft=dt.pointerId;return Oc.set(ft,Tc$1(Oc.get(ft)||null,ot,et,ct,ut,dt)),!0;case"gotpointercapture":return ft=dt.pointerId,Pc.set(ft,Tc$1(Pc.get(ft)||null,ot,et,ct,ut,dt)),!0}return!1}function Vc(ot){var et=Wc(ot.target);if(et!==null){var ct=Vb(et);if(ct!==null){if(et=ct.tag,et===13){if(et=Wb(ct),et!==null){ot.blockedOn=et,Ic(ot.priority,function(){Gc(ct)});return}}else if(et===3&&ct.stateNode.current.memoizedState.isDehydrated){ot.blockedOn=ct.tag===3?ct.stateNode.containerInfo:null;return}}}ot.blockedOn=null}function Xc(ot){if(ot.blockedOn!==null)return!1;for(var et=ot.targetContainers;0<et.length;){var ct=Yc(ot.domEventName,ot.eventSystemFlags,et[0],ot.nativeEvent);if(ct===null){ct=ot.nativeEvent;var ut=new ct.constructor(ct.type,ct);wb=ut,ct.target.dispatchEvent(ut),wb=null}else return et=Cb(ct),et!==null&&Fc(et),ot.blockedOn=ct,!1;et.shift()}return!0}function Zc(ot,et,ct){Xc(ot)&&ct.delete(et)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(ot,et){ot.blockedOn===et&&(ot.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(ot){function et(dt){return ad(dt,ot)}if(0<Kc.length){ad(Kc[0],ot);for(var ct=1;ct<Kc.length;ct++){var ut=Kc[ct];ut.blockedOn===ot&&(ut.blockedOn=null)}}for(Lc!==null&&ad(Lc,ot),Mc!==null&&ad(Mc,ot),Nc!==null&&ad(Nc,ot),Oc.forEach(et),Pc.forEach(et),ct=0;ct<Qc.length;ct++)ut=Qc[ct],ut.blockedOn===ot&&(ut.blockedOn=null);for(;0<Qc.length&&(ct=Qc[0],ct.blockedOn===null);)Vc(ct),ct.blockedOn===null&&Qc.shift()}var cd$1=ua$1.ReactCurrentBatchConfig,dd=!0;function ed(ot,et,ct,ut){var dt=C$2,ft=cd$1.transition;cd$1.transition=null;try{C$2=1,fd(ot,et,ct,ut)}finally{C$2=dt,cd$1.transition=ft}}function gd(ot,et,ct,ut){var dt=C$2,ft=cd$1.transition;cd$1.transition=null;try{C$2=4,fd(ot,et,ct,ut)}finally{C$2=dt,cd$1.transition=ft}}function fd(ot,et,ct,ut){if(dd){var dt=Yc(ot,et,ct,ut);if(dt===null)hd(ot,et,ut,id$1,ct),Sc$1(ot,ut);else if(Uc(dt,ot,et,ct,ut))ut.stopPropagation();else if(Sc$1(ot,ut),et&4&&-1<Rc.indexOf(ot)){for(;dt!==null;){var ft=Cb(dt);if(ft!==null&&Ec(ft),ft=Yc(ot,et,ct,ut),ft===null&&hd(ot,et,ut,id$1,ct),ft===dt)break;dt=ft}dt!==null&&ut.stopPropagation()}else hd(ot,et,ut,null,ct)}}var id$1=null;function Yc(ot,et,ct,ut){if(id$1=null,ot=xb(ut),ot=Wc(ot),ot!==null)if(et=Vb(ot),et===null)ot=null;else if(ct=et.tag,ct===13){if(ot=Wb(et),ot!==null)return ot;ot=null}else if(ct===3){if(et.stateNode.current.memoizedState.isDehydrated)return et.tag===3?et.stateNode.containerInfo:null;ot=null}else et!==ot&&(ot=null);return id$1=ot,null}function jd(ot){switch(ot){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var ot,et=ld,ct=et.length,ut,dt="value"in kd?kd.value:kd.textContent,ft=dt.length;for(ot=0;ot<ct&&et[ot]===dt[ot];ot++);var zt=ct-ot;for(ut=1;ut<=zt&&et[ct-ut]===dt[ft-ut];ut++);return md=dt.slice(ot,1<ut?1-ut:void 0)}function od(ot){var et=ot.keyCode;return"charCode"in ot?(ot=ot.charCode,ot===0&&et===13&&(ot=13)):ot=et,ot===10&&(ot=13),32<=ot||ot===13?ot:0}function pd(){return!0}function qd(){return!1}function rd(ot){function et(ct,ut,dt,ft,zt){this._reactName=ct,this._targetInst=dt,this.type=ut,this.nativeEvent=ft,this.target=zt,this.currentTarget=null;for(var Dt in ot)ot.hasOwnProperty(Dt)&&(ct=ot[Dt],this[Dt]=ct?ct(ft):ft[Dt]);return this.isDefaultPrevented=(ft.defaultPrevented!=null?ft.defaultPrevented:ft.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$2(et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var ct=this.nativeEvent;ct&&(ct.preventDefault?ct.preventDefault():typeof ct.returnValue!="unknown"&&(ct.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var ct=this.nativeEvent;ct&&(ct.stopPropagation?ct.stopPropagation():typeof ct.cancelBubble!="unknown"&&(ct.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),et}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(ot){return ot.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$2({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$2({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(ot){return ot.relatedTarget===void 0?ot.fromElement===ot.srcElement?ot.toElement:ot.fromElement:ot.relatedTarget},movementX:function(ot){return"movementX"in ot?ot.movementX:(ot!==yd&&(yd&&ot.type==="mousemove"?(wd=ot.screenX-yd.screenX,xd=ot.screenY-yd.screenY):xd=wd=0,yd=ot),wd)},movementY:function(ot){return"movementY"in ot?ot.movementY:xd}}),Bd=rd(Ad),Cd=A$2({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$2({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$2({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$2({},sd,{clipboardData:function(ot){return"clipboardData"in ot?ot.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$2({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(ot){var et=this.nativeEvent;return et.getModifierState?et.getModifierState(ot):(ot=Od[ot])?!!et[ot]:!1}function zd(){return Pd}var Qd=A$2({},ud,{key:function(ot){if(ot.key){var et=Md[ot.key]||ot.key;if(et!=="Unidentified")return et}return ot.type==="keypress"?(ot=od(ot),ot===13?"Enter":String.fromCharCode(ot)):ot.type==="keydown"||ot.type==="keyup"?Nd[ot.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(ot){return ot.type==="keypress"?od(ot):0},keyCode:function(ot){return ot.type==="keydown"||ot.type==="keyup"?ot.keyCode:0},which:function(ot){return ot.type==="keypress"?od(ot):ot.type==="keydown"||ot.type==="keyup"?ot.keyCode:0}}),Rd=rd(Qd),Sd=A$2({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$2({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$2({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$2({},Ad,{deltaX:function(ot){return"deltaX"in ot?ot.deltaX:"wheelDeltaX"in ot?-ot.wheelDeltaX:0},deltaY:function(ot){return"deltaY"in ot?ot.deltaY:"wheelDeltaY"in ot?-ot.wheelDeltaY:"wheelDelta"in ot?-ot.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia&&"CompositionEvent"in window,be$1=null;ia&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=ia&&"TextEvent"in window&&!be$1,de$2=ia&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=" ",fe$1=!1;function ge$1(ot,et){switch(ot){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(ot){return ot=ot.detail,typeof ot=="object"&&"data"in ot?ot.data:null}var ie$1=!1;function je(ot,et){switch(ot){case"compositionend":return he$1(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee$1);case"textInput":return ot=et.data,ot===ee$1&&fe$1?null:ot;default:return null}}function ke$1(ot,et){if(ie$1)return ot==="compositionend"||!ae$1&&ge$1(ot,et)?(ot=nd(),md=ld=kd=null,ie$1=!1,ot):null;switch(ot){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1<et.char.length)return et.char;if(et.which)return String.fromCharCode(et.which)}return null;case"compositionend":return de$2&&et.locale!=="ko"?null:et.data;default:return null}}var le$1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$1(ot){var et=ot&&ot.nodeName&&ot.nodeName.toLowerCase();return et==="input"?!!le$1[ot.type]:et==="textarea"}function ne$1(ot,et,ct,ut){Eb(ut),et=oe$1(et,"onChange"),0<et.length&&(ct=new td("onChange","change",null,ct,ut),ot.push({event:ct,listeners:et}))}var pe$1=null,qe=null;function re$1(ot){se$1(ot,0)}function te$1(ot){var et=ue$1(ot);if(Wa(et))return ot}function ve(ot,et){if(ot==="change")return et}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe$1&&(pe$1.detachEvent("onpropertychange",Be),qe=pe$1=null)}function Be(ot){if(ot.propertyName==="value"&&te$1(qe)){var et=[];ne$1(et,qe,ot,xb(ot)),Jb(re$1,et)}}function Ce(ot,et,ct){ot==="focusin"?(Ae(),pe$1=et,qe=ct,pe$1.attachEvent("onpropertychange",Be)):ot==="focusout"&&Ae()}function De(ot){if(ot==="selectionchange"||ot==="keyup"||ot==="keydown")return te$1(qe)}function Ee$1(ot,et){if(ot==="click")return te$1(et)}function Fe(ot,et){if(ot==="input"||ot==="change")return te$1(et)}function Ge(ot,et){return ot===et&&(ot!==0||1/ot===1/et)||ot!==ot&&et!==et}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(ot,et){if(He(ot,et))return!0;if(typeof ot!="object"||ot===null||typeof et!="object"||et===null)return!1;var ct=Object.keys(ot),ut=Object.keys(et);if(ct.length!==ut.length)return!1;for(ut=0;ut<ct.length;ut++){var dt=ct[ut];if(!ja.call(et,dt)||!He(ot[dt],et[dt]))return!1}return!0}function Je(ot){for(;ot&&ot.firstChild;)ot=ot.firstChild;return ot}function Ke(ot,et){var ct=Je(ot);ot=0;for(var ut;ct;){if(ct.nodeType===3){if(ut=ot+ct.textContent.length,ot<=et&&ut>=et)return{node:ct,offset:et-ot};ot=ut}e:{for(;ct;){if(ct.nextSibling){ct=ct.nextSibling;break e}ct=ct.parentNode}ct=void 0}ct=Je(ct)}}function Le(ot,et){return ot&&et?ot===et?!0:ot&&ot.nodeType===3?!1:et&&et.nodeType===3?Le(ot,et.parentNode):"contains"in ot?ot.contains(et):ot.compareDocumentPosition?!!(ot.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var ot=window,et=Xa();et instanceof ot.HTMLIFrameElement;){try{var ct=typeof et.contentWindow.location.href=="string"}catch{ct=!1}if(ct)ot=et.contentWindow;else break;et=Xa(ot.document)}return et}function Ne(ot){var et=ot&&ot.nodeName&&ot.nodeName.toLowerCase();return et&&(et==="input"&&(ot.type==="text"||ot.type==="search"||ot.type==="tel"||ot.type==="url"||ot.type==="password")||et==="textarea"||ot.contentEditable==="true")}function Oe$1(ot){var et=Me(),ct=ot.focusedElem,ut=ot.selectionRange;if(et!==ct&&ct&&ct.ownerDocument&&Le(ct.ownerDocument.documentElement,ct)){if(ut!==null&&Ne(ct)){if(et=ut.start,ot=ut.end,ot===void 0&&(ot=et),"selectionStart"in ct)ct.selectionStart=et,ct.selectionEnd=Math.min(ot,ct.value.length);else if(ot=(et=ct.ownerDocument||document)&&et.defaultView||window,ot.getSelection){ot=ot.getSelection();var dt=ct.textContent.length,ft=Math.min(ut.start,dt);ut=ut.end===void 0?ft:Math.min(ut.end,dt),!ot.extend&&ft>ut&&(dt=ut,ut=ft,ft=dt),dt=Ke(ct,ft);var zt=Ke(ct,ut);dt&&zt&&(ot.rangeCount!==1||ot.anchorNode!==dt.node||ot.anchorOffset!==dt.offset||ot.focusNode!==zt.node||ot.focusOffset!==zt.offset)&&(et=et.createRange(),et.setStart(dt.node,dt.offset),ot.removeAllRanges(),ft>ut?(ot.addRange(et),ot.extend(zt.node,zt.offset)):(et.setEnd(zt.node,zt.offset),ot.addRange(et)))}}for(et=[],ot=ct;ot=ot.parentNode;)ot.nodeType===1&&et.push({element:ot,left:ot.scrollLeft,top:ot.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ct<et.length;ct++)ot=et[ct],ot.element.scrollLeft=ot.left,ot.element.scrollTop=ot.top}}var Pe$1=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re$1=null,Se=null,Te=!1;function Ue(ot,et,ct){var ut=ct.window===ct?ct.document:ct.nodeType===9?ct:ct.ownerDocument;Te||Qe==null||Qe!==Xa(ut)||(ut=Qe,"selectionStart"in ut&&Ne(ut)?ut={start:ut.selectionStart,end:ut.selectionEnd}:(ut=(ut.ownerDocument&&ut.ownerDocument.defaultView||window).getSelection(),ut={anchorNode:ut.anchorNode,anchorOffset:ut.anchorOffset,focusNode:ut.focusNode,focusOffset:ut.focusOffset}),Se&&Ie(Se,ut)||(Se=ut,ut=oe$1(Re$1,"onSelect"),0<ut.length&&(et=new td("onSelect","select",null,et,ct),ot.push({event:et,listeners:ut}),et.target=Qe)))}function Ve(ot,et){var ct={};return ct[ot.toLowerCase()]=et.toLowerCase(),ct["Webkit"+ot]="webkit"+et,ct["Moz"+ot]="moz"+et,ct}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(ot){if(Xe[ot])return Xe[ot];if(!We[ot])return ot;var et=We[ot],ct;for(ct in et)if(et.hasOwnProperty(ct)&&ct in Ye)return Xe[ot]=et[ct];return ot}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(ot,et){df.set(ot,et),fa(et,[ot])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(ot,et,ct){var ut=ot.type||"unknown-event";ot.currentTarget=ct,Ub(ut,et,void 0,ot),ot.currentTarget=null}function se$1(ot,et){et=(et&4)!==0;for(var ct=0;ct<ot.length;ct++){var ut=ot[ct],dt=ut.event;ut=ut.listeners;e:{var ft=void 0;if(et)for(var zt=ut.length-1;0<=zt;zt--){var Dt=ut[zt],St=Dt.instance,Tt=Dt.currentTarget;if(Dt=Dt.listener,St!==ft&&dt.isPropagationStopped())break e;nf(dt,Dt,Tt),ft=St}else for(zt=0;zt<ut.length;zt++){if(Dt=ut[zt],St=Dt.instance,Tt=Dt.currentTarget,Dt=Dt.listener,St!==ft&&dt.isPropagationStopped())break e;nf(dt,Dt,Tt),ft=St}}}if(Qb)throw ot=Rb,Qb=!1,Rb=null,ot}function D$3(ot,et){var ct=et[of];ct===void 0&&(ct=et[of]=new Set);var ut=ot+"__bubble";ct.has(ut)||(pf(et,ot,2,!1),ct.add(ut))}function qf(ot,et,ct){var ut=0;et&&(ut|=4),pf(ct,ot,ut,et)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(ot){if(!ot[rf]){ot[rf]=!0,da.forEach(function(ct){ct!=="selectionchange"&&(mf.has(ct)||qf(ct,!1,ot),qf(ct,!0,ot))});var et=ot.nodeType===9?ot:ot.ownerDocument;et===null||et[rf]||(et[rf]=!0,qf("selectionchange",!1,et))}}function pf(ot,et,ct,ut){switch(jd(et)){case 1:var dt=ed;break;case 4:dt=gd;break;default:dt=fd}ct=dt.bind(null,et,ct,ot),dt=void 0,!Lb||et!=="touchstart"&&et!=="touchmove"&&et!=="wheel"||(dt=!0),ut?dt!==void 0?ot.addEventListener(et,ct,{capture:!0,passive:dt}):ot.addEventListener(et,ct,!0):dt!==void 0?ot.addEventListener(et,ct,{passive:dt}):ot.addEventListener(et,ct,!1)}function hd(ot,et,ct,ut,dt){var ft=ut;if(!(et&1)&&!(et&2)&&ut!==null)e:for(;;){if(ut===null)return;var zt=ut.tag;if(zt===3||zt===4){var Dt=ut.stateNode.containerInfo;if(Dt===dt||Dt.nodeType===8&&Dt.parentNode===dt)break;if(zt===4)for(zt=ut.return;zt!==null;){var St=zt.tag;if((St===3||St===4)&&(St=zt.stateNode.containerInfo,St===dt||St.nodeType===8&&St.parentNode===dt))return;zt=zt.return}for(;Dt!==null;){if(zt=Wc(Dt),zt===null)return;if(St=zt.tag,St===5||St===6){ut=ft=zt;continue e}Dt=Dt.parentNode}}ut=ut.return}Jb(function(){var Tt=ft,Rt=xb(ct),$t=[];e:{var kt=df.get(ot);if(kt!==void 0){var Bt=td,Ft=ot;switch(ot){case"keypress":if(od(ct)===0)break e;case"keydown":case"keyup":Bt=Rd;break;case"focusin":Ft="focus",Bt=Fd;break;case"focusout":Ft="blur",Bt=Fd;break;case"beforeblur":case"afterblur":Bt=Fd;break;case"click":if(ct.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Bt=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Bt=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Bt=Vd;break;case $e:case af:case bf:Bt=Hd;break;case cf:Bt=Xd;break;case"scroll":Bt=vd;break;case"wheel":Bt=Zd;break;case"copy":case"cut":case"paste":Bt=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Bt=Td}var jt=(et&4)!==0,Kt=!jt&&ot==="scroll",Yt=jt?kt!==null?kt+"Capture":null:kt;jt=[];for(var Ut=Tt,Jt;Ut!==null;){Jt=Ut;var Ht=Jt.stateNode;if(Jt.tag===5&&Ht!==null&&(Jt=Ht,Yt!==null&&(Ht=Kb(Ut,Yt),Ht!=null&&jt.push(tf(Ut,Ht,Jt)))),Kt)break;Ut=Ut.return}0<jt.length&&(kt=new Bt(kt,Ft,null,ct,Rt),$t.push({event:kt,listeners:jt}))}}if(!(et&7)){e:{if(kt=ot==="mouseover"||ot==="pointerover",Bt=ot==="mouseout"||ot==="pointerout",kt&&ct!==wb&&(Ft=ct.relatedTarget||ct.fromElement)&&(Wc(Ft)||Ft[uf]))break e;if((Bt||kt)&&(kt=Rt.window===Rt?Rt:(kt=Rt.ownerDocument)?kt.defaultView||kt.parentWindow:window,Bt?(Ft=ct.relatedTarget||ct.toElement,Bt=Tt,Ft=Ft?Wc(Ft):null,Ft!==null&&(Kt=Vb(Ft),Ft!==Kt||Ft.tag!==5&&Ft.tag!==6)&&(Ft=null)):(Bt=null,Ft=Tt),Bt!==Ft)){if(jt=Bd,Ht="onMouseLeave",Yt="onMouseEnter",Ut="mouse",(ot==="pointerout"||ot==="pointerover")&&(jt=Td,Ht="onPointerLeave",Yt="onPointerEnter",Ut="pointer"),Kt=Bt==null?kt:ue$1(Bt),Jt=Ft==null?kt:ue$1(Ft),kt=new jt(Ht,Ut+"leave",Bt,ct,Rt),kt.target=Kt,kt.relatedTarget=Jt,Ht=null,Wc(Rt)===Tt&&(jt=new jt(Yt,Ut+"enter",Ft,ct,Rt),jt.target=Jt,jt.relatedTarget=Kt,Ht=jt),Kt=Ht,Bt&&Ft)t:{for(jt=Bt,Yt=Ft,Ut=0,Jt=jt;Jt;Jt=vf(Jt))Ut++;for(Jt=0,Ht=Yt;Ht;Ht=vf(Ht))Jt++;for(;0<Ut-Jt;)jt=vf(jt),Ut--;for(;0<Jt-Ut;)Yt=vf(Yt),Jt--;for(;Ut--;){if(jt===Yt||Yt!==null&&jt===Yt.alternate)break t;jt=vf(jt),Yt=vf(Yt)}jt=null}else jt=null;Bt!==null&&wf($t,kt,Bt,jt,!1),Ft!==null&&Kt!==null&&wf($t,Kt,Ft,jt,!0)}}e:{if(kt=Tt?ue$1(Tt):window,Bt=kt.nodeName&&kt.nodeName.toLowerCase(),Bt==="select"||Bt==="input"&&kt.type==="file")var e0=ve;else if(me$1(kt))if(we)e0=Fe;else{e0=De;var t0=Ce}else(Bt=kt.nodeName)&&Bt.toLowerCase()==="input"&&(kt.type==="checkbox"||kt.type==="radio")&&(e0=Ee$1);if(e0&&(e0=e0(ot,Tt))){ne$1($t,e0,ct,Rt);break e}t0&&t0(ot,kt,Tt),ot==="focusout"&&(t0=kt._wrapperState)&&t0.controlled&&kt.type==="number"&&cb(kt,"number",kt.value)}switch(t0=Tt?ue$1(Tt):window,ot){case"focusin":(me$1(t0)||t0.contentEditable==="true")&&(Qe=t0,Re$1=Tt,Se=null);break;case"focusout":Se=Re$1=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue($t,ct,Rt);break;case"selectionchange":if(Pe$1)break;case"keydown":case"keyup":Ue($t,ct,Rt)}var Zt;if(ae$1)e:{switch(ot){case"compositionstart":var o0="onCompositionStart";break e;case"compositionend":o0="onCompositionEnd";break e;case"compositionupdate":o0="onCompositionUpdate";break e}o0=void 0}else ie$1?ge$1(ot,ct)&&(o0="onCompositionEnd"):ot==="keydown"&&ct.keyCode===229&&(o0="onCompositionStart");o0&&(de$2&&ct.locale!=="ko"&&(ie$1||o0!=="onCompositionStart"?o0==="onCompositionEnd"&&ie$1&&(Zt=nd()):(kd=Rt,ld="value"in kd?kd.value:kd.textContent,ie$1=!0)),t0=oe$1(Tt,o0),0<t0.length&&(o0=new Ld(o0,ot,null,ct,Rt),$t.push({event:o0,listeners:t0}),Zt?o0.data=Zt:(Zt=he$1(ct),Zt!==null&&(o0.data=Zt)))),(Zt=ce$1?je(ot,ct):ke$1(ot,ct))&&(Tt=oe$1(Tt,"onBeforeInput"),0<Tt.length&&(Rt=new Ld("onBeforeInput","beforeinput",null,ct,Rt),$t.push({event:Rt,listeners:Tt}),Rt.data=Zt))}se$1($t,et)})}function tf(ot,et,ct){return{instance:ot,listener:et,currentTarget:ct}}function oe$1(ot,et){for(var ct=et+"Capture",ut=[];ot!==null;){var dt=ot,ft=dt.stateNode;dt.tag===5&&ft!==null&&(dt=ft,ft=Kb(ot,ct),ft!=null&&ut.unshift(tf(ot,ft,dt)),ft=Kb(ot,et),ft!=null&&ut.push(tf(ot,ft,dt))),ot=ot.return}return ut}function vf(ot){if(ot===null)return null;do ot=ot.return;while(ot&&ot.tag!==5);return ot||null}function wf(ot,et,ct,ut,dt){for(var ft=et._reactName,zt=[];ct!==null&&ct!==ut;){var Dt=ct,St=Dt.alternate,Tt=Dt.stateNode;if(St!==null&&St===ut)break;Dt.tag===5&&Tt!==null&&(Dt=Tt,dt?(St=Kb(ct,ft),St!=null&&zt.unshift(tf(ct,St,Dt))):dt||(St=Kb(ct,ft),St!=null&&zt.push(tf(ct,St,Dt)))),ct=ct.return}zt.length!==0&&ot.push({event:et,listeners:zt})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(ot){return(typeof ot=="string"?ot:""+ot).replace(xf,`
|
|
7
7
|
`).replace(yf,"")}function Af(ot,et,ct){if(et=zf(et),zf(ot)!==et&&ct)throw Error(p$4(425))}function Bf(){}var Cf=null,Df=null;function Ef(ot,et){return ot==="textarea"||ot==="noscript"||typeof et.children=="string"||typeof et.children=="number"||typeof et.dangerouslySetInnerHTML=="object"&&et.dangerouslySetInnerHTML!==null&&et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(ot){return Hf.resolve(null).then(ot).catch(If)}:Ff;function If(ot){setTimeout(function(){throw ot})}function Kf(ot,et){var ct=et,ut=0;do{var dt=ct.nextSibling;if(ot.removeChild(ct),dt&&dt.nodeType===8)if(ct=dt.data,ct==="/$"){if(ut===0){ot.removeChild(dt),bd(et);return}ut--}else ct!=="$"&&ct!=="$?"&&ct!=="$!"||ut++;ct=dt}while(ct);bd(et)}function Lf(ot){for(;ot!=null;ot=ot.nextSibling){var et=ot.nodeType;if(et===1||et===3)break;if(et===8){if(et=ot.data,et==="$"||et==="$!"||et==="$?")break;if(et==="/$")return null}}return ot}function Mf(ot){ot=ot.previousSibling;for(var et=0;ot;){if(ot.nodeType===8){var ct=ot.data;if(ct==="$"||ct==="$!"||ct==="$?"){if(et===0)return ot;et--}else ct==="/$"&&et++}ot=ot.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(ot){var et=ot[Of];if(et)return et;for(var ct=ot.parentNode;ct;){if(et=ct[uf]||ct[Of]){if(ct=et.alternate,et.child!==null||ct!==null&&ct.child!==null)for(ot=Mf(ot);ot!==null;){if(ct=ot[Of])return ct;ot=Mf(ot)}return et}ot=ct,ct=ot.parentNode}return null}function Cb(ot){return ot=ot[Of]||ot[uf],!ot||ot.tag!==5&&ot.tag!==6&&ot.tag!==13&&ot.tag!==3?null:ot}function ue$1(ot){if(ot.tag===5||ot.tag===6)return ot.stateNode;throw Error(p$4(33))}function Db(ot){return ot[Pf]||null}var Sf=[],Tf=-1;function Uf(ot){return{current:ot}}function E$2(ot){0>Tf||(ot.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$3(ot,et){Tf++,Sf[Tf]=ot.current,ot.current=et}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(ot,et){var ct=ot.type.contextTypes;if(!ct)return Vf;var ut=ot.stateNode;if(ut&&ut.__reactInternalMemoizedUnmaskedChildContext===et)return ut.__reactInternalMemoizedMaskedChildContext;var dt={},ft;for(ft in ct)dt[ft]=et[ft];return ut&&(ot=ot.stateNode,ot.__reactInternalMemoizedUnmaskedChildContext=et,ot.__reactInternalMemoizedMaskedChildContext=dt),dt}function Zf(ot){return ot=ot.childContextTypes,ot!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(ot,et,ct){if(H$2.current!==Vf)throw Error(p$4(168));G$3(H$2,et),G$3(Wf,ct)}function bg(ot,et,ct){var ut=ot.stateNode;if(et=et.childContextTypes,typeof ut.getChildContext!="function")return ct;ut=ut.getChildContext();for(var dt in ut)if(!(dt in et))throw Error(p$4(108,Ra(ot)||"Unknown",dt));return A$2({},ct,ut)}function cg(ot){return ot=(ot=ot.stateNode)&&ot.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$3(H$2,ot),G$3(Wf,Wf.current),!0}function dg(ot,et,ct){var ut=ot.stateNode;if(!ut)throw Error(p$4(169));ct?(ot=bg(ot,et,Xf),ut.__reactInternalMemoizedMergedChildContext=ot,E$2(Wf),E$2(H$2),G$3(H$2,ot)):E$2(Wf),G$3(Wf,ct)}var eg=null,fg=!1,gg=!1;function hg(ot){eg===null?eg=[ot]:eg.push(ot)}function ig(ot){fg=!0,hg(ot)}function jg(){if(!gg&&eg!==null){gg=!0;var ot=0,et=C$2;try{var ct=eg;for(C$2=1;ot<ct.length;ot++){var ut=ct[ot];do ut=ut(!0);while(ut!==null)}eg=null,fg=!1}catch(dt){throw eg!==null&&(eg=eg.slice(ot+1)),ac(fc,jg),dt}finally{C$2=et,gg=!1}}return null}var kg=[],lg=0,mg=null,ng$1=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(ot,et){kg[lg++]=ng$1,kg[lg++]=mg,mg=ot,ng$1=et}function ug(ot,et,ct){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=ot;var ut=rg;ot=sg;var dt=32-oc(ut)-1;ut&=~(1<<dt),ct+=1;var ft=32-oc(et)+dt;if(30<ft){var zt=dt-dt%5;ft=(ut&(1<<zt)-1).toString(32),ut>>=zt,dt-=zt,rg=1<<32-oc(et)+dt|ct<<dt|ut,sg=ft+ot}else rg=1<<ft|ct<<dt|ut,sg=ot}function vg(ot){ot.return!==null&&(tg(ot,1),ug(ot,1,0))}function wg(ot){for(;ot===mg;)mg=kg[--lg],kg[lg]=null,ng$1=kg[--lg],kg[lg]=null;for(;ot===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$2=!1,zg=null;function Ag(ot,et){var ct=Bg(5,null,null,0);ct.elementType="DELETED",ct.stateNode=et,ct.return=ot,et=ot.deletions,et===null?(ot.deletions=[ct],ot.flags|=16):et.push(ct)}function Cg(ot,et){switch(ot.tag){case 5:var ct=ot.type;return et=et.nodeType!==1||ct.toLowerCase()!==et.nodeName.toLowerCase()?null:et,et!==null?(ot.stateNode=et,xg=ot,yg=Lf(et.firstChild),!0):!1;case 6:return et=ot.pendingProps===""||et.nodeType!==3?null:et,et!==null?(ot.stateNode=et,xg=ot,yg=null,!0):!1;case 13:return et=et.nodeType!==8?null:et,et!==null?(ct=qg!==null?{id:rg,overflow:sg}:null,ot.memoizedState={dehydrated:et,treeContext:ct,retryLane:1073741824},ct=Bg(18,null,null,0),ct.stateNode=et,ct.return=ot,ot.child=ct,xg=ot,yg=null,!0):!1;default:return!1}}function Dg(ot){return(ot.mode&1)!==0&&(ot.flags&128)===0}function Eg(ot){if(I$2){var et=yg;if(et){var ct=et;if(!Cg(ot,et)){if(Dg(ot))throw Error(p$4(418));et=Lf(ct.nextSibling);var ut=xg;et&&Cg(ot,et)?Ag(ut,ct):(ot.flags=ot.flags&-4097|2,I$2=!1,xg=ot)}}else{if(Dg(ot))throw Error(p$4(418));ot.flags=ot.flags&-4097|2,I$2=!1,xg=ot}}}function Fg(ot){for(ot=ot.return;ot!==null&&ot.tag!==5&&ot.tag!==3&&ot.tag!==13;)ot=ot.return;xg=ot}function Gg(ot){if(ot!==xg)return!1;if(!I$2)return Fg(ot),I$2=!0,!1;var et;if((et=ot.tag!==3)&&!(et=ot.tag!==5)&&(et=ot.type,et=et!=="head"&&et!=="body"&&!Ef(ot.type,ot.memoizedProps)),et&&(et=yg)){if(Dg(ot))throw Hg(),Error(p$4(418));for(;et;)Ag(ot,et),et=Lf(et.nextSibling)}if(Fg(ot),ot.tag===13){if(ot=ot.memoizedState,ot=ot!==null?ot.dehydrated:null,!ot)throw Error(p$4(317));e:{for(ot=ot.nextSibling,et=0;ot;){if(ot.nodeType===8){var ct=ot.data;if(ct==="/$"){if(et===0){yg=Lf(ot.nextSibling);break e}et--}else ct!=="$"&&ct!=="$!"&&ct!=="$?"||et++}ot=ot.nextSibling}yg=null}}else yg=xg?Lf(ot.stateNode.nextSibling):null;return!0}function Hg(){for(var ot=yg;ot;)ot=Lf(ot.nextSibling)}function Ig(){yg=xg=null,I$2=!1}function Jg(ot){zg===null?zg=[ot]:zg.push(ot)}var Kg=ua$1.ReactCurrentBatchConfig;function Lg(ot,et){if(ot&&ot.defaultProps){et=A$2({},et),ot=ot.defaultProps;for(var ct in ot)et[ct]===void 0&&(et[ct]=ot[ct]);return et}return et}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(ot){var et=Mg.current;E$2(Mg),ot._currentValue=et}function Sg(ot,et,ct){for(;ot!==null;){var ut=ot.alternate;if((ot.childLanes&et)!==et?(ot.childLanes|=et,ut!==null&&(ut.childLanes|=et)):ut!==null&&(ut.childLanes&et)!==et&&(ut.childLanes|=et),ot===ct)break;ot=ot.return}}function Tg(ot,et){Ng=ot,Pg=Og=null,ot=ot.dependencies,ot!==null&&ot.firstContext!==null&&(ot.lanes&et&&(Ug=!0),ot.firstContext=null)}function Vg(ot){var et=ot._currentValue;if(Pg!==ot)if(ot={context:ot,memoizedValue:et,next:null},Og===null){if(Ng===null)throw Error(p$4(308));Og=ot,Ng.dependencies={lanes:0,firstContext:ot}}else Og=Og.next=ot;return et}var Wg=null;function Xg(ot){Wg===null?Wg=[ot]:Wg.push(ot)}function Yg(ot,et,ct,ut){var dt=et.interleaved;return dt===null?(ct.next=ct,Xg(et)):(ct.next=dt.next,dt.next=ct),et.interleaved=ct,Zg(ot,ut)}function Zg(ot,et){ot.lanes|=et;var ct=ot.alternate;for(ct!==null&&(ct.lanes|=et),ct=ot,ot=ot.return;ot!==null;)ot.childLanes|=et,ct=ot.alternate,ct!==null&&(ct.childLanes|=et),ct=ot,ot=ot.return;return ct.tag===3?ct.stateNode:null}var $g=!1;function ah(ot){ot.updateQueue={baseState:ot.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(ot,et){ot=ot.updateQueue,et.updateQueue===ot&&(et.updateQueue={baseState:ot.baseState,firstBaseUpdate:ot.firstBaseUpdate,lastBaseUpdate:ot.lastBaseUpdate,shared:ot.shared,effects:ot.effects})}function ch$1(ot,et){return{eventTime:ot,lane:et,tag:0,payload:null,callback:null,next:null}}function dh(ot,et,ct){var ut=ot.updateQueue;if(ut===null)return null;if(ut=ut.shared,K$2&2){var dt=ut.pending;return dt===null?et.next=et:(et.next=dt.next,dt.next=et),ut.pending=et,Zg(ot,ct)}return dt=ut.interleaved,dt===null?(et.next=et,Xg(ut)):(et.next=dt.next,dt.next=et),ut.interleaved=et,Zg(ot,ct)}function eh(ot,et,ct){if(et=et.updateQueue,et!==null&&(et=et.shared,(ct&4194240)!==0)){var ut=et.lanes;ut&=ot.pendingLanes,ct|=ut,et.lanes=ct,Cc(ot,ct)}}function fh(ot,et){var ct=ot.updateQueue,ut=ot.alternate;if(ut!==null&&(ut=ut.updateQueue,ct===ut)){var dt=null,ft=null;if(ct=ct.firstBaseUpdate,ct!==null){do{var zt={eventTime:ct.eventTime,lane:ct.lane,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};ft===null?dt=ft=zt:ft=ft.next=zt,ct=ct.next}while(ct!==null);ft===null?dt=ft=et:ft=ft.next=et}else dt=ft=et;ct={baseState:ut.baseState,firstBaseUpdate:dt,lastBaseUpdate:ft,shared:ut.shared,effects:ut.effects},ot.updateQueue=ct;return}ot=ct.lastBaseUpdate,ot===null?ct.firstBaseUpdate=et:ot.next=et,ct.lastBaseUpdate=et}function gh(ot,et,ct,ut){var dt=ot.updateQueue;$g=!1;var ft=dt.firstBaseUpdate,zt=dt.lastBaseUpdate,Dt=dt.shared.pending;if(Dt!==null){dt.shared.pending=null;var St=Dt,Tt=St.next;St.next=null,zt===null?ft=Tt:zt.next=Tt,zt=St;var Rt=ot.alternate;Rt!==null&&(Rt=Rt.updateQueue,Dt=Rt.lastBaseUpdate,Dt!==zt&&(Dt===null?Rt.firstBaseUpdate=Tt:Dt.next=Tt,Rt.lastBaseUpdate=St))}if(ft!==null){var $t=dt.baseState;zt=0,Rt=Tt=St=null,Dt=ft;do{var kt=Dt.lane,Bt=Dt.eventTime;if((ut&kt)===kt){Rt!==null&&(Rt=Rt.next={eventTime:Bt,lane:0,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null});e:{var Ft=ot,jt=Dt;switch(kt=et,Bt=ct,jt.tag){case 1:if(Ft=jt.payload,typeof Ft=="function"){$t=Ft.call(Bt,$t,kt);break e}$t=Ft;break e;case 3:Ft.flags=Ft.flags&-65537|128;case 0:if(Ft=jt.payload,kt=typeof Ft=="function"?Ft.call(Bt,$t,kt):Ft,kt==null)break e;$t=A$2({},$t,kt);break e;case 2:$g=!0}}Dt.callback!==null&&Dt.lane!==0&&(ot.flags|=64,kt=dt.effects,kt===null?dt.effects=[Dt]:kt.push(Dt))}else Bt={eventTime:Bt,lane:kt,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null},Rt===null?(Tt=Rt=Bt,St=$t):Rt=Rt.next=Bt,zt|=kt;if(Dt=Dt.next,Dt===null){if(Dt=dt.shared.pending,Dt===null)break;kt=Dt,Dt=kt.next,kt.next=null,dt.lastBaseUpdate=kt,dt.shared.pending=null}}while(!0);if(Rt===null&&(St=$t),dt.baseState=St,dt.firstBaseUpdate=Tt,dt.lastBaseUpdate=Rt,et=dt.shared.interleaved,et!==null){dt=et;do zt|=dt.lane,dt=dt.next;while(dt!==et)}else ft===null&&(dt.shared.lanes=0);hh|=zt,ot.lanes=zt,ot.memoizedState=$t}}function ih(ot,et,ct){if(ot=et.effects,et.effects=null,ot!==null)for(et=0;et<ot.length;et++){var ut=ot[et],dt=ut.callback;if(dt!==null){if(ut.callback=null,ut=ct,typeof dt!="function")throw Error(p$4(191,dt));dt.call(ut)}}}var jh=new aa.Component().refs;function kh(ot,et,ct,ut){et=ot.memoizedState,ct=ct(ut,et),ct=ct==null?et:A$2({},et,ct),ot.memoizedState=ct,ot.lanes===0&&(ot.updateQueue.baseState=ct)}var nh={isMounted:function(ot){return(ot=ot._reactInternals)?Vb(ot)===ot:!1},enqueueSetState:function(ot,et,ct){ot=ot._reactInternals;var ut=L$2(),dt=lh(ot),ft=ch$1(ut,dt);ft.payload=et,ct!=null&&(ft.callback=ct),et=dh(ot,ft,dt),et!==null&&(mh(et,ot,dt,ut),eh(et,ot,dt))},enqueueReplaceState:function(ot,et,ct){ot=ot._reactInternals;var ut=L$2(),dt=lh(ot),ft=ch$1(ut,dt);ft.tag=1,ft.payload=et,ct!=null&&(ft.callback=ct),et=dh(ot,ft,dt),et!==null&&(mh(et,ot,dt,ut),eh(et,ot,dt))},enqueueForceUpdate:function(ot,et){ot=ot._reactInternals;var ct=L$2(),ut=lh(ot),dt=ch$1(ct,ut);dt.tag=2,et!=null&&(dt.callback=et),et=dh(ot,dt,ut),et!==null&&(mh(et,ot,ut,ct),eh(et,ot,ut))}};function oh(ot,et,ct,ut,dt,ft,zt){return ot=ot.stateNode,typeof ot.shouldComponentUpdate=="function"?ot.shouldComponentUpdate(ut,ft,zt):et.prototype&&et.prototype.isPureReactComponent?!Ie(ct,ut)||!Ie(dt,ft):!0}function ph(ot,et,ct){var ut=!1,dt=Vf,ft=et.contextType;return typeof ft=="object"&&ft!==null?ft=Vg(ft):(dt=Zf(et)?Xf:H$2.current,ut=et.contextTypes,ft=(ut=ut!=null)?Yf(ot,dt):Vf),et=new et(ct,ft),ot.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,et.updater=nh,ot.stateNode=et,et._reactInternals=ot,ut&&(ot=ot.stateNode,ot.__reactInternalMemoizedUnmaskedChildContext=dt,ot.__reactInternalMemoizedMaskedChildContext=ft),et}function qh(ot,et,ct,ut){ot=et.state,typeof et.componentWillReceiveProps=="function"&&et.componentWillReceiveProps(ct,ut),typeof et.UNSAFE_componentWillReceiveProps=="function"&&et.UNSAFE_componentWillReceiveProps(ct,ut),et.state!==ot&&nh.enqueueReplaceState(et,et.state,null)}function rh(ot,et,ct,ut){var dt=ot.stateNode;dt.props=ct,dt.state=ot.memoizedState,dt.refs=jh,ah(ot);var ft=et.contextType;typeof ft=="object"&&ft!==null?dt.context=Vg(ft):(ft=Zf(et)?Xf:H$2.current,dt.context=Yf(ot,ft)),dt.state=ot.memoizedState,ft=et.getDerivedStateFromProps,typeof ft=="function"&&(kh(ot,et,ft,ct),dt.state=ot.memoizedState),typeof et.getDerivedStateFromProps=="function"||typeof dt.getSnapshotBeforeUpdate=="function"||typeof dt.UNSAFE_componentWillMount!="function"&&typeof dt.componentWillMount!="function"||(et=dt.state,typeof dt.componentWillMount=="function"&&dt.componentWillMount(),typeof dt.UNSAFE_componentWillMount=="function"&&dt.UNSAFE_componentWillMount(),et!==dt.state&&nh.enqueueReplaceState(dt,dt.state,null),gh(ot,ct,dt,ut),dt.state=ot.memoizedState),typeof dt.componentDidMount=="function"&&(ot.flags|=4194308)}function sh(ot,et,ct){if(ot=ct.ref,ot!==null&&typeof ot!="function"&&typeof ot!="object"){if(ct._owner){if(ct=ct._owner,ct){if(ct.tag!==1)throw Error(p$4(309));var ut=ct.stateNode}if(!ut)throw Error(p$4(147,ot));var dt=ut,ft=""+ot;return et!==null&&et.ref!==null&&typeof et.ref=="function"&&et.ref._stringRef===ft?et.ref:(et=function(zt){var Dt=dt.refs;Dt===jh&&(Dt=dt.refs={}),zt===null?delete Dt[ft]:Dt[ft]=zt},et._stringRef=ft,et)}if(typeof ot!="string")throw Error(p$4(284));if(!ct._owner)throw Error(p$4(290,ot))}return ot}function th(ot,et){throw ot=Object.prototype.toString.call(et),Error(p$4(31,ot==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":ot))}function uh(ot){var et=ot._init;return et(ot._payload)}function vh(ot){function et(Yt,Ut){if(ot){var Jt=Yt.deletions;Jt===null?(Yt.deletions=[Ut],Yt.flags|=16):Jt.push(Ut)}}function ct(Yt,Ut){if(!ot)return null;for(;Ut!==null;)et(Yt,Ut),Ut=Ut.sibling;return null}function ut(Yt,Ut){for(Yt=new Map;Ut!==null;)Ut.key!==null?Yt.set(Ut.key,Ut):Yt.set(Ut.index,Ut),Ut=Ut.sibling;return Yt}function dt(Yt,Ut){return Yt=wh(Yt,Ut),Yt.index=0,Yt.sibling=null,Yt}function ft(Yt,Ut,Jt){return Yt.index=Jt,ot?(Jt=Yt.alternate,Jt!==null?(Jt=Jt.index,Jt<Ut?(Yt.flags|=2,Ut):Jt):(Yt.flags|=2,Ut)):(Yt.flags|=1048576,Ut)}function zt(Yt){return ot&&Yt.alternate===null&&(Yt.flags|=2),Yt}function Dt(Yt,Ut,Jt,Ht){return Ut===null||Ut.tag!==6?(Ut=xh(Jt,Yt.mode,Ht),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt),Ut.return=Yt,Ut)}function St(Yt,Ut,Jt,Ht){var e0=Jt.type;return e0===ya?Rt(Yt,Ut,Jt.props.children,Ht,Jt.key):Ut!==null&&(Ut.elementType===e0||typeof e0=="object"&&e0!==null&&e0.$$typeof===Ha&&uh(e0)===Ut.type)?(Ht=dt(Ut,Jt.props),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Ht):(Ht=yh(Jt.type,Jt.key,Jt.props,null,Yt.mode,Ht),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Ht)}function Tt(Yt,Ut,Jt,Ht){return Ut===null||Ut.tag!==4||Ut.stateNode.containerInfo!==Jt.containerInfo||Ut.stateNode.implementation!==Jt.implementation?(Ut=zh(Jt,Yt.mode,Ht),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt.children||[]),Ut.return=Yt,Ut)}function Rt(Yt,Ut,Jt,Ht,e0){return Ut===null||Ut.tag!==7?(Ut=Ah(Jt,Yt.mode,Ht,e0),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt),Ut.return=Yt,Ut)}function $t(Yt,Ut,Jt){if(typeof Ut=="string"&&Ut!==""||typeof Ut=="number")return Ut=xh(""+Ut,Yt.mode,Jt),Ut.return=Yt,Ut;if(typeof Ut=="object"&&Ut!==null){switch(Ut.$$typeof){case va:return Jt=yh(Ut.type,Ut.key,Ut.props,null,Yt.mode,Jt),Jt.ref=sh(Yt,null,Ut),Jt.return=Yt,Jt;case wa:return Ut=zh(Ut,Yt.mode,Jt),Ut.return=Yt,Ut;case Ha:var Ht=Ut._init;return $t(Yt,Ht(Ut._payload),Jt)}if(eb(Ut)||Ka(Ut))return Ut=Ah(Ut,Yt.mode,Jt,null),Ut.return=Yt,Ut;th(Yt,Ut)}return null}function kt(Yt,Ut,Jt,Ht){var e0=Ut!==null?Ut.key:null;if(typeof Jt=="string"&&Jt!==""||typeof Jt=="number")return e0!==null?null:Dt(Yt,Ut,""+Jt,Ht);if(typeof Jt=="object"&&Jt!==null){switch(Jt.$$typeof){case va:return Jt.key===e0?St(Yt,Ut,Jt,Ht):null;case wa:return Jt.key===e0?Tt(Yt,Ut,Jt,Ht):null;case Ha:return e0=Jt._init,kt(Yt,Ut,e0(Jt._payload),Ht)}if(eb(Jt)||Ka(Jt))return e0!==null?null:Rt(Yt,Ut,Jt,Ht,null);th(Yt,Jt)}return null}function Bt(Yt,Ut,Jt,Ht,e0){if(typeof Ht=="string"&&Ht!==""||typeof Ht=="number")return Yt=Yt.get(Jt)||null,Dt(Ut,Yt,""+Ht,e0);if(typeof Ht=="object"&&Ht!==null){switch(Ht.$$typeof){case va:return Yt=Yt.get(Ht.key===null?Jt:Ht.key)||null,St(Ut,Yt,Ht,e0);case wa:return Yt=Yt.get(Ht.key===null?Jt:Ht.key)||null,Tt(Ut,Yt,Ht,e0);case Ha:var t0=Ht._init;return Bt(Yt,Ut,Jt,t0(Ht._payload),e0)}if(eb(Ht)||Ka(Ht))return Yt=Yt.get(Jt)||null,Rt(Ut,Yt,Ht,e0,null);th(Ut,Ht)}return null}function Ft(Yt,Ut,Jt,Ht){for(var e0=null,t0=null,Zt=Ut,o0=Ut=0,n0=null;Zt!==null&&o0<Jt.length;o0++){Zt.index>o0?(n0=Zt,Zt=null):n0=Zt.sibling;var r0=kt(Yt,Zt,Jt[o0],Ht);if(r0===null){Zt===null&&(Zt=n0);break}ot&&Zt&&r0.alternate===null&&et(Yt,Zt),Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0,Zt=n0}if(o0===Jt.length)return ct(Yt,Zt),I$2&&tg(Yt,o0),e0;if(Zt===null){for(;o0<Jt.length;o0++)Zt=$t(Yt,Jt[o0],Ht),Zt!==null&&(Ut=ft(Zt,Ut,o0),t0===null?e0=Zt:t0.sibling=Zt,t0=Zt);return I$2&&tg(Yt,o0),e0}for(Zt=ut(Yt,Zt);o0<Jt.length;o0++)n0=Bt(Zt,Yt,o0,Jt[o0],Ht),n0!==null&&(ot&&n0.alternate!==null&&Zt.delete(n0.key===null?o0:n0.key),Ut=ft(n0,Ut,o0),t0===null?e0=n0:t0.sibling=n0,t0=n0);return ot&&Zt.forEach(function(a0){return et(Yt,a0)}),I$2&&tg(Yt,o0),e0}function jt(Yt,Ut,Jt,Ht){var e0=Ka(Jt);if(typeof e0!="function")throw Error(p$4(150));if(Jt=e0.call(Jt),Jt==null)throw Error(p$4(151));for(var t0=e0=null,Zt=Ut,o0=Ut=0,n0=null,r0=Jt.next();Zt!==null&&!r0.done;o0++,r0=Jt.next()){Zt.index>o0?(n0=Zt,Zt=null):n0=Zt.sibling;var a0=kt(Yt,Zt,r0.value,Ht);if(a0===null){Zt===null&&(Zt=n0);break}ot&&Zt&&a0.alternate===null&&et(Yt,Zt),Ut=ft(a0,Ut,o0),t0===null?e0=a0:t0.sibling=a0,t0=a0,Zt=n0}if(r0.done)return ct(Yt,Zt),I$2&&tg(Yt,o0),e0;if(Zt===null){for(;!r0.done;o0++,r0=Jt.next())r0=$t(Yt,r0.value,Ht),r0!==null&&(Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0);return I$2&&tg(Yt,o0),e0}for(Zt=ut(Yt,Zt);!r0.done;o0++,r0=Jt.next())r0=Bt(Zt,Yt,o0,r0.value,Ht),r0!==null&&(ot&&r0.alternate!==null&&Zt.delete(r0.key===null?o0:r0.key),Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0);return ot&&Zt.forEach(function(u0){return et(Yt,u0)}),I$2&&tg(Yt,o0),e0}function Kt(Yt,Ut,Jt,Ht){if(typeof Jt=="object"&&Jt!==null&&Jt.type===ya&&Jt.key===null&&(Jt=Jt.props.children),typeof Jt=="object"&&Jt!==null){switch(Jt.$$typeof){case va:e:{for(var e0=Jt.key,t0=Ut;t0!==null;){if(t0.key===e0){if(e0=Jt.type,e0===ya){if(t0.tag===7){ct(Yt,t0.sibling),Ut=dt(t0,Jt.props.children),Ut.return=Yt,Yt=Ut;break e}}else if(t0.elementType===e0||typeof e0=="object"&&e0!==null&&e0.$$typeof===Ha&&uh(e0)===t0.type){ct(Yt,t0.sibling),Ut=dt(t0,Jt.props),Ut.ref=sh(Yt,t0,Jt),Ut.return=Yt,Yt=Ut;break e}ct(Yt,t0);break}else et(Yt,t0);t0=t0.sibling}Jt.type===ya?(Ut=Ah(Jt.props.children,Yt.mode,Ht,Jt.key),Ut.return=Yt,Yt=Ut):(Ht=yh(Jt.type,Jt.key,Jt.props,null,Yt.mode,Ht),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Yt=Ht)}return zt(Yt);case wa:e:{for(t0=Jt.key;Ut!==null;){if(Ut.key===t0)if(Ut.tag===4&&Ut.stateNode.containerInfo===Jt.containerInfo&&Ut.stateNode.implementation===Jt.implementation){ct(Yt,Ut.sibling),Ut=dt(Ut,Jt.children||[]),Ut.return=Yt,Yt=Ut;break e}else{ct(Yt,Ut);break}else et(Yt,Ut);Ut=Ut.sibling}Ut=zh(Jt,Yt.mode,Ht),Ut.return=Yt,Yt=Ut}return zt(Yt);case Ha:return t0=Jt._init,Kt(Yt,Ut,t0(Jt._payload),Ht)}if(eb(Jt))return Ft(Yt,Ut,Jt,Ht);if(Ka(Jt))return jt(Yt,Ut,Jt,Ht);th(Yt,Jt)}return typeof Jt=="string"&&Jt!==""||typeof Jt=="number"?(Jt=""+Jt,Ut!==null&&Ut.tag===6?(ct(Yt,Ut.sibling),Ut=dt(Ut,Jt),Ut.return=Yt,Yt=Ut):(ct(Yt,Ut),Ut=xh(Jt,Yt.mode,Ht),Ut.return=Yt,Yt=Ut),zt(Yt)):ct(Yt,Ut)}return Kt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(ot){if(ot===Dh)throw Error(p$4(174));return ot}function Ih(ot,et){switch(G$3(Gh,et),G$3(Fh,ot),G$3(Eh,Dh),ot=et.nodeType,ot){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:ot=ot===8?et.parentNode:et,et=ot.namespaceURI||null,ot=ot.tagName,et=lb(et,ot)}E$2(Eh),G$3(Eh,et)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh(ot){Hh(Gh.current);var et=Hh(Eh.current),ct=lb(et,ot.type);et!==ct&&(G$3(Fh,ot),G$3(Eh,ct))}function Lh(ot){Fh.current===ot&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(ot){for(var et=ot;et!==null;){if(et.tag===13){var ct=et.memoizedState;if(ct!==null&&(ct=ct.dehydrated,ct===null||ct.data==="$?"||ct.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var ot=0;ot<Nh.length;ot++)Nh[ot]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua$1.ReactCurrentDispatcher,Qh=ua$1.ReactCurrentBatchConfig,Rh=0,N$3=null,O$1=null,P$2=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$3(){throw Error(p$4(321))}function Wh(ot,et){if(et===null)return!1;for(var ct=0;ct<et.length&&ct<ot.length;ct++)if(!He(ot[ct],et[ct]))return!1;return!0}function Xh(ot,et,ct,ut,dt,ft){if(Rh=ft,N$3=et,et.memoizedState=null,et.updateQueue=null,et.lanes=0,Ph.current=ot===null||ot.memoizedState===null?Yh:Zh,ot=ct(ut,dt),Th){ft=0;do{if(Th=!1,Uh=0,25<=ft)throw Error(p$4(301));ft+=1,P$2=O$1=null,et.updateQueue=null,Ph.current=$h,ot=ct(ut,dt)}while(Th)}if(Ph.current=ai,et=O$1!==null&&O$1.next!==null,Rh=0,P$2=O$1=N$3=null,Sh=!1,et)throw Error(p$4(300));return ot}function bi(){var ot=Uh!==0;return Uh=0,ot}function ci(){var ot={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$2===null?N$3.memoizedState=P$2=ot:P$2=P$2.next=ot,P$2}function di(){if(O$1===null){var ot=N$3.alternate;ot=ot!==null?ot.memoizedState:null}else ot=O$1.next;var et=P$2===null?N$3.memoizedState:P$2.next;if(et!==null)P$2=et,O$1=ot;else{if(ot===null)throw Error(p$4(310));O$1=ot,ot={memoizedState:O$1.memoizedState,baseState:O$1.baseState,baseQueue:O$1.baseQueue,queue:O$1.queue,next:null},P$2===null?N$3.memoizedState=P$2=ot:P$2=P$2.next=ot}return P$2}function ei(ot,et){return typeof et=="function"?et(ot):et}function fi(ot){var et=di(),ct=et.queue;if(ct===null)throw Error(p$4(311));ct.lastRenderedReducer=ot;var ut=O$1,dt=ut.baseQueue,ft=ct.pending;if(ft!==null){if(dt!==null){var zt=dt.next;dt.next=ft.next,ft.next=zt}ut.baseQueue=dt=ft,ct.pending=null}if(dt!==null){ft=dt.next,ut=ut.baseState;var Dt=zt=null,St=null,Tt=ft;do{var Rt=Tt.lane;if((Rh&Rt)===Rt)St!==null&&(St=St.next={lane:0,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null}),ut=Tt.hasEagerState?Tt.eagerState:ot(ut,Tt.action);else{var $t={lane:Rt,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null};St===null?(Dt=St=$t,zt=ut):St=St.next=$t,N$3.lanes|=Rt,hh|=Rt}Tt=Tt.next}while(Tt!==null&&Tt!==ft);St===null?zt=ut:St.next=Dt,He(ut,et.memoizedState)||(Ug=!0),et.memoizedState=ut,et.baseState=zt,et.baseQueue=St,ct.lastRenderedState=ut}if(ot=ct.interleaved,ot!==null){dt=ot;do ft=dt.lane,N$3.lanes|=ft,hh|=ft,dt=dt.next;while(dt!==ot)}else dt===null&&(ct.lanes=0);return[et.memoizedState,ct.dispatch]}function gi(ot){var et=di(),ct=et.queue;if(ct===null)throw Error(p$4(311));ct.lastRenderedReducer=ot;var ut=ct.dispatch,dt=ct.pending,ft=et.memoizedState;if(dt!==null){ct.pending=null;var zt=dt=dt.next;do ft=ot(ft,zt.action),zt=zt.next;while(zt!==dt);He(ft,et.memoizedState)||(Ug=!0),et.memoizedState=ft,et.baseQueue===null&&(et.baseState=ft),ct.lastRenderedState=ft}return[ft,ut]}function hi(){}function ii(ot,et){var ct=N$3,ut=di(),dt=et(),ft=!He(ut.memoizedState,dt);if(ft&&(ut.memoizedState=dt,Ug=!0),ut=ut.queue,ji(ki.bind(null,ct,ut,ot),[ot]),ut.getSnapshot!==et||ft||P$2!==null&&P$2.memoizedState.tag&1){if(ct.flags|=2048,li(9,mi.bind(null,ct,ut,dt,et),void 0,null),R$2===null)throw Error(p$4(349));Rh&30||ni(ct,et,dt)}return dt}function ni(ot,et,ct){ot.flags|=16384,ot={getSnapshot:et,value:ct},et=N$3.updateQueue,et===null?(et={lastEffect:null,stores:null},N$3.updateQueue=et,et.stores=[ot]):(ct=et.stores,ct===null?et.stores=[ot]:ct.push(ot))}function mi(ot,et,ct,ut){et.value=ct,et.getSnapshot=ut,oi(et)&&pi(ot)}function ki(ot,et,ct){return ct(function(){oi(et)&&pi(ot)})}function oi(ot){var et=ot.getSnapshot;ot=ot.value;try{var ct=et();return!He(ot,ct)}catch{return!0}}function pi(ot){var et=Zg(ot,1);et!==null&&mh(et,ot,1,-1)}function qi(ot){var et=ci();return typeof ot=="function"&&(ot=ot()),et.memoizedState=et.baseState=ot,ot={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:ot},et.queue=ot,ot=ot.dispatch=ri.bind(null,N$3,ot),[et.memoizedState,ot]}function li(ot,et,ct,ut){return ot={tag:ot,create:et,destroy:ct,deps:ut,next:null},et=N$3.updateQueue,et===null?(et={lastEffect:null,stores:null},N$3.updateQueue=et,et.lastEffect=ot.next=ot):(ct=et.lastEffect,ct===null?et.lastEffect=ot.next=ot:(ut=ct.next,ct.next=ot,ot.next=ut,et.lastEffect=ot)),ot}function si(){return di().memoizedState}function ti(ot,et,ct,ut){var dt=ci();N$3.flags|=ot,dt.memoizedState=li(1|et,ct,void 0,ut===void 0?null:ut)}function ui(ot,et,ct,ut){var dt=di();ut=ut===void 0?null:ut;var ft=void 0;if(O$1!==null){var zt=O$1.memoizedState;if(ft=zt.destroy,ut!==null&&Wh(ut,zt.deps)){dt.memoizedState=li(et,ct,ft,ut);return}}N$3.flags|=ot,dt.memoizedState=li(1|et,ct,ft,ut)}function vi(ot,et){return ti(8390656,8,ot,et)}function ji(ot,et){return ui(2048,8,ot,et)}function wi(ot,et){return ui(4,2,ot,et)}function xi(ot,et){return ui(4,4,ot,et)}function yi(ot,et){if(typeof et=="function")return ot=ot(),et(ot),function(){et(null)};if(et!=null)return ot=ot(),et.current=ot,function(){et.current=null}}function zi(ot,et,ct){return ct=ct!=null?ct.concat([ot]):null,ui(4,4,yi.bind(null,et,ot),ct)}function Ai(){}function Bi(ot,et){var ct=di();et=et===void 0?null:et;var ut=ct.memoizedState;return ut!==null&&et!==null&&Wh(et,ut[1])?ut[0]:(ct.memoizedState=[ot,et],ot)}function Ci(ot,et){var ct=di();et=et===void 0?null:et;var ut=ct.memoizedState;return ut!==null&&et!==null&&Wh(et,ut[1])?ut[0]:(ot=ot(),ct.memoizedState=[ot,et],ot)}function Di(ot,et,ct){return Rh&21?(He(ct,et)||(ct=yc(),N$3.lanes|=ct,hh|=ct,ot.baseState=!0),et):(ot.baseState&&(ot.baseState=!1,Ug=!0),ot.memoizedState=ct)}function Ei(ot,et){var ct=C$2;C$2=ct!==0&&4>ct?ct:4,ot(!0);var ut=Qh.transition;Qh.transition={};try{ot(!1),et()}finally{C$2=ct,Qh.transition=ut}}function Fi(){return di().memoizedState}function Gi(ot,et,ct){var ut=lh(ot);if(ct={lane:ut,action:ct,hasEagerState:!1,eagerState:null,next:null},Hi(ot))Ii(et,ct);else if(ct=Yg(ot,et,ct,ut),ct!==null){var dt=L$2();mh(ct,ot,ut,dt),Ji(ct,et,ut)}}function ri(ot,et,ct){var ut=lh(ot),dt={lane:ut,action:ct,hasEagerState:!1,eagerState:null,next:null};if(Hi(ot))Ii(et,dt);else{var ft=ot.alternate;if(ot.lanes===0&&(ft===null||ft.lanes===0)&&(ft=et.lastRenderedReducer,ft!==null))try{var zt=et.lastRenderedState,Dt=ft(zt,ct);if(dt.hasEagerState=!0,dt.eagerState=Dt,He(Dt,zt)){var St=et.interleaved;St===null?(dt.next=dt,Xg(et)):(dt.next=St.next,St.next=dt),et.interleaved=dt;return}}catch{}finally{}ct=Yg(ot,et,dt,ut),ct!==null&&(dt=L$2(),mh(ct,ot,ut,dt),Ji(ct,et,ut))}}function Hi(ot){var et=ot.alternate;return ot===N$3||et!==null&&et===N$3}function Ii(ot,et){Th=Sh=!0;var ct=ot.pending;ct===null?et.next=et:(et.next=ct.next,ct.next=et),ot.pending=et}function Ji(ot,et,ct){if(ct&4194240){var ut=et.lanes;ut&=ot.pendingLanes,ct|=ut,et.lanes=ct,Cc(ot,ct)}}var ai={readContext:Vg,useCallback:Q$3,useContext:Q$3,useEffect:Q$3,useImperativeHandle:Q$3,useInsertionEffect:Q$3,useLayoutEffect:Q$3,useMemo:Q$3,useReducer:Q$3,useRef:Q$3,useState:Q$3,useDebugValue:Q$3,useDeferredValue:Q$3,useTransition:Q$3,useMutableSource:Q$3,useSyncExternalStore:Q$3,useId:Q$3,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(ot,et){return ci().memoizedState=[ot,et===void 0?null:et],ot},useContext:Vg,useEffect:vi,useImperativeHandle:function(ot,et,ct){return ct=ct!=null?ct.concat([ot]):null,ti(4194308,4,yi.bind(null,et,ot),ct)},useLayoutEffect:function(ot,et){return ti(4194308,4,ot,et)},useInsertionEffect:function(ot,et){return ti(4,2,ot,et)},useMemo:function(ot,et){var ct=ci();return et=et===void 0?null:et,ot=ot(),ct.memoizedState=[ot,et],ot},useReducer:function(ot,et,ct){var ut=ci();return et=ct!==void 0?ct(et):et,ut.memoizedState=ut.baseState=et,ot={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ot,lastRenderedState:et},ut.queue=ot,ot=ot.dispatch=Gi.bind(null,N$3,ot),[ut.memoizedState,ot]},useRef:function(ot){var et=ci();return ot={current:ot},et.memoizedState=ot},useState:qi,useDebugValue:Ai,useDeferredValue:function(ot){return ci().memoizedState=ot},useTransition:function(){var ot=qi(!1),et=ot[0];return ot=Ei.bind(null,ot[1]),ci().memoizedState=ot,[et,ot]},useMutableSource:function(){},useSyncExternalStore:function(ot,et,ct){var ut=N$3,dt=ci();if(I$2){if(ct===void 0)throw Error(p$4(407));ct=ct()}else{if(ct=et(),R$2===null)throw Error(p$4(349));Rh&30||ni(ut,et,ct)}dt.memoizedState=ct;var ft={value:ct,getSnapshot:et};return dt.queue=ft,vi(ki.bind(null,ut,ft,ot),[ot]),ut.flags|=2048,li(9,mi.bind(null,ut,ft,ct,et),void 0,null),ct},useId:function(){var ot=ci(),et=R$2.identifierPrefix;if(I$2){var ct=sg,ut=rg;ct=(ut&~(1<<32-oc(ut)-1)).toString(32)+ct,et=":"+et+"R"+ct,ct=Uh++,0<ct&&(et+="H"+ct.toString(32)),et+=":"}else ct=Vh++,et=":"+et+"r"+ct.toString(32)+":";return ot.memoizedState=et},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(ot){var et=di();return Di(et,O$1.memoizedState,ot)},useTransition:function(){var ot=fi(ei)[0],et=di().memoizedState;return[ot,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(ot){var et=di();return O$1===null?et.memoizedState=ot:Di(et,O$1.memoizedState,ot)},useTransition:function(){var ot=gi(ei)[0],et=di().memoizedState;return[ot,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(ot,et){try{var ct="",ut=et;do ct+=Pa(ut),ut=ut.return;while(ut);var dt=ct}catch(ft){dt=`
|
|
8
8
|
Error generating stack: `+ft.message+`
|
|
9
|
-
`+ft.stack}return{value:ot,source:et,stack:dt,digest:null}}function Li(ot,et,ct){return{value:ot,source:null,stack:ct??null,digest:et??null}}function Mi(ot,et){try{console.error(et.value)}catch(ct){setTimeout(function(){throw ct})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3,ct.payload={element:null};var ut=et.value;return ct.callback=function(){Pi||(Pi=!0,Qi=ut),Mi(ot,et)},ct}function Ri(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3;var ut=ot.type.getDerivedStateFromError;if(typeof ut=="function"){var dt=et.value;ct.payload=function(){return ut(dt)},ct.callback=function(){Mi(ot,et)}}var ft=ot.stateNode;return ft!==null&&typeof ft.componentDidCatch=="function"&&(ct.callback=function(){Mi(ot,et),typeof ut!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var zt=et.stack;this.componentDidCatch(et.value,{componentStack:zt!==null?zt:""})}),ct}function Ti(ot,et,ct){var ut=ot.pingCache;if(ut===null){ut=ot.pingCache=new Ni;var dt=new Set;ut.set(et,dt)}else dt=ut.get(et),dt===void 0&&(dt=new Set,ut.set(et,dt));dt.has(ct)||(dt.add(ct),ot=Ui.bind(null,ot,et,ct),et.then(ot,ot))}function Vi(ot){do{var et;if((et=ot.tag===13)&&(et=ot.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return ot;ot=ot.return}while(ot!==null);return null}function Wi(ot,et,ct,ut,dt){return ot.mode&1?(ot.flags|=65536,ot.lanes=dt,ot):(ot===et?ot.flags|=65536:(ot.flags|=128,ct.flags|=131072,ct.flags&=-52805,ct.tag===1&&(ct.alternate===null?ct.tag=17:(et=ch$1(-1,1),et.tag=2,dh(ct,et,1))),ct.lanes|=1),ot)}var Xi=ua$1.ReactCurrentOwner,Ug=!1;function Yi(ot,et,ct,ut){et.child=ot===null?Ch(et,null,ct,ut):Bh(et,ot.child,ct,ut)}function Zi(ot,et,ct,ut,dt){ct=ct.render;var ft=et.ref;return Tg(et,dt),ut=Xh(ot,et,ct,ut,ft,dt),ct=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ct&&vg(et),et.flags|=1,Yi(ot,et,ut,dt),et.child)}function aj(ot,et,ct,ut,dt){if(ot===null){var ft=ct.type;return typeof ft=="function"&&!bj(ft)&&ft.defaultProps===void 0&&ct.compare===null&&ct.defaultProps===void 0?(et.tag=15,et.type=ft,cj(ot,et,ft,ut,dt)):(ot=yh(ct.type,null,ut,et,et.mode,dt),ot.ref=et.ref,ot.return=et,et.child=ot)}if(ft=ot.child,!(ot.lanes&dt)){var zt=ft.memoizedProps;if(ct=ct.compare,ct=ct!==null?ct:Ie,ct(zt,ut)&&ot.ref===et.ref)return $i(ot,et,dt)}return et.flags|=1,ot=wh(ft,ut),ot.ref=et.ref,ot.return=et,et.child=ot}function cj(ot,et,ct,ut,dt){if(ot!==null){var ft=ot.memoizedProps;if(Ie(ft,ut)&&ot.ref===et.ref)if(Ug=!1,et.pendingProps=ut=ft,(ot.lanes&dt)!==0)ot.flags&131072&&(Ug=!0);else return et.lanes=ot.lanes,$i(ot,et,dt)}return dj(ot,et,ct,ut,dt)}function ej(ot,et,ct){var ut=et.pendingProps,dt=ut.children,ft=ot!==null?ot.memoizedState:null;if(ut.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$3(fj,gj),gj|=ct;else{if(!(ct&1073741824))return ot=ft!==null?ft.baseLanes|ct:ct,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:ot,cachePool:null,transitions:null},et.updateQueue=null,G$3(fj,gj),gj|=ot,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut=ft!==null?ft.baseLanes:ct,G$3(fj,gj),gj|=ut}else ft!==null?(ut=ft.baseLanes|ct,et.memoizedState=null):ut=ct,G$3(fj,gj),gj|=ut;return Yi(ot,et,dt,ct),et.child}function hj(ot,et){var ct=et.ref;(ot===null&&ct!==null||ot!==null&&ot.ref!==ct)&&(et.flags|=512,et.flags|=2097152)}function dj(ot,et,ct,ut,dt){var ft=Zf(ct)?Xf:H$2.current;return ft=Yf(et,ft),Tg(et,dt),ct=Xh(ot,et,ct,ut,ft,dt),ut=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ut&&vg(et),et.flags|=1,Yi(ot,et,ct,dt),et.child)}function ij(ot,et,ct,ut,dt){if(Zf(ct)){var ft=!0;cg(et)}else ft=!1;if(Tg(et,dt),et.stateNode===null)jj(ot,et),ph(et,ct,ut),rh(et,ct,ut,dt),ut=!0;else if(ot===null){var zt=et.stateNode,Dt=et.memoizedProps;zt.props=Dt;var St=zt.context,Tt=ct.contextType;typeof Tt=="object"&&Tt!==null?Tt=Vg(Tt):(Tt=Zf(ct)?Xf:H$2.current,Tt=Yf(et,Tt));var Rt=ct.getDerivedStateFromProps,$t=typeof Rt=="function"||typeof zt.getSnapshotBeforeUpdate=="function";$t||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==ut||St!==Tt)&&qh(et,zt,ut,Tt),$g=!1;var kt=et.memoizedState;zt.state=kt,gh(et,ut,zt,dt),St=et.memoizedState,Dt!==ut||kt!==St||Wf.current||$g?(typeof Rt=="function"&&(kh(et,ct,Rt,ut),St=et.memoizedState),(Dt=$g||oh(et,ct,Dt,ut,kt,St,Tt))?($t||typeof zt.UNSAFE_componentWillMount!="function"&&typeof zt.componentWillMount!="function"||(typeof zt.componentWillMount=="function"&&zt.componentWillMount(),typeof zt.UNSAFE_componentWillMount=="function"&&zt.UNSAFE_componentWillMount()),typeof zt.componentDidMount=="function"&&(et.flags|=4194308)):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=ut,et.memoizedState=St),zt.props=ut,zt.state=St,zt.context=Tt,ut=Dt):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),ut=!1)}else{zt=et.stateNode,bh(ot,et),Dt=et.memoizedProps,Tt=et.type===et.elementType?Dt:Lg(et.type,Dt),zt.props=Tt,$t=et.pendingProps,kt=zt.context,St=ct.contextType,typeof St=="object"&&St!==null?St=Vg(St):(St=Zf(ct)?Xf:H$2.current,St=Yf(et,St));var Bt=ct.getDerivedStateFromProps;(Rt=typeof Bt=="function"||typeof zt.getSnapshotBeforeUpdate=="function")||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==$t||kt!==St)&&qh(et,zt,ut,St),$g=!1,kt=et.memoizedState,zt.state=kt,gh(et,ut,zt,dt);var Ft=et.memoizedState;Dt!==$t||kt!==Ft||Wf.current||$g?(typeof Bt=="function"&&(kh(et,ct,Bt,ut),Ft=et.memoizedState),(Tt=$g||oh(et,ct,Tt,ut,kt,Ft,St)||!1)?(Rt||typeof zt.UNSAFE_componentWillUpdate!="function"&&typeof zt.componentWillUpdate!="function"||(typeof zt.componentWillUpdate=="function"&&zt.componentWillUpdate(ut,Ft,St),typeof zt.UNSAFE_componentWillUpdate=="function"&&zt.UNSAFE_componentWillUpdate(ut,Ft,St)),typeof zt.componentDidUpdate=="function"&&(et.flags|=4),typeof zt.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),et.memoizedProps=ut,et.memoizedState=Ft),zt.props=ut,zt.state=Ft,zt.context=St,ut=Tt):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),ut=!1)}return kj(ot,et,ct,ut,ft,dt)}function kj(ot,et,ct,ut,dt,ft){hj(ot,et);var zt=(et.flags&128)!==0;if(!ut&&!zt)return dt&&dg(et,ct,!1),$i(ot,et,ft);ut=et.stateNode,Xi.current=et;var Dt=zt&&typeof ct.getDerivedStateFromError!="function"?null:ut.render();return et.flags|=1,ot!==null&&zt?(et.child=Bh(et,ot.child,null,ft),et.child=Bh(et,null,Dt,ft)):Yi(ot,et,Dt,ft),et.memoizedState=ut.state,dt&&dg(et,ct,!0),et.child}function lj(ot){var et=ot.stateNode;et.pendingContext?ag(ot,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(ot,et.context,!1),Ih(ot,et.containerInfo)}function mj(ot,et,ct,ut,dt){return Ig(),Jg(dt),et.flags|=256,Yi(ot,et,ct,ut),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(ot){return{baseLanes:ot,cachePool:null,transitions:null}}function pj(ot,et,ct){var ut=et.pendingProps,dt=M$2.current,ft=!1,zt=(et.flags&128)!==0,Dt;if((Dt=zt)||(Dt=ot!==null&&ot.memoizedState===null?!1:(dt&2)!==0),Dt?(ft=!0,et.flags&=-129):(ot===null||ot.memoizedState!==null)&&(dt|=1),G$3(M$2,dt&1),ot===null)return Eg(et),ot=et.memoizedState,ot!==null&&(ot=ot.dehydrated,ot!==null)?(et.mode&1?ot.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(zt=ut.children,ot=ut.fallback,ft?(ut=et.mode,ft=et.child,zt={mode:"hidden",children:zt},!(ut&1)&&ft!==null?(ft.childLanes=0,ft.pendingProps=zt):ft=qj(zt,ut,0,null),ot=Ah(ot,ut,ct,null),ft.return=et,ot.return=et,ft.sibling=ot,et.child=ft,et.child.memoizedState=oj(ct),et.memoizedState=nj,ot):rj(et,zt));if(dt=ot.memoizedState,dt!==null&&(Dt=dt.dehydrated,Dt!==null))return sj(ot,et,zt,ut,Dt,dt,ct);if(ft){ft=ut.fallback,zt=et.mode,dt=ot.child,Dt=dt.sibling;var St={mode:"hidden",children:ut.children};return!(zt&1)&&et.child!==dt?(ut=et.child,ut.childLanes=0,ut.pendingProps=St,et.deletions=null):(ut=wh(dt,St),ut.subtreeFlags=dt.subtreeFlags&14680064),Dt!==null?ft=wh(Dt,ft):(ft=Ah(ft,zt,ct,null),ft.flags|=2),ft.return=et,ut.return=et,ut.sibling=ft,et.child=ut,ut=ft,ft=et.child,zt=ot.child.memoizedState,zt=zt===null?oj(ct):{baseLanes:zt.baseLanes|ct,cachePool:null,transitions:zt.transitions},ft.memoizedState=zt,ft.childLanes=ot.childLanes&~ct,et.memoizedState=nj,ut}return ft=ot.child,ot=ft.sibling,ut=wh(ft,{mode:"visible",children:ut.children}),!(et.mode&1)&&(ut.lanes=ct),ut.return=et,ut.sibling=null,ot!==null&&(ct=et.deletions,ct===null?(et.deletions=[ot],et.flags|=16):ct.push(ot)),et.child=ut,et.memoizedState=null,ut}function rj(ot,et){return et=qj({mode:"visible",children:et},ot.mode,0,null),et.return=ot,ot.child=et}function tj(ot,et,ct,ut){return ut!==null&&Jg(ut),Bh(et,ot.child,null,ct),ot=rj(et,et.pendingProps.children),ot.flags|=2,et.memoizedState=null,ot}function sj(ot,et,ct,ut,dt,ft,zt){if(ct)return et.flags&256?(et.flags&=-257,ut=Li(Error(p$4(422))),tj(ot,et,zt,ut)):et.memoizedState!==null?(et.child=ot.child,et.flags|=128,null):(ft=ut.fallback,dt=et.mode,ut=qj({mode:"visible",children:ut.children},dt,0,null),ft=Ah(ft,dt,zt,null),ft.flags|=2,ut.return=et,ft.return=et,ut.sibling=ft,et.child=ut,et.mode&1&&Bh(et,ot.child,null,zt),et.child.memoizedState=oj(zt),et.memoizedState=nj,ft);if(!(et.mode&1))return tj(ot,et,zt,null);if(dt.data==="$!"){if(ut=dt.nextSibling&&dt.nextSibling.dataset,ut)var Dt=ut.dgst;return ut=Dt,ft=Error(p$4(419)),ut=Li(ft,ut,void 0),tj(ot,et,zt,ut)}if(Dt=(zt&ot.childLanes)!==0,Ug||Dt){if(ut=R$2,ut!==null){switch(zt&-zt){case 4:dt=2;break;case 16:dt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:dt=32;break;case 536870912:dt=268435456;break;default:dt=0}dt=dt&(ut.suspendedLanes|zt)?0:dt,dt!==0&&dt!==ft.retryLane&&(ft.retryLane=dt,Zg(ot,dt),mh(ut,ot,dt,-1))}return uj(),ut=Li(Error(p$4(421))),tj(ot,et,zt,ut)}return dt.data==="$?"?(et.flags|=128,et.child=ot.child,et=vj.bind(null,ot),dt._reactRetry=et,null):(ot=ft.treeContext,yg=Lf(dt.nextSibling),xg=et,I$2=!0,zg=null,ot!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=ot.id,sg=ot.overflow,qg=et),et=rj(et,ut.children),et.flags|=4096,et)}function wj(ot,et,ct){ot.lanes|=et;var ut=ot.alternate;ut!==null&&(ut.lanes|=et),Sg(ot.return,et,ct)}function xj(ot,et,ct,ut,dt){var ft=ot.memoizedState;ft===null?ot.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:ut,tail:ct,tailMode:dt}:(ft.isBackwards=et,ft.rendering=null,ft.renderingStartTime=0,ft.last=ut,ft.tail=ct,ft.tailMode=dt)}function yj(ot,et,ct){var ut=et.pendingProps,dt=ut.revealOrder,ft=ut.tail;if(Yi(ot,et,ut.children,ct),ut=M$2.current,ut&2)ut=ut&1|2,et.flags|=128;else{if(ot!==null&&ot.flags&128)e:for(ot=et.child;ot!==null;){if(ot.tag===13)ot.memoizedState!==null&&wj(ot,ct,et);else if(ot.tag===19)wj(ot,ct,et);else if(ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===et)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===et)break e;ot=ot.return}ot.sibling.return=ot.return,ot=ot.sibling}ut&=1}if(G$3(M$2,ut),!(et.mode&1))et.memoizedState=null;else switch(dt){case"forwards":for(ct=et.child,dt=null;ct!==null;)ot=ct.alternate,ot!==null&&Mh(ot)===null&&(dt=ct),ct=ct.sibling;ct=dt,ct===null?(dt=et.child,et.child=null):(dt=ct.sibling,ct.sibling=null),xj(et,!1,dt,ct,ft);break;case"backwards":for(ct=null,dt=et.child,et.child=null;dt!==null;){if(ot=dt.alternate,ot!==null&&Mh(ot)===null){et.child=dt;break}ot=dt.sibling,dt.sibling=ct,ct=dt,dt=ot}xj(et,!0,ct,null,ft);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(ot,et){!(et.mode&1)&&ot!==null&&(ot.alternate=null,et.alternate=null,et.flags|=2)}function $i(ot,et,ct){if(ot!==null&&(et.dependencies=ot.dependencies),hh|=et.lanes,!(ct&et.childLanes))return null;if(ot!==null&&et.child!==ot.child)throw Error(p$4(153));if(et.child!==null){for(ot=et.child,ct=wh(ot,ot.pendingProps),et.child=ct,ct.return=et;ot.sibling!==null;)ot=ot.sibling,ct=ct.sibling=wh(ot,ot.pendingProps),ct.return=et;ct.sibling=null}return et.child}function zj(ot,et,ct){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var ut=et.type._context,dt=et.memoizedProps.value;G$3(Mg,ut._currentValue),ut._currentValue=dt;break;case 13:if(ut=et.memoizedState,ut!==null)return ut.dehydrated!==null?(G$3(M$2,M$2.current&1),et.flags|=128,null):ct&et.child.childLanes?pj(ot,et,ct):(G$3(M$2,M$2.current&1),ot=$i(ot,et,ct),ot!==null?ot.sibling:null);G$3(M$2,M$2.current&1);break;case 19:if(ut=(ct&et.childLanes)!==0,ot.flags&128){if(ut)return yj(ot,et,ct);et.flags|=128}if(dt=et.memoizedState,dt!==null&&(dt.rendering=null,dt.tail=null,dt.lastEffect=null),G$3(M$2,M$2.current),ut)break;return null;case 22:case 23:return et.lanes=0,ej(ot,et,ct)}return $i(ot,et,ct)}var Aj,Bj,Cj,Dj;Aj=function(ot,et){for(var ct=et.child;ct!==null;){if(ct.tag===5||ct.tag===6)ot.appendChild(ct.stateNode);else if(ct.tag!==4&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===et)break;for(;ct.sibling===null;){if(ct.return===null||ct.return===et)return;ct=ct.return}ct.sibling.return=ct.return,ct=ct.sibling}},Bj=function(){},Cj=function(ot,et,ct,ut){var dt=ot.memoizedProps;if(dt!==ut){ot=et.stateNode,Hh(Eh.current);var ft=null;switch(ct){case"input":dt=Ya(ot,dt),ut=Ya(ot,ut),ft=[];break;case"select":dt=A$2({},dt,{value:void 0}),ut=A$2({},ut,{value:void 0}),ft=[];break;case"textarea":dt=gb$1(ot,dt),ut=gb$1(ot,ut),ft=[];break;default:typeof dt.onClick!="function"&&typeof ut.onClick=="function"&&(ot.onclick=Bf)}ub(ct,ut);var zt;ct=null;for(Tt in dt)if(!ut.hasOwnProperty(Tt)&&dt.hasOwnProperty(Tt)&&dt[Tt]!=null)if(Tt==="style"){var Dt=dt[Tt];for(zt in Dt)Dt.hasOwnProperty(zt)&&(ct||(ct={}),ct[zt]="")}else Tt!=="dangerouslySetInnerHTML"&&Tt!=="children"&&Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&Tt!=="autoFocus"&&(ea.hasOwnProperty(Tt)?ft||(ft=[]):(ft=ft||[]).push(Tt,null));for(Tt in ut){var St=ut[Tt];if(Dt=dt==null?void 0:dt[Tt],ut.hasOwnProperty(Tt)&&St!==Dt&&(St!=null||Dt!=null))if(Tt==="style")if(Dt){for(zt in Dt)!Dt.hasOwnProperty(zt)||St&&St.hasOwnProperty(zt)||(ct||(ct={}),ct[zt]="");for(zt in St)St.hasOwnProperty(zt)&&Dt[zt]!==St[zt]&&(ct||(ct={}),ct[zt]=St[zt])}else ct||(ft||(ft=[]),ft.push(Tt,ct)),ct=St;else Tt==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,Dt=Dt?Dt.__html:void 0,St!=null&&Dt!==St&&(ft=ft||[]).push(Tt,St)):Tt==="children"?typeof St!="string"&&typeof St!="number"||(ft=ft||[]).push(Tt,""+St):Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(Tt)?(St!=null&&Tt==="onScroll"&&D$3("scroll",ot),ft||Dt===St||(ft=[])):(ft=ft||[]).push(Tt,St))}ct&&(ft=ft||[]).push("style",ct);var Tt=ft;(et.updateQueue=Tt)&&(et.flags|=4)}},Dj=function(ot,et,ct,ut){ct!==ut&&(et.flags|=4)};function Ej(ot,et){if(!I$2)switch(ot.tailMode){case"hidden":et=ot.tail;for(var ct=null;et!==null;)et.alternate!==null&&(ct=et),et=et.sibling;ct===null?ot.tail=null:ct.sibling=null;break;case"collapsed":ct=ot.tail;for(var ut=null;ct!==null;)ct.alternate!==null&&(ut=ct),ct=ct.sibling;ut===null?et||ot.tail===null?ot.tail=null:ot.tail.sibling=null:ut.sibling=null}}function S$3(ot){var et=ot.alternate!==null&&ot.alternate.child===ot.child,ct=0,ut=0;if(et)for(var dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags&14680064,ut|=dt.flags&14680064,dt.return=ot,dt=dt.sibling;else for(dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags,ut|=dt.flags,dt.return=ot,dt=dt.sibling;return ot.subtreeFlags|=ut,ot.childLanes=ct,et}function Fj(ot,et,ct){var ut=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$3(et),null;case 1:return Zf(et.type)&&$f(),S$3(et),null;case 3:return ut=et.stateNode,Jh(),E$2(Wf),E$2(H$2),Oh(),ut.pendingContext&&(ut.context=ut.pendingContext,ut.pendingContext=null),(ot===null||ot.child===null)&&(Gg(et)?et.flags|=4:ot===null||ot.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(ot,et),S$3(et),null;case 5:Lh(et);var dt=Hh(Gh.current);if(ct=et.type,ot!==null&&et.stateNode!=null)Cj(ot,et,ct,ut,dt),ot.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!ut){if(et.stateNode===null)throw Error(p$4(166));return S$3(et),null}if(ot=Hh(Eh.current),Gg(et)){ut=et.stateNode,ct=et.type;var ft=et.memoizedProps;switch(ut[Of]=et,ut[Pf]=ft,ot=(et.mode&1)!==0,ct){case"dialog":D$3("cancel",ut),D$3("close",ut);break;case"iframe":case"object":case"embed":D$3("load",ut);break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ut);break;case"source":D$3("error",ut);break;case"img":case"image":case"link":D$3("error",ut),D$3("load",ut);break;case"details":D$3("toggle",ut);break;case"input":Za(ut,ft),D$3("invalid",ut);break;case"select":ut._wrapperState={wasMultiple:!!ft.multiple},D$3("invalid",ut);break;case"textarea":hb(ut,ft),D$3("invalid",ut)}ub(ct,ft),dt=null;for(var zt in ft)if(ft.hasOwnProperty(zt)){var Dt=ft[zt];zt==="children"?typeof Dt=="string"?ut.textContent!==Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",Dt]):typeof Dt=="number"&&ut.textContent!==""+Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",""+Dt]):ea.hasOwnProperty(zt)&&Dt!=null&&zt==="onScroll"&&D$3("scroll",ut)}switch(ct){case"input":Va(ut),db(ut,ft,!0);break;case"textarea":Va(ut),jb(ut);break;case"select":case"option":break;default:typeof ft.onClick=="function"&&(ut.onclick=Bf)}ut=dt,et.updateQueue=ut,ut!==null&&(et.flags|=4)}else{zt=dt.nodeType===9?dt:dt.ownerDocument,ot==="http://www.w3.org/1999/xhtml"&&(ot=kb(ct)),ot==="http://www.w3.org/1999/xhtml"?ct==="script"?(ot=zt.createElement("div"),ot.innerHTML="<script><\/script>",ot=ot.removeChild(ot.firstChild)):typeof ut.is=="string"?ot=zt.createElement(ct,{is:ut.is}):(ot=zt.createElement(ct),ct==="select"&&(zt=ot,ut.multiple?zt.multiple=!0:ut.size&&(zt.size=ut.size))):ot=zt.createElementNS(ot,ct),ot[Of]=et,ot[Pf]=ut,Aj(ot,et,!1,!1),et.stateNode=ot;e:{switch(zt=vb(ct,ut),ct){case"dialog":D$3("cancel",ot),D$3("close",ot),dt=ut;break;case"iframe":case"object":case"embed":D$3("load",ot),dt=ut;break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ot);dt=ut;break;case"source":D$3("error",ot),dt=ut;break;case"img":case"image":case"link":D$3("error",ot),D$3("load",ot),dt=ut;break;case"details":D$3("toggle",ot),dt=ut;break;case"input":Za(ot,ut),dt=Ya(ot,ut),D$3("invalid",ot);break;case"option":dt=ut;break;case"select":ot._wrapperState={wasMultiple:!!ut.multiple},dt=A$2({},ut,{value:void 0}),D$3("invalid",ot);break;case"textarea":hb(ot,ut),dt=gb$1(ot,ut),D$3("invalid",ot);break;default:dt=ut}ub(ct,dt),Dt=dt;for(ft in Dt)if(Dt.hasOwnProperty(ft)){var St=Dt[ft];ft==="style"?sb(ot,St):ft==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,St!=null&&nb(ot,St)):ft==="children"?typeof St=="string"?(ct!=="textarea"||St!=="")&&ob(ot,St):typeof St=="number"&&ob(ot,""+St):ft!=="suppressContentEditableWarning"&&ft!=="suppressHydrationWarning"&&ft!=="autoFocus"&&(ea.hasOwnProperty(ft)?St!=null&&ft==="onScroll"&&D$3("scroll",ot):St!=null&&ta(ot,ft,St,zt))}switch(ct){case"input":Va(ot),db(ot,ut,!1);break;case"textarea":Va(ot),jb(ot);break;case"option":ut.value!=null&&ot.setAttribute("value",""+Sa(ut.value));break;case"select":ot.multiple=!!ut.multiple,ft=ut.value,ft!=null?fb(ot,!!ut.multiple,ft,!1):ut.defaultValue!=null&&fb(ot,!!ut.multiple,ut.defaultValue,!0);break;default:typeof dt.onClick=="function"&&(ot.onclick=Bf)}switch(ct){case"button":case"input":case"select":case"textarea":ut=!!ut.autoFocus;break e;case"img":ut=!0;break e;default:ut=!1}}ut&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$3(et),null;case 6:if(ot&&et.stateNode!=null)Dj(ot,et,ot.memoizedProps,ut);else{if(typeof ut!="string"&&et.stateNode===null)throw Error(p$4(166));if(ct=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(ut=et.stateNode,ct=et.memoizedProps,ut[Of]=et,(ft=ut.nodeValue!==ct)&&(ot=xg,ot!==null))switch(ot.tag){case 3:Af(ut.nodeValue,ct,(ot.mode&1)!==0);break;case 5:ot.memoizedProps.suppressHydrationWarning!==!0&&Af(ut.nodeValue,ct,(ot.mode&1)!==0)}ft&&(et.flags|=4)}else ut=(ct.nodeType===9?ct:ct.ownerDocument).createTextNode(ut),ut[Of]=et,et.stateNode=ut}return S$3(et),null;case 13:if(E$2(M$2),ut=et.memoizedState,ot===null||ot.memoizedState!==null&&ot.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,ft=!1;else if(ft=Gg(et),ut!==null&&ut.dehydrated!==null){if(ot===null){if(!ft)throw Error(p$4(318));if(ft=et.memoizedState,ft=ft!==null?ft.dehydrated:null,!ft)throw Error(p$4(317));ft[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$3(et),ft=!1}else zg!==null&&(Gj(zg),zg=null),ft=!0;if(!ft)return et.flags&65536?et:null}return et.flags&128?(et.lanes=ct,et):(ut=ut!==null,ut!==(ot!==null&&ot.memoizedState!==null)&&ut&&(et.child.flags|=8192,et.mode&1&&(ot===null||M$2.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$3(et),null);case 4:return Jh(),Bj(ot,et),ot===null&&sf(et.stateNode.containerInfo),S$3(et),null;case 10:return Rg(et.type._context),S$3(et),null;case 17:return Zf(et.type)&&$f(),S$3(et),null;case 19:if(E$2(M$2),ft=et.memoizedState,ft===null)return S$3(et),null;if(ut=(et.flags&128)!==0,zt=ft.rendering,zt===null)if(ut)Ej(ft,!1);else{if(T$2!==0||ot!==null&&ot.flags&128)for(ot=et.child;ot!==null;){if(zt=Mh(ot),zt!==null){for(et.flags|=128,Ej(ft,!1),ut=zt.updateQueue,ut!==null&&(et.updateQueue=ut,et.flags|=4),et.subtreeFlags=0,ut=ct,ct=et.child;ct!==null;)ft=ct,ot=ut,ft.flags&=14680066,zt=ft.alternate,zt===null?(ft.childLanes=0,ft.lanes=ot,ft.child=null,ft.subtreeFlags=0,ft.memoizedProps=null,ft.memoizedState=null,ft.updateQueue=null,ft.dependencies=null,ft.stateNode=null):(ft.childLanes=zt.childLanes,ft.lanes=zt.lanes,ft.child=zt.child,ft.subtreeFlags=0,ft.deletions=null,ft.memoizedProps=zt.memoizedProps,ft.memoizedState=zt.memoizedState,ft.updateQueue=zt.updateQueue,ft.type=zt.type,ot=zt.dependencies,ft.dependencies=ot===null?null:{lanes:ot.lanes,firstContext:ot.firstContext}),ct=ct.sibling;return G$3(M$2,M$2.current&1|2),et.child}ot=ot.sibling}ft.tail!==null&&B$3()>Hj&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304)}else{if(!ut)if(ot=Mh(zt),ot!==null){if(et.flags|=128,ut=!0,ct=ot.updateQueue,ct!==null&&(et.updateQueue=ct,et.flags|=4),Ej(ft,!0),ft.tail===null&&ft.tailMode==="hidden"&&!zt.alternate&&!I$2)return S$3(et),null}else 2*B$3()-ft.renderingStartTime>Hj&&ct!==1073741824&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304);ft.isBackwards?(zt.sibling=et.child,et.child=zt):(ct=ft.last,ct!==null?ct.sibling=zt:et.child=zt,ft.last=zt)}return ft.tail!==null?(et=ft.tail,ft.rendering=et,ft.tail=et.sibling,ft.renderingStartTime=B$3(),et.sibling=null,ct=M$2.current,G$3(M$2,ut?ct&1|2:ct&1),et):(S$3(et),null);case 22:case 23:return Ij(),ut=et.memoizedState!==null,ot!==null&&ot.memoizedState!==null!==ut&&(et.flags|=8192),ut&&et.mode&1?gj&1073741824&&(S$3(et),et.subtreeFlags&6&&(et.flags|=8192)):S$3(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj(ot,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),ot=et.flags,ot&65536&&!(ot&128)?(et.flags=ot&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$2(M$2),ot=et.memoizedState,ot!==null&&ot.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(ot,et){var ct=ot.ref;if(ct!==null)if(typeof ct=="function")try{ct(null)}catch(ut){W$3(ot,et,ut)}else ct.current=null}function Nj(ot,et,ct){try{ct()}catch(ut){W$3(ot,et,ut)}}var Oj=!1;function Pj(ot,et){if(Cf=dd,ot=Me(),Ne(ot)){if("selectionStart"in ot)var ct={start:ot.selectionStart,end:ot.selectionEnd};else e:{ct=(ct=ot.ownerDocument)&&ct.defaultView||window;var ut=ct.getSelection&&ct.getSelection();if(ut&&ut.rangeCount!==0){ct=ut.anchorNode;var dt=ut.anchorOffset,ft=ut.focusNode;ut=ut.focusOffset;try{ct.nodeType,ft.nodeType}catch{ct=null;break e}var zt=0,Dt=-1,St=-1,Tt=0,Rt=0,$t=ot,kt=null;t:for(;;){for(var Bt;$t!==ct||dt!==0&&$t.nodeType!==3||(Dt=zt+dt),$t!==ft||ut!==0&&$t.nodeType!==3||(St=zt+ut),$t.nodeType===3&&(zt+=$t.nodeValue.length),(Bt=$t.firstChild)!==null;)kt=$t,$t=Bt;for(;;){if($t===ot)break t;if(kt===ct&&++Tt===dt&&(Dt=zt),kt===ft&&++Rt===ut&&(St=zt),(Bt=$t.nextSibling)!==null)break;$t=kt,kt=$t.parentNode}$t=Bt}ct=Dt===-1||St===-1?null:{start:Dt,end:St}}else ct=null}ct=ct||{start:0,end:0}}else ct=null;for(Df={focusedElem:ot,selectionRange:ct},dd=!1,V$2=et;V$2!==null;)if(et=V$2,ot=et.child,(et.subtreeFlags&1028)!==0&&ot!==null)ot.return=et,V$2=ot;else for(;V$2!==null;){et=V$2;try{var Ft=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(Ft!==null){var jt=Ft.memoizedProps,Kt=Ft.memoizedState,Yt=et.stateNode,Ut=Yt.getSnapshotBeforeUpdate(et.elementType===et.type?jt:Lg(et.type,jt),Kt);Yt.__reactInternalSnapshotBeforeUpdate=Ut}break;case 3:var Jt=et.stateNode.containerInfo;Jt.nodeType===1?Jt.textContent="":Jt.nodeType===9&&Jt.documentElement&&Jt.removeChild(Jt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch(Ht){W$3(et,et.return,Ht)}if(ot=et.sibling,ot!==null){ot.return=et.return,V$2=ot;break}V$2=et.return}return Ft=Oj,Oj=!1,Ft}function Qj(ot,et,ct){var ut=et.updateQueue;if(ut=ut!==null?ut.lastEffect:null,ut!==null){var dt=ut=ut.next;do{if((dt.tag&ot)===ot){var ft=dt.destroy;dt.destroy=void 0,ft!==void 0&&Nj(et,ct,ft)}dt=dt.next}while(dt!==ut)}}function Rj(ot,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var ct=et=et.next;do{if((ct.tag&ot)===ot){var ut=ct.create;ct.destroy=ut()}ct=ct.next}while(ct!==et)}}function Sj(ot){var et=ot.ref;if(et!==null){var ct=ot.stateNode;switch(ot.tag){case 5:ot=ct;break;default:ot=ct}typeof et=="function"?et(ot):et.current=ot}}function Tj(ot){var et=ot.alternate;et!==null&&(ot.alternate=null,Tj(et)),ot.child=null,ot.deletions=null,ot.sibling=null,ot.tag===5&&(et=ot.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),ot.stateNode=null,ot.return=null,ot.dependencies=null,ot.memoizedProps=null,ot.memoizedState=null,ot.pendingProps=null,ot.stateNode=null,ot.updateQueue=null}function Uj(ot){return ot.tag===5||ot.tag===3||ot.tag===4}function Vj(ot){e:for(;;){for(;ot.sibling===null;){if(ot.return===null||Uj(ot.return))return null;ot=ot.return}for(ot.sibling.return=ot.return,ot=ot.sibling;ot.tag!==5&&ot.tag!==6&&ot.tag!==18;){if(ot.flags&2||ot.child===null||ot.tag===4)continue e;ot.child.return=ot,ot=ot.child}if(!(ot.flags&2))return ot.stateNode}}function Wj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.nodeType===8?ct.parentNode.insertBefore(ot,et):ct.insertBefore(ot,et):(ct.nodeType===8?(et=ct.parentNode,et.insertBefore(ot,ct)):(et=ct,et.appendChild(ot)),ct=ct._reactRootContainer,ct!=null||et.onclick!==null||(et.onclick=Bf));else if(ut!==4&&(ot=ot.child,ot!==null))for(Wj(ot,et,ct),ot=ot.sibling;ot!==null;)Wj(ot,et,ct),ot=ot.sibling}function Xj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.insertBefore(ot,et):ct.appendChild(ot);else if(ut!==4&&(ot=ot.child,ot!==null))for(Xj(ot,et,ct),ot=ot.sibling;ot!==null;)Xj(ot,et,ct),ot=ot.sibling}var X$3=null,Yj=!1;function Zj(ot,et,ct){for(ct=ct.child;ct!==null;)ak(ot,et,ct),ct=ct.sibling}function ak(ot,et,ct){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ct)}catch{}switch(ct.tag){case 5:U$2||Mj(ct,et);case 6:var ut=X$3,dt=Yj;X$3=null,Zj(ot,et,ct),X$3=ut,Yj=dt,X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?ot.parentNode.removeChild(ct):ot.removeChild(ct)):X$3.removeChild(ct.stateNode));break;case 18:X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?Kf(ot.parentNode,ct):ot.nodeType===1&&Kf(ot,ct),bd(ot)):Kf(X$3,ct.stateNode));break;case 4:ut=X$3,dt=Yj,X$3=ct.stateNode.containerInfo,Yj=!0,Zj(ot,et,ct),X$3=ut,Yj=dt;break;case 0:case 11:case 14:case 15:if(!U$2&&(ut=ct.updateQueue,ut!==null&&(ut=ut.lastEffect,ut!==null))){dt=ut=ut.next;do{var ft=dt,zt=ft.destroy;ft=ft.tag,zt!==void 0&&(ft&2||ft&4)&&Nj(ct,et,zt),dt=dt.next}while(dt!==ut)}Zj(ot,et,ct);break;case 1:if(!U$2&&(Mj(ct,et),ut=ct.stateNode,typeof ut.componentWillUnmount=="function"))try{ut.props=ct.memoizedProps,ut.state=ct.memoizedState,ut.componentWillUnmount()}catch(Dt){W$3(ct,et,Dt)}Zj(ot,et,ct);break;case 21:Zj(ot,et,ct);break;case 22:ct.mode&1?(U$2=(ut=U$2)||ct.memoizedState!==null,Zj(ot,et,ct),U$2=ut):Zj(ot,et,ct);break;default:Zj(ot,et,ct)}}function bk(ot){var et=ot.updateQueue;if(et!==null){ot.updateQueue=null;var ct=ot.stateNode;ct===null&&(ct=ot.stateNode=new Lj),et.forEach(function(ut){var dt=ck.bind(null,ot,ut);ct.has(ut)||(ct.add(ut),ut.then(dt,dt))})}}function dk(ot,et){var ct=et.deletions;if(ct!==null)for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];try{var ft=ot,zt=et,Dt=zt;e:for(;Dt!==null;){switch(Dt.tag){case 5:X$3=Dt.stateNode,Yj=!1;break e;case 3:X$3=Dt.stateNode.containerInfo,Yj=!0;break e;case 4:X$3=Dt.stateNode.containerInfo,Yj=!0;break e}Dt=Dt.return}if(X$3===null)throw Error(p$4(160));ak(ft,zt,dt),X$3=null,Yj=!1;var St=dt.alternate;St!==null&&(St.return=null),dt.return=null}catch(Tt){W$3(dt,et,Tt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,ot),et=et.sibling}function ek(ot,et){var ct=ot.alternate,ut=ot.flags;switch(ot.tag){case 0:case 11:case 14:case 15:if(dk(et,ot),fk(ot),ut&4){try{Qj(3,ot,ot.return),Rj(3,ot)}catch(jt){W$3(ot,ot.return,jt)}try{Qj(5,ot,ot.return)}catch(jt){W$3(ot,ot.return,jt)}}break;case 1:dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return);break;case 5:if(dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return),ot.flags&32){var dt=ot.stateNode;try{ob(dt,"")}catch(jt){W$3(ot,ot.return,jt)}}if(ut&4&&(dt=ot.stateNode,dt!=null)){var ft=ot.memoizedProps,zt=ct!==null?ct.memoizedProps:ft,Dt=ot.type,St=ot.updateQueue;if(ot.updateQueue=null,St!==null)try{Dt==="input"&&ft.type==="radio"&&ft.name!=null&&ab$1(dt,ft),vb(Dt,zt);var Tt=vb(Dt,ft);for(zt=0;zt<St.length;zt+=2){var Rt=St[zt],$t=St[zt+1];Rt==="style"?sb(dt,$t):Rt==="dangerouslySetInnerHTML"?nb(dt,$t):Rt==="children"?ob(dt,$t):ta(dt,Rt,$t,Tt)}switch(Dt){case"input":bb(dt,ft);break;case"textarea":ib(dt,ft);break;case"select":var kt=dt._wrapperState.wasMultiple;dt._wrapperState.wasMultiple=!!ft.multiple;var Bt=ft.value;Bt!=null?fb(dt,!!ft.multiple,Bt,!1):kt!==!!ft.multiple&&(ft.defaultValue!=null?fb(dt,!!ft.multiple,ft.defaultValue,!0):fb(dt,!!ft.multiple,ft.multiple?[]:"",!1))}dt[Pf]=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 6:if(dk(et,ot),fk(ot),ut&4){if(ot.stateNode===null)throw Error(p$4(162));dt=ot.stateNode,ft=ot.memoizedProps;try{dt.nodeValue=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 3:if(dk(et,ot),fk(ot),ut&4&&ct!==null&&ct.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(jt){W$3(ot,ot.return,jt)}break;case 4:dk(et,ot),fk(ot);break;case 13:dk(et,ot),fk(ot),dt=ot.child,dt.flags&8192&&(ft=dt.memoizedState!==null,dt.stateNode.isHidden=ft,!ft||dt.alternate!==null&&dt.alternate.memoizedState!==null||(gk=B$3())),ut&4&&bk(ot);break;case 22:if(Rt=ct!==null&&ct.memoizedState!==null,ot.mode&1?(U$2=(Tt=U$2)||Rt,dk(et,ot),U$2=Tt):dk(et,ot),fk(ot),ut&8192){if(Tt=ot.memoizedState!==null,(ot.stateNode.isHidden=Tt)&&!Rt&&ot.mode&1)for(V$2=ot,Rt=ot.child;Rt!==null;){for($t=V$2=Rt;V$2!==null;){switch(kt=V$2,Bt=kt.child,kt.tag){case 0:case 11:case 14:case 15:Qj(4,kt,kt.return);break;case 1:Mj(kt,kt.return);var Ft=kt.stateNode;if(typeof Ft.componentWillUnmount=="function"){ut=kt,ct=kt.return;try{et=ut,Ft.props=et.memoizedProps,Ft.state=et.memoizedState,Ft.componentWillUnmount()}catch(jt){W$3(ut,ct,jt)}}break;case 5:Mj(kt,kt.return);break;case 22:if(kt.memoizedState!==null){hk($t);continue}}Bt!==null?(Bt.return=kt,V$2=Bt):hk($t)}Rt=Rt.sibling}e:for(Rt=null,$t=ot;;){if($t.tag===5){if(Rt===null){Rt=$t;try{dt=$t.stateNode,Tt?(ft=dt.style,typeof ft.setProperty=="function"?ft.setProperty("display","none","important"):ft.display="none"):(Dt=$t.stateNode,St=$t.memoizedProps.style,zt=St!=null&&St.hasOwnProperty("display")?St.display:null,Dt.style.display=rb("display",zt))}catch(jt){W$3(ot,ot.return,jt)}}}else if($t.tag===6){if(Rt===null)try{$t.stateNode.nodeValue=Tt?"":$t.memoizedProps}catch(jt){W$3(ot,ot.return,jt)}}else if(($t.tag!==22&&$t.tag!==23||$t.memoizedState===null||$t===ot)&&$t.child!==null){$t.child.return=$t,$t=$t.child;continue}if($t===ot)break e;for(;$t.sibling===null;){if($t.return===null||$t.return===ot)break e;Rt===$t&&(Rt=null),$t=$t.return}Rt===$t&&(Rt=null),$t.sibling.return=$t.return,$t=$t.sibling}}break;case 19:dk(et,ot),fk(ot),ut&4&&bk(ot);break;case 21:break;default:dk(et,ot),fk(ot)}}function fk(ot){var et=ot.flags;if(et&2){try{e:{for(var ct=ot.return;ct!==null;){if(Uj(ct)){var ut=ct;break e}ct=ct.return}throw Error(p$4(160))}switch(ut.tag){case 5:var dt=ut.stateNode;ut.flags&32&&(ob(dt,""),ut.flags&=-33);var ft=Vj(ot);Xj(ot,ft,dt);break;case 3:case 4:var zt=ut.stateNode.containerInfo,Dt=Vj(ot);Wj(ot,Dt,zt);break;default:throw Error(p$4(161))}}catch(St){W$3(ot,ot.return,St)}ot.flags&=-3}et&4096&&(ot.flags&=-4097)}function ik(ot,et,ct){V$2=ot,jk(ot)}function jk(ot,et,ct){for(var ut=(ot.mode&1)!==0;V$2!==null;){var dt=V$2,ft=dt.child;if(dt.tag===22&&ut){var zt=dt.memoizedState!==null||Kj;if(!zt){var Dt=dt.alternate,St=Dt!==null&&Dt.memoizedState!==null||U$2;Dt=Kj;var Tt=U$2;if(Kj=zt,(U$2=St)&&!Tt)for(V$2=dt;V$2!==null;)zt=V$2,St=zt.child,zt.tag===22&&zt.memoizedState!==null?kk(dt):St!==null?(St.return=zt,V$2=St):kk(dt);for(;ft!==null;)V$2=ft,jk(ft),ft=ft.sibling;V$2=dt,Kj=Dt,U$2=Tt}lk(ot)}else dt.subtreeFlags&8772&&ft!==null?(ft.return=dt,V$2=ft):lk(ot)}}function lk(ot){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var ct=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$2||Rj(5,et);break;case 1:var ut=et.stateNode;if(et.flags&4&&!U$2)if(ct===null)ut.componentDidMount();else{var dt=et.elementType===et.type?ct.memoizedProps:Lg(et.type,ct.memoizedProps);ut.componentDidUpdate(dt,ct.memoizedState,ut.__reactInternalSnapshotBeforeUpdate)}var ft=et.updateQueue;ft!==null&&ih(et,ft,ut);break;case 3:var zt=et.updateQueue;if(zt!==null){if(ct=null,et.child!==null)switch(et.child.tag){case 5:ct=et.child.stateNode;break;case 1:ct=et.child.stateNode}ih(et,zt,ct)}break;case 5:var Dt=et.stateNode;if(ct===null&&et.flags&4){ct=Dt;var St=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":St.autoFocus&&ct.focus();break;case"img":St.src&&(ct.src=St.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var Tt=et.alternate;if(Tt!==null){var Rt=Tt.memoizedState;if(Rt!==null){var $t=Rt.dehydrated;$t!==null&&bd($t)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$4(163))}U$2||et.flags&512&&Sj(et)}catch(kt){W$3(et,et.return,kt)}}if(et===ot){V$2=null;break}if(ct=et.sibling,ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function hk(ot){for(;V$2!==null;){var et=V$2;if(et===ot){V$2=null;break}var ct=et.sibling;if(ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function kk(ot){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var ct=et.return;try{Rj(4,et)}catch(St){W$3(et,ct,St)}break;case 1:var ut=et.stateNode;if(typeof ut.componentDidMount=="function"){var dt=et.return;try{ut.componentDidMount()}catch(St){W$3(et,dt,St)}}var ft=et.return;try{Sj(et)}catch(St){W$3(et,ft,St)}break;case 5:var zt=et.return;try{Sj(et)}catch(St){W$3(et,zt,St)}}}catch(St){W$3(et,et.return,St)}if(et===ot){V$2=null;break}var Dt=et.sibling;if(Dt!==null){Dt.return=et.return,V$2=Dt;break}V$2=et.return}}var mk=Math.ceil,nk=ua$1.ReactCurrentDispatcher,ok$2=ua$1.ReactCurrentOwner,pk=ua$1.ReactCurrentBatchConfig,K$2=0,R$2=null,Y=null,Z$3=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk$1=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$2(){return K$2&6?B$3():Bk!==-1?Bk:Bk=B$3()}function lh(ot){return ot.mode&1?K$2&2&&Z$3!==0?Z$3&-Z$3:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(ot=C$2,ot!==0||(ot=window.event,ot=ot===void 0?16:jd(ot.type)),ot):1}function mh(ot,et,ct,ut){if(50<zk)throw zk=0,Ak=null,Error(p$4(185));Ac(ot,ct,ut),(!(K$2&2)||ot!==R$2)&&(ot===R$2&&(!(K$2&2)&&(rk|=ct),T$2===4&&Dk(ot,Z$3)),Ek(ot,ut),ct===1&&K$2===0&&!(et.mode&1)&&(Hj=B$3()+500,fg&&jg()))}function Ek(ot,et){var ct=ot.callbackNode;wc$1(ot,et);var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)ct!==null&&bc(ct),ot.callbackNode=null,ot.callbackPriority=0;else if(et=ut&-ut,ot.callbackPriority!==et){if(ct!=null&&bc(ct),et===1)ot.tag===0?ig(Fk.bind(null,ot)):hg(Fk.bind(null,ot)),Jf(function(){!(K$2&6)&&jg()}),ct=null;else{switch(Dc$1(ut)){case 1:ct=fc;break;case 4:ct=gc;break;case 16:ct=hc;break;case 536870912:ct=jc;break;default:ct=hc}ct=Gk(ct,Hk.bind(null,ot))}ot.callbackPriority=et,ot.callbackNode=ct}}function Hk(ot,et){if(Bk=-1,Ck=0,K$2&6)throw Error(p$4(327));var ct=ot.callbackNode;if(Ik()&&ot.callbackNode!==ct)return null;var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)return null;if(ut&30||ut&ot.expiredLanes||et)et=Jk(ot,ut);else{et=ut;var dt=K$2;K$2|=2;var ft=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Hj=B$3()+500,Lk(ot,et));do try{Mk();break}catch(Dt){Nk(ot,Dt)}while(!0);Qg(),nk.current=ft,K$2=dt,Y!==null?et=0:(R$2=null,Z$3=0,et=T$2)}if(et!==0){if(et===2&&(dt=xc(ot),dt!==0&&(ut=dt,et=Ok(ot,dt))),et===1)throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;if(et===6)Dk(ot,ut);else{if(dt=ot.current.alternate,!(ut&30)&&!Pk(dt)&&(et=Jk(ot,ut),et===2&&(ft=xc(ot),ft!==0&&(ut=ft,et=Ok(ot,ft))),et===1))throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;switch(ot.finishedWork=dt,ot.finishedLanes=ut,et){case 0:case 1:throw Error(p$4(345));case 2:Qk(ot,uk$1,vk);break;case 3:if(Dk(ot,ut),(ut&130023424)===ut&&(et=gk+500-B$3(),10<et)){if(uc(ot,0)!==0)break;if(dt=ot.suspendedLanes,(dt&ut)!==ut){L$2(),ot.pingedLanes|=ot.suspendedLanes&dt;break}ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),et);break}Qk(ot,uk$1,vk);break;case 4:if(Dk(ot,ut),(ut&4194240)===ut)break;for(et=ot.eventTimes,dt=-1;0<ut;){var zt=31-oc(ut);ft=1<<zt,zt=et[zt],zt>dt&&(dt=zt),ut&=~ft}if(ut=dt,ut=B$3()-ut,ut=(120>ut?120:480>ut?480:1080>ut?1080:1920>ut?1920:3e3>ut?3e3:4320>ut?4320:1960*mk(ut/1960))-ut,10<ut){ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),ut);break}Qk(ot,uk$1,vk);break;case 5:Qk(ot,uk$1,vk);break;default:throw Error(p$4(329))}}}return Ek(ot,B$3()),ot.callbackNode===ct?Hk.bind(null,ot):null}function Ok(ot,et){var ct=tk;return ot.current.memoizedState.isDehydrated&&(Lk(ot,et).flags|=256),ot=Jk(ot,et),ot!==2&&(et=uk$1,uk$1=ct,et!==null&&Gj(et)),ot}function Gj(ot){uk$1===null?uk$1=ot:uk$1.push.apply(uk$1,ot)}function Pk(ot){for(var et=ot;;){if(et.flags&16384){var ct=et.updateQueue;if(ct!==null&&(ct=ct.stores,ct!==null))for(var ut=0;ut<ct.length;ut++){var dt=ct[ut],ft=dt.getSnapshot;dt=dt.value;try{if(!He(ft(),dt))return!1}catch{return!1}}}if(ct=et.child,et.subtreeFlags&16384&&ct!==null)ct.return=et,et=ct;else{if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(ot,et){for(et&=~sk,et&=~rk,ot.suspendedLanes|=et,ot.pingedLanes&=~et,ot=ot.expirationTimes;0<et;){var ct=31-oc(et),ut=1<<ct;ot[ct]=-1,et&=~ut}}function Fk(ot){if(K$2&6)throw Error(p$4(327));Ik();var et=uc(ot,0);if(!(et&1))return Ek(ot,B$3()),null;var ct=Jk(ot,et);if(ot.tag!==0&&ct===2){var ut=xc(ot);ut!==0&&(et=ut,ct=Ok(ot,ut))}if(ct===1)throw ct=qk,Lk(ot,0),Dk(ot,et),Ek(ot,B$3()),ct;if(ct===6)throw Error(p$4(345));return ot.finishedWork=ot.current.alternate,ot.finishedLanes=et,Qk(ot,uk$1,vk),Ek(ot,B$3()),null}function Rk(ot,et){var ct=K$2;K$2|=1;try{return ot(et)}finally{K$2=ct,K$2===0&&(Hj=B$3()+500,fg&&jg())}}function Sk(ot){xk!==null&&xk.tag===0&&!(K$2&6)&&Ik();var et=K$2;K$2|=1;var ct=pk.transition,ut=C$2;try{if(pk.transition=null,C$2=1,ot)return ot()}finally{C$2=ut,pk.transition=ct,K$2=et,!(K$2&6)&&jg()}}function Ij(){gj=fj.current,E$2(fj)}function Lk(ot,et){ot.finishedWork=null,ot.finishedLanes=0;var ct=ot.timeoutHandle;if(ct!==-1&&(ot.timeoutHandle=-1,Gf(ct)),Y!==null)for(ct=Y.return;ct!==null;){var ut=ct;switch(wg(ut),ut.tag){case 1:ut=ut.type.childContextTypes,ut!=null&&$f();break;case 3:Jh(),E$2(Wf),E$2(H$2),Oh();break;case 5:Lh(ut);break;case 4:Jh();break;case 13:E$2(M$2);break;case 19:E$2(M$2);break;case 10:Rg(ut.type._context);break;case 22:case 23:Ij()}ct=ct.return}if(R$2=ot,Y=ot=wh(ot.current,null),Z$3=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk$1=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(ct=Wg[et],ut=ct.interleaved,ut!==null){ct.interleaved=null;var dt=ut.next,ft=ct.pending;if(ft!==null){var zt=ft.next;ft.next=dt,ut.next=zt}ct.pending=ut}Wg=null}return ot}function Nk(ot,et){do{var ct=Y;try{if(Qg(),Ph.current=ai,Sh){for(var ut=N$3.memoizedState;ut!==null;){var dt=ut.queue;dt!==null&&(dt.pending=null),ut=ut.next}Sh=!1}if(Rh=0,P$2=O$1=N$3=null,Th=!1,Uh=0,ok$2.current=null,ct===null||ct.return===null){T$2=1,qk=et,Y=null;break}e:{var ft=ot,zt=ct.return,Dt=ct,St=et;if(et=Z$3,Dt.flags|=32768,St!==null&&typeof St=="object"&&typeof St.then=="function"){var Tt=St,Rt=Dt,$t=Rt.tag;if(!(Rt.mode&1)&&($t===0||$t===11||$t===15)){var kt=Rt.alternate;kt?(Rt.updateQueue=kt.updateQueue,Rt.memoizedState=kt.memoizedState,Rt.lanes=kt.lanes):(Rt.updateQueue=null,Rt.memoizedState=null)}var Bt=Vi(zt);if(Bt!==null){Bt.flags&=-257,Wi(Bt,zt,Dt,ft,et),Bt.mode&1&&Ti(ft,Tt,et),et=Bt,St=Tt;var Ft=et.updateQueue;if(Ft===null){var jt=new Set;jt.add(St),et.updateQueue=jt}else Ft.add(St);break e}else{if(!(et&1)){Ti(ft,Tt,et),uj();break e}St=Error(p$4(426))}}else if(I$2&&Dt.mode&1){var Kt=Vi(zt);if(Kt!==null){!(Kt.flags&65536)&&(Kt.flags|=256),Wi(Kt,zt,Dt,ft,et),Jg(Ki(St,Dt));break e}}ft=St=Ki(St,Dt),T$2!==4&&(T$2=2),tk===null?tk=[ft]:tk.push(ft),ft=zt;do{switch(ft.tag){case 3:ft.flags|=65536,et&=-et,ft.lanes|=et;var Yt=Oi(ft,St,et);fh(ft,Yt);break e;case 1:Dt=St;var Ut=ft.type,Jt=ft.stateNode;if(!(ft.flags&128)&&(typeof Ut.getDerivedStateFromError=="function"||Jt!==null&&typeof Jt.componentDidCatch=="function"&&(Si===null||!Si.has(Jt)))){ft.flags|=65536,et&=-et,ft.lanes|=et;var Ht=Ri(ft,Dt,et);fh(ft,Ht);break e}}ft=ft.return}while(ft!==null)}Tk(ct)}catch(e0){et=e0,Y===ct&&ct!==null&&(Y=ct=ct.return);continue}break}while(!0)}function Kk(){var ot=nk.current;return nk.current=ai,ot===null?ai:ot}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R$2===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$2,Z$3)}function Jk(ot,et){var ct=K$2;K$2|=2;var ut=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Lk(ot,et));do try{Uk();break}catch(dt){Nk(ot,dt)}while(!0);if(Qg(),K$2=ct,nk.current=ut,Y!==null)throw Error(p$4(261));return R$2=null,Z$3=0,T$2}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(ot){var et=Wk(ot.alternate,ot,gj);ot.memoizedProps=ot.pendingProps,et===null?Tk(ot):Y=et,ok$2.current=null}function Tk(ot){var et=ot;do{var ct=et.alternate;if(ot=et.return,et.flags&32768){if(ct=Jj(ct,et),ct!==null){ct.flags&=32767,Y=ct;return}if(ot!==null)ot.flags|=32768,ot.subtreeFlags=0,ot.deletions=null;else{T$2=6,Y=null;return}}else if(ct=Fj(ct,et,gj),ct!==null){Y=ct;return}if(et=et.sibling,et!==null){Y=et;return}Y=et=ot}while(et!==null);T$2===0&&(T$2=5)}function Qk(ot,et,ct){var ut=C$2,dt=pk.transition;try{pk.transition=null,C$2=1,Xk(ot,et,ct,ut)}finally{pk.transition=dt,C$2=ut}return null}function Xk(ot,et,ct,ut){do Ik();while(xk!==null);if(K$2&6)throw Error(p$4(327));ct=ot.finishedWork;var dt=ot.finishedLanes;if(ct===null)return null;if(ot.finishedWork=null,ot.finishedLanes=0,ct===ot.current)throw Error(p$4(177));ot.callbackNode=null,ot.callbackPriority=0;var ft=ct.lanes|ct.childLanes;if(Bc(ot,ft),ot===R$2&&(Y=R$2=null,Z$3=0),!(ct.subtreeFlags&2064)&&!(ct.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),ft=(ct.flags&15990)!==0,ct.subtreeFlags&15990||ft){ft=pk.transition,pk.transition=null;var zt=C$2;C$2=1;var Dt=K$2;K$2|=4,ok$2.current=null,Pj(ot,ct),ek(ct,ot),Oe$1(Df),dd=!!Cf,Df=Cf=null,ot.current=ct,ik(ct),dc(),K$2=Dt,C$2=zt,pk.transition=ft}else ot.current=ct;if(wk&&(wk=!1,xk=ot,yk=dt),ft=ot.pendingLanes,ft===0&&(Si=null),mc(ct.stateNode),Ek(ot,B$3()),et!==null)for(ut=ot.onRecoverableError,ct=0;ct<et.length;ct++)dt=et[ct],ut(dt.value,{componentStack:dt.stack,digest:dt.digest});if(Pi)throw Pi=!1,ot=Qi,Qi=null,ot;return yk&1&&ot.tag!==0&&Ik(),ft=ot.pendingLanes,ft&1?ot===Ak?zk++:(zk=0,Ak=ot):zk=0,jg(),null}function Ik(){if(xk!==null){var ot=Dc$1(yk),et=pk.transition,ct=C$2;try{if(pk.transition=null,C$2=16>ot?16:ot,xk===null)var ut=!1;else{if(ot=xk,xk=null,yk=0,K$2&6)throw Error(p$4(331));var dt=K$2;for(K$2|=4,V$2=ot.current;V$2!==null;){var ft=V$2,zt=ft.child;if(V$2.flags&16){var Dt=ft.deletions;if(Dt!==null){for(var St=0;St<Dt.length;St++){var Tt=Dt[St];for(V$2=Tt;V$2!==null;){var Rt=V$2;switch(Rt.tag){case 0:case 11:case 15:Qj(8,Rt,ft)}var $t=Rt.child;if($t!==null)$t.return=Rt,V$2=$t;else for(;V$2!==null;){Rt=V$2;var kt=Rt.sibling,Bt=Rt.return;if(Tj(Rt),Rt===Tt){V$2=null;break}if(kt!==null){kt.return=Bt,V$2=kt;break}V$2=Bt}}}var Ft=ft.alternate;if(Ft!==null){var jt=Ft.child;if(jt!==null){Ft.child=null;do{var Kt=jt.sibling;jt.sibling=null,jt=Kt}while(jt!==null)}}V$2=ft}}if(ft.subtreeFlags&2064&&zt!==null)zt.return=ft,V$2=zt;else e:for(;V$2!==null;){if(ft=V$2,ft.flags&2048)switch(ft.tag){case 0:case 11:case 15:Qj(9,ft,ft.return)}var Yt=ft.sibling;if(Yt!==null){Yt.return=ft.return,V$2=Yt;break e}V$2=ft.return}}var Ut=ot.current;for(V$2=Ut;V$2!==null;){zt=V$2;var Jt=zt.child;if(zt.subtreeFlags&2064&&Jt!==null)Jt.return=zt,V$2=Jt;else e:for(zt=Ut;V$2!==null;){if(Dt=V$2,Dt.flags&2048)try{switch(Dt.tag){case 0:case 11:case 15:Rj(9,Dt)}}catch(e0){W$3(Dt,Dt.return,e0)}if(Dt===zt){V$2=null;break e}var Ht=Dt.sibling;if(Ht!==null){Ht.return=Dt.return,V$2=Ht;break e}V$2=Dt.return}}if(K$2=dt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,ot)}catch{}ut=!0}return ut}finally{C$2=ct,pk.transition=et}}return!1}function Yk(ot,et,ct){et=Ki(ct,et),et=Oi(ot,et,1),ot=dh(ot,et,1),et=L$2(),ot!==null&&(Ac(ot,1,et),Ek(ot,et))}function W$3(ot,et,ct){if(ot.tag===3)Yk(ot,ot,ct);else for(;et!==null;){if(et.tag===3){Yk(et,ot,ct);break}else if(et.tag===1){var ut=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof ut.componentDidCatch=="function"&&(Si===null||!Si.has(ut))){ot=Ki(ct,ot),ot=Ri(et,ot,1),et=dh(et,ot,1),ot=L$2(),et!==null&&(Ac(et,1,ot),Ek(et,ot));break}}et=et.return}}function Ui(ot,et,ct){var ut=ot.pingCache;ut!==null&&ut.delete(et),et=L$2(),ot.pingedLanes|=ot.suspendedLanes&ct,R$2===ot&&(Z$3&ct)===ct&&(T$2===4||T$2===3&&(Z$3&130023424)===Z$3&&500>B$3()-gk?Lk(ot,0):sk|=ct),Ek(ot,et)}function Zk(ot,et){et===0&&(ot.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var ct=L$2();ot=Zg(ot,et),ot!==null&&(Ac(ot,et,ct),Ek(ot,ct))}function vj(ot){var et=ot.memoizedState,ct=0;et!==null&&(ct=et.retryLane),Zk(ot,ct)}function ck(ot,et){var ct=0;switch(ot.tag){case 13:var ut=ot.stateNode,dt=ot.memoizedState;dt!==null&&(ct=dt.retryLane);break;case 19:ut=ot.stateNode;break;default:throw Error(p$4(314))}ut!==null&&ut.delete(et),Zk(ot,ct)}var Wk;Wk=function(ot,et,ct){if(ot!==null)if(ot.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(ot.lanes&ct)&&!(et.flags&128))return Ug=!1,zj(ot,et,ct);Ug=!!(ot.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng$1,et.index);switch(et.lanes=0,et.tag){case 2:var ut=et.type;jj(ot,et),ot=et.pendingProps;var dt=Yf(et,H$2.current);Tg(et,ct),dt=Xh(null,et,ut,ot,dt,ct);var ft=bi();return et.flags|=1,typeof dt=="object"&&dt!==null&&typeof dt.render=="function"&&dt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(ut)?(ft=!0,cg(et)):ft=!1,et.memoizedState=dt.state!==null&&dt.state!==void 0?dt.state:null,ah(et),dt.updater=nh,et.stateNode=dt,dt._reactInternals=et,rh(et,ut,ot,ct),et=kj(null,et,ut,!0,ft,ct)):(et.tag=0,I$2&&ft&&vg(et),Yi(null,et,dt,ct),et=et.child),et;case 16:ut=et.elementType;e:{switch(jj(ot,et),ot=et.pendingProps,dt=ut._init,ut=dt(ut._payload),et.type=ut,dt=et.tag=$k(ut),ot=Lg(ut,ot),dt){case 0:et=dj(null,et,ut,ot,ct);break e;case 1:et=ij(null,et,ut,ot,ct);break e;case 11:et=Zi(null,et,ut,ot,ct);break e;case 14:et=aj(null,et,ut,Lg(ut.type,ot),ct);break e}throw Error(p$4(306,ut,""))}return et;case 0:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),dj(ot,et,ut,dt,ct);case 1:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),ij(ot,et,ut,dt,ct);case 3:e:{if(lj(et),ot===null)throw Error(p$4(387));ut=et.pendingProps,ft=et.memoizedState,dt=ft.element,bh(ot,et),gh(et,ut,null,ct);var zt=et.memoizedState;if(ut=zt.element,ft.isDehydrated)if(ft={element:ut,isDehydrated:!1,cache:zt.cache,pendingSuspenseBoundaries:zt.pendingSuspenseBoundaries,transitions:zt.transitions},et.updateQueue.baseState=ft,et.memoizedState=ft,et.flags&256){dt=Ki(Error(p$4(423)),et),et=mj(ot,et,ut,ct,dt);break e}else if(ut!==dt){dt=Ki(Error(p$4(424)),et),et=mj(ot,et,ut,ct,dt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,ct=Ch(et,null,ut,ct),et.child=ct;ct;)ct.flags=ct.flags&-3|4096,ct=ct.sibling;else{if(Ig(),ut===dt){et=$i(ot,et,ct);break e}Yi(ot,et,ut,ct)}et=et.child}return et;case 5:return Kh(et),ot===null&&Eg(et),ut=et.type,dt=et.pendingProps,ft=ot!==null?ot.memoizedProps:null,zt=dt.children,Ef(ut,dt)?zt=null:ft!==null&&Ef(ut,ft)&&(et.flags|=32),hj(ot,et),Yi(ot,et,zt,ct),et.child;case 6:return ot===null&&Eg(et),null;case 13:return pj(ot,et,ct);case 4:return Ih(et,et.stateNode.containerInfo),ut=et.pendingProps,ot===null?et.child=Bh(et,null,ut,ct):Yi(ot,et,ut,ct),et.child;case 11:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),Zi(ot,et,ut,dt,ct);case 7:return Yi(ot,et,et.pendingProps,ct),et.child;case 8:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 12:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 10:e:{if(ut=et.type._context,dt=et.pendingProps,ft=et.memoizedProps,zt=dt.value,G$3(Mg,ut._currentValue),ut._currentValue=zt,ft!==null)if(He(ft.value,zt)){if(ft.children===dt.children&&!Wf.current){et=$i(ot,et,ct);break e}}else for(ft=et.child,ft!==null&&(ft.return=et);ft!==null;){var Dt=ft.dependencies;if(Dt!==null){zt=ft.child;for(var St=Dt.firstContext;St!==null;){if(St.context===ut){if(ft.tag===1){St=ch$1(-1,ct&-ct),St.tag=2;var Tt=ft.updateQueue;if(Tt!==null){Tt=Tt.shared;var Rt=Tt.pending;Rt===null?St.next=St:(St.next=Rt.next,Rt.next=St),Tt.pending=St}}ft.lanes|=ct,St=ft.alternate,St!==null&&(St.lanes|=ct),Sg(ft.return,ct,et),Dt.lanes|=ct;break}St=St.next}}else if(ft.tag===10)zt=ft.type===et.type?null:ft.child;else if(ft.tag===18){if(zt=ft.return,zt===null)throw Error(p$4(341));zt.lanes|=ct,Dt=zt.alternate,Dt!==null&&(Dt.lanes|=ct),Sg(zt,ct,et),zt=ft.sibling}else zt=ft.child;if(zt!==null)zt.return=ft;else for(zt=ft;zt!==null;){if(zt===et){zt=null;break}if(ft=zt.sibling,ft!==null){ft.return=zt.return,zt=ft;break}zt=zt.return}ft=zt}Yi(ot,et,dt.children,ct),et=et.child}return et;case 9:return dt=et.type,ut=et.pendingProps.children,Tg(et,ct),dt=Vg(dt),ut=ut(dt),et.flags|=1,Yi(ot,et,ut,ct),et.child;case 14:return ut=et.type,dt=Lg(ut,et.pendingProps),dt=Lg(ut.type,dt),aj(ot,et,ut,dt,ct);case 15:return cj(ot,et,et.type,et.pendingProps,ct);case 17:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),jj(ot,et),et.tag=1,Zf(ut)?(ot=!0,cg(et)):ot=!1,Tg(et,ct),ph(et,ut,dt),rh(et,ut,dt,ct),kj(null,et,ut,!0,ot,ct);case 19:return yj(ot,et,ct);case 22:return ej(ot,et,ct)}throw Error(p$4(156,et.tag))};function Gk(ot,et){return ac(ot,et)}function al(ot,et,ct,ut){this.tag=ot,this.key=ct,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ut,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(ot,et,ct,ut){return new al(ot,et,ct,ut)}function bj(ot){return ot=ot.prototype,!(!ot||!ot.isReactComponent)}function $k(ot){if(typeof ot=="function")return bj(ot)?1:0;if(ot!=null){if(ot=ot.$$typeof,ot===Da)return 11;if(ot===Ga)return 14}return 2}function wh(ot,et){var ct=ot.alternate;return ct===null?(ct=Bg(ot.tag,et,ot.key,ot.mode),ct.elementType=ot.elementType,ct.type=ot.type,ct.stateNode=ot.stateNode,ct.alternate=ot,ot.alternate=ct):(ct.pendingProps=et,ct.type=ot.type,ct.flags=0,ct.subtreeFlags=0,ct.deletions=null),ct.flags=ot.flags&14680064,ct.childLanes=ot.childLanes,ct.lanes=ot.lanes,ct.child=ot.child,ct.memoizedProps=ot.memoizedProps,ct.memoizedState=ot.memoizedState,ct.updateQueue=ot.updateQueue,et=ot.dependencies,ct.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},ct.sibling=ot.sibling,ct.index=ot.index,ct.ref=ot.ref,ct}function yh(ot,et,ct,ut,dt,ft){var zt=2;if(ut=ot,typeof ot=="function")bj(ot)&&(zt=1);else if(typeof ot=="string")zt=5;else e:switch(ot){case ya:return Ah(ct.children,dt,ft,et);case za:zt=8,dt|=8;break;case Aa:return ot=Bg(12,ct,et,dt|2),ot.elementType=Aa,ot.lanes=ft,ot;case Ea:return ot=Bg(13,ct,et,dt),ot.elementType=Ea,ot.lanes=ft,ot;case Fa:return ot=Bg(19,ct,et,dt),ot.elementType=Fa,ot.lanes=ft,ot;case Ia:return qj(ct,dt,ft,et);default:if(typeof ot=="object"&&ot!==null)switch(ot.$$typeof){case Ba:zt=10;break e;case Ca:zt=9;break e;case Da:zt=11;break e;case Ga:zt=14;break e;case Ha:zt=16,ut=null;break e}throw Error(p$4(130,ot==null?ot:typeof ot,""))}return et=Bg(zt,ct,et,dt),et.elementType=ot,et.type=ut,et.lanes=ft,et}function Ah(ot,et,ct,ut){return ot=Bg(7,ot,ut,et),ot.lanes=ct,ot}function qj(ot,et,ct,ut){return ot=Bg(22,ot,ut,et),ot.elementType=Ia,ot.lanes=ct,ot.stateNode={isHidden:!1},ot}function xh(ot,et,ct){return ot=Bg(6,ot,null,et),ot.lanes=ct,ot}function zh(ot,et,ct){return et=Bg(4,ot.children!==null?ot.children:[],ot.key,et),et.lanes=ct,et.stateNode={containerInfo:ot.containerInfo,pendingChildren:null,implementation:ot.implementation},et}function bl(ot,et,ct,ut,dt){this.tag=et,this.containerInfo=ot,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=ut,this.onRecoverableError=dt,this.mutableSourceEagerHydrationData=null}function cl$1(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=new bl(ot,et,ct,Dt,St),et===1?(et=1,ft===!0&&(et|=8)):et=0,ft=Bg(3,null,null,et),ot.current=ft,ft.stateNode=ot,ft.memoizedState={element:ut,isDehydrated:ct,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ft),ot}function dl(ot,et,ct){var ut=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:ut==null?null:""+ut,children:ot,containerInfo:et,implementation:ct}}function el$1(ot){if(!ot)return Vf;ot=ot._reactInternals;e:{if(Vb(ot)!==ot||ot.tag!==1)throw Error(p$4(170));var et=ot;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$4(171))}if(ot.tag===1){var ct=ot.type;if(Zf(ct))return bg(ot,ct,et)}return et}function fl(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=cl$1(ct,ut,!0,ot,dt,ft,zt,Dt,St),ot.context=el$1(null),ct=ot.current,ut=L$2(),dt=lh(ct),ft=ch$1(ut,dt),ft.callback=et??null,dh(ct,ft,dt),ot.current.lanes=dt,Ac(ot,dt,ut),Ek(ot,ut),ot}function gl(ot,et,ct,ut){var dt=et.current,ft=L$2(),zt=lh(dt);return ct=el$1(ct),et.context===null?et.context=ct:et.pendingContext=ct,et=ch$1(ft,zt),et.payload={element:ot},ut=ut===void 0?null:ut,ut!==null&&(et.callback=ut),ot=dh(dt,et,zt),ot!==null&&(mh(ot,dt,zt,ft),eh(ot,dt,zt)),zt}function hl(ot){if(ot=ot.current,!ot.child)return null;switch(ot.child.tag){case 5:return ot.child.stateNode;default:return ot.child.stateNode}}function il(ot,et){if(ot=ot.memoizedState,ot!==null&&ot.dehydrated!==null){var ct=ot.retryLane;ot.retryLane=ct!==0&&ct<et?ct:et}}function jl(ot,et){il(ot,et),(ot=ot.alternate)&&il(ot,et)}var ll=typeof reportError=="function"?reportError:function(ot){console.error(ot)};function ml(ot){this._internalRoot=ot}nl.prototype.render=ml.prototype.render=function(ot){var et=this._internalRoot;if(et===null)throw Error(p$4(409));gl(ot,et,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var ot=this._internalRoot;if(ot!==null){this._internalRoot=null;var et=ot.containerInfo;Sk(function(){gl(null,ot,null,null)}),et[uf]=null}};function nl(ot){this._internalRoot=ot}nl.prototype.unstable_scheduleHydration=function(ot){if(ot){var et=Hc();ot={blockedOn:null,target:ot,priority:et};for(var ct=0;ct<Qc.length&&et!==0&&et<Qc[ct].priority;ct++);Qc.splice(ct,0,ot),ct===0&&Vc(ot)}};function ol(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11)}function pl(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11&&(ot.nodeType!==8||ot.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(ot,et,ct,ut,dt){if(dt){if(typeof ut=="function"){var ft=ut;ut=function(){var Tt=hl(zt);ft.call(Tt)}}var zt=fl(et,ut,ot,0,null,!1,!1,"",ql);return ot._reactRootContainer=zt,ot[uf]=zt.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(),zt}for(;dt=ot.lastChild;)ot.removeChild(dt);if(typeof ut=="function"){var Dt=ut;ut=function(){var Tt=hl(St);Dt.call(Tt)}}var St=cl$1(ot,0,!1,null,null,!1,!1,"",ql);return ot._reactRootContainer=St,ot[uf]=St.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(function(){gl(et,St,ct,ut)}),St}function sl(ot,et,ct,ut,dt){var ft=ct._reactRootContainer;if(ft){var zt=ft;if(typeof dt=="function"){var Dt=dt;dt=function(){var St=hl(zt);Dt.call(St)}}gl(et,zt,ot,dt)}else zt=rl(ct,et,ot,dt,ut);return hl(zt)}Ec=function(ot){switch(ot.tag){case 3:var et=ot.stateNode;if(et.current.memoizedState.isDehydrated){var ct=tc(et.pendingLanes);ct!==0&&(Cc(et,ct|1),Ek(et,B$3()),!(K$2&6)&&(Hj=B$3()+500,jg()))}break;case 13:Sk(function(){var ut=Zg(ot,1);if(ut!==null){var dt=L$2();mh(ut,ot,1,dt)}}),jl(ot,1)}},Fc=function(ot){if(ot.tag===13){var et=Zg(ot,134217728);if(et!==null){var ct=L$2();mh(et,ot,134217728,ct)}jl(ot,134217728)}},Gc=function(ot){if(ot.tag===13){var et=lh(ot),ct=Zg(ot,et);if(ct!==null){var ut=L$2();mh(ct,ot,et,ut)}jl(ot,et)}},Hc=function(){return C$2},Ic=function(ot,et){var ct=C$2;try{return C$2=ot,et()}finally{C$2=ct}},yb=function(ot,et,ct){switch(et){case"input":if(bb(ot,ct),et=ct.name,ct.type==="radio"&&et!=null){for(ct=ot;ct.parentNode;)ct=ct.parentNode;for(ct=ct.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<ct.length;et++){var ut=ct[et];if(ut!==ot&&ut.form===ot.form){var dt=Db(ut);if(!dt)throw Error(p$4(90));Wa(ut),bb(ut,dt)}}}break;case"textarea":ib(ot,ct);break;case"select":et=ct.value,et!=null&&fb(ot,!!ct.multiple,et,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(ot){return ot=Zb(ot),ot===null?null:ot.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,reactDom_production_min.createPortal=function(ot,et){var ct=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$4(200));return dl(ot,et,null,ct)},reactDom_production_min.createRoot=function(ot,et){if(!ol(ot))throw Error(p$4(299));var ct=!1,ut="",dt=ll;return et!=null&&(et.unstable_strictMode===!0&&(ct=!0),et.identifierPrefix!==void 0&&(ut=et.identifierPrefix),et.onRecoverableError!==void 0&&(dt=et.onRecoverableError)),et=cl$1(ot,1,!1,null,null,ct,!1,ut,dt),ot[uf]=et.current,sf(ot.nodeType===8?ot.parentNode:ot),new ml(et)},reactDom_production_min.findDOMNode=function(ot){if(ot==null)return null;if(ot.nodeType===1)return ot;var et=ot._reactInternals;if(et===void 0)throw typeof ot.render=="function"?Error(p$4(188)):(ot=Object.keys(ot).join(","),Error(p$4(268,ot)));return ot=Zb(et),ot=ot===null?null:ot.stateNode,ot},reactDom_production_min.flushSync=function(ot){return Sk(ot)},reactDom_production_min.hydrate=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!0,ct)},reactDom_production_min.hydrateRoot=function(ot,et,ct){if(!ol(ot))throw Error(p$4(405));var ut=ct!=null&&ct.hydratedSources||null,dt=!1,ft="",zt=ll;if(ct!=null&&(ct.unstable_strictMode===!0&&(dt=!0),ct.identifierPrefix!==void 0&&(ft=ct.identifierPrefix),ct.onRecoverableError!==void 0&&(zt=ct.onRecoverableError)),et=fl(et,null,ot,1,ct??null,dt,!1,ft,zt),ot[uf]=et.current,sf(ot),ut)for(ot=0;ot<ut.length;ot++)ct=ut[ot],dt=ct._getVersion,dt=dt(ct._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[ct,dt]:et.mutableSourceEagerHydrationData.push(ct,dt);return new nl(et)},reactDom_production_min.render=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!1,ct)},reactDom_production_min.unmountComponentAtNode=function(ot){if(!pl(ot))throw Error(p$4(40));return ot._reactRootContainer?(Sk(function(){sl(null,null,ot,!1,function(){ot._reactRootContainer=null,ot[uf]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=Rk,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(ot,et,ct,ut){if(!pl(ct))throw Error(p$4(200));if(ot==null||ot._reactInternals===void 0)throw Error(p$4(38));return sl(ot,et,ct,!1,ut)},reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ot){console.error(ot)}}checkDCE(),reactDom.exports=reactDom_production_min,reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);class PromiseDelegate{constructor(){vr(this,"promise");vr(this,"resolveInternal");vr(this,"rejectInternal");this.promise=new Promise((et,ct)=>{this.resolveInternal=et,this.rejectInternal=ct})}resolve(et){this.resolveInternal(et)}reject(et){this.rejectInternal(et)}}const workerBlobUrlCache=new Map;function getWorkerBlobUrl(ot,et=!1){const ct=ot.toString(),ut=workerBlobUrlCache.get(ct);if(ut)return console.debug(`Using a cached worker blob URL for ${ct}`),ut;const dt=et?`import "${ct}";`:`importScripts("${ct}");`,ft=new Blob([dt],{type:et?"text/javascript;type=module":"text/javascript"}),zt=URL.createObjectURL(ft);return workerBlobUrlCache.set(ct,zt),zt}function isSameOrigin(ot){return ot.origin===window.location.origin}class CrossOriginWorkerMaker{constructor(et,{shared:ct,...ut}){vr(this,"worker");if(isSameOrigin(et))console.debug(`Loading a worker script from the same origin: ${et}`),this.worker=ct?new SharedWorker(et,ut):new Worker(et,ut);else{console.debug(`Loading a worker script from a different origin: ${et}`);const dt=getWorkerBlobUrl(et,ut.type==="module");this.worker=ct?new SharedWorker(dt,ut):new Worker(dt,ut)}}}function isPyodideConvertiblePrimitive(ot){return typeof ot=="string"||typeof ot=="number"||typeof ot=="boolean"||ot===null||ot===void 0}function isStreamlitConfig(ot){return typeof ot=="object"&&ot!=null&&Object.entries(ot).every(([et,ct])=>typeof et=="string"&&isPyodideConvertiblePrimitive(ct))}function assertStreamlitConfig(ot){if(!isStreamlitConfig(ot))throw new Error(`Invalid streamlitConfig: ${ot}`)}const FINAL_SLASH_RE$1=/\/+$/,INITIAL_SLASH_RE$1=/^\/+/;class StliteKernel{constructor(et){vr(this,"_isDisposed",!1);vr(this,"_worker");vr(this,"_postMessageTarget");vr(this,"_loaded",new PromiseDelegate);vr(this,"_workerInitData");vr(this,"basePath");vr(this,"hostConfigResponse");vr(this,"onProgress");vr(this,"onLoad");vr(this,"onError");vr(this,"onModuleAutoLoad");vr(this,"handleWebSocketMessage",null);if(this.basePath=(et.basePath??window.location.pathname).replace(FINAL_SLASH_RE$1,"").replace(INITIAL_SLASH_RE$1,""),this.hostConfigResponse=et.hostConfigResponse??{},this.onProgress=et.onProgress,this.onLoad=et.onLoad,this.onError=et.onError,this.onModuleAutoLoad=et.onModuleAutoLoad,et.worker)this._worker=et.worker;else{const ct=new CrossOriginWorkerMaker(new URL("/assets/worker-DzcNcnW5.js",import.meta.url),{type:"module",shared:et.sharedWorker??!1});this._worker=ct.worker}this._worker instanceof SharedWorker?(this._worker.port.start(),this._postMessageTarget=this._worker.port):this._postMessageTarget=this._worker,this._postMessageTarget.onmessage=ct=>{const ut=ct.ports[0];this._processWorkerMessage(ct.data,ut)},et.streamlitConfig!=null&&assertStreamlitConfig(et.streamlitConfig),this._workerInitData={entrypoint:et.entrypoint,files:et.files,archives:et.archives,requirements:et.requirements,prebuiltPackageNames:et.prebuiltPackageNames,pyodideUrl:et.pyodideUrl,wheels:et.wheelUrls,streamlitConfig:et.streamlitConfig,idbfsMountpoints:et.idbfsMountpoints,moduleAutoLoad:et.moduleAutoLoad??!1}}get loaded(){return this._loaded.promise}connectWebSocket(et){return this._asyncPostMessage({type:"websocket:connect",data:{path:et}})}sendWebSocketMessage(et){return this._asyncPostMessage({type:"websocket:send",data:{payload:et}})}onWebSocketMessage(et){this.handleWebSocketMessage=et}sendHttpRequest(et){return this._asyncPostMessage({type:"http:request",data:{request:et}},"http:response").then(ct=>({...ct.response,headers:new Headers(Object.fromEntries(ct.response.headers))}))}writeFile(et,ct,ut){return this._asyncPostMessage({type:"file:write",data:{path:et,data:ct,opts:ut}})}renameFile(et,ct){return this._asyncPostMessage({type:"file:rename",data:{oldPath:et,newPath:ct}})}readFile(et,ct){return this._asyncPostMessage({type:"file:read",data:{path:et,opts:ct}},"reply:file:read").then(ut=>ut.content)}unlink(et){return this._asyncPostMessage({type:"file:unlink",data:{path:et}})}install(et){return this._asyncPostMessage({type:"install",data:{requirements:et}})}reboot(et){return this._asyncPostMessage({type:"reboot",data:{entrypoint:et}})}_asyncPostMessage(et,ct="reply"){return new Promise((ut,dt)=>{const ft=new MessageChannel;ft.port1.onmessage=zt=>{ft.port1.close();const Dt=zt.data;if(Dt.error)dt(Dt.error);else{if(Dt.type!==ct)throw new Error(`Unexpected reply type "${Dt.type}"`);ut(Dt.data)}},this._postMessageTarget.postMessage(et,[ft.port2])})}_processWorkerMessage(et,ct){switch(et.type){case"event:start":{this._postMessageTarget.postMessage({type:"initData",data:this._workerInitData});break}case"event:progress":{this.onProgress&&this.onProgress(et.data.message);break}case"event:error":{this.onError&&this.onError(et.data.error);break}case"event:loaded":{this._loaded.resolve(),this.onLoad&&this.onLoad();break}case"websocket:message":{const{payload:ut}=et.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(ut);break}case"event:moduleAutoLoad":{if(ct==null)throw new Error("Port is required for moduleAutoLoad event");this.onModuleAutoLoad&&this.onModuleAutoLoad(et.data.packagesToLoad,new Promise((ut,dt)=>{ct.onmessage=ft=>{const zt=ft.data;zt.type==="moduleAutoLoad:success"?ut(zt.data.loadedPackages):dt(zt.error),ct.close()}}));break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker instanceof SharedWorker?this._worker.port.close():this._worker.terminate(),this._isDisposed=!0)}}const StliteKernelContext=React$1.createContext(void 0),Provider$2=StliteKernelContext.Provider;function StliteKernelProvider(ot){const{children:et,kernel:ct}=ot,ut=reactExports.useMemo(()=>({kernel:ct}),[ct]);return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:et})}useStliteKernel=function(){const ot=reactExports.useContext(StliteKernelContext);if(ot==null)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return ot.kernel};function resolveStliteObjectUrl(ot,et){return ot.sendHttpRequest({method:"GET",path:et,headers:{},body:""}).then(({statusCode:ct,headers:ut,body:dt})=>{if(ct!==200)throw new Error(`Failed to fetch media object: ${ct}`);const ft=ut.get("Content-Type"),zt=new Blob([dt],ft?{type:ft}:void 0);return URL.createObjectURL(zt)})}function resolveStliteObjectUrlIfNeeded(ot,et){return et.startsWith("/media")?resolveStliteObjectUrl(ot,et):Promise.resolve(et)}function resolveLogo(ot,et){return Promise.all([resolveStliteObjectUrlIfNeeded(ot,et.image),resolveStliteObjectUrlIfNeeded(ot,et.iconImage)]).then(([ct,ut])=>(et.image=ct,et.iconImage=ut,et))}function useStliteResolvedLogo(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(null);return reactExports.useEffect(()=>{let dt=!1;const ft=[];return ot==null?ut(null):resolveLogo(et,ot).then(zt=>{dt||(ft.push(zt.image),ft.push(zt.iconImage),ut(zt))}),()=>{ft.forEach(zt=>{URL.revokeObjectURL(zt)}),dt=!0}},[et,ot]),ct}useStliteMediaObjectUrl=function(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(ot);return reactExports.useEffect(()=>{if(et==null||!ot.startsWith("/media"))return;let dt=!1;const ft=[];return resolveStliteObjectUrl(et,ot).then(zt=>{dt||(ft.push(zt),ut(zt))}),()=>{dt=!0,ft.forEach(zt=>{URL.revokeObjectURL(zt)})}},[et,ot]),ct},useStliteMediaObjects=function(ot){const[et,ct]=reactExports.useState(ot),ut=useStliteKernel();return reactExports.useEffect(()=>{if(ut==null)return;let dt=!1;const ft=[],zt=ot.map(Dt=>Dt.url==null||!Dt.url.startsWith("/media")?Dt:resolveStliteObjectUrl(ut,Dt.url).then(St=>dt?Dt:(ft.push(St),{...Dt,url:St})));return Promise.all(zt).then(Dt=>{dt||ct(Dt)}),()=>{dt=!0,ft.forEach(Dt=>{URL.revokeObjectURL(Dt)})}},[ut,ot]),et};const DUMMY_BASE_HOSTNAME="xxx",DUMMY_BASE_PORT=99999,DUMMY_BASE_HOST=DUMMY_BASE_HOSTNAME+":"+DUMMY_BASE_PORT.toString();function extractCustomComponentPath(ot,et){const ct=(DUMMY_BASE_HOST+"/"+ot).replace(/\/$/,""),ut=new RegExp(`https?://${ct}(/.*?$)`),dt=et.match(ut);return dt==null?null:dt[1]}function getParentPath(ot){const et=ot.split("/").slice(0,-1).join("/");return et.startsWith("/")?et:"/"+et}function getRelativePath(ot,et,ct){const ut=getParentPath(et);if(!(ct.host===ot&&ct.pathname.startsWith(ut)))return null;const dt=ct.pathname.slice(ut.length);return dt.startsWith("/")?dt.slice(1):dt}var lib$5={},activitymonitor={},ArrayExt;(function(ot){function et(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0){var T0=(n0+b0)%a0;if(Zt[T0]===o0)return T0}return-1}ot.firstIndexOf=et;function ct(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(var b0=0;b0<u0;++b0){var T0=(n0-b0+a0)%a0;if(Zt[T0]===o0)return T0}return-1}ot.lastIndexOf=ct;function ut(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0){var T0=(n0+b0)%a0;if(o0(Zt[T0],T0))return T0}return-1}ot.findFirstIndex=ut;function dt(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(var b0=0;b0<u0;++b0){var T0=(n0-b0+a0)%a0;if(o0(Zt[T0],T0))return T0}return-1}ot.findLastIndex=dt;function ft(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=ut(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findFirstValue=ft;function zt(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=dt(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findLastValue=zt;function Dt(Zt,o0,n0,r0,a0){r0===void 0&&(r0=0),a0===void 0&&(a0=-1);var u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);for(var b0=r0,T0=a0-r0+1;T0>0;){var O0=T0>>1,E0=b0+O0;n0(Zt[E0],o0)<0?(b0=E0+1,T0-=O0+1):T0=O0}return b0}ot.lowerBound=Dt;function St(Zt,o0,n0,r0,a0){r0===void 0&&(r0=0),a0===void 0&&(a0=-1);var u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);for(var b0=r0,T0=a0-r0+1;T0>0;){var O0=T0>>1,E0=b0+O0;n0(Zt[E0],o0)>0?T0=O0:(b0=E0+1,T0-=O0+1)}return b0}ot.upperBound=St;function Tt(Zt,o0,n0){if(Zt===o0)return!0;if(Zt.length!==o0.length)return!1;for(var r0=0,a0=Zt.length;r0<a0;++r0)if(n0?!n0(Zt[r0],o0[r0]):Zt[r0]!==o0[r0])return!1;return!0}ot.shallowEqual=Tt;function Rt(Zt,o0){o0===void 0&&(o0={});var n0=o0.start,r0=o0.stop,a0=o0.step;if(a0===void 0&&(a0=1),a0===0)throw new Error("Slice `step` cannot be zero.");var u0=Zt.length;n0===void 0?n0=a0<0?u0-1:0:n0<0?n0=Math.max(n0+u0,a0<0?-1:0):n0>=u0&&(n0=a0<0?u0-1:u0),r0===void 0?r0=a0<0?-1:u0:r0<0?r0=Math.max(r0+u0,a0<0?-1:0):r0>=u0&&(r0=a0<0?u0-1:u0);var b0;a0<0&&r0>=n0||a0>0&&n0>=r0?b0=0:a0<0?b0=Math.floor((r0-n0+1)/a0+1):b0=Math.floor((r0-n0-1)/a0+1);for(var T0=[],O0=0;O0<b0;++O0)T0[O0]=Zt[n0+O0*a0];return T0}ot.slice=Rt;function $t(Zt,o0,n0){var r0=Zt.length;if(!(r0<=1)&&(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1),o0!==n0)){for(var a0=Zt[o0],u0=o0<n0?1:-1,b0=o0;b0!==n0;b0+=u0)Zt[b0]=Zt[b0+u0];Zt[n0]=a0}}ot.move=$t;function kt(Zt,o0,n0){o0===void 0&&(o0=0),n0===void 0&&(n0=-1);var r0=Zt.length;if(!(r0<=1))for(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1);o0<n0;){var a0=Zt[o0],u0=Zt[n0];Zt[o0++]=u0,Zt[n0--]=a0}}ot.reverse=kt;function Bt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(!(a0<=1)&&(n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1),!(n0>=r0))){var u0=r0-n0+1;if(o0>0?o0=o0%u0:o0<0&&(o0=(o0%u0+u0)%u0),o0!==0){var b0=n0+o0;kt(Zt,n0,b0-1),kt(Zt,b0,r0),kt(Zt,n0,r0)}}}ot.rotate=Bt;function Ft(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0!==0){n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0)Zt[(n0+b0)%a0]=o0}}ot.fill=Ft;function jt(Zt,o0,n0){var r0=Zt.length;o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0);for(var a0=r0;a0>o0;--a0)Zt[a0]=Zt[a0-1];Zt[o0]=n0}ot.insert=jt;function Kt(Zt,o0){var n0=Zt.length;if(o0<0&&(o0+=n0),!(o0<0||o0>=n0)){for(var r0=Zt[o0],a0=o0+1;a0<n0;++a0)Zt[a0-1]=Zt[a0];return Zt.length=n0-1,r0}}ot.removeAt=Kt;function Yt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=et(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeFirstOf=Yt;function Ut(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=ct(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeLastOf=Ut;function Jt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);for(var u0=0,b0=0;b0<a0;++b0)n0<=r0&&b0>=n0&&b0<=r0&&Zt[b0]===o0||r0<n0&&(b0<=r0||b0>=n0)&&Zt[b0]===o0?u0++:u0>0&&(Zt[b0-u0]=Zt[b0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllOf=Jt;function Ht(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0,u0=ut(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeFirstWhere=Ht;function e0(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0,u0=dt(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeLastWhere=e0;function t0(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);for(var u0=0,b0=0;b0<a0;++b0)n0<=r0&&b0>=n0&&b0<=r0&&o0(Zt[b0],b0)||r0<n0&&(b0<=r0||b0>=n0)&&o0(Zt[b0],b0)?u0++:u0>0&&(Zt[b0-u0]=Zt[b0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllWhere=t0})(ArrayExt||(ArrayExt={}));function iter(ot){var et;return typeof ot.iter=="function"?et=ot.iter():et=new ArrayIterator(ot),et}function each(ot,et){for(var ct=0,ut=iter(ot),dt;(dt=ut.next())!==void 0;)if(et(dt,ct++)===!1)return}var ArrayIterator=function(){function ot(et){this._index=0,this._source=et}return ot.prototype.iter=function(){return this},ot.prototype.clone=function(){var et=new ot(this._source);return et._index=this._index,et},ot.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},ot}();function find$4(ot,et){for(var ct=0,ut=iter(ot),dt;(dt=ut.next())!==void 0;)if(et(dt,ct++))return dt}var Private$2;(function(ot){function et(ct,ut,dt){return dt===0?1/0:ct>ut&&dt>0||ct<ut&&dt<0?0:Math.ceil((ut-ct)/dt)}ot.rangeLength=et})(Private$2||(Private$2={}));var StringExt;(function(ot){function et(zt,Dt,St){St===void 0&&(St=0);for(var Tt=new Array(Dt.length),Rt=0,$t=St,kt=Dt.length;Rt<kt;++Rt,++$t){if($t=zt.indexOf(Dt[Rt],$t),$t===-1)return null;Tt[Rt]=$t}return Tt}ot.findIndices=et;function ct(zt,Dt,St){St===void 0&&(St=0);var Tt=et(zt,Dt,St);if(!Tt)return null;for(var Rt=0,$t=0,kt=Tt.length;$t<kt;++$t){var Bt=Tt[$t]-St;Rt+=Bt*Bt}return{score:Rt,indices:Tt}}ot.matchSumOfSquares=ct;function ut(zt,Dt,St){St===void 0&&(St=0);var Tt=et(zt,Dt,St);if(!Tt)return null;for(var Rt=0,$t=St-1,kt=0,Bt=Tt.length;kt<Bt;++kt){var Ft=Tt[kt];Rt+=Ft-$t-1,$t=Ft}return{score:Rt,indices:Tt}}ot.matchSumOfDeltas=ut;function dt(zt,Dt,St){for(var Tt=[],Rt=0,$t=0,kt=Dt.length;Rt<kt;){for(var Bt=Dt[Rt],Ft=Dt[Rt];++Rt<kt&&Dt[Rt]===Ft+1;)Ft++;$t<Bt&&Tt.push(zt.slice($t,Bt)),Bt<Ft+1&&Tt.push(St(zt.slice(Bt,Ft+1))),$t=Ft+1}return $t<zt.length&&Tt.push(zt.slice($t)),Tt}ot.highlight=dt;function ft(zt,Dt){return zt<Dt?-1:zt>Dt?1:0}ot.cmp=ft})(StringExt||(StringExt={}));var AttachedProperty=function(){function ot(et){this._pid=Private$1.nextPID(),this.name=et.name,this._create=et.create,this._coerce=et.coerce||null,this._compare=et.compare||null,this._changed=et.changed||null}return ot.prototype.get=function(et){var ct,ut=Private$1.ensureMap(et);return this._pid in ut?ct=ut[this._pid]:ct=ut[this._pid]=this._createValue(et),ct},ot.prototype.set=function(et,ct){var ut,dt=Private$1.ensureMap(et);this._pid in dt?ut=dt[this._pid]:ut=dt[this._pid]=this._createValue(et);var ft=this._coerceValue(et,ct);this._maybeNotify(et,ut,dt[this._pid]=ft)},ot.prototype.coerce=function(et){var ct,ut=Private$1.ensureMap(et);this._pid in ut?ct=ut[this._pid]:ct=ut[this._pid]=this._createValue(et);var dt=this._coerceValue(et,ct);this._maybeNotify(et,ct,ut[this._pid]=dt)},ot.prototype._createValue=function(et){var ct=this._create;return ct(et)},ot.prototype._coerceValue=function(et,ct){var ut=this._coerce;return ut?ut(et,ct):ct},ot.prototype._compareValue=function(et,ct){var ut=this._compare;return ut?ut(et,ct):et===ct},ot.prototype._maybeNotify=function(et,ct,ut){var dt=this._changed;dt&&!this._compareValue(ct,ut)&&dt(et,ct,ut)},ot}();(function(ot){function et(ct){Private$1.ownerData.delete(ct)}ot.clearData=et})(AttachedProperty);var Private$1;(function(ot){ot.ownerData=new WeakMap,ot.nextPID=function(){var ct=0;return function(){var ut=Math.random(),dt=(""+ut).slice(2);return"pid-"+dt+"-"+ct++}}();function et(ct){var ut=ot.ownerData.get(ct);return ut||(ut=Object.create(null),ot.ownerData.set(ct,ut),ut)}ot.ensureMap=et})(Private$1||(Private$1={}));var Signal$2=function(){function ot(et){this._blockedCount=0,this.sender=et}return ot.prototype.block=function(et){this._blockedCount++;try{et()}finally{this._blockedCount--}},ot.prototype.connect=function(et,ct){return Private.connect(this,et,ct)},ot.prototype.disconnect=function(et,ct){return Private.disconnect(this,et,ct)},ot.prototype.emit=function(et){this._blockedCount||Private.emit(this,et)},ot}();(function(ot){function et(Tt,Rt){var $t=Private.blockedProperty;$t.set(Tt,$t.get(Tt)+1);try{Rt()}finally{$t.set(Tt,$t.get(Tt)-1)}}ot.blockAll=et;function ct(Tt,Rt){Private.disconnectBetween(Tt,Rt)}ot.disconnectBetween=ct;function ut(Tt){Private.disconnectSender(Tt)}ot.disconnectSender=ut;function dt(Tt){Private.disconnectReceiver(Tt)}ot.disconnectReceiver=dt;function ft(Tt){Private.disconnectAll(Tt)}ot.disconnectAll=ft;function zt(Tt){Private.disconnectAll(Tt)}ot.clearData=zt;function Dt(){return Private.exceptionHandler}ot.getExceptionHandler=Dt;function St(Tt){var Rt=Private.exceptionHandler;return Private.exceptionHandler=Tt,Rt}ot.setExceptionHandler=St})(Signal$2);var Private;(function(ot){ot.exceptionHandler=function(Ut){console.error(Ut)};function et(Ut,Jt,Ht){Ht=Ht||void 0;var e0=St.get(Ut.sender);if(e0||(e0=[],St.set(Ut.sender,e0)),kt(e0,Ut,Jt,Ht))return!1;var t0=Ht||Jt,Zt=Tt.get(t0);Zt||(Zt=[],Tt.set(t0,Zt));var o0={signal:Ut,slot:Jt,thisArg:Ht};return e0.push(o0),Zt.push(o0),!0}ot.connect=et;function ct(Ut,Jt,Ht){Ht=Ht||void 0;var e0=St.get(Ut.sender);if(!e0||e0.length===0)return!1;var t0=kt(e0,Ut,Jt,Ht);if(!t0)return!1;var Zt=Ht||Jt,o0=Tt.get(Zt);return t0.signal=null,Ft(e0),Ft(o0),!0}ot.disconnect=ct;function ut(Ut,Jt){var Ht=St.get(Ut);if(!(!Ht||Ht.length===0)){var e0=Tt.get(Jt);!e0||e0.length===0||(each(e0,function(t0){t0.signal&&t0.signal.sender===Ut&&(t0.signal=null)}),Ft(Ht),Ft(e0))}}ot.disconnectBetween=ut;function dt(Ut){var Jt=St.get(Ut);!Jt||Jt.length===0||(each(Jt,function(Ht){if(Ht.signal){var e0=Ht.thisArg||Ht.slot;Ht.signal=null,Ft(Tt.get(e0))}}),Ft(Jt))}ot.disconnectSender=dt;function ft(Ut){var Jt=Tt.get(Ut);!Jt||Jt.length===0||(each(Jt,function(Ht){if(Ht.signal){var e0=Ht.signal.sender;Ht.signal=null,Ft(St.get(e0))}}),Ft(Jt))}ot.disconnectReceiver=ft;function zt(Ut){dt(Ut),ft(Ut)}ot.disconnectAll=zt;function Dt(Ut,Jt){if(!(ot.blockedProperty.get(Ut.sender)>0)){var Ht=St.get(Ut.sender);if(!(!Ht||Ht.length===0))for(var e0=0,t0=Ht.length;e0<t0;++e0){var Zt=Ht[e0];Zt.signal===Ut&&Bt(Zt,Jt)}}}ot.emit=Dt;var St=new WeakMap,Tt=new WeakMap,Rt=new Set,$t=function(){var Ut=typeof requestAnimationFrame=="function";return Ut?requestAnimationFrame:setImmediate}();function kt(Ut,Jt,Ht,e0){return find$4(Ut,function(t0){return t0.signal===Jt&&t0.slot===Ht&&t0.thisArg===e0})}function Bt(Ut,Jt){var Ht=Ut.signal,e0=Ut.slot,t0=Ut.thisArg;try{e0.call(t0,Ht.sender,Jt)}catch(Zt){ot.exceptionHandler(Zt)}}function Ft(Ut){Rt.size===0&&$t(jt),Rt.add(Ut)}function jt(){Rt.forEach(Kt),Rt.clear()}function Kt(Ut){ArrayExt.removeAllWhere(Ut,Yt)}function Yt(Ut){return Ut.signal===null}ot.blockedProperty=new AttachedProperty({name:"blocked",create:function(){return 0}})})(Private||(Private={}));const index_es6=Object.freeze(Object.defineProperty({__proto__:null,Signal:Signal$2},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(index_es6);Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const signaling_1=require$$0$3;class ActivityMonitor{constructor(et){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new signaling_1.Signal(this),et.signal.connect(this._onSignalFired,this),this._timeout=et.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(et){this._timeout=et}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,signaling_1.Signal.clearData(this))}_onSignalFired(et,ct){clearTimeout(this._timer),this._sender=et,this._args=ct,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}}activitymonitor.ActivityMonitor=ActivityMonitor;var interfaces={};Object.defineProperty(interfaces,"__esModule",{value:!0});var markdowncodeblocks={};(function(ot){Object.defineProperty(ot,"__esModule",{value:!0}),ot.MarkdownCodeBlocks=void 0,function(et){et.CODE_BLOCK_MARKER="```";const ct=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class ut{constructor(Dt){this.startLine=Dt,this.code="",this.endLine=-1}}et.MarkdownCodeBlock=ut;function dt(zt){return ct.indexOf(zt)>-1}et.isMarkdown=dt;function ft(zt){if(!zt||zt==="")return[];const Dt=zt.split(`
|
|
9
|
+
`+ft.stack}return{value:ot,source:et,stack:dt,digest:null}}function Li(ot,et,ct){return{value:ot,source:null,stack:ct??null,digest:et??null}}function Mi(ot,et){try{console.error(et.value)}catch(ct){setTimeout(function(){throw ct})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3,ct.payload={element:null};var ut=et.value;return ct.callback=function(){Pi||(Pi=!0,Qi=ut),Mi(ot,et)},ct}function Ri(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3;var ut=ot.type.getDerivedStateFromError;if(typeof ut=="function"){var dt=et.value;ct.payload=function(){return ut(dt)},ct.callback=function(){Mi(ot,et)}}var ft=ot.stateNode;return ft!==null&&typeof ft.componentDidCatch=="function"&&(ct.callback=function(){Mi(ot,et),typeof ut!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var zt=et.stack;this.componentDidCatch(et.value,{componentStack:zt!==null?zt:""})}),ct}function Ti(ot,et,ct){var ut=ot.pingCache;if(ut===null){ut=ot.pingCache=new Ni;var dt=new Set;ut.set(et,dt)}else dt=ut.get(et),dt===void 0&&(dt=new Set,ut.set(et,dt));dt.has(ct)||(dt.add(ct),ot=Ui.bind(null,ot,et,ct),et.then(ot,ot))}function Vi(ot){do{var et;if((et=ot.tag===13)&&(et=ot.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return ot;ot=ot.return}while(ot!==null);return null}function Wi(ot,et,ct,ut,dt){return ot.mode&1?(ot.flags|=65536,ot.lanes=dt,ot):(ot===et?ot.flags|=65536:(ot.flags|=128,ct.flags|=131072,ct.flags&=-52805,ct.tag===1&&(ct.alternate===null?ct.tag=17:(et=ch$1(-1,1),et.tag=2,dh(ct,et,1))),ct.lanes|=1),ot)}var Xi=ua$1.ReactCurrentOwner,Ug=!1;function Yi(ot,et,ct,ut){et.child=ot===null?Ch(et,null,ct,ut):Bh(et,ot.child,ct,ut)}function Zi(ot,et,ct,ut,dt){ct=ct.render;var ft=et.ref;return Tg(et,dt),ut=Xh(ot,et,ct,ut,ft,dt),ct=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ct&&vg(et),et.flags|=1,Yi(ot,et,ut,dt),et.child)}function aj(ot,et,ct,ut,dt){if(ot===null){var ft=ct.type;return typeof ft=="function"&&!bj(ft)&&ft.defaultProps===void 0&&ct.compare===null&&ct.defaultProps===void 0?(et.tag=15,et.type=ft,cj(ot,et,ft,ut,dt)):(ot=yh(ct.type,null,ut,et,et.mode,dt),ot.ref=et.ref,ot.return=et,et.child=ot)}if(ft=ot.child,!(ot.lanes&dt)){var zt=ft.memoizedProps;if(ct=ct.compare,ct=ct!==null?ct:Ie,ct(zt,ut)&&ot.ref===et.ref)return $i(ot,et,dt)}return et.flags|=1,ot=wh(ft,ut),ot.ref=et.ref,ot.return=et,et.child=ot}function cj(ot,et,ct,ut,dt){if(ot!==null){var ft=ot.memoizedProps;if(Ie(ft,ut)&&ot.ref===et.ref)if(Ug=!1,et.pendingProps=ut=ft,(ot.lanes&dt)!==0)ot.flags&131072&&(Ug=!0);else return et.lanes=ot.lanes,$i(ot,et,dt)}return dj(ot,et,ct,ut,dt)}function ej(ot,et,ct){var ut=et.pendingProps,dt=ut.children,ft=ot!==null?ot.memoizedState:null;if(ut.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$3(fj,gj),gj|=ct;else{if(!(ct&1073741824))return ot=ft!==null?ft.baseLanes|ct:ct,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:ot,cachePool:null,transitions:null},et.updateQueue=null,G$3(fj,gj),gj|=ot,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut=ft!==null?ft.baseLanes:ct,G$3(fj,gj),gj|=ut}else ft!==null?(ut=ft.baseLanes|ct,et.memoizedState=null):ut=ct,G$3(fj,gj),gj|=ut;return Yi(ot,et,dt,ct),et.child}function hj(ot,et){var ct=et.ref;(ot===null&&ct!==null||ot!==null&&ot.ref!==ct)&&(et.flags|=512,et.flags|=2097152)}function dj(ot,et,ct,ut,dt){var ft=Zf(ct)?Xf:H$2.current;return ft=Yf(et,ft),Tg(et,dt),ct=Xh(ot,et,ct,ut,ft,dt),ut=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ut&&vg(et),et.flags|=1,Yi(ot,et,ct,dt),et.child)}function ij(ot,et,ct,ut,dt){if(Zf(ct)){var ft=!0;cg(et)}else ft=!1;if(Tg(et,dt),et.stateNode===null)jj(ot,et),ph(et,ct,ut),rh(et,ct,ut,dt),ut=!0;else if(ot===null){var zt=et.stateNode,Dt=et.memoizedProps;zt.props=Dt;var St=zt.context,Tt=ct.contextType;typeof Tt=="object"&&Tt!==null?Tt=Vg(Tt):(Tt=Zf(ct)?Xf:H$2.current,Tt=Yf(et,Tt));var Rt=ct.getDerivedStateFromProps,$t=typeof Rt=="function"||typeof zt.getSnapshotBeforeUpdate=="function";$t||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==ut||St!==Tt)&&qh(et,zt,ut,Tt),$g=!1;var kt=et.memoizedState;zt.state=kt,gh(et,ut,zt,dt),St=et.memoizedState,Dt!==ut||kt!==St||Wf.current||$g?(typeof Rt=="function"&&(kh(et,ct,Rt,ut),St=et.memoizedState),(Dt=$g||oh(et,ct,Dt,ut,kt,St,Tt))?($t||typeof zt.UNSAFE_componentWillMount!="function"&&typeof zt.componentWillMount!="function"||(typeof zt.componentWillMount=="function"&&zt.componentWillMount(),typeof zt.UNSAFE_componentWillMount=="function"&&zt.UNSAFE_componentWillMount()),typeof zt.componentDidMount=="function"&&(et.flags|=4194308)):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=ut,et.memoizedState=St),zt.props=ut,zt.state=St,zt.context=Tt,ut=Dt):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),ut=!1)}else{zt=et.stateNode,bh(ot,et),Dt=et.memoizedProps,Tt=et.type===et.elementType?Dt:Lg(et.type,Dt),zt.props=Tt,$t=et.pendingProps,kt=zt.context,St=ct.contextType,typeof St=="object"&&St!==null?St=Vg(St):(St=Zf(ct)?Xf:H$2.current,St=Yf(et,St));var Bt=ct.getDerivedStateFromProps;(Rt=typeof Bt=="function"||typeof zt.getSnapshotBeforeUpdate=="function")||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==$t||kt!==St)&&qh(et,zt,ut,St),$g=!1,kt=et.memoizedState,zt.state=kt,gh(et,ut,zt,dt);var Ft=et.memoizedState;Dt!==$t||kt!==Ft||Wf.current||$g?(typeof Bt=="function"&&(kh(et,ct,Bt,ut),Ft=et.memoizedState),(Tt=$g||oh(et,ct,Tt,ut,kt,Ft,St)||!1)?(Rt||typeof zt.UNSAFE_componentWillUpdate!="function"&&typeof zt.componentWillUpdate!="function"||(typeof zt.componentWillUpdate=="function"&&zt.componentWillUpdate(ut,Ft,St),typeof zt.UNSAFE_componentWillUpdate=="function"&&zt.UNSAFE_componentWillUpdate(ut,Ft,St)),typeof zt.componentDidUpdate=="function"&&(et.flags|=4),typeof zt.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),et.memoizedProps=ut,et.memoizedState=Ft),zt.props=ut,zt.state=Ft,zt.context=St,ut=Tt):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),ut=!1)}return kj(ot,et,ct,ut,ft,dt)}function kj(ot,et,ct,ut,dt,ft){hj(ot,et);var zt=(et.flags&128)!==0;if(!ut&&!zt)return dt&&dg(et,ct,!1),$i(ot,et,ft);ut=et.stateNode,Xi.current=et;var Dt=zt&&typeof ct.getDerivedStateFromError!="function"?null:ut.render();return et.flags|=1,ot!==null&&zt?(et.child=Bh(et,ot.child,null,ft),et.child=Bh(et,null,Dt,ft)):Yi(ot,et,Dt,ft),et.memoizedState=ut.state,dt&&dg(et,ct,!0),et.child}function lj(ot){var et=ot.stateNode;et.pendingContext?ag(ot,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(ot,et.context,!1),Ih(ot,et.containerInfo)}function mj(ot,et,ct,ut,dt){return Ig(),Jg(dt),et.flags|=256,Yi(ot,et,ct,ut),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(ot){return{baseLanes:ot,cachePool:null,transitions:null}}function pj(ot,et,ct){var ut=et.pendingProps,dt=M$2.current,ft=!1,zt=(et.flags&128)!==0,Dt;if((Dt=zt)||(Dt=ot!==null&&ot.memoizedState===null?!1:(dt&2)!==0),Dt?(ft=!0,et.flags&=-129):(ot===null||ot.memoizedState!==null)&&(dt|=1),G$3(M$2,dt&1),ot===null)return Eg(et),ot=et.memoizedState,ot!==null&&(ot=ot.dehydrated,ot!==null)?(et.mode&1?ot.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(zt=ut.children,ot=ut.fallback,ft?(ut=et.mode,ft=et.child,zt={mode:"hidden",children:zt},!(ut&1)&&ft!==null?(ft.childLanes=0,ft.pendingProps=zt):ft=qj(zt,ut,0,null),ot=Ah(ot,ut,ct,null),ft.return=et,ot.return=et,ft.sibling=ot,et.child=ft,et.child.memoizedState=oj(ct),et.memoizedState=nj,ot):rj(et,zt));if(dt=ot.memoizedState,dt!==null&&(Dt=dt.dehydrated,Dt!==null))return sj(ot,et,zt,ut,Dt,dt,ct);if(ft){ft=ut.fallback,zt=et.mode,dt=ot.child,Dt=dt.sibling;var St={mode:"hidden",children:ut.children};return!(zt&1)&&et.child!==dt?(ut=et.child,ut.childLanes=0,ut.pendingProps=St,et.deletions=null):(ut=wh(dt,St),ut.subtreeFlags=dt.subtreeFlags&14680064),Dt!==null?ft=wh(Dt,ft):(ft=Ah(ft,zt,ct,null),ft.flags|=2),ft.return=et,ut.return=et,ut.sibling=ft,et.child=ut,ut=ft,ft=et.child,zt=ot.child.memoizedState,zt=zt===null?oj(ct):{baseLanes:zt.baseLanes|ct,cachePool:null,transitions:zt.transitions},ft.memoizedState=zt,ft.childLanes=ot.childLanes&~ct,et.memoizedState=nj,ut}return ft=ot.child,ot=ft.sibling,ut=wh(ft,{mode:"visible",children:ut.children}),!(et.mode&1)&&(ut.lanes=ct),ut.return=et,ut.sibling=null,ot!==null&&(ct=et.deletions,ct===null?(et.deletions=[ot],et.flags|=16):ct.push(ot)),et.child=ut,et.memoizedState=null,ut}function rj(ot,et){return et=qj({mode:"visible",children:et},ot.mode,0,null),et.return=ot,ot.child=et}function tj(ot,et,ct,ut){return ut!==null&&Jg(ut),Bh(et,ot.child,null,ct),ot=rj(et,et.pendingProps.children),ot.flags|=2,et.memoizedState=null,ot}function sj(ot,et,ct,ut,dt,ft,zt){if(ct)return et.flags&256?(et.flags&=-257,ut=Li(Error(p$4(422))),tj(ot,et,zt,ut)):et.memoizedState!==null?(et.child=ot.child,et.flags|=128,null):(ft=ut.fallback,dt=et.mode,ut=qj({mode:"visible",children:ut.children},dt,0,null),ft=Ah(ft,dt,zt,null),ft.flags|=2,ut.return=et,ft.return=et,ut.sibling=ft,et.child=ut,et.mode&1&&Bh(et,ot.child,null,zt),et.child.memoizedState=oj(zt),et.memoizedState=nj,ft);if(!(et.mode&1))return tj(ot,et,zt,null);if(dt.data==="$!"){if(ut=dt.nextSibling&&dt.nextSibling.dataset,ut)var Dt=ut.dgst;return ut=Dt,ft=Error(p$4(419)),ut=Li(ft,ut,void 0),tj(ot,et,zt,ut)}if(Dt=(zt&ot.childLanes)!==0,Ug||Dt){if(ut=R$2,ut!==null){switch(zt&-zt){case 4:dt=2;break;case 16:dt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:dt=32;break;case 536870912:dt=268435456;break;default:dt=0}dt=dt&(ut.suspendedLanes|zt)?0:dt,dt!==0&&dt!==ft.retryLane&&(ft.retryLane=dt,Zg(ot,dt),mh(ut,ot,dt,-1))}return uj(),ut=Li(Error(p$4(421))),tj(ot,et,zt,ut)}return dt.data==="$?"?(et.flags|=128,et.child=ot.child,et=vj.bind(null,ot),dt._reactRetry=et,null):(ot=ft.treeContext,yg=Lf(dt.nextSibling),xg=et,I$2=!0,zg=null,ot!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=ot.id,sg=ot.overflow,qg=et),et=rj(et,ut.children),et.flags|=4096,et)}function wj(ot,et,ct){ot.lanes|=et;var ut=ot.alternate;ut!==null&&(ut.lanes|=et),Sg(ot.return,et,ct)}function xj(ot,et,ct,ut,dt){var ft=ot.memoizedState;ft===null?ot.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:ut,tail:ct,tailMode:dt}:(ft.isBackwards=et,ft.rendering=null,ft.renderingStartTime=0,ft.last=ut,ft.tail=ct,ft.tailMode=dt)}function yj(ot,et,ct){var ut=et.pendingProps,dt=ut.revealOrder,ft=ut.tail;if(Yi(ot,et,ut.children,ct),ut=M$2.current,ut&2)ut=ut&1|2,et.flags|=128;else{if(ot!==null&&ot.flags&128)e:for(ot=et.child;ot!==null;){if(ot.tag===13)ot.memoizedState!==null&&wj(ot,ct,et);else if(ot.tag===19)wj(ot,ct,et);else if(ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===et)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===et)break e;ot=ot.return}ot.sibling.return=ot.return,ot=ot.sibling}ut&=1}if(G$3(M$2,ut),!(et.mode&1))et.memoizedState=null;else switch(dt){case"forwards":for(ct=et.child,dt=null;ct!==null;)ot=ct.alternate,ot!==null&&Mh(ot)===null&&(dt=ct),ct=ct.sibling;ct=dt,ct===null?(dt=et.child,et.child=null):(dt=ct.sibling,ct.sibling=null),xj(et,!1,dt,ct,ft);break;case"backwards":for(ct=null,dt=et.child,et.child=null;dt!==null;){if(ot=dt.alternate,ot!==null&&Mh(ot)===null){et.child=dt;break}ot=dt.sibling,dt.sibling=ct,ct=dt,dt=ot}xj(et,!0,ct,null,ft);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(ot,et){!(et.mode&1)&&ot!==null&&(ot.alternate=null,et.alternate=null,et.flags|=2)}function $i(ot,et,ct){if(ot!==null&&(et.dependencies=ot.dependencies),hh|=et.lanes,!(ct&et.childLanes))return null;if(ot!==null&&et.child!==ot.child)throw Error(p$4(153));if(et.child!==null){for(ot=et.child,ct=wh(ot,ot.pendingProps),et.child=ct,ct.return=et;ot.sibling!==null;)ot=ot.sibling,ct=ct.sibling=wh(ot,ot.pendingProps),ct.return=et;ct.sibling=null}return et.child}function zj(ot,et,ct){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var ut=et.type._context,dt=et.memoizedProps.value;G$3(Mg,ut._currentValue),ut._currentValue=dt;break;case 13:if(ut=et.memoizedState,ut!==null)return ut.dehydrated!==null?(G$3(M$2,M$2.current&1),et.flags|=128,null):ct&et.child.childLanes?pj(ot,et,ct):(G$3(M$2,M$2.current&1),ot=$i(ot,et,ct),ot!==null?ot.sibling:null);G$3(M$2,M$2.current&1);break;case 19:if(ut=(ct&et.childLanes)!==0,ot.flags&128){if(ut)return yj(ot,et,ct);et.flags|=128}if(dt=et.memoizedState,dt!==null&&(dt.rendering=null,dt.tail=null,dt.lastEffect=null),G$3(M$2,M$2.current),ut)break;return null;case 22:case 23:return et.lanes=0,ej(ot,et,ct)}return $i(ot,et,ct)}var Aj,Bj,Cj,Dj;Aj=function(ot,et){for(var ct=et.child;ct!==null;){if(ct.tag===5||ct.tag===6)ot.appendChild(ct.stateNode);else if(ct.tag!==4&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===et)break;for(;ct.sibling===null;){if(ct.return===null||ct.return===et)return;ct=ct.return}ct.sibling.return=ct.return,ct=ct.sibling}},Bj=function(){},Cj=function(ot,et,ct,ut){var dt=ot.memoizedProps;if(dt!==ut){ot=et.stateNode,Hh(Eh.current);var ft=null;switch(ct){case"input":dt=Ya(ot,dt),ut=Ya(ot,ut),ft=[];break;case"select":dt=A$2({},dt,{value:void 0}),ut=A$2({},ut,{value:void 0}),ft=[];break;case"textarea":dt=gb$1(ot,dt),ut=gb$1(ot,ut),ft=[];break;default:typeof dt.onClick!="function"&&typeof ut.onClick=="function"&&(ot.onclick=Bf)}ub(ct,ut);var zt;ct=null;for(Tt in dt)if(!ut.hasOwnProperty(Tt)&&dt.hasOwnProperty(Tt)&&dt[Tt]!=null)if(Tt==="style"){var Dt=dt[Tt];for(zt in Dt)Dt.hasOwnProperty(zt)&&(ct||(ct={}),ct[zt]="")}else Tt!=="dangerouslySetInnerHTML"&&Tt!=="children"&&Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&Tt!=="autoFocus"&&(ea.hasOwnProperty(Tt)?ft||(ft=[]):(ft=ft||[]).push(Tt,null));for(Tt in ut){var St=ut[Tt];if(Dt=dt==null?void 0:dt[Tt],ut.hasOwnProperty(Tt)&&St!==Dt&&(St!=null||Dt!=null))if(Tt==="style")if(Dt){for(zt in Dt)!Dt.hasOwnProperty(zt)||St&&St.hasOwnProperty(zt)||(ct||(ct={}),ct[zt]="");for(zt in St)St.hasOwnProperty(zt)&&Dt[zt]!==St[zt]&&(ct||(ct={}),ct[zt]=St[zt])}else ct||(ft||(ft=[]),ft.push(Tt,ct)),ct=St;else Tt==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,Dt=Dt?Dt.__html:void 0,St!=null&&Dt!==St&&(ft=ft||[]).push(Tt,St)):Tt==="children"?typeof St!="string"&&typeof St!="number"||(ft=ft||[]).push(Tt,""+St):Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(Tt)?(St!=null&&Tt==="onScroll"&&D$3("scroll",ot),ft||Dt===St||(ft=[])):(ft=ft||[]).push(Tt,St))}ct&&(ft=ft||[]).push("style",ct);var Tt=ft;(et.updateQueue=Tt)&&(et.flags|=4)}},Dj=function(ot,et,ct,ut){ct!==ut&&(et.flags|=4)};function Ej(ot,et){if(!I$2)switch(ot.tailMode){case"hidden":et=ot.tail;for(var ct=null;et!==null;)et.alternate!==null&&(ct=et),et=et.sibling;ct===null?ot.tail=null:ct.sibling=null;break;case"collapsed":ct=ot.tail;for(var ut=null;ct!==null;)ct.alternate!==null&&(ut=ct),ct=ct.sibling;ut===null?et||ot.tail===null?ot.tail=null:ot.tail.sibling=null:ut.sibling=null}}function S$3(ot){var et=ot.alternate!==null&&ot.alternate.child===ot.child,ct=0,ut=0;if(et)for(var dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags&14680064,ut|=dt.flags&14680064,dt.return=ot,dt=dt.sibling;else for(dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags,ut|=dt.flags,dt.return=ot,dt=dt.sibling;return ot.subtreeFlags|=ut,ot.childLanes=ct,et}function Fj(ot,et,ct){var ut=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$3(et),null;case 1:return Zf(et.type)&&$f(),S$3(et),null;case 3:return ut=et.stateNode,Jh(),E$2(Wf),E$2(H$2),Oh(),ut.pendingContext&&(ut.context=ut.pendingContext,ut.pendingContext=null),(ot===null||ot.child===null)&&(Gg(et)?et.flags|=4:ot===null||ot.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(ot,et),S$3(et),null;case 5:Lh(et);var dt=Hh(Gh.current);if(ct=et.type,ot!==null&&et.stateNode!=null)Cj(ot,et,ct,ut,dt),ot.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!ut){if(et.stateNode===null)throw Error(p$4(166));return S$3(et),null}if(ot=Hh(Eh.current),Gg(et)){ut=et.stateNode,ct=et.type;var ft=et.memoizedProps;switch(ut[Of]=et,ut[Pf]=ft,ot=(et.mode&1)!==0,ct){case"dialog":D$3("cancel",ut),D$3("close",ut);break;case"iframe":case"object":case"embed":D$3("load",ut);break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ut);break;case"source":D$3("error",ut);break;case"img":case"image":case"link":D$3("error",ut),D$3("load",ut);break;case"details":D$3("toggle",ut);break;case"input":Za(ut,ft),D$3("invalid",ut);break;case"select":ut._wrapperState={wasMultiple:!!ft.multiple},D$3("invalid",ut);break;case"textarea":hb(ut,ft),D$3("invalid",ut)}ub(ct,ft),dt=null;for(var zt in ft)if(ft.hasOwnProperty(zt)){var Dt=ft[zt];zt==="children"?typeof Dt=="string"?ut.textContent!==Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",Dt]):typeof Dt=="number"&&ut.textContent!==""+Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",""+Dt]):ea.hasOwnProperty(zt)&&Dt!=null&&zt==="onScroll"&&D$3("scroll",ut)}switch(ct){case"input":Va(ut),db(ut,ft,!0);break;case"textarea":Va(ut),jb(ut);break;case"select":case"option":break;default:typeof ft.onClick=="function"&&(ut.onclick=Bf)}ut=dt,et.updateQueue=ut,ut!==null&&(et.flags|=4)}else{zt=dt.nodeType===9?dt:dt.ownerDocument,ot==="http://www.w3.org/1999/xhtml"&&(ot=kb(ct)),ot==="http://www.w3.org/1999/xhtml"?ct==="script"?(ot=zt.createElement("div"),ot.innerHTML="<script><\/script>",ot=ot.removeChild(ot.firstChild)):typeof ut.is=="string"?ot=zt.createElement(ct,{is:ut.is}):(ot=zt.createElement(ct),ct==="select"&&(zt=ot,ut.multiple?zt.multiple=!0:ut.size&&(zt.size=ut.size))):ot=zt.createElementNS(ot,ct),ot[Of]=et,ot[Pf]=ut,Aj(ot,et,!1,!1),et.stateNode=ot;e:{switch(zt=vb(ct,ut),ct){case"dialog":D$3("cancel",ot),D$3("close",ot),dt=ut;break;case"iframe":case"object":case"embed":D$3("load",ot),dt=ut;break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ot);dt=ut;break;case"source":D$3("error",ot),dt=ut;break;case"img":case"image":case"link":D$3("error",ot),D$3("load",ot),dt=ut;break;case"details":D$3("toggle",ot),dt=ut;break;case"input":Za(ot,ut),dt=Ya(ot,ut),D$3("invalid",ot);break;case"option":dt=ut;break;case"select":ot._wrapperState={wasMultiple:!!ut.multiple},dt=A$2({},ut,{value:void 0}),D$3("invalid",ot);break;case"textarea":hb(ot,ut),dt=gb$1(ot,ut),D$3("invalid",ot);break;default:dt=ut}ub(ct,dt),Dt=dt;for(ft in Dt)if(Dt.hasOwnProperty(ft)){var St=Dt[ft];ft==="style"?sb(ot,St):ft==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,St!=null&&nb(ot,St)):ft==="children"?typeof St=="string"?(ct!=="textarea"||St!=="")&&ob(ot,St):typeof St=="number"&&ob(ot,""+St):ft!=="suppressContentEditableWarning"&&ft!=="suppressHydrationWarning"&&ft!=="autoFocus"&&(ea.hasOwnProperty(ft)?St!=null&&ft==="onScroll"&&D$3("scroll",ot):St!=null&&ta(ot,ft,St,zt))}switch(ct){case"input":Va(ot),db(ot,ut,!1);break;case"textarea":Va(ot),jb(ot);break;case"option":ut.value!=null&&ot.setAttribute("value",""+Sa(ut.value));break;case"select":ot.multiple=!!ut.multiple,ft=ut.value,ft!=null?fb(ot,!!ut.multiple,ft,!1):ut.defaultValue!=null&&fb(ot,!!ut.multiple,ut.defaultValue,!0);break;default:typeof dt.onClick=="function"&&(ot.onclick=Bf)}switch(ct){case"button":case"input":case"select":case"textarea":ut=!!ut.autoFocus;break e;case"img":ut=!0;break e;default:ut=!1}}ut&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$3(et),null;case 6:if(ot&&et.stateNode!=null)Dj(ot,et,ot.memoizedProps,ut);else{if(typeof ut!="string"&&et.stateNode===null)throw Error(p$4(166));if(ct=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(ut=et.stateNode,ct=et.memoizedProps,ut[Of]=et,(ft=ut.nodeValue!==ct)&&(ot=xg,ot!==null))switch(ot.tag){case 3:Af(ut.nodeValue,ct,(ot.mode&1)!==0);break;case 5:ot.memoizedProps.suppressHydrationWarning!==!0&&Af(ut.nodeValue,ct,(ot.mode&1)!==0)}ft&&(et.flags|=4)}else ut=(ct.nodeType===9?ct:ct.ownerDocument).createTextNode(ut),ut[Of]=et,et.stateNode=ut}return S$3(et),null;case 13:if(E$2(M$2),ut=et.memoizedState,ot===null||ot.memoizedState!==null&&ot.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,ft=!1;else if(ft=Gg(et),ut!==null&&ut.dehydrated!==null){if(ot===null){if(!ft)throw Error(p$4(318));if(ft=et.memoizedState,ft=ft!==null?ft.dehydrated:null,!ft)throw Error(p$4(317));ft[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$3(et),ft=!1}else zg!==null&&(Gj(zg),zg=null),ft=!0;if(!ft)return et.flags&65536?et:null}return et.flags&128?(et.lanes=ct,et):(ut=ut!==null,ut!==(ot!==null&&ot.memoizedState!==null)&&ut&&(et.child.flags|=8192,et.mode&1&&(ot===null||M$2.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$3(et),null);case 4:return Jh(),Bj(ot,et),ot===null&&sf(et.stateNode.containerInfo),S$3(et),null;case 10:return Rg(et.type._context),S$3(et),null;case 17:return Zf(et.type)&&$f(),S$3(et),null;case 19:if(E$2(M$2),ft=et.memoizedState,ft===null)return S$3(et),null;if(ut=(et.flags&128)!==0,zt=ft.rendering,zt===null)if(ut)Ej(ft,!1);else{if(T$2!==0||ot!==null&&ot.flags&128)for(ot=et.child;ot!==null;){if(zt=Mh(ot),zt!==null){for(et.flags|=128,Ej(ft,!1),ut=zt.updateQueue,ut!==null&&(et.updateQueue=ut,et.flags|=4),et.subtreeFlags=0,ut=ct,ct=et.child;ct!==null;)ft=ct,ot=ut,ft.flags&=14680066,zt=ft.alternate,zt===null?(ft.childLanes=0,ft.lanes=ot,ft.child=null,ft.subtreeFlags=0,ft.memoizedProps=null,ft.memoizedState=null,ft.updateQueue=null,ft.dependencies=null,ft.stateNode=null):(ft.childLanes=zt.childLanes,ft.lanes=zt.lanes,ft.child=zt.child,ft.subtreeFlags=0,ft.deletions=null,ft.memoizedProps=zt.memoizedProps,ft.memoizedState=zt.memoizedState,ft.updateQueue=zt.updateQueue,ft.type=zt.type,ot=zt.dependencies,ft.dependencies=ot===null?null:{lanes:ot.lanes,firstContext:ot.firstContext}),ct=ct.sibling;return G$3(M$2,M$2.current&1|2),et.child}ot=ot.sibling}ft.tail!==null&&B$3()>Hj&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304)}else{if(!ut)if(ot=Mh(zt),ot!==null){if(et.flags|=128,ut=!0,ct=ot.updateQueue,ct!==null&&(et.updateQueue=ct,et.flags|=4),Ej(ft,!0),ft.tail===null&&ft.tailMode==="hidden"&&!zt.alternate&&!I$2)return S$3(et),null}else 2*B$3()-ft.renderingStartTime>Hj&&ct!==1073741824&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304);ft.isBackwards?(zt.sibling=et.child,et.child=zt):(ct=ft.last,ct!==null?ct.sibling=zt:et.child=zt,ft.last=zt)}return ft.tail!==null?(et=ft.tail,ft.rendering=et,ft.tail=et.sibling,ft.renderingStartTime=B$3(),et.sibling=null,ct=M$2.current,G$3(M$2,ut?ct&1|2:ct&1),et):(S$3(et),null);case 22:case 23:return Ij(),ut=et.memoizedState!==null,ot!==null&&ot.memoizedState!==null!==ut&&(et.flags|=8192),ut&&et.mode&1?gj&1073741824&&(S$3(et),et.subtreeFlags&6&&(et.flags|=8192)):S$3(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj(ot,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),ot=et.flags,ot&65536&&!(ot&128)?(et.flags=ot&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$2(M$2),ot=et.memoizedState,ot!==null&&ot.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(ot,et){var ct=ot.ref;if(ct!==null)if(typeof ct=="function")try{ct(null)}catch(ut){W$3(ot,et,ut)}else ct.current=null}function Nj(ot,et,ct){try{ct()}catch(ut){W$3(ot,et,ut)}}var Oj=!1;function Pj(ot,et){if(Cf=dd,ot=Me(),Ne(ot)){if("selectionStart"in ot)var ct={start:ot.selectionStart,end:ot.selectionEnd};else e:{ct=(ct=ot.ownerDocument)&&ct.defaultView||window;var ut=ct.getSelection&&ct.getSelection();if(ut&&ut.rangeCount!==0){ct=ut.anchorNode;var dt=ut.anchorOffset,ft=ut.focusNode;ut=ut.focusOffset;try{ct.nodeType,ft.nodeType}catch{ct=null;break e}var zt=0,Dt=-1,St=-1,Tt=0,Rt=0,$t=ot,kt=null;t:for(;;){for(var Bt;$t!==ct||dt!==0&&$t.nodeType!==3||(Dt=zt+dt),$t!==ft||ut!==0&&$t.nodeType!==3||(St=zt+ut),$t.nodeType===3&&(zt+=$t.nodeValue.length),(Bt=$t.firstChild)!==null;)kt=$t,$t=Bt;for(;;){if($t===ot)break t;if(kt===ct&&++Tt===dt&&(Dt=zt),kt===ft&&++Rt===ut&&(St=zt),(Bt=$t.nextSibling)!==null)break;$t=kt,kt=$t.parentNode}$t=Bt}ct=Dt===-1||St===-1?null:{start:Dt,end:St}}else ct=null}ct=ct||{start:0,end:0}}else ct=null;for(Df={focusedElem:ot,selectionRange:ct},dd=!1,V$2=et;V$2!==null;)if(et=V$2,ot=et.child,(et.subtreeFlags&1028)!==0&&ot!==null)ot.return=et,V$2=ot;else for(;V$2!==null;){et=V$2;try{var Ft=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(Ft!==null){var jt=Ft.memoizedProps,Kt=Ft.memoizedState,Yt=et.stateNode,Ut=Yt.getSnapshotBeforeUpdate(et.elementType===et.type?jt:Lg(et.type,jt),Kt);Yt.__reactInternalSnapshotBeforeUpdate=Ut}break;case 3:var Jt=et.stateNode.containerInfo;Jt.nodeType===1?Jt.textContent="":Jt.nodeType===9&&Jt.documentElement&&Jt.removeChild(Jt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch(Ht){W$3(et,et.return,Ht)}if(ot=et.sibling,ot!==null){ot.return=et.return,V$2=ot;break}V$2=et.return}return Ft=Oj,Oj=!1,Ft}function Qj(ot,et,ct){var ut=et.updateQueue;if(ut=ut!==null?ut.lastEffect:null,ut!==null){var dt=ut=ut.next;do{if((dt.tag&ot)===ot){var ft=dt.destroy;dt.destroy=void 0,ft!==void 0&&Nj(et,ct,ft)}dt=dt.next}while(dt!==ut)}}function Rj(ot,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var ct=et=et.next;do{if((ct.tag&ot)===ot){var ut=ct.create;ct.destroy=ut()}ct=ct.next}while(ct!==et)}}function Sj(ot){var et=ot.ref;if(et!==null){var ct=ot.stateNode;switch(ot.tag){case 5:ot=ct;break;default:ot=ct}typeof et=="function"?et(ot):et.current=ot}}function Tj(ot){var et=ot.alternate;et!==null&&(ot.alternate=null,Tj(et)),ot.child=null,ot.deletions=null,ot.sibling=null,ot.tag===5&&(et=ot.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),ot.stateNode=null,ot.return=null,ot.dependencies=null,ot.memoizedProps=null,ot.memoizedState=null,ot.pendingProps=null,ot.stateNode=null,ot.updateQueue=null}function Uj(ot){return ot.tag===5||ot.tag===3||ot.tag===4}function Vj(ot){e:for(;;){for(;ot.sibling===null;){if(ot.return===null||Uj(ot.return))return null;ot=ot.return}for(ot.sibling.return=ot.return,ot=ot.sibling;ot.tag!==5&&ot.tag!==6&&ot.tag!==18;){if(ot.flags&2||ot.child===null||ot.tag===4)continue e;ot.child.return=ot,ot=ot.child}if(!(ot.flags&2))return ot.stateNode}}function Wj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.nodeType===8?ct.parentNode.insertBefore(ot,et):ct.insertBefore(ot,et):(ct.nodeType===8?(et=ct.parentNode,et.insertBefore(ot,ct)):(et=ct,et.appendChild(ot)),ct=ct._reactRootContainer,ct!=null||et.onclick!==null||(et.onclick=Bf));else if(ut!==4&&(ot=ot.child,ot!==null))for(Wj(ot,et,ct),ot=ot.sibling;ot!==null;)Wj(ot,et,ct),ot=ot.sibling}function Xj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.insertBefore(ot,et):ct.appendChild(ot);else if(ut!==4&&(ot=ot.child,ot!==null))for(Xj(ot,et,ct),ot=ot.sibling;ot!==null;)Xj(ot,et,ct),ot=ot.sibling}var X$3=null,Yj=!1;function Zj(ot,et,ct){for(ct=ct.child;ct!==null;)ak(ot,et,ct),ct=ct.sibling}function ak(ot,et,ct){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ct)}catch{}switch(ct.tag){case 5:U$2||Mj(ct,et);case 6:var ut=X$3,dt=Yj;X$3=null,Zj(ot,et,ct),X$3=ut,Yj=dt,X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?ot.parentNode.removeChild(ct):ot.removeChild(ct)):X$3.removeChild(ct.stateNode));break;case 18:X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?Kf(ot.parentNode,ct):ot.nodeType===1&&Kf(ot,ct),bd(ot)):Kf(X$3,ct.stateNode));break;case 4:ut=X$3,dt=Yj,X$3=ct.stateNode.containerInfo,Yj=!0,Zj(ot,et,ct),X$3=ut,Yj=dt;break;case 0:case 11:case 14:case 15:if(!U$2&&(ut=ct.updateQueue,ut!==null&&(ut=ut.lastEffect,ut!==null))){dt=ut=ut.next;do{var ft=dt,zt=ft.destroy;ft=ft.tag,zt!==void 0&&(ft&2||ft&4)&&Nj(ct,et,zt),dt=dt.next}while(dt!==ut)}Zj(ot,et,ct);break;case 1:if(!U$2&&(Mj(ct,et),ut=ct.stateNode,typeof ut.componentWillUnmount=="function"))try{ut.props=ct.memoizedProps,ut.state=ct.memoizedState,ut.componentWillUnmount()}catch(Dt){W$3(ct,et,Dt)}Zj(ot,et,ct);break;case 21:Zj(ot,et,ct);break;case 22:ct.mode&1?(U$2=(ut=U$2)||ct.memoizedState!==null,Zj(ot,et,ct),U$2=ut):Zj(ot,et,ct);break;default:Zj(ot,et,ct)}}function bk(ot){var et=ot.updateQueue;if(et!==null){ot.updateQueue=null;var ct=ot.stateNode;ct===null&&(ct=ot.stateNode=new Lj),et.forEach(function(ut){var dt=ck.bind(null,ot,ut);ct.has(ut)||(ct.add(ut),ut.then(dt,dt))})}}function dk(ot,et){var ct=et.deletions;if(ct!==null)for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];try{var ft=ot,zt=et,Dt=zt;e:for(;Dt!==null;){switch(Dt.tag){case 5:X$3=Dt.stateNode,Yj=!1;break e;case 3:X$3=Dt.stateNode.containerInfo,Yj=!0;break e;case 4:X$3=Dt.stateNode.containerInfo,Yj=!0;break e}Dt=Dt.return}if(X$3===null)throw Error(p$4(160));ak(ft,zt,dt),X$3=null,Yj=!1;var St=dt.alternate;St!==null&&(St.return=null),dt.return=null}catch(Tt){W$3(dt,et,Tt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,ot),et=et.sibling}function ek(ot,et){var ct=ot.alternate,ut=ot.flags;switch(ot.tag){case 0:case 11:case 14:case 15:if(dk(et,ot),fk(ot),ut&4){try{Qj(3,ot,ot.return),Rj(3,ot)}catch(jt){W$3(ot,ot.return,jt)}try{Qj(5,ot,ot.return)}catch(jt){W$3(ot,ot.return,jt)}}break;case 1:dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return);break;case 5:if(dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return),ot.flags&32){var dt=ot.stateNode;try{ob(dt,"")}catch(jt){W$3(ot,ot.return,jt)}}if(ut&4&&(dt=ot.stateNode,dt!=null)){var ft=ot.memoizedProps,zt=ct!==null?ct.memoizedProps:ft,Dt=ot.type,St=ot.updateQueue;if(ot.updateQueue=null,St!==null)try{Dt==="input"&&ft.type==="radio"&&ft.name!=null&&ab$1(dt,ft),vb(Dt,zt);var Tt=vb(Dt,ft);for(zt=0;zt<St.length;zt+=2){var Rt=St[zt],$t=St[zt+1];Rt==="style"?sb(dt,$t):Rt==="dangerouslySetInnerHTML"?nb(dt,$t):Rt==="children"?ob(dt,$t):ta(dt,Rt,$t,Tt)}switch(Dt){case"input":bb(dt,ft);break;case"textarea":ib(dt,ft);break;case"select":var kt=dt._wrapperState.wasMultiple;dt._wrapperState.wasMultiple=!!ft.multiple;var Bt=ft.value;Bt!=null?fb(dt,!!ft.multiple,Bt,!1):kt!==!!ft.multiple&&(ft.defaultValue!=null?fb(dt,!!ft.multiple,ft.defaultValue,!0):fb(dt,!!ft.multiple,ft.multiple?[]:"",!1))}dt[Pf]=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 6:if(dk(et,ot),fk(ot),ut&4){if(ot.stateNode===null)throw Error(p$4(162));dt=ot.stateNode,ft=ot.memoizedProps;try{dt.nodeValue=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 3:if(dk(et,ot),fk(ot),ut&4&&ct!==null&&ct.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(jt){W$3(ot,ot.return,jt)}break;case 4:dk(et,ot),fk(ot);break;case 13:dk(et,ot),fk(ot),dt=ot.child,dt.flags&8192&&(ft=dt.memoizedState!==null,dt.stateNode.isHidden=ft,!ft||dt.alternate!==null&&dt.alternate.memoizedState!==null||(gk=B$3())),ut&4&&bk(ot);break;case 22:if(Rt=ct!==null&&ct.memoizedState!==null,ot.mode&1?(U$2=(Tt=U$2)||Rt,dk(et,ot),U$2=Tt):dk(et,ot),fk(ot),ut&8192){if(Tt=ot.memoizedState!==null,(ot.stateNode.isHidden=Tt)&&!Rt&&ot.mode&1)for(V$2=ot,Rt=ot.child;Rt!==null;){for($t=V$2=Rt;V$2!==null;){switch(kt=V$2,Bt=kt.child,kt.tag){case 0:case 11:case 14:case 15:Qj(4,kt,kt.return);break;case 1:Mj(kt,kt.return);var Ft=kt.stateNode;if(typeof Ft.componentWillUnmount=="function"){ut=kt,ct=kt.return;try{et=ut,Ft.props=et.memoizedProps,Ft.state=et.memoizedState,Ft.componentWillUnmount()}catch(jt){W$3(ut,ct,jt)}}break;case 5:Mj(kt,kt.return);break;case 22:if(kt.memoizedState!==null){hk($t);continue}}Bt!==null?(Bt.return=kt,V$2=Bt):hk($t)}Rt=Rt.sibling}e:for(Rt=null,$t=ot;;){if($t.tag===5){if(Rt===null){Rt=$t;try{dt=$t.stateNode,Tt?(ft=dt.style,typeof ft.setProperty=="function"?ft.setProperty("display","none","important"):ft.display="none"):(Dt=$t.stateNode,St=$t.memoizedProps.style,zt=St!=null&&St.hasOwnProperty("display")?St.display:null,Dt.style.display=rb("display",zt))}catch(jt){W$3(ot,ot.return,jt)}}}else if($t.tag===6){if(Rt===null)try{$t.stateNode.nodeValue=Tt?"":$t.memoizedProps}catch(jt){W$3(ot,ot.return,jt)}}else if(($t.tag!==22&&$t.tag!==23||$t.memoizedState===null||$t===ot)&&$t.child!==null){$t.child.return=$t,$t=$t.child;continue}if($t===ot)break e;for(;$t.sibling===null;){if($t.return===null||$t.return===ot)break e;Rt===$t&&(Rt=null),$t=$t.return}Rt===$t&&(Rt=null),$t.sibling.return=$t.return,$t=$t.sibling}}break;case 19:dk(et,ot),fk(ot),ut&4&&bk(ot);break;case 21:break;default:dk(et,ot),fk(ot)}}function fk(ot){var et=ot.flags;if(et&2){try{e:{for(var ct=ot.return;ct!==null;){if(Uj(ct)){var ut=ct;break e}ct=ct.return}throw Error(p$4(160))}switch(ut.tag){case 5:var dt=ut.stateNode;ut.flags&32&&(ob(dt,""),ut.flags&=-33);var ft=Vj(ot);Xj(ot,ft,dt);break;case 3:case 4:var zt=ut.stateNode.containerInfo,Dt=Vj(ot);Wj(ot,Dt,zt);break;default:throw Error(p$4(161))}}catch(St){W$3(ot,ot.return,St)}ot.flags&=-3}et&4096&&(ot.flags&=-4097)}function ik(ot,et,ct){V$2=ot,jk(ot)}function jk(ot,et,ct){for(var ut=(ot.mode&1)!==0;V$2!==null;){var dt=V$2,ft=dt.child;if(dt.tag===22&&ut){var zt=dt.memoizedState!==null||Kj;if(!zt){var Dt=dt.alternate,St=Dt!==null&&Dt.memoizedState!==null||U$2;Dt=Kj;var Tt=U$2;if(Kj=zt,(U$2=St)&&!Tt)for(V$2=dt;V$2!==null;)zt=V$2,St=zt.child,zt.tag===22&&zt.memoizedState!==null?kk(dt):St!==null?(St.return=zt,V$2=St):kk(dt);for(;ft!==null;)V$2=ft,jk(ft),ft=ft.sibling;V$2=dt,Kj=Dt,U$2=Tt}lk(ot)}else dt.subtreeFlags&8772&&ft!==null?(ft.return=dt,V$2=ft):lk(ot)}}function lk(ot){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var ct=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$2||Rj(5,et);break;case 1:var ut=et.stateNode;if(et.flags&4&&!U$2)if(ct===null)ut.componentDidMount();else{var dt=et.elementType===et.type?ct.memoizedProps:Lg(et.type,ct.memoizedProps);ut.componentDidUpdate(dt,ct.memoizedState,ut.__reactInternalSnapshotBeforeUpdate)}var ft=et.updateQueue;ft!==null&&ih(et,ft,ut);break;case 3:var zt=et.updateQueue;if(zt!==null){if(ct=null,et.child!==null)switch(et.child.tag){case 5:ct=et.child.stateNode;break;case 1:ct=et.child.stateNode}ih(et,zt,ct)}break;case 5:var Dt=et.stateNode;if(ct===null&&et.flags&4){ct=Dt;var St=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":St.autoFocus&&ct.focus();break;case"img":St.src&&(ct.src=St.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var Tt=et.alternate;if(Tt!==null){var Rt=Tt.memoizedState;if(Rt!==null){var $t=Rt.dehydrated;$t!==null&&bd($t)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$4(163))}U$2||et.flags&512&&Sj(et)}catch(kt){W$3(et,et.return,kt)}}if(et===ot){V$2=null;break}if(ct=et.sibling,ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function hk(ot){for(;V$2!==null;){var et=V$2;if(et===ot){V$2=null;break}var ct=et.sibling;if(ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function kk(ot){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var ct=et.return;try{Rj(4,et)}catch(St){W$3(et,ct,St)}break;case 1:var ut=et.stateNode;if(typeof ut.componentDidMount=="function"){var dt=et.return;try{ut.componentDidMount()}catch(St){W$3(et,dt,St)}}var ft=et.return;try{Sj(et)}catch(St){W$3(et,ft,St)}break;case 5:var zt=et.return;try{Sj(et)}catch(St){W$3(et,zt,St)}}}catch(St){W$3(et,et.return,St)}if(et===ot){V$2=null;break}var Dt=et.sibling;if(Dt!==null){Dt.return=et.return,V$2=Dt;break}V$2=et.return}}var mk=Math.ceil,nk=ua$1.ReactCurrentDispatcher,ok$2=ua$1.ReactCurrentOwner,pk=ua$1.ReactCurrentBatchConfig,K$2=0,R$2=null,Y=null,Z$3=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk$1=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$2(){return K$2&6?B$3():Bk!==-1?Bk:Bk=B$3()}function lh(ot){return ot.mode&1?K$2&2&&Z$3!==0?Z$3&-Z$3:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(ot=C$2,ot!==0||(ot=window.event,ot=ot===void 0?16:jd(ot.type)),ot):1}function mh(ot,et,ct,ut){if(50<zk)throw zk=0,Ak=null,Error(p$4(185));Ac(ot,ct,ut),(!(K$2&2)||ot!==R$2)&&(ot===R$2&&(!(K$2&2)&&(rk|=ct),T$2===4&&Dk(ot,Z$3)),Ek(ot,ut),ct===1&&K$2===0&&!(et.mode&1)&&(Hj=B$3()+500,fg&&jg()))}function Ek(ot,et){var ct=ot.callbackNode;wc$1(ot,et);var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)ct!==null&&bc(ct),ot.callbackNode=null,ot.callbackPriority=0;else if(et=ut&-ut,ot.callbackPriority!==et){if(ct!=null&&bc(ct),et===1)ot.tag===0?ig(Fk.bind(null,ot)):hg(Fk.bind(null,ot)),Jf(function(){!(K$2&6)&&jg()}),ct=null;else{switch(Dc$1(ut)){case 1:ct=fc;break;case 4:ct=gc;break;case 16:ct=hc;break;case 536870912:ct=jc;break;default:ct=hc}ct=Gk(ct,Hk.bind(null,ot))}ot.callbackPriority=et,ot.callbackNode=ct}}function Hk(ot,et){if(Bk=-1,Ck=0,K$2&6)throw Error(p$4(327));var ct=ot.callbackNode;if(Ik()&&ot.callbackNode!==ct)return null;var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)return null;if(ut&30||ut&ot.expiredLanes||et)et=Jk(ot,ut);else{et=ut;var dt=K$2;K$2|=2;var ft=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Hj=B$3()+500,Lk(ot,et));do try{Mk();break}catch(Dt){Nk(ot,Dt)}while(!0);Qg(),nk.current=ft,K$2=dt,Y!==null?et=0:(R$2=null,Z$3=0,et=T$2)}if(et!==0){if(et===2&&(dt=xc(ot),dt!==0&&(ut=dt,et=Ok(ot,dt))),et===1)throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;if(et===6)Dk(ot,ut);else{if(dt=ot.current.alternate,!(ut&30)&&!Pk(dt)&&(et=Jk(ot,ut),et===2&&(ft=xc(ot),ft!==0&&(ut=ft,et=Ok(ot,ft))),et===1))throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;switch(ot.finishedWork=dt,ot.finishedLanes=ut,et){case 0:case 1:throw Error(p$4(345));case 2:Qk(ot,uk$1,vk);break;case 3:if(Dk(ot,ut),(ut&130023424)===ut&&(et=gk+500-B$3(),10<et)){if(uc(ot,0)!==0)break;if(dt=ot.suspendedLanes,(dt&ut)!==ut){L$2(),ot.pingedLanes|=ot.suspendedLanes&dt;break}ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),et);break}Qk(ot,uk$1,vk);break;case 4:if(Dk(ot,ut),(ut&4194240)===ut)break;for(et=ot.eventTimes,dt=-1;0<ut;){var zt=31-oc(ut);ft=1<<zt,zt=et[zt],zt>dt&&(dt=zt),ut&=~ft}if(ut=dt,ut=B$3()-ut,ut=(120>ut?120:480>ut?480:1080>ut?1080:1920>ut?1920:3e3>ut?3e3:4320>ut?4320:1960*mk(ut/1960))-ut,10<ut){ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),ut);break}Qk(ot,uk$1,vk);break;case 5:Qk(ot,uk$1,vk);break;default:throw Error(p$4(329))}}}return Ek(ot,B$3()),ot.callbackNode===ct?Hk.bind(null,ot):null}function Ok(ot,et){var ct=tk;return ot.current.memoizedState.isDehydrated&&(Lk(ot,et).flags|=256),ot=Jk(ot,et),ot!==2&&(et=uk$1,uk$1=ct,et!==null&&Gj(et)),ot}function Gj(ot){uk$1===null?uk$1=ot:uk$1.push.apply(uk$1,ot)}function Pk(ot){for(var et=ot;;){if(et.flags&16384){var ct=et.updateQueue;if(ct!==null&&(ct=ct.stores,ct!==null))for(var ut=0;ut<ct.length;ut++){var dt=ct[ut],ft=dt.getSnapshot;dt=dt.value;try{if(!He(ft(),dt))return!1}catch{return!1}}}if(ct=et.child,et.subtreeFlags&16384&&ct!==null)ct.return=et,et=ct;else{if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(ot,et){for(et&=~sk,et&=~rk,ot.suspendedLanes|=et,ot.pingedLanes&=~et,ot=ot.expirationTimes;0<et;){var ct=31-oc(et),ut=1<<ct;ot[ct]=-1,et&=~ut}}function Fk(ot){if(K$2&6)throw Error(p$4(327));Ik();var et=uc(ot,0);if(!(et&1))return Ek(ot,B$3()),null;var ct=Jk(ot,et);if(ot.tag!==0&&ct===2){var ut=xc(ot);ut!==0&&(et=ut,ct=Ok(ot,ut))}if(ct===1)throw ct=qk,Lk(ot,0),Dk(ot,et),Ek(ot,B$3()),ct;if(ct===6)throw Error(p$4(345));return ot.finishedWork=ot.current.alternate,ot.finishedLanes=et,Qk(ot,uk$1,vk),Ek(ot,B$3()),null}function Rk(ot,et){var ct=K$2;K$2|=1;try{return ot(et)}finally{K$2=ct,K$2===0&&(Hj=B$3()+500,fg&&jg())}}function Sk(ot){xk!==null&&xk.tag===0&&!(K$2&6)&&Ik();var et=K$2;K$2|=1;var ct=pk.transition,ut=C$2;try{if(pk.transition=null,C$2=1,ot)return ot()}finally{C$2=ut,pk.transition=ct,K$2=et,!(K$2&6)&&jg()}}function Ij(){gj=fj.current,E$2(fj)}function Lk(ot,et){ot.finishedWork=null,ot.finishedLanes=0;var ct=ot.timeoutHandle;if(ct!==-1&&(ot.timeoutHandle=-1,Gf(ct)),Y!==null)for(ct=Y.return;ct!==null;){var ut=ct;switch(wg(ut),ut.tag){case 1:ut=ut.type.childContextTypes,ut!=null&&$f();break;case 3:Jh(),E$2(Wf),E$2(H$2),Oh();break;case 5:Lh(ut);break;case 4:Jh();break;case 13:E$2(M$2);break;case 19:E$2(M$2);break;case 10:Rg(ut.type._context);break;case 22:case 23:Ij()}ct=ct.return}if(R$2=ot,Y=ot=wh(ot.current,null),Z$3=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk$1=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(ct=Wg[et],ut=ct.interleaved,ut!==null){ct.interleaved=null;var dt=ut.next,ft=ct.pending;if(ft!==null){var zt=ft.next;ft.next=dt,ut.next=zt}ct.pending=ut}Wg=null}return ot}function Nk(ot,et){do{var ct=Y;try{if(Qg(),Ph.current=ai,Sh){for(var ut=N$3.memoizedState;ut!==null;){var dt=ut.queue;dt!==null&&(dt.pending=null),ut=ut.next}Sh=!1}if(Rh=0,P$2=O$1=N$3=null,Th=!1,Uh=0,ok$2.current=null,ct===null||ct.return===null){T$2=1,qk=et,Y=null;break}e:{var ft=ot,zt=ct.return,Dt=ct,St=et;if(et=Z$3,Dt.flags|=32768,St!==null&&typeof St=="object"&&typeof St.then=="function"){var Tt=St,Rt=Dt,$t=Rt.tag;if(!(Rt.mode&1)&&($t===0||$t===11||$t===15)){var kt=Rt.alternate;kt?(Rt.updateQueue=kt.updateQueue,Rt.memoizedState=kt.memoizedState,Rt.lanes=kt.lanes):(Rt.updateQueue=null,Rt.memoizedState=null)}var Bt=Vi(zt);if(Bt!==null){Bt.flags&=-257,Wi(Bt,zt,Dt,ft,et),Bt.mode&1&&Ti(ft,Tt,et),et=Bt,St=Tt;var Ft=et.updateQueue;if(Ft===null){var jt=new Set;jt.add(St),et.updateQueue=jt}else Ft.add(St);break e}else{if(!(et&1)){Ti(ft,Tt,et),uj();break e}St=Error(p$4(426))}}else if(I$2&&Dt.mode&1){var Kt=Vi(zt);if(Kt!==null){!(Kt.flags&65536)&&(Kt.flags|=256),Wi(Kt,zt,Dt,ft,et),Jg(Ki(St,Dt));break e}}ft=St=Ki(St,Dt),T$2!==4&&(T$2=2),tk===null?tk=[ft]:tk.push(ft),ft=zt;do{switch(ft.tag){case 3:ft.flags|=65536,et&=-et,ft.lanes|=et;var Yt=Oi(ft,St,et);fh(ft,Yt);break e;case 1:Dt=St;var Ut=ft.type,Jt=ft.stateNode;if(!(ft.flags&128)&&(typeof Ut.getDerivedStateFromError=="function"||Jt!==null&&typeof Jt.componentDidCatch=="function"&&(Si===null||!Si.has(Jt)))){ft.flags|=65536,et&=-et,ft.lanes|=et;var Ht=Ri(ft,Dt,et);fh(ft,Ht);break e}}ft=ft.return}while(ft!==null)}Tk(ct)}catch(e0){et=e0,Y===ct&&ct!==null&&(Y=ct=ct.return);continue}break}while(!0)}function Kk(){var ot=nk.current;return nk.current=ai,ot===null?ai:ot}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R$2===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$2,Z$3)}function Jk(ot,et){var ct=K$2;K$2|=2;var ut=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Lk(ot,et));do try{Uk();break}catch(dt){Nk(ot,dt)}while(!0);if(Qg(),K$2=ct,nk.current=ut,Y!==null)throw Error(p$4(261));return R$2=null,Z$3=0,T$2}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(ot){var et=Wk(ot.alternate,ot,gj);ot.memoizedProps=ot.pendingProps,et===null?Tk(ot):Y=et,ok$2.current=null}function Tk(ot){var et=ot;do{var ct=et.alternate;if(ot=et.return,et.flags&32768){if(ct=Jj(ct,et),ct!==null){ct.flags&=32767,Y=ct;return}if(ot!==null)ot.flags|=32768,ot.subtreeFlags=0,ot.deletions=null;else{T$2=6,Y=null;return}}else if(ct=Fj(ct,et,gj),ct!==null){Y=ct;return}if(et=et.sibling,et!==null){Y=et;return}Y=et=ot}while(et!==null);T$2===0&&(T$2=5)}function Qk(ot,et,ct){var ut=C$2,dt=pk.transition;try{pk.transition=null,C$2=1,Xk(ot,et,ct,ut)}finally{pk.transition=dt,C$2=ut}return null}function Xk(ot,et,ct,ut){do Ik();while(xk!==null);if(K$2&6)throw Error(p$4(327));ct=ot.finishedWork;var dt=ot.finishedLanes;if(ct===null)return null;if(ot.finishedWork=null,ot.finishedLanes=0,ct===ot.current)throw Error(p$4(177));ot.callbackNode=null,ot.callbackPriority=0;var ft=ct.lanes|ct.childLanes;if(Bc(ot,ft),ot===R$2&&(Y=R$2=null,Z$3=0),!(ct.subtreeFlags&2064)&&!(ct.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),ft=(ct.flags&15990)!==0,ct.subtreeFlags&15990||ft){ft=pk.transition,pk.transition=null;var zt=C$2;C$2=1;var Dt=K$2;K$2|=4,ok$2.current=null,Pj(ot,ct),ek(ct,ot),Oe$1(Df),dd=!!Cf,Df=Cf=null,ot.current=ct,ik(ct),dc(),K$2=Dt,C$2=zt,pk.transition=ft}else ot.current=ct;if(wk&&(wk=!1,xk=ot,yk=dt),ft=ot.pendingLanes,ft===0&&(Si=null),mc(ct.stateNode),Ek(ot,B$3()),et!==null)for(ut=ot.onRecoverableError,ct=0;ct<et.length;ct++)dt=et[ct],ut(dt.value,{componentStack:dt.stack,digest:dt.digest});if(Pi)throw Pi=!1,ot=Qi,Qi=null,ot;return yk&1&&ot.tag!==0&&Ik(),ft=ot.pendingLanes,ft&1?ot===Ak?zk++:(zk=0,Ak=ot):zk=0,jg(),null}function Ik(){if(xk!==null){var ot=Dc$1(yk),et=pk.transition,ct=C$2;try{if(pk.transition=null,C$2=16>ot?16:ot,xk===null)var ut=!1;else{if(ot=xk,xk=null,yk=0,K$2&6)throw Error(p$4(331));var dt=K$2;for(K$2|=4,V$2=ot.current;V$2!==null;){var ft=V$2,zt=ft.child;if(V$2.flags&16){var Dt=ft.deletions;if(Dt!==null){for(var St=0;St<Dt.length;St++){var Tt=Dt[St];for(V$2=Tt;V$2!==null;){var Rt=V$2;switch(Rt.tag){case 0:case 11:case 15:Qj(8,Rt,ft)}var $t=Rt.child;if($t!==null)$t.return=Rt,V$2=$t;else for(;V$2!==null;){Rt=V$2;var kt=Rt.sibling,Bt=Rt.return;if(Tj(Rt),Rt===Tt){V$2=null;break}if(kt!==null){kt.return=Bt,V$2=kt;break}V$2=Bt}}}var Ft=ft.alternate;if(Ft!==null){var jt=Ft.child;if(jt!==null){Ft.child=null;do{var Kt=jt.sibling;jt.sibling=null,jt=Kt}while(jt!==null)}}V$2=ft}}if(ft.subtreeFlags&2064&&zt!==null)zt.return=ft,V$2=zt;else e:for(;V$2!==null;){if(ft=V$2,ft.flags&2048)switch(ft.tag){case 0:case 11:case 15:Qj(9,ft,ft.return)}var Yt=ft.sibling;if(Yt!==null){Yt.return=ft.return,V$2=Yt;break e}V$2=ft.return}}var Ut=ot.current;for(V$2=Ut;V$2!==null;){zt=V$2;var Jt=zt.child;if(zt.subtreeFlags&2064&&Jt!==null)Jt.return=zt,V$2=Jt;else e:for(zt=Ut;V$2!==null;){if(Dt=V$2,Dt.flags&2048)try{switch(Dt.tag){case 0:case 11:case 15:Rj(9,Dt)}}catch(e0){W$3(Dt,Dt.return,e0)}if(Dt===zt){V$2=null;break e}var Ht=Dt.sibling;if(Ht!==null){Ht.return=Dt.return,V$2=Ht;break e}V$2=Dt.return}}if(K$2=dt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,ot)}catch{}ut=!0}return ut}finally{C$2=ct,pk.transition=et}}return!1}function Yk(ot,et,ct){et=Ki(ct,et),et=Oi(ot,et,1),ot=dh(ot,et,1),et=L$2(),ot!==null&&(Ac(ot,1,et),Ek(ot,et))}function W$3(ot,et,ct){if(ot.tag===3)Yk(ot,ot,ct);else for(;et!==null;){if(et.tag===3){Yk(et,ot,ct);break}else if(et.tag===1){var ut=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof ut.componentDidCatch=="function"&&(Si===null||!Si.has(ut))){ot=Ki(ct,ot),ot=Ri(et,ot,1),et=dh(et,ot,1),ot=L$2(),et!==null&&(Ac(et,1,ot),Ek(et,ot));break}}et=et.return}}function Ui(ot,et,ct){var ut=ot.pingCache;ut!==null&&ut.delete(et),et=L$2(),ot.pingedLanes|=ot.suspendedLanes&ct,R$2===ot&&(Z$3&ct)===ct&&(T$2===4||T$2===3&&(Z$3&130023424)===Z$3&&500>B$3()-gk?Lk(ot,0):sk|=ct),Ek(ot,et)}function Zk(ot,et){et===0&&(ot.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var ct=L$2();ot=Zg(ot,et),ot!==null&&(Ac(ot,et,ct),Ek(ot,ct))}function vj(ot){var et=ot.memoizedState,ct=0;et!==null&&(ct=et.retryLane),Zk(ot,ct)}function ck(ot,et){var ct=0;switch(ot.tag){case 13:var ut=ot.stateNode,dt=ot.memoizedState;dt!==null&&(ct=dt.retryLane);break;case 19:ut=ot.stateNode;break;default:throw Error(p$4(314))}ut!==null&&ut.delete(et),Zk(ot,ct)}var Wk;Wk=function(ot,et,ct){if(ot!==null)if(ot.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(ot.lanes&ct)&&!(et.flags&128))return Ug=!1,zj(ot,et,ct);Ug=!!(ot.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng$1,et.index);switch(et.lanes=0,et.tag){case 2:var ut=et.type;jj(ot,et),ot=et.pendingProps;var dt=Yf(et,H$2.current);Tg(et,ct),dt=Xh(null,et,ut,ot,dt,ct);var ft=bi();return et.flags|=1,typeof dt=="object"&&dt!==null&&typeof dt.render=="function"&&dt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(ut)?(ft=!0,cg(et)):ft=!1,et.memoizedState=dt.state!==null&&dt.state!==void 0?dt.state:null,ah(et),dt.updater=nh,et.stateNode=dt,dt._reactInternals=et,rh(et,ut,ot,ct),et=kj(null,et,ut,!0,ft,ct)):(et.tag=0,I$2&&ft&&vg(et),Yi(null,et,dt,ct),et=et.child),et;case 16:ut=et.elementType;e:{switch(jj(ot,et),ot=et.pendingProps,dt=ut._init,ut=dt(ut._payload),et.type=ut,dt=et.tag=$k(ut),ot=Lg(ut,ot),dt){case 0:et=dj(null,et,ut,ot,ct);break e;case 1:et=ij(null,et,ut,ot,ct);break e;case 11:et=Zi(null,et,ut,ot,ct);break e;case 14:et=aj(null,et,ut,Lg(ut.type,ot),ct);break e}throw Error(p$4(306,ut,""))}return et;case 0:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),dj(ot,et,ut,dt,ct);case 1:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),ij(ot,et,ut,dt,ct);case 3:e:{if(lj(et),ot===null)throw Error(p$4(387));ut=et.pendingProps,ft=et.memoizedState,dt=ft.element,bh(ot,et),gh(et,ut,null,ct);var zt=et.memoizedState;if(ut=zt.element,ft.isDehydrated)if(ft={element:ut,isDehydrated:!1,cache:zt.cache,pendingSuspenseBoundaries:zt.pendingSuspenseBoundaries,transitions:zt.transitions},et.updateQueue.baseState=ft,et.memoizedState=ft,et.flags&256){dt=Ki(Error(p$4(423)),et),et=mj(ot,et,ut,ct,dt);break e}else if(ut!==dt){dt=Ki(Error(p$4(424)),et),et=mj(ot,et,ut,ct,dt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,ct=Ch(et,null,ut,ct),et.child=ct;ct;)ct.flags=ct.flags&-3|4096,ct=ct.sibling;else{if(Ig(),ut===dt){et=$i(ot,et,ct);break e}Yi(ot,et,ut,ct)}et=et.child}return et;case 5:return Kh(et),ot===null&&Eg(et),ut=et.type,dt=et.pendingProps,ft=ot!==null?ot.memoizedProps:null,zt=dt.children,Ef(ut,dt)?zt=null:ft!==null&&Ef(ut,ft)&&(et.flags|=32),hj(ot,et),Yi(ot,et,zt,ct),et.child;case 6:return ot===null&&Eg(et),null;case 13:return pj(ot,et,ct);case 4:return Ih(et,et.stateNode.containerInfo),ut=et.pendingProps,ot===null?et.child=Bh(et,null,ut,ct):Yi(ot,et,ut,ct),et.child;case 11:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),Zi(ot,et,ut,dt,ct);case 7:return Yi(ot,et,et.pendingProps,ct),et.child;case 8:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 12:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 10:e:{if(ut=et.type._context,dt=et.pendingProps,ft=et.memoizedProps,zt=dt.value,G$3(Mg,ut._currentValue),ut._currentValue=zt,ft!==null)if(He(ft.value,zt)){if(ft.children===dt.children&&!Wf.current){et=$i(ot,et,ct);break e}}else for(ft=et.child,ft!==null&&(ft.return=et);ft!==null;){var Dt=ft.dependencies;if(Dt!==null){zt=ft.child;for(var St=Dt.firstContext;St!==null;){if(St.context===ut){if(ft.tag===1){St=ch$1(-1,ct&-ct),St.tag=2;var Tt=ft.updateQueue;if(Tt!==null){Tt=Tt.shared;var Rt=Tt.pending;Rt===null?St.next=St:(St.next=Rt.next,Rt.next=St),Tt.pending=St}}ft.lanes|=ct,St=ft.alternate,St!==null&&(St.lanes|=ct),Sg(ft.return,ct,et),Dt.lanes|=ct;break}St=St.next}}else if(ft.tag===10)zt=ft.type===et.type?null:ft.child;else if(ft.tag===18){if(zt=ft.return,zt===null)throw Error(p$4(341));zt.lanes|=ct,Dt=zt.alternate,Dt!==null&&(Dt.lanes|=ct),Sg(zt,ct,et),zt=ft.sibling}else zt=ft.child;if(zt!==null)zt.return=ft;else for(zt=ft;zt!==null;){if(zt===et){zt=null;break}if(ft=zt.sibling,ft!==null){ft.return=zt.return,zt=ft;break}zt=zt.return}ft=zt}Yi(ot,et,dt.children,ct),et=et.child}return et;case 9:return dt=et.type,ut=et.pendingProps.children,Tg(et,ct),dt=Vg(dt),ut=ut(dt),et.flags|=1,Yi(ot,et,ut,ct),et.child;case 14:return ut=et.type,dt=Lg(ut,et.pendingProps),dt=Lg(ut.type,dt),aj(ot,et,ut,dt,ct);case 15:return cj(ot,et,et.type,et.pendingProps,ct);case 17:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),jj(ot,et),et.tag=1,Zf(ut)?(ot=!0,cg(et)):ot=!1,Tg(et,ct),ph(et,ut,dt),rh(et,ut,dt,ct),kj(null,et,ut,!0,ot,ct);case 19:return yj(ot,et,ct);case 22:return ej(ot,et,ct)}throw Error(p$4(156,et.tag))};function Gk(ot,et){return ac(ot,et)}function al(ot,et,ct,ut){this.tag=ot,this.key=ct,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ut,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(ot,et,ct,ut){return new al(ot,et,ct,ut)}function bj(ot){return ot=ot.prototype,!(!ot||!ot.isReactComponent)}function $k(ot){if(typeof ot=="function")return bj(ot)?1:0;if(ot!=null){if(ot=ot.$$typeof,ot===Da)return 11;if(ot===Ga)return 14}return 2}function wh(ot,et){var ct=ot.alternate;return ct===null?(ct=Bg(ot.tag,et,ot.key,ot.mode),ct.elementType=ot.elementType,ct.type=ot.type,ct.stateNode=ot.stateNode,ct.alternate=ot,ot.alternate=ct):(ct.pendingProps=et,ct.type=ot.type,ct.flags=0,ct.subtreeFlags=0,ct.deletions=null),ct.flags=ot.flags&14680064,ct.childLanes=ot.childLanes,ct.lanes=ot.lanes,ct.child=ot.child,ct.memoizedProps=ot.memoizedProps,ct.memoizedState=ot.memoizedState,ct.updateQueue=ot.updateQueue,et=ot.dependencies,ct.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},ct.sibling=ot.sibling,ct.index=ot.index,ct.ref=ot.ref,ct}function yh(ot,et,ct,ut,dt,ft){var zt=2;if(ut=ot,typeof ot=="function")bj(ot)&&(zt=1);else if(typeof ot=="string")zt=5;else e:switch(ot){case ya:return Ah(ct.children,dt,ft,et);case za:zt=8,dt|=8;break;case Aa:return ot=Bg(12,ct,et,dt|2),ot.elementType=Aa,ot.lanes=ft,ot;case Ea:return ot=Bg(13,ct,et,dt),ot.elementType=Ea,ot.lanes=ft,ot;case Fa:return ot=Bg(19,ct,et,dt),ot.elementType=Fa,ot.lanes=ft,ot;case Ia:return qj(ct,dt,ft,et);default:if(typeof ot=="object"&&ot!==null)switch(ot.$$typeof){case Ba:zt=10;break e;case Ca:zt=9;break e;case Da:zt=11;break e;case Ga:zt=14;break e;case Ha:zt=16,ut=null;break e}throw Error(p$4(130,ot==null?ot:typeof ot,""))}return et=Bg(zt,ct,et,dt),et.elementType=ot,et.type=ut,et.lanes=ft,et}function Ah(ot,et,ct,ut){return ot=Bg(7,ot,ut,et),ot.lanes=ct,ot}function qj(ot,et,ct,ut){return ot=Bg(22,ot,ut,et),ot.elementType=Ia,ot.lanes=ct,ot.stateNode={isHidden:!1},ot}function xh(ot,et,ct){return ot=Bg(6,ot,null,et),ot.lanes=ct,ot}function zh(ot,et,ct){return et=Bg(4,ot.children!==null?ot.children:[],ot.key,et),et.lanes=ct,et.stateNode={containerInfo:ot.containerInfo,pendingChildren:null,implementation:ot.implementation},et}function bl(ot,et,ct,ut,dt){this.tag=et,this.containerInfo=ot,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=ut,this.onRecoverableError=dt,this.mutableSourceEagerHydrationData=null}function cl$1(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=new bl(ot,et,ct,Dt,St),et===1?(et=1,ft===!0&&(et|=8)):et=0,ft=Bg(3,null,null,et),ot.current=ft,ft.stateNode=ot,ft.memoizedState={element:ut,isDehydrated:ct,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ft),ot}function dl(ot,et,ct){var ut=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:ut==null?null:""+ut,children:ot,containerInfo:et,implementation:ct}}function el$1(ot){if(!ot)return Vf;ot=ot._reactInternals;e:{if(Vb(ot)!==ot||ot.tag!==1)throw Error(p$4(170));var et=ot;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$4(171))}if(ot.tag===1){var ct=ot.type;if(Zf(ct))return bg(ot,ct,et)}return et}function fl(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=cl$1(ct,ut,!0,ot,dt,ft,zt,Dt,St),ot.context=el$1(null),ct=ot.current,ut=L$2(),dt=lh(ct),ft=ch$1(ut,dt),ft.callback=et??null,dh(ct,ft,dt),ot.current.lanes=dt,Ac(ot,dt,ut),Ek(ot,ut),ot}function gl(ot,et,ct,ut){var dt=et.current,ft=L$2(),zt=lh(dt);return ct=el$1(ct),et.context===null?et.context=ct:et.pendingContext=ct,et=ch$1(ft,zt),et.payload={element:ot},ut=ut===void 0?null:ut,ut!==null&&(et.callback=ut),ot=dh(dt,et,zt),ot!==null&&(mh(ot,dt,zt,ft),eh(ot,dt,zt)),zt}function hl(ot){if(ot=ot.current,!ot.child)return null;switch(ot.child.tag){case 5:return ot.child.stateNode;default:return ot.child.stateNode}}function il(ot,et){if(ot=ot.memoizedState,ot!==null&&ot.dehydrated!==null){var ct=ot.retryLane;ot.retryLane=ct!==0&&ct<et?ct:et}}function jl(ot,et){il(ot,et),(ot=ot.alternate)&&il(ot,et)}var ll=typeof reportError=="function"?reportError:function(ot){console.error(ot)};function ml(ot){this._internalRoot=ot}nl.prototype.render=ml.prototype.render=function(ot){var et=this._internalRoot;if(et===null)throw Error(p$4(409));gl(ot,et,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var ot=this._internalRoot;if(ot!==null){this._internalRoot=null;var et=ot.containerInfo;Sk(function(){gl(null,ot,null,null)}),et[uf]=null}};function nl(ot){this._internalRoot=ot}nl.prototype.unstable_scheduleHydration=function(ot){if(ot){var et=Hc();ot={blockedOn:null,target:ot,priority:et};for(var ct=0;ct<Qc.length&&et!==0&&et<Qc[ct].priority;ct++);Qc.splice(ct,0,ot),ct===0&&Vc(ot)}};function ol(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11)}function pl(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11&&(ot.nodeType!==8||ot.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(ot,et,ct,ut,dt){if(dt){if(typeof ut=="function"){var ft=ut;ut=function(){var Tt=hl(zt);ft.call(Tt)}}var zt=fl(et,ut,ot,0,null,!1,!1,"",ql);return ot._reactRootContainer=zt,ot[uf]=zt.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(),zt}for(;dt=ot.lastChild;)ot.removeChild(dt);if(typeof ut=="function"){var Dt=ut;ut=function(){var Tt=hl(St);Dt.call(Tt)}}var St=cl$1(ot,0,!1,null,null,!1,!1,"",ql);return ot._reactRootContainer=St,ot[uf]=St.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(function(){gl(et,St,ct,ut)}),St}function sl(ot,et,ct,ut,dt){var ft=ct._reactRootContainer;if(ft){var zt=ft;if(typeof dt=="function"){var Dt=dt;dt=function(){var St=hl(zt);Dt.call(St)}}gl(et,zt,ot,dt)}else zt=rl(ct,et,ot,dt,ut);return hl(zt)}Ec=function(ot){switch(ot.tag){case 3:var et=ot.stateNode;if(et.current.memoizedState.isDehydrated){var ct=tc(et.pendingLanes);ct!==0&&(Cc(et,ct|1),Ek(et,B$3()),!(K$2&6)&&(Hj=B$3()+500,jg()))}break;case 13:Sk(function(){var ut=Zg(ot,1);if(ut!==null){var dt=L$2();mh(ut,ot,1,dt)}}),jl(ot,1)}},Fc=function(ot){if(ot.tag===13){var et=Zg(ot,134217728);if(et!==null){var ct=L$2();mh(et,ot,134217728,ct)}jl(ot,134217728)}},Gc=function(ot){if(ot.tag===13){var et=lh(ot),ct=Zg(ot,et);if(ct!==null){var ut=L$2();mh(ct,ot,et,ut)}jl(ot,et)}},Hc=function(){return C$2},Ic=function(ot,et){var ct=C$2;try{return C$2=ot,et()}finally{C$2=ct}},yb=function(ot,et,ct){switch(et){case"input":if(bb(ot,ct),et=ct.name,ct.type==="radio"&&et!=null){for(ct=ot;ct.parentNode;)ct=ct.parentNode;for(ct=ct.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<ct.length;et++){var ut=ct[et];if(ut!==ot&&ut.form===ot.form){var dt=Db(ut);if(!dt)throw Error(p$4(90));Wa(ut),bb(ut,dt)}}}break;case"textarea":ib(ot,ct);break;case"select":et=ct.value,et!=null&&fb(ot,!!ct.multiple,et,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(ot){return ot=Zb(ot),ot===null?null:ot.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,reactDom_production_min.createPortal=function(ot,et){var ct=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$4(200));return dl(ot,et,null,ct)},reactDom_production_min.createRoot=function(ot,et){if(!ol(ot))throw Error(p$4(299));var ct=!1,ut="",dt=ll;return et!=null&&(et.unstable_strictMode===!0&&(ct=!0),et.identifierPrefix!==void 0&&(ut=et.identifierPrefix),et.onRecoverableError!==void 0&&(dt=et.onRecoverableError)),et=cl$1(ot,1,!1,null,null,ct,!1,ut,dt),ot[uf]=et.current,sf(ot.nodeType===8?ot.parentNode:ot),new ml(et)},reactDom_production_min.findDOMNode=function(ot){if(ot==null)return null;if(ot.nodeType===1)return ot;var et=ot._reactInternals;if(et===void 0)throw typeof ot.render=="function"?Error(p$4(188)):(ot=Object.keys(ot).join(","),Error(p$4(268,ot)));return ot=Zb(et),ot=ot===null?null:ot.stateNode,ot},reactDom_production_min.flushSync=function(ot){return Sk(ot)},reactDom_production_min.hydrate=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!0,ct)},reactDom_production_min.hydrateRoot=function(ot,et,ct){if(!ol(ot))throw Error(p$4(405));var ut=ct!=null&&ct.hydratedSources||null,dt=!1,ft="",zt=ll;if(ct!=null&&(ct.unstable_strictMode===!0&&(dt=!0),ct.identifierPrefix!==void 0&&(ft=ct.identifierPrefix),ct.onRecoverableError!==void 0&&(zt=ct.onRecoverableError)),et=fl(et,null,ot,1,ct??null,dt,!1,ft,zt),ot[uf]=et.current,sf(ot),ut)for(ot=0;ot<ut.length;ot++)ct=ut[ot],dt=ct._getVersion,dt=dt(ct._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[ct,dt]:et.mutableSourceEagerHydrationData.push(ct,dt);return new nl(et)},reactDom_production_min.render=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!1,ct)},reactDom_production_min.unmountComponentAtNode=function(ot){if(!pl(ot))throw Error(p$4(40));return ot._reactRootContainer?(Sk(function(){sl(null,null,ot,!1,function(){ot._reactRootContainer=null,ot[uf]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=Rk,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(ot,et,ct,ut){if(!pl(ct))throw Error(p$4(200));if(ot==null||ot._reactInternals===void 0)throw Error(p$4(38));return sl(ot,et,ct,!1,ut)},reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ot){console.error(ot)}}checkDCE(),reactDom.exports=reactDom_production_min,reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);class PromiseDelegate{constructor(){vr(this,"promise");vr(this,"resolveInternal");vr(this,"rejectInternal");this.promise=new Promise((et,ct)=>{this.resolveInternal=et,this.rejectInternal=ct})}resolve(et){this.resolveInternal(et)}reject(et){this.rejectInternal(et)}}const workerBlobUrlCache=new Map;function getWorkerBlobUrl(ot,et=!1){const ct=ot.toString(),ut=workerBlobUrlCache.get(ct);if(ut)return console.debug(`Using a cached worker blob URL for ${ct}`),ut;const dt=et?`import "${ct}";`:`importScripts("${ct}");`,ft=new Blob([dt],{type:et?"text/javascript;type=module":"text/javascript"}),zt=URL.createObjectURL(ft);return workerBlobUrlCache.set(ct,zt),zt}function isSameOrigin(ot){return ot.origin===window.location.origin}class CrossOriginWorkerMaker{constructor(et,{shared:ct,...ut}){vr(this,"worker");if(isSameOrigin(et))console.debug(`Loading a worker script from the same origin: ${et}`),this.worker=ct?new SharedWorker(et,ut):new Worker(et,ut);else{console.debug(`Loading a worker script from a different origin: ${et}`);const dt=getWorkerBlobUrl(et,ut.type==="module");this.worker=ct?new SharedWorker(dt,ut):new Worker(dt,ut)}}}function isPyodideConvertiblePrimitive(ot){return typeof ot=="string"||typeof ot=="number"||typeof ot=="boolean"||ot===null||ot===void 0}function isStreamlitConfig(ot){return typeof ot=="object"&&ot!=null&&Object.entries(ot).every(([et,ct])=>typeof et=="string"&&isPyodideConvertiblePrimitive(ct))}function assertStreamlitConfig(ot){if(!isStreamlitConfig(ot))throw new Error(`Invalid streamlitConfig: ${ot}`)}const FINAL_SLASH_RE$1=/\/+$/,INITIAL_SLASH_RE$1=/^\/+/;class StliteKernel{constructor(et){vr(this,"_isDisposed",!1);vr(this,"_worker");vr(this,"_postMessageTarget");vr(this,"_loaded",new PromiseDelegate);vr(this,"_workerInitData");vr(this,"basePath");vr(this,"hostConfigResponse");vr(this,"onProgress");vr(this,"onLoad");vr(this,"onError");vr(this,"onModuleAutoLoad");vr(this,"handleWebSocketMessage",null);if(this.basePath=(et.basePath??window.location.pathname).replace(FINAL_SLASH_RE$1,"").replace(INITIAL_SLASH_RE$1,""),this.hostConfigResponse=et.hostConfigResponse??{},this.onProgress=et.onProgress,this.onLoad=et.onLoad,this.onError=et.onError,this.onModuleAutoLoad=et.onModuleAutoLoad,et.worker)this._worker=et.worker;else{const ct=new CrossOriginWorkerMaker(new URL("/assets/worker-DzcNcnW5.js",import.meta.url),{type:et.workerType,shared:et.sharedWorker??!1});this._worker=ct.worker}this._worker instanceof SharedWorker?(this._worker.port.start(),this._postMessageTarget=this._worker.port):this._postMessageTarget=this._worker,this._postMessageTarget.onmessage=ct=>{const ut=ct.ports[0];this._processWorkerMessage(ct.data,ut)},et.streamlitConfig!=null&&assertStreamlitConfig(et.streamlitConfig),this._workerInitData={entrypoint:et.entrypoint,files:et.files,archives:et.archives,requirements:et.requirements,prebuiltPackageNames:et.prebuiltPackageNames,pyodideUrl:et.pyodideUrl,wheels:et.wheelUrls,streamlitConfig:et.streamlitConfig,idbfsMountpoints:et.idbfsMountpoints,moduleAutoLoad:et.moduleAutoLoad??!1}}get loaded(){return this._loaded.promise}connectWebSocket(et){return this._asyncPostMessage({type:"websocket:connect",data:{path:et}})}sendWebSocketMessage(et){return this._asyncPostMessage({type:"websocket:send",data:{payload:et}})}onWebSocketMessage(et){this.handleWebSocketMessage=et}sendHttpRequest(et){return this._asyncPostMessage({type:"http:request",data:{request:et}},"http:response").then(ct=>({...ct.response,headers:new Headers(Object.fromEntries(ct.response.headers))}))}writeFile(et,ct,ut){return this._asyncPostMessage({type:"file:write",data:{path:et,data:ct,opts:ut}})}renameFile(et,ct){return this._asyncPostMessage({type:"file:rename",data:{oldPath:et,newPath:ct}})}readFile(et,ct){return this._asyncPostMessage({type:"file:read",data:{path:et,opts:ct}},"reply:file:read").then(ut=>ut.content)}unlink(et){return this._asyncPostMessage({type:"file:unlink",data:{path:et}})}install(et){return this._asyncPostMessage({type:"install",data:{requirements:et}})}reboot(et){return this._asyncPostMessage({type:"reboot",data:{entrypoint:et}})}_asyncPostMessage(et,ct="reply"){return new Promise((ut,dt)=>{const ft=new MessageChannel;ft.port1.onmessage=zt=>{ft.port1.close();const Dt=zt.data;if(Dt.error)dt(Dt.error);else{if(Dt.type!==ct)throw new Error(`Unexpected reply type "${Dt.type}"`);ut(Dt.data)}},this._postMessageTarget.postMessage(et,[ft.port2])})}_processWorkerMessage(et,ct){switch(et.type){case"event:start":{this._postMessageTarget.postMessage({type:"initData",data:this._workerInitData});break}case"event:progress":{this.onProgress&&this.onProgress(et.data.message);break}case"event:error":{this.onError&&this.onError(et.data.error);break}case"event:loaded":{this._loaded.resolve(),this.onLoad&&this.onLoad();break}case"websocket:message":{const{payload:ut}=et.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(ut);break}case"event:moduleAutoLoad":{if(ct==null)throw new Error("Port is required for moduleAutoLoad event");this.onModuleAutoLoad&&this.onModuleAutoLoad(et.data.packagesToLoad,new Promise((ut,dt)=>{ct.onmessage=ft=>{const zt=ft.data;zt.type==="moduleAutoLoad:success"?ut(zt.data.loadedPackages):dt(zt.error),ct.close()}}));break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker instanceof SharedWorker?this._worker.port.close():this._worker.terminate(),this._isDisposed=!0)}}const StliteKernelContext=React$1.createContext(void 0),Provider$2=StliteKernelContext.Provider;function StliteKernelProvider(ot){const{children:et,kernel:ct}=ot,ut=reactExports.useMemo(()=>({kernel:ct}),[ct]);return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:et})}useStliteKernel=function(){const ot=reactExports.useContext(StliteKernelContext);if(ot==null)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return ot.kernel};function resolveStliteObjectUrl(ot,et){return ot.sendHttpRequest({method:"GET",path:et,headers:{},body:""}).then(({statusCode:ct,headers:ut,body:dt})=>{if(ct!==200)throw new Error(`Failed to fetch media object: ${ct}`);const ft=ut.get("Content-Type"),zt=new Blob([dt],ft?{type:ft}:void 0);return URL.createObjectURL(zt)})}function resolveStliteObjectUrlIfNeeded(ot,et){return et.startsWith("/media")?resolveStliteObjectUrl(ot,et):Promise.resolve(et)}function resolveLogo(ot,et){return Promise.all([resolveStliteObjectUrlIfNeeded(ot,et.image),resolveStliteObjectUrlIfNeeded(ot,et.iconImage)]).then(([ct,ut])=>(et.image=ct,et.iconImage=ut,et))}function useStliteResolvedLogo(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(null);return reactExports.useEffect(()=>{let dt=!1;const ft=[];return ot==null?ut(null):resolveLogo(et,ot).then(zt=>{dt||(ft.push(zt.image),ft.push(zt.iconImage),ut(zt))}),()=>{ft.forEach(zt=>{URL.revokeObjectURL(zt)}),dt=!0}},[et,ot]),ct}useStliteMediaObjectUrl=function(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(ot);return reactExports.useEffect(()=>{if(et==null||!ot.startsWith("/media"))return;let dt=!1;const ft=[];return resolveStliteObjectUrl(et,ot).then(zt=>{dt||(ft.push(zt),ut(zt))}),()=>{dt=!0,ft.forEach(zt=>{URL.revokeObjectURL(zt)})}},[et,ot]),ct},useStliteMediaObjects=function(ot){const[et,ct]=reactExports.useState(ot),ut=useStliteKernel();return reactExports.useEffect(()=>{if(ut==null)return;let dt=!1;const ft=[],zt=ot.map(Dt=>Dt.url==null||!Dt.url.startsWith("/media")?Dt:resolveStliteObjectUrl(ut,Dt.url).then(St=>dt?Dt:(ft.push(St),{...Dt,url:St})));return Promise.all(zt).then(Dt=>{dt||ct(Dt)}),()=>{dt=!0,ft.forEach(Dt=>{URL.revokeObjectURL(Dt)})}},[ut,ot]),et};const DUMMY_BASE_HOSTNAME="xxx",DUMMY_BASE_PORT=99999,DUMMY_BASE_HOST=DUMMY_BASE_HOSTNAME+":"+DUMMY_BASE_PORT.toString();function extractCustomComponentPath(ot,et){const ct=(DUMMY_BASE_HOST+"/"+ot).replace(/\/$/,""),ut=new RegExp(`https?://${ct}(/.*?$)`),dt=et.match(ut);return dt==null?null:dt[1]}function getParentPath(ot){const et=ot.split("/").slice(0,-1).join("/");return et.startsWith("/")?et:"/"+et}function getRelativePath(ot,et,ct){const ut=getParentPath(et);if(!(ct.host===ot&&ct.pathname.startsWith(ut)))return null;const dt=ct.pathname.slice(ut.length);return dt.startsWith("/")?dt.slice(1):dt}var lib$5={},activitymonitor={},ArrayExt;(function(ot){function et(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0){var T0=(n0+b0)%a0;if(Zt[T0]===o0)return T0}return-1}ot.firstIndexOf=et;function ct(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(var b0=0;b0<u0;++b0){var T0=(n0-b0+a0)%a0;if(Zt[T0]===o0)return T0}return-1}ot.lastIndexOf=ct;function ut(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0){var T0=(n0+b0)%a0;if(o0(Zt[T0],T0))return T0}return-1}ot.findFirstIndex=ut;function dt(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(var b0=0;b0<u0;++b0){var T0=(n0-b0+a0)%a0;if(o0(Zt[T0],T0))return T0}return-1}ot.findLastIndex=dt;function ft(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=ut(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findFirstValue=ft;function zt(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=dt(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findLastValue=zt;function Dt(Zt,o0,n0,r0,a0){r0===void 0&&(r0=0),a0===void 0&&(a0=-1);var u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);for(var b0=r0,T0=a0-r0+1;T0>0;){var O0=T0>>1,E0=b0+O0;n0(Zt[E0],o0)<0?(b0=E0+1,T0-=O0+1):T0=O0}return b0}ot.lowerBound=Dt;function St(Zt,o0,n0,r0,a0){r0===void 0&&(r0=0),a0===void 0&&(a0=-1);var u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);for(var b0=r0,T0=a0-r0+1;T0>0;){var O0=T0>>1,E0=b0+O0;n0(Zt[E0],o0)>0?T0=O0:(b0=E0+1,T0-=O0+1)}return b0}ot.upperBound=St;function Tt(Zt,o0,n0){if(Zt===o0)return!0;if(Zt.length!==o0.length)return!1;for(var r0=0,a0=Zt.length;r0<a0;++r0)if(n0?!n0(Zt[r0],o0[r0]):Zt[r0]!==o0[r0])return!1;return!0}ot.shallowEqual=Tt;function Rt(Zt,o0){o0===void 0&&(o0={});var n0=o0.start,r0=o0.stop,a0=o0.step;if(a0===void 0&&(a0=1),a0===0)throw new Error("Slice `step` cannot be zero.");var u0=Zt.length;n0===void 0?n0=a0<0?u0-1:0:n0<0?n0=Math.max(n0+u0,a0<0?-1:0):n0>=u0&&(n0=a0<0?u0-1:u0),r0===void 0?r0=a0<0?-1:u0:r0<0?r0=Math.max(r0+u0,a0<0?-1:0):r0>=u0&&(r0=a0<0?u0-1:u0);var b0;a0<0&&r0>=n0||a0>0&&n0>=r0?b0=0:a0<0?b0=Math.floor((r0-n0+1)/a0+1):b0=Math.floor((r0-n0-1)/a0+1);for(var T0=[],O0=0;O0<b0;++O0)T0[O0]=Zt[n0+O0*a0];return T0}ot.slice=Rt;function $t(Zt,o0,n0){var r0=Zt.length;if(!(r0<=1)&&(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1),o0!==n0)){for(var a0=Zt[o0],u0=o0<n0?1:-1,b0=o0;b0!==n0;b0+=u0)Zt[b0]=Zt[b0+u0];Zt[n0]=a0}}ot.move=$t;function kt(Zt,o0,n0){o0===void 0&&(o0=0),n0===void 0&&(n0=-1);var r0=Zt.length;if(!(r0<=1))for(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1);o0<n0;){var a0=Zt[o0],u0=Zt[n0];Zt[o0++]=u0,Zt[n0--]=a0}}ot.reverse=kt;function Bt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(!(a0<=1)&&(n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1),!(n0>=r0))){var u0=r0-n0+1;if(o0>0?o0=o0%u0:o0<0&&(o0=(o0%u0+u0)%u0),o0!==0){var b0=n0+o0;kt(Zt,n0,b0-1),kt(Zt,b0,r0),kt(Zt,n0,r0)}}}ot.rotate=Bt;function Ft(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0!==0){n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);var u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(var b0=0;b0<u0;++b0)Zt[(n0+b0)%a0]=o0}}ot.fill=Ft;function jt(Zt,o0,n0){var r0=Zt.length;o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0);for(var a0=r0;a0>o0;--a0)Zt[a0]=Zt[a0-1];Zt[o0]=n0}ot.insert=jt;function Kt(Zt,o0){var n0=Zt.length;if(o0<0&&(o0+=n0),!(o0<0||o0>=n0)){for(var r0=Zt[o0],a0=o0+1;a0<n0;++a0)Zt[a0-1]=Zt[a0];return Zt.length=n0-1,r0}}ot.removeAt=Kt;function Yt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=et(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeFirstOf=Yt;function Ut(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0=ct(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeLastOf=Ut;function Jt(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);for(var u0=0,b0=0;b0<a0;++b0)n0<=r0&&b0>=n0&&b0<=r0&&Zt[b0]===o0||r0<n0&&(b0<=r0||b0>=n0)&&Zt[b0]===o0?u0++:u0>0&&(Zt[b0-u0]=Zt[b0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllOf=Jt;function Ht(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0,u0=ut(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeFirstWhere=Ht;function e0(Zt,o0,n0,r0){n0===void 0&&(n0=-1),r0===void 0&&(r0=0);var a0,u0=dt(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeLastWhere=e0;function t0(Zt,o0,n0,r0){n0===void 0&&(n0=0),r0===void 0&&(r0=-1);var a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);for(var u0=0,b0=0;b0<a0;++b0)n0<=r0&&b0>=n0&&b0<=r0&&o0(Zt[b0],b0)||r0<n0&&(b0<=r0||b0>=n0)&&o0(Zt[b0],b0)?u0++:u0>0&&(Zt[b0-u0]=Zt[b0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllWhere=t0})(ArrayExt||(ArrayExt={}));function iter(ot){var et;return typeof ot.iter=="function"?et=ot.iter():et=new ArrayIterator(ot),et}function each(ot,et){for(var ct=0,ut=iter(ot),dt;(dt=ut.next())!==void 0;)if(et(dt,ct++)===!1)return}var ArrayIterator=function(){function ot(et){this._index=0,this._source=et}return ot.prototype.iter=function(){return this},ot.prototype.clone=function(){var et=new ot(this._source);return et._index=this._index,et},ot.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},ot}();function find$4(ot,et){for(var ct=0,ut=iter(ot),dt;(dt=ut.next())!==void 0;)if(et(dt,ct++))return dt}var Private$2;(function(ot){function et(ct,ut,dt){return dt===0?1/0:ct>ut&&dt>0||ct<ut&&dt<0?0:Math.ceil((ut-ct)/dt)}ot.rangeLength=et})(Private$2||(Private$2={}));var StringExt;(function(ot){function et(zt,Dt,St){St===void 0&&(St=0);for(var Tt=new Array(Dt.length),Rt=0,$t=St,kt=Dt.length;Rt<kt;++Rt,++$t){if($t=zt.indexOf(Dt[Rt],$t),$t===-1)return null;Tt[Rt]=$t}return Tt}ot.findIndices=et;function ct(zt,Dt,St){St===void 0&&(St=0);var Tt=et(zt,Dt,St);if(!Tt)return null;for(var Rt=0,$t=0,kt=Tt.length;$t<kt;++$t){var Bt=Tt[$t]-St;Rt+=Bt*Bt}return{score:Rt,indices:Tt}}ot.matchSumOfSquares=ct;function ut(zt,Dt,St){St===void 0&&(St=0);var Tt=et(zt,Dt,St);if(!Tt)return null;for(var Rt=0,$t=St-1,kt=0,Bt=Tt.length;kt<Bt;++kt){var Ft=Tt[kt];Rt+=Ft-$t-1,$t=Ft}return{score:Rt,indices:Tt}}ot.matchSumOfDeltas=ut;function dt(zt,Dt,St){for(var Tt=[],Rt=0,$t=0,kt=Dt.length;Rt<kt;){for(var Bt=Dt[Rt],Ft=Dt[Rt];++Rt<kt&&Dt[Rt]===Ft+1;)Ft++;$t<Bt&&Tt.push(zt.slice($t,Bt)),Bt<Ft+1&&Tt.push(St(zt.slice(Bt,Ft+1))),$t=Ft+1}return $t<zt.length&&Tt.push(zt.slice($t)),Tt}ot.highlight=dt;function ft(zt,Dt){return zt<Dt?-1:zt>Dt?1:0}ot.cmp=ft})(StringExt||(StringExt={}));var AttachedProperty=function(){function ot(et){this._pid=Private$1.nextPID(),this.name=et.name,this._create=et.create,this._coerce=et.coerce||null,this._compare=et.compare||null,this._changed=et.changed||null}return ot.prototype.get=function(et){var ct,ut=Private$1.ensureMap(et);return this._pid in ut?ct=ut[this._pid]:ct=ut[this._pid]=this._createValue(et),ct},ot.prototype.set=function(et,ct){var ut,dt=Private$1.ensureMap(et);this._pid in dt?ut=dt[this._pid]:ut=dt[this._pid]=this._createValue(et);var ft=this._coerceValue(et,ct);this._maybeNotify(et,ut,dt[this._pid]=ft)},ot.prototype.coerce=function(et){var ct,ut=Private$1.ensureMap(et);this._pid in ut?ct=ut[this._pid]:ct=ut[this._pid]=this._createValue(et);var dt=this._coerceValue(et,ct);this._maybeNotify(et,ct,ut[this._pid]=dt)},ot.prototype._createValue=function(et){var ct=this._create;return ct(et)},ot.prototype._coerceValue=function(et,ct){var ut=this._coerce;return ut?ut(et,ct):ct},ot.prototype._compareValue=function(et,ct){var ut=this._compare;return ut?ut(et,ct):et===ct},ot.prototype._maybeNotify=function(et,ct,ut){var dt=this._changed;dt&&!this._compareValue(ct,ut)&&dt(et,ct,ut)},ot}();(function(ot){function et(ct){Private$1.ownerData.delete(ct)}ot.clearData=et})(AttachedProperty);var Private$1;(function(ot){ot.ownerData=new WeakMap,ot.nextPID=function(){var ct=0;return function(){var ut=Math.random(),dt=(""+ut).slice(2);return"pid-"+dt+"-"+ct++}}();function et(ct){var ut=ot.ownerData.get(ct);return ut||(ut=Object.create(null),ot.ownerData.set(ct,ut),ut)}ot.ensureMap=et})(Private$1||(Private$1={}));var Signal$2=function(){function ot(et){this._blockedCount=0,this.sender=et}return ot.prototype.block=function(et){this._blockedCount++;try{et()}finally{this._blockedCount--}},ot.prototype.connect=function(et,ct){return Private.connect(this,et,ct)},ot.prototype.disconnect=function(et,ct){return Private.disconnect(this,et,ct)},ot.prototype.emit=function(et){this._blockedCount||Private.emit(this,et)},ot}();(function(ot){function et(Tt,Rt){var $t=Private.blockedProperty;$t.set(Tt,$t.get(Tt)+1);try{Rt()}finally{$t.set(Tt,$t.get(Tt)-1)}}ot.blockAll=et;function ct(Tt,Rt){Private.disconnectBetween(Tt,Rt)}ot.disconnectBetween=ct;function ut(Tt){Private.disconnectSender(Tt)}ot.disconnectSender=ut;function dt(Tt){Private.disconnectReceiver(Tt)}ot.disconnectReceiver=dt;function ft(Tt){Private.disconnectAll(Tt)}ot.disconnectAll=ft;function zt(Tt){Private.disconnectAll(Tt)}ot.clearData=zt;function Dt(){return Private.exceptionHandler}ot.getExceptionHandler=Dt;function St(Tt){var Rt=Private.exceptionHandler;return Private.exceptionHandler=Tt,Rt}ot.setExceptionHandler=St})(Signal$2);var Private;(function(ot){ot.exceptionHandler=function(Ut){console.error(Ut)};function et(Ut,Jt,Ht){Ht=Ht||void 0;var e0=St.get(Ut.sender);if(e0||(e0=[],St.set(Ut.sender,e0)),kt(e0,Ut,Jt,Ht))return!1;var t0=Ht||Jt,Zt=Tt.get(t0);Zt||(Zt=[],Tt.set(t0,Zt));var o0={signal:Ut,slot:Jt,thisArg:Ht};return e0.push(o0),Zt.push(o0),!0}ot.connect=et;function ct(Ut,Jt,Ht){Ht=Ht||void 0;var e0=St.get(Ut.sender);if(!e0||e0.length===0)return!1;var t0=kt(e0,Ut,Jt,Ht);if(!t0)return!1;var Zt=Ht||Jt,o0=Tt.get(Zt);return t0.signal=null,Ft(e0),Ft(o0),!0}ot.disconnect=ct;function ut(Ut,Jt){var Ht=St.get(Ut);if(!(!Ht||Ht.length===0)){var e0=Tt.get(Jt);!e0||e0.length===0||(each(e0,function(t0){t0.signal&&t0.signal.sender===Ut&&(t0.signal=null)}),Ft(Ht),Ft(e0))}}ot.disconnectBetween=ut;function dt(Ut){var Jt=St.get(Ut);!Jt||Jt.length===0||(each(Jt,function(Ht){if(Ht.signal){var e0=Ht.thisArg||Ht.slot;Ht.signal=null,Ft(Tt.get(e0))}}),Ft(Jt))}ot.disconnectSender=dt;function ft(Ut){var Jt=Tt.get(Ut);!Jt||Jt.length===0||(each(Jt,function(Ht){if(Ht.signal){var e0=Ht.signal.sender;Ht.signal=null,Ft(St.get(e0))}}),Ft(Jt))}ot.disconnectReceiver=ft;function zt(Ut){dt(Ut),ft(Ut)}ot.disconnectAll=zt;function Dt(Ut,Jt){if(!(ot.blockedProperty.get(Ut.sender)>0)){var Ht=St.get(Ut.sender);if(!(!Ht||Ht.length===0))for(var e0=0,t0=Ht.length;e0<t0;++e0){var Zt=Ht[e0];Zt.signal===Ut&&Bt(Zt,Jt)}}}ot.emit=Dt;var St=new WeakMap,Tt=new WeakMap,Rt=new Set,$t=function(){var Ut=typeof requestAnimationFrame=="function";return Ut?requestAnimationFrame:setImmediate}();function kt(Ut,Jt,Ht,e0){return find$4(Ut,function(t0){return t0.signal===Jt&&t0.slot===Ht&&t0.thisArg===e0})}function Bt(Ut,Jt){var Ht=Ut.signal,e0=Ut.slot,t0=Ut.thisArg;try{e0.call(t0,Ht.sender,Jt)}catch(Zt){ot.exceptionHandler(Zt)}}function Ft(Ut){Rt.size===0&&$t(jt),Rt.add(Ut)}function jt(){Rt.forEach(Kt),Rt.clear()}function Kt(Ut){ArrayExt.removeAllWhere(Ut,Yt)}function Yt(Ut){return Ut.signal===null}ot.blockedProperty=new AttachedProperty({name:"blocked",create:function(){return 0}})})(Private||(Private={}));const index_es6=Object.freeze(Object.defineProperty({__proto__:null,Signal:Signal$2},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(index_es6);Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const signaling_1=require$$0$3;class ActivityMonitor{constructor(et){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new signaling_1.Signal(this),et.signal.connect(this._onSignalFired,this),this._timeout=et.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(et){this._timeout=et}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,signaling_1.Signal.clearData(this))}_onSignalFired(et,ct){clearTimeout(this._timer),this._sender=et,this._args=ct,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}}activitymonitor.ActivityMonitor=ActivityMonitor;var interfaces={};Object.defineProperty(interfaces,"__esModule",{value:!0});var markdowncodeblocks={};(function(ot){Object.defineProperty(ot,"__esModule",{value:!0}),ot.MarkdownCodeBlocks=void 0,function(et){et.CODE_BLOCK_MARKER="```";const ct=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class ut{constructor(Dt){this.startLine=Dt,this.code="",this.endLine=-1}}et.MarkdownCodeBlock=ut;function dt(zt){return ct.indexOf(zt)>-1}et.isMarkdown=dt;function ft(zt){if(!zt||zt==="")return[];const Dt=zt.split(`
|
|
10
10
|
`),St=[];let Tt=null;for(let Rt=0;Rt<Dt.length;Rt++){const $t=Dt[Rt],kt=$t.indexOf(et.CODE_BLOCK_MARKER)===0,Bt=Tt!=null;if(!(!kt&&!Bt))if(Bt)Tt&&(kt?(Tt.endLine=Rt-1,St.push(Tt),Tt=null):Tt.code+=$t+`
|
|
11
11
|
`);else{Tt=new ut(Rt);const Ft=$t.indexOf(et.CODE_BLOCK_MARKER),jt=$t.lastIndexOf(et.CODE_BLOCK_MARKER);Ft!==jt&&(Tt.code=$t.substring(Ft+et.CODE_BLOCK_MARKER.length,jt),Tt.endLine=Rt,St.push(Tt),Tt=null)}}return St}et.findMarkdownCodeBlocks=ft}(ot.MarkdownCodeBlocks||(ot.MarkdownCodeBlocks={}))})(markdowncodeblocks);var pageconfig={},dist$1={exports:{}};(function(ot,et){(function(ct,ut){ut(et)})(commonjsGlobal$1,function(ct){ct.JSONExt=void 0,function(St){St.emptyObject=Object.freeze({}),St.emptyArray=Object.freeze([]);function Tt(Ut){return Ut===null||typeof Ut=="boolean"||typeof Ut=="number"||typeof Ut=="string"}St.isPrimitive=Tt;function Rt(Ut){return Array.isArray(Ut)}St.isArray=Rt;function $t(Ut){return!Tt(Ut)&&!Rt(Ut)}St.isObject=$t;function kt(Ut,Jt){if(Ut===Jt)return!0;if(Tt(Ut)||Tt(Jt))return!1;var Ht=Rt(Ut),e0=Rt(Jt);return Ht!==e0?!1:Ht&&e0?Ft(Ut,Jt):jt(Ut,Jt)}St.deepEqual=kt;function Bt(Ut){return Tt(Ut)?Ut:Rt(Ut)?Kt(Ut):Yt(Ut)}St.deepCopy=Bt;function Ft(Ut,Jt){if(Ut===Jt)return!0;if(Ut.length!==Jt.length)return!1;for(var Ht=0,e0=Ut.length;Ht<e0;++Ht)if(!kt(Ut[Ht],Jt[Ht]))return!1;return!0}function jt(Ut,Jt){if(Ut===Jt)return!0;for(var Ht in Ut)if(Ut[Ht]!==void 0&&!(Ht in Jt))return!1;for(var Ht in Jt)if(Jt[Ht]!==void 0&&!(Ht in Ut))return!1;for(var Ht in Ut){var e0=Ut[Ht],t0=Jt[Ht];if(!(e0===void 0&&t0===void 0)&&(e0===void 0||t0===void 0||!kt(e0,t0)))return!1}return!0}function Kt(Ut){for(var Jt=new Array(Ut.length),Ht=0,e0=Ut.length;Ht<e0;++Ht)Jt[Ht]=Bt(Ut[Ht]);return Jt}function Yt(Ut){var Jt={};for(var Ht in Ut){var e0=Ut[Ht];e0!==void 0&&(Jt[Ht]=Bt(e0))}return Jt}}(ct.JSONExt||(ct.JSONExt={}));var ut=function(){function St(){this._types=[],this._values=[]}return St.prototype.types=function(){return this._types.slice()},St.prototype.hasData=function(Tt){return this._types.indexOf(Tt)!==-1},St.prototype.getData=function(Tt){var Rt=this._types.indexOf(Tt);return Rt!==-1?this._values[Rt]:void 0},St.prototype.setData=function(Tt,Rt){this.clearData(Tt),this._types.push(Tt),this._values.push(Rt)},St.prototype.clearData=function(Tt){var Rt=this._types.indexOf(Tt);Rt!==-1&&(this._types.splice(Rt,1),this._values.splice(Rt,1))},St.prototype.clear=function(){this._types.length=0,this._values.length=0},St}(),dt=function(){function St(){var Tt=this;this.promise=new Promise(function(Rt,$t){Tt._resolve=Rt,Tt._reject=$t})}return St.prototype.resolve=function(Tt){var Rt=this._resolve;Rt(Tt)},St.prototype.reject=function(Tt){var Rt=this._reject;Rt(Tt)},St}(),ft=function(){function St(Tt){this.name=Tt,this._tokenStructuralPropertyT=null}return St}();function zt(St){for(var Tt=0,Rt=0,$t=St.length;Rt<$t;++Rt)Rt%4===0&&(Tt=Math.random()*4294967295>>>0),St[Rt]=Tt&255,Tt>>>=8}ct.Random=void 0,function(St){St.getRandomValues=function(){var Tt=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return Tt&&typeof Tt.getRandomValues=="function"?function(Rt){return Tt.getRandomValues(Rt)}:zt}()}(ct.Random||(ct.Random={}));function Dt(St){for(var Tt=new Uint8Array(16),Rt=new Array(256),$t=0;$t<16;++$t)Rt[$t]="0"+$t.toString(16);for(var $t=16;$t<256;++$t)Rt[$t]=$t.toString(16);return function(){return St(Tt),Tt[6]=64|Tt[6]&15,Tt[8]=128|Tt[8]&63,Rt[Tt[0]]+Rt[Tt[1]]+Rt[Tt[2]]+Rt[Tt[3]]+"-"+Rt[Tt[4]]+Rt[Tt[5]]+"-"+Rt[Tt[6]]+Rt[Tt[7]]+"-"+Rt[Tt[8]]+Rt[Tt[9]]+"-"+Rt[Tt[10]]+Rt[Tt[11]]+Rt[Tt[12]]+Rt[Tt[13]]+Rt[Tt[14]]+Rt[Tt[15]]}}ct.UUID=void 0,function(St){St.uuid4=Dt(ct.Random.getRandomValues)}(ct.UUID||(ct.UUID={})),ct.MimeData=ut,ct.PromiseDelegate=dt,ct.Token=ft,Object.defineProperty(ct,"__esModule",{value:!0})})})(dist$1,dist$1.exports);var distExports=dist$1.exports;function hasKey(ot,et){var ct=ot;et.slice(0,-1).forEach(function(dt){ct=ct[dt]||{}});var ut=et[et.length-1];return ut in ct}function isNumber$3(ot){return typeof ot=="number"||/^0x[0-9a-f]+$/i.test(ot)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(ot)}function isConstructorOrProto(ot,et){return et==="constructor"&&typeof ot[et]=="function"||et==="__proto__"}var minimist=function(ot,et){et||(et={});var ct={bools:{},strings:{},unknownFn:null};typeof et.unknown=="function"&&(ct.unknownFn=et.unknown),typeof et.boolean=="boolean"&&et.boolean?ct.allBools=!0:[].concat(et.boolean).filter(Boolean).forEach(function(Ht){ct.bools[Ht]=!0});var ut={};function dt(Ht){return ut[Ht].some(function(e0){return ct.bools[e0]})}Object.keys(et.alias||{}).forEach(function(Ht){ut[Ht]=[].concat(et.alias[Ht]),ut[Ht].forEach(function(e0){ut[e0]=[Ht].concat(ut[Ht].filter(function(t0){return e0!==t0}))})}),[].concat(et.string).filter(Boolean).forEach(function(Ht){ct.strings[Ht]=!0,ut[Ht]&&[].concat(ut[Ht]).forEach(function(e0){ct.strings[e0]=!0})});var ft=et.default||{},zt={_:[]};function Dt(Ht,e0){return ct.allBools&&/^--[^=]+$/.test(e0)||ct.strings[Ht]||ct.bools[Ht]||ut[Ht]}function St(Ht,e0,t0){for(var Zt=Ht,o0=0;o0<e0.length-1;o0++){var n0=e0[o0];if(isConstructorOrProto(Zt,n0))return;Zt[n0]===void 0&&(Zt[n0]={}),(Zt[n0]===Object.prototype||Zt[n0]===Number.prototype||Zt[n0]===String.prototype)&&(Zt[n0]={}),Zt[n0]===Array.prototype&&(Zt[n0]=[]),Zt=Zt[n0]}var r0=e0[e0.length-1];isConstructorOrProto(Zt,r0)||((Zt===Object.prototype||Zt===Number.prototype||Zt===String.prototype)&&(Zt={}),Zt===Array.prototype&&(Zt=[]),Zt[r0]===void 0||ct.bools[r0]||typeof Zt[r0]=="boolean"?Zt[r0]=t0:Array.isArray(Zt[r0])?Zt[r0].push(t0):Zt[r0]=[Zt[r0],t0])}function Tt(Ht,e0,t0){if(!(t0&&ct.unknownFn&&!Dt(Ht,t0)&&ct.unknownFn(t0)===!1)){var Zt=!ct.strings[Ht]&&isNumber$3(e0)?Number(e0):e0;St(zt,Ht.split("."),Zt),(ut[Ht]||[]).forEach(function(o0){St(zt,o0.split("."),Zt)})}}Object.keys(ct.bools).forEach(function(Ht){Tt(Ht,ft[Ht]===void 0?!1:ft[Ht])});var Rt=[];ot.indexOf("--")!==-1&&(Rt=ot.slice(ot.indexOf("--")+1),ot=ot.slice(0,ot.indexOf("--")));for(var $t=0;$t<ot.length;$t++){var kt=ot[$t],Bt,Ft;if(/^--.+=/.test(kt)){var jt=kt.match(/^--([^=]+)=([\s\S]*)$/);Bt=jt[1];var Kt=jt[2];ct.bools[Bt]&&(Kt=Kt!=="false"),Tt(Bt,Kt,kt)}else if(/^--no-.+/.test(kt))Bt=kt.match(/^--no-(.+)/)[1],Tt(Bt,!1,kt);else if(/^--.+/.test(kt))Bt=kt.match(/^--(.+)/)[1],Ft=ot[$t+1],Ft!==void 0&&!/^(-|--)[^-]/.test(Ft)&&!ct.bools[Bt]&&!ct.allBools&&(!ut[Bt]||!dt(Bt))?(Tt(Bt,Ft,kt),$t+=1):/^(true|false)$/.test(Ft)?(Tt(Bt,Ft==="true",kt),$t+=1):Tt(Bt,ct.strings[Bt]?"":!0,kt);else if(/^-[^-]+/.test(kt)){for(var Yt=kt.slice(1,-1).split(""),Ut=!1,Jt=0;Jt<Yt.length;Jt++){if(Ft=kt.slice(Jt+2),Ft==="-"){Tt(Yt[Jt],Ft,kt);continue}if(/[A-Za-z]/.test(Yt[Jt])&&Ft[0]==="="){Tt(Yt[Jt],Ft.slice(1),kt),Ut=!0;break}if(/[A-Za-z]/.test(Yt[Jt])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(Ft)){Tt(Yt[Jt],Ft,kt),Ut=!0;break}if(Yt[Jt+1]&&Yt[Jt+1].match(/\W/)){Tt(Yt[Jt],kt.slice(Jt+2),kt),Ut=!0;break}else Tt(Yt[Jt],ct.strings[Yt[Jt]]?"":!0,kt)}Bt=kt.slice(-1)[0],!Ut&&Bt!=="-"&&(ot[$t+1]&&!/^(-|--)[^-]/.test(ot[$t+1])&&!ct.bools[Bt]&&(!ut[Bt]||!dt(Bt))?(Tt(Bt,ot[$t+1],kt),$t+=1):ot[$t+1]&&/^(true|false)$/.test(ot[$t+1])?(Tt(Bt,ot[$t+1]==="true",kt),$t+=1):Tt(Bt,ct.strings[Bt]?"":!0,kt))}else if((!ct.unknownFn||ct.unknownFn(kt)!==!1)&&zt._.push(ct.strings._||!isNumber$3(kt)?kt:Number(kt)),et.stopEarly){zt._.push.apply(zt._,ot.slice($t+1));break}}return Object.keys(ft).forEach(function(Ht){hasKey(zt,Ht.split("."))||(St(zt,Ht.split("."),ft[Ht]),(ut[Ht]||[]).forEach(function(e0){St(zt,e0.split("."),ft[Ht])}))}),et["--"]?zt["--"]=Rt.slice():Rt.forEach(function(Ht){zt._.push(Ht)}),zt},url={};function assertPath$2(ot){if(typeof ot!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ot))}function normalizeStringPosix(ot,et){for(var ct="",ut=0,dt=-1,ft=0,zt,Dt=0;Dt<=ot.length;++Dt){if(Dt<ot.length)zt=ot.charCodeAt(Dt);else{if(zt===47)break;zt=47}if(zt===47){if(!(dt===Dt-1||ft===1))if(dt!==Dt-1&&ft===2){if(ct.length<2||ut!==2||ct.charCodeAt(ct.length-1)!==46||ct.charCodeAt(ct.length-2)!==46){if(ct.length>2){var St=ct.lastIndexOf("/");if(St!==ct.length-1){St===-1?(ct="",ut=0):(ct=ct.slice(0,St),ut=ct.length-1-ct.lastIndexOf("/")),dt=Dt,ft=0;continue}}else if(ct.length===2||ct.length===1){ct="",ut=0,dt=Dt,ft=0;continue}}et&&(ct.length>0?ct+="/..":ct="..",ut=2)}else ct.length>0?ct+="/"+ot.slice(dt+1,Dt):ct=ot.slice(dt+1,Dt),ut=Dt-dt-1;dt=Dt,ft=0}else zt===46&&ft!==-1?++ft:ft=-1}return ct}function _format(ot,et){var ct=et.dir||et.root,ut=et.base||(et.name||"")+(et.ext||"");return ct?ct===et.root?ct+ut:ct+ot+ut:ut}var posix={resolve:function(){for(var ot="",et=!1,ct,ut=arguments.length-1;ut>=-1&&!et;ut--){var dt;ut>=0?dt=arguments[ut]:(ct===void 0&&(ct=process.cwd()),dt=ct),assertPath$2(dt),dt.length!==0&&(ot=dt+"/"+ot,et=dt.charCodeAt(0)===47)}return ot=normalizeStringPosix(ot,!et),et?ot.length>0?"/"+ot:"/":ot.length>0?ot:"."},normalize:function(ot){if(assertPath$2(ot),ot.length===0)return".";var et=ot.charCodeAt(0)===47,ct=ot.charCodeAt(ot.length-1)===47;return ot=normalizeStringPosix(ot,!et),ot.length===0&&!et&&(ot="."),ot.length>0&&ct&&(ot+="/"),et?"/"+ot:ot},isAbsolute:function(ot){return assertPath$2(ot),ot.length>0&&ot.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ot,et=0;et<arguments.length;++et){var ct=arguments[et];assertPath$2(ct),ct.length>0&&(ot===void 0?ot=ct:ot+="/"+ct)}return ot===void 0?".":posix.normalize(ot)},relative:function(ot,et){if(assertPath$2(ot),assertPath$2(et),ot===et||(ot=posix.resolve(ot),et=posix.resolve(et),ot===et))return"";for(var ct=1;ct<ot.length&&ot.charCodeAt(ct)===47;++ct);for(var ut=ot.length,dt=ut-ct,ft=1;ft<et.length&&et.charCodeAt(ft)===47;++ft);for(var zt=et.length,Dt=zt-ft,St=dt<Dt?dt:Dt,Tt=-1,Rt=0;Rt<=St;++Rt){if(Rt===St){if(Dt>St){if(et.charCodeAt(ft+Rt)===47)return et.slice(ft+Rt+1);if(Rt===0)return et.slice(ft+Rt)}else dt>St&&(ot.charCodeAt(ct+Rt)===47?Tt=Rt:Rt===0&&(Tt=0));break}var $t=ot.charCodeAt(ct+Rt),kt=et.charCodeAt(ft+Rt);if($t!==kt)break;$t===47&&(Tt=Rt)}var Bt="";for(Rt=ct+Tt+1;Rt<=ut;++Rt)(Rt===ut||ot.charCodeAt(Rt)===47)&&(Bt.length===0?Bt+="..":Bt+="/..");return Bt.length>0?Bt+et.slice(ft+Tt):(ft+=Tt,et.charCodeAt(ft)===47&&++ft,et.slice(ft))},_makeLong:function(ot){return ot},dirname:function(ot){if(assertPath$2(ot),ot.length===0)return".";for(var et=ot.charCodeAt(0),ct=et===47,ut=-1,dt=!0,ft=ot.length-1;ft>=1;--ft)if(et=ot.charCodeAt(ft),et===47){if(!dt){ut=ft;break}}else dt=!1;return ut===-1?ct?"/":".":ct&&ut===1?"//":ot.slice(0,ut)},basename:function(ot,et){if(et!==void 0&&typeof et!="string")throw new TypeError('"ext" argument must be a string');assertPath$2(ot);var ct=0,ut=-1,dt=!0,ft;if(et!==void 0&&et.length>0&&et.length<=ot.length){if(et.length===ot.length&&et===ot)return"";var zt=et.length-1,Dt=-1;for(ft=ot.length-1;ft>=0;--ft){var St=ot.charCodeAt(ft);if(St===47){if(!dt){ct=ft+1;break}}else Dt===-1&&(dt=!1,Dt=ft+1),zt>=0&&(St===et.charCodeAt(zt)?--zt===-1&&(ut=ft):(zt=-1,ut=Dt))}return ct===ut?ut=Dt:ut===-1&&(ut=ot.length),ot.slice(ct,ut)}else{for(ft=ot.length-1;ft>=0;--ft)if(ot.charCodeAt(ft)===47){if(!dt){ct=ft+1;break}}else ut===-1&&(dt=!1,ut=ft+1);return ut===-1?"":ot.slice(ct,ut)}},extname:function(ot){assertPath$2(ot);for(var et=-1,ct=0,ut=-1,dt=!0,ft=0,zt=ot.length-1;zt>=0;--zt){var Dt=ot.charCodeAt(zt);if(Dt===47){if(!dt){ct=zt+1;break}continue}ut===-1&&(dt=!1,ut=zt+1),Dt===46?et===-1?et=zt:ft!==1&&(ft=1):et!==-1&&(ft=-1)}return et===-1||ut===-1||ft===0||ft===1&&et===ut-1&&et===ct+1?"":ot.slice(et,ut)},format:function(ot){if(ot===null||typeof ot!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ot);return _format("/",ot)},parse:function(ot){assertPath$2(ot);var et={root:"",dir:"",base:"",ext:"",name:""};if(ot.length===0)return et;var ct=ot.charCodeAt(0),ut=ct===47,dt;ut?(et.root="/",dt=1):dt=0;for(var ft=-1,zt=0,Dt=-1,St=!0,Tt=ot.length-1,Rt=0;Tt>=dt;--Tt){if(ct=ot.charCodeAt(Tt),ct===47){if(!St){zt=Tt+1;break}continue}Dt===-1&&(St=!1,Dt=Tt+1),ct===46?ft===-1?ft=Tt:Rt!==1&&(Rt=1):ft!==-1&&(Rt=-1)}return ft===-1||Dt===-1||Rt===0||Rt===1&&ft===Dt-1&&ft===zt+1?Dt!==-1&&(zt===0&&ut?et.base=et.name=ot.slice(1,Dt):et.base=et.name=ot.slice(zt,Dt)):(zt===0&&ut?(et.name=ot.slice(1,ft),et.base=ot.slice(1,Dt)):(et.name=ot.slice(zt,ft),et.base=ot.slice(zt,Dt)),et.ext=ot.slice(ft,Dt)),zt>0?et.dir=ot.slice(0,zt-1):ut&&(et.dir="/"),et},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,requiresPort=function(ot,et){if(et=et.split(":")[0],ot=+ot,!ot)return!1;switch(et){case"http":case"ws":return ot!==80;case"https":case"wss":return ot!==443;case"ftp":return ot!==21;case"gopher":return ot!==70;case"file":return!1}return ot!==0},querystringify$1={},has=Object.prototype.hasOwnProperty,undef;function decode$4(ot){try{return decodeURIComponent(ot.replace(/\+/g," "))}catch{return null}}function encode$4(ot){try{return encodeURIComponent(ot)}catch{return null}}function querystring(ot){for(var et=/([^=?#&]+)=?([^&]*)/g,ct={},ut;ut=et.exec(ot);){var dt=decode$4(ut[1]),ft=decode$4(ut[2]);dt===null||ft===null||dt in ct||(ct[dt]=ft)}return ct}function querystringify(ot,et){et=et||"";var ct=[],ut,dt;typeof et!="string"&&(et="?");for(dt in ot)if(has.call(ot,dt)){if(ut=ot[dt],!ut&&(ut===null||ut===undef||isNaN(ut))&&(ut=""),dt=encode$4(dt),ut=encode$4(ut),dt===null||ut===null)continue;ct.push(dt+"="+ut)}return ct.length?et+ct.join("&"):""}querystringify$1.stringify=querystringify,querystringify$1.parse=querystring;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft$1(ot){return(ot||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function(ot,et){return isSpecial(et.protocol)?ot.replace(/\\/g,"/"):ot},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore$1={hash:1,query:1};function lolcation(ot){var et;typeof window<"u"?et=window:typeof commonjsGlobal$1<"u"?et=commonjsGlobal$1:typeof self<"u"?et=self:et={};var ct=et.location||{};ot=ot||ct;var ut={},dt=typeof ot,ft;if(ot.protocol==="blob:")ut=new Url(unescape(ot.pathname),{});else if(dt==="string"){ut=new Url(ot,{});for(ft in ignore$1)delete ut[ft]}else if(dt==="object"){for(ft in ot)ft in ignore$1||(ut[ft]=ot[ft]);ut.slashes===void 0&&(ut.slashes=slashes.test(ot.href))}return ut}function isSpecial(ot){return ot==="file:"||ot==="ftp:"||ot==="http:"||ot==="https:"||ot==="ws:"||ot==="wss:"}function extractProtocol(ot,et){ot=trimLeft$1(ot),ot=ot.replace(CRHTLF,""),et=et||{};var ct=protocolre.exec(ot),ut=ct[1]?ct[1].toLowerCase():"",dt=!!ct[2],ft=!!ct[3],zt=0,Dt;return dt?ft?(Dt=ct[2]+ct[3]+ct[4],zt=ct[2].length+ct[3].length):(Dt=ct[2]+ct[4],zt=ct[2].length):ft?(Dt=ct[3]+ct[4],zt=ct[3].length):Dt=ct[4],ut==="file:"?zt>=2&&(Dt=Dt.slice(2)):isSpecial(ut)?Dt=ct[4]:ut?dt&&(Dt=Dt.slice(2)):zt>=2&&isSpecial(et.protocol)&&(Dt=ct[4]),{protocol:ut,slashes:dt||isSpecial(ut),slashesCount:zt,rest:Dt}}function resolve(ot,et){if(ot==="")return et;for(var ct=(et||"/").split("/").slice(0,-1).concat(ot.split("/")),ut=ct.length,dt=ct[ut-1],ft=!1,zt=0;ut--;)ct[ut]==="."?ct.splice(ut,1):ct[ut]===".."?(ct.splice(ut,1),zt++):zt&&(ut===0&&(ft=!0),ct.splice(ut,1),zt--);return ft&&ct.unshift(""),(dt==="."||dt==="..")&&ct.push(""),ct.join("/")}function Url(ot,et,ct){if(ot=trimLeft$1(ot),ot=ot.replace(CRHTLF,""),!(this instanceof Url))return new Url(ot,et,ct);var ut,dt,ft,zt,Dt,St,Tt=rules.slice(),Rt=typeof et,$t=this,kt=0;for(Rt!=="object"&&Rt!=="string"&&(ct=et,et=null),ct&&typeof ct!="function"&&(ct=qs.parse),et=lolcation(et),dt=extractProtocol(ot||"",et),ut=!dt.protocol&&!dt.slashes,$t.slashes=dt.slashes||ut&&et.slashes,$t.protocol=dt.protocol||et.protocol||"",ot=dt.rest,(dt.protocol==="file:"&&(dt.slashesCount!==2||windowsDriveLetter.test(ot))||!dt.slashes&&(dt.protocol||dt.slashesCount<2||!isSpecial($t.protocol)))&&(Tt[3]=[/(.*)/,"pathname"]);kt<Tt.length;kt++){if(zt=Tt[kt],typeof zt=="function"){ot=zt(ot,$t);continue}ft=zt[0],St=zt[1],ft!==ft?$t[St]=ot:typeof ft=="string"?(Dt=ft==="@"?ot.lastIndexOf(ft):ot.indexOf(ft),~Dt&&(typeof zt[2]=="number"?($t[St]=ot.slice(0,Dt),ot=ot.slice(Dt+zt[2])):($t[St]=ot.slice(Dt),ot=ot.slice(0,Dt)))):(Dt=ft.exec(ot))&&($t[St]=Dt[1],ot=ot.slice(0,Dt.index)),$t[St]=$t[St]||ut&&zt[3]&&et[St]||"",zt[4]&&($t[St]=$t[St].toLowerCase())}ct&&($t.query=ct($t.query)),ut&&et.slashes&&$t.pathname.charAt(0)!=="/"&&($t.pathname!==""||et.pathname!=="")&&($t.pathname=resolve($t.pathname,et.pathname)),$t.pathname.charAt(0)!=="/"&&isSpecial($t.protocol)&&($t.pathname="/"+$t.pathname),required($t.port,$t.protocol)||($t.host=$t.hostname,$t.port=""),$t.username=$t.password="",$t.auth&&(Dt=$t.auth.indexOf(":"),~Dt?($t.username=$t.auth.slice(0,Dt),$t.username=encodeURIComponent(decodeURIComponent($t.username)),$t.password=$t.auth.slice(Dt+1),$t.password=encodeURIComponent(decodeURIComponent($t.password))):$t.username=encodeURIComponent(decodeURIComponent($t.auth)),$t.auth=$t.password?$t.username+":"+$t.password:$t.username),$t.origin=$t.protocol!=="file:"&&isSpecial($t.protocol)&&$t.host?$t.protocol+"//"+$t.host:"null",$t.href=$t.toString()}function set$2(ot,et,ct){var ut=this;switch(ot){case"query":typeof et=="string"&&et.length&&(et=(ct||qs.parse)(et)),ut[ot]=et;break;case"port":ut[ot]=et,required(et,ut.protocol)?et&&(ut.host=ut.hostname+":"+et):(ut.host=ut.hostname,ut[ot]="");break;case"hostname":ut[ot]=et,ut.port&&(et+=":"+ut.port),ut.host=et;break;case"host":ut[ot]=et,port.test(et)?(et=et.split(":"),ut.port=et.pop(),ut.hostname=et.join(":")):(ut.hostname=et,ut.port="");break;case"protocol":ut.protocol=et.toLowerCase(),ut.slashes=!ct;break;case"pathname":case"hash":if(et){var dt=ot==="pathname"?"/":"#";ut[ot]=et.charAt(0)!==dt?dt+et:et}else ut[ot]=et;break;case"username":case"password":ut[ot]=encodeURIComponent(et);break;case"auth":var ft=et.indexOf(":");~ft?(ut.username=et.slice(0,ft),ut.username=encodeURIComponent(decodeURIComponent(ut.username)),ut.password=et.slice(ft+1),ut.password=encodeURIComponent(decodeURIComponent(ut.password))):ut.username=encodeURIComponent(decodeURIComponent(et))}for(var zt=0;zt<rules.length;zt++){var Dt=rules[zt];Dt[4]&&(ut[Dt[1]]=ut[Dt[1]].toLowerCase())}return ut.auth=ut.password?ut.username+":"+ut.password:ut.username,ut.origin=ut.protocol!=="file:"&&isSpecial(ut.protocol)&&ut.host?ut.protocol+"//"+ut.host:"null",ut.href=ut.toString(),ut}function toString$a(ot){(!ot||typeof ot!="function")&&(ot=qs.stringify);var et,ct=this,ut=ct.host,dt=ct.protocol;dt&&dt.charAt(dt.length-1)!==":"&&(dt+=":");var ft=dt+(ct.protocol&&ct.slashes||isSpecial(ct.protocol)?"//":"");return ct.username?(ft+=ct.username,ct.password&&(ft+=":"+ct.password),ft+="@"):ct.password?(ft+=":"+ct.password,ft+="@"):ct.protocol!=="file:"&&isSpecial(ct.protocol)&&!ut&&ct.pathname!=="/"&&(ft+="@"),(ut[ut.length-1]===":"||port.test(ct.hostname)&&!ct.port)&&(ut+=":"),ft+=ut+ct.pathname,et=typeof ct.query=="object"?ot(ct.query):ct.query,et&&(ft+=et.charAt(0)!=="?"?"?"+et:et),ct.hash&&(ft+=ct.hash),ft}Url.prototype={set:set$2,toString:toString$a},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft$1,Url.qs=qs;var urlParse=Url;(function(ot){var et=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.URLExt=void 0;const ct=pathBrowserify,ut=et(urlParse);(function(dt){function ft(Bt){if(typeof document<"u"&&document){const Ft=document.createElement("a");return Ft.href=Bt,Ft}return ut.default(Bt)}dt.parse=ft;function zt(Bt){return ut.default(Bt).hostname}dt.getHostName=zt;function Dt(Bt){return Bt&&ft(Bt).toString()}dt.normalize=Dt;function St(...Bt){const Ft=ut.default(Bt[0],{}),jt=`${Ft.protocol}${Ft.slashes?"//":""}${Ft.auth}${Ft.auth?"@":""}${Ft.host}`,Kt=ct.posix.join(`${jt&&Ft.pathname[0]!=="/"?"/":""}${Ft.pathname}`,...Bt.slice(1));return`${jt}${Kt==="."?"":Kt}`}dt.join=St;function Tt(Bt){return St(...Bt.split("/").map(encodeURIComponent))}dt.encodeParts=Tt;function Rt(Bt){const Ft=Object.keys(Bt).filter(jt=>jt.length>0);return Ft.length?"?"+Ft.map(jt=>{const Kt=encodeURIComponent(String(Bt[jt]));return jt+(Kt?"="+Kt:"")}).join("&"):""}dt.objectToQueryString=Rt;function $t(Bt){return Bt.replace(/^\?/,"").split("&").reduce((Ft,jt)=>{const[Kt,Yt]=jt.split("=");return Kt.length>0&&(Ft[Kt]=decodeURIComponent(Yt||"")),Ft},{})}dt.queryStringToObject=$t;function kt(Bt){const{protocol:Ft}=ft(Bt);return(!Ft||Bt.toLowerCase().indexOf(Ft)!==0)&&Bt.indexOf("/")!==0}dt.isLocal=kt})(ot.URLExt||(ot.URLExt={}))})(url),function(exports){var define_process_env_default={},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PageConfig=void 0;const coreutils_1=distExports,minimist_1=__importDefault(minimist),url_1=url;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document<"u"&&document){const ot=document.getElementById("jupyter-config-data");ot&&(configData=JSON.parse(ot.textContent||""),found=!0)}if(!found&&typeof process<"u"&&process.argv)try{const cli=minimist_1.default(process.argv.slice(2)),path=pathBrowserify;let fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in define_process_env_default&&(fullPath=path.resolve(define_process_env_default.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(ot){console.error(ot)}if(!coreutils_1.JSONExt.isObject(configData))configData=Object.create(null);else for(const ot in configData)typeof configData[ot]!="string"&&(configData[ot]=JSON.stringify(configData[ot]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(ot,et){const ct=getOption(ot);return configData[ot]=et,ct}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(ot){var et,ct,ut,dt;let ft=ot.toShare?getShareUrl():getBaseUrl();const zt=(et=ot.mode)!==null&&et!==void 0?et:getOption("mode"),Dt=(ct=ot.workspace)!==null&&ct!==void 0?ct:getOption("workspace"),St=zt==="single-document"?"doc":"lab";ft=url_1.URLExt.join(ft,St),Dt!==PageConfig.defaultWorkspace&&(ft=url_1.URLExt.join(ft,"workspaces",encodeURIComponent((ut=getOption("workspace"))!==null&&ut!==void 0?ut:PageConfig.defaultWorkspace)));const Tt=(dt=ot.treePath)!==null&&dt!==void 0?dt:getOption("treePath");return Tt&&(ft=url_1.URLExt.join(ft,"tree",url_1.URLExt.encodeParts(Tt))),ft}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(ot){let et=getOption("wsUrl");if(!et){if(ot=ot?url_1.URLExt.normalize(ot):getBaseUrl(),ot.indexOf("http")!==0)return"";et="ws"+ot.slice(4)}return url_1.URLExt.normalize(et)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:ot,format:et,download:ct}){const ut=url_1.URLExt.encodeParts(ot),dt=url_1.URLExt.join(getBaseUrl(),"nbconvert",et,ut);return ct?dt+"?download=true":dt}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){const ot=getOption("notebookVersion");return ot===""?[0,0,0]:JSON.parse(ot)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(ot){if(typeof document>"u"||!document.body)return"";const et=document.body.dataset[ot];return typeof et>"u"?"":decodeURIComponent(et)}(function(ot){function et(dt){try{const ft=getOption(dt);if(ft)return JSON.parse(ft)}catch(ft){console.warn(`Unable to parse ${dt}.`,ft)}return[]}ot.deferred=et("deferredExtensions"),ot.disabled=et("disabledExtensions");function ct(dt){const ft=dt.indexOf(":");let zt="";return ft!==-1&&(zt=dt.slice(0,ft)),ot.deferred.some(Dt=>Dt===dt||zt&&Dt===zt)}ot.isDeferred=ct;function ut(dt){const ft=dt.indexOf(":");let zt="";return ft!==-1&&(zt=dt.slice(0,ft)),ot.disabled.some(Dt=>Dt===dt||zt&&Dt===zt)}ot.isDisabled=ut})(PageConfig.Extension||(PageConfig.Extension={}))})(exports.PageConfig||(exports.PageConfig={}))}(pageconfig);var path$4={};(function(ot){Object.defineProperty(ot,"__esModule",{value:!0}),ot.PathExt=void 0;const et=pathBrowserify;(function(ct){function ut(...kt){const Bt=et.posix.join(...kt);return Bt==="."?"":$t(Bt)}ct.join=ut;function dt(kt,Bt){return et.posix.basename(kt,Bt)}ct.basename=dt;function ft(kt){const Bt=$t(et.posix.dirname(kt));return Bt==="."?"":Bt}ct.dirname=ft;function zt(kt){return et.posix.extname(kt)}ct.extname=zt;function Dt(kt){return kt===""?"":$t(et.posix.normalize(kt))}ct.normalize=Dt;function St(...kt){return $t(et.posix.resolve(...kt))}ct.resolve=St;function Tt(kt,Bt){return $t(et.posix.relative(kt,Bt))}ct.relative=Tt;function Rt(kt){return kt.length>0&&kt.indexOf(".")!==0&&(kt=`.${kt}`),kt}ct.normalizeExtension=Rt;function $t(kt){return kt.indexOf("/")===0&&(kt=kt.slice(1)),kt}ct.removeSlash=$t})(ot.PathExt||(ot.PathExt={}))})(path$4);var text$7={};(function(ot){Object.defineProperty(ot,"__esModule",{value:!0}),ot.Text=void 0,function(et){function ct(zt,Dt){return zt}et.jsIndexToCharIndex=ct;function ut(zt,Dt){return zt}et.charIndexToJsIndex=ut;function dt(zt,Dt=!1){return zt.replace(/^(\w)|[\s-_:]+(\w)/g,function(St,Tt,Rt){return Rt?Rt.toUpperCase():Dt?Tt.toUpperCase():Tt.toLowerCase()})}et.camelCase=dt;function ft(zt){return(zt||"").toLowerCase().split(" ").map(Dt=>Dt.charAt(0).toUpperCase()+Dt.slice(1)).join(" ")}et.titleCase=ft}(ot.Text||(ot.Text={}))})(text$7);var time={},hookCallback;hooks=function(){return hookCallback.apply(null,arguments)};function setHookCallback(ot){hookCallback=ot}function isArray$j(ot){return ot instanceof Array||Object.prototype.toString.call(ot)==="[object Array]"}function isObject$j(ot){return ot!=null&&Object.prototype.toString.call(ot)==="[object Object]"}function hasOwnProp(ot,et){return Object.prototype.hasOwnProperty.call(ot,et)}function isObjectEmpty(ot){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(ot).length===0;var et;for(et in ot)if(hasOwnProp(ot,et))return!1;return!0}function isUndefined$2(ot){return ot===void 0}function isNumber$2(ot){return typeof ot=="number"||Object.prototype.toString.call(ot)==="[object Number]"}function isDate$1(ot){return ot instanceof Date||Object.prototype.toString.call(ot)==="[object Date]"}function map$3(ot,et){var ct=[],ut,dt=ot.length;for(ut=0;ut<dt;++ut)ct.push(et(ot[ut],ut));return ct}function extend$4(ot,et){for(var ct in et)hasOwnProp(et,ct)&&(ot[ct]=et[ct]);return hasOwnProp(et,"toString")&&(ot.toString=et.toString),hasOwnProp(et,"valueOf")&&(ot.valueOf=et.valueOf),ot}function createUTC(ot,et,ct,ut){return createLocalOrUTC(ot,et,ct,ut,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(ot){return ot._pf==null&&(ot._pf=defaultParsingFlags()),ot._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(ot){var et=Object(this),ct=et.length>>>0,ut;for(ut=0;ut<ct;ut++)if(ut in et&&ot.call(this,et[ut],ut,et))return!0;return!1};function isValid$1(ot){var et=null,ct=!1,ut=ot._d&&!isNaN(ot._d.getTime());if(ut&&(et=getParsingFlags(ot),ct=some.call(et.parsedDateParts,function(dt){return dt!=null}),ut=et.overflow<0&&!et.empty&&!et.invalidEra&&!et.invalidMonth&&!et.invalidWeekday&&!et.weekdayMismatch&&!et.nullInput&&!et.invalidFormat&&!et.userInvalidated&&(!et.meridiem||et.meridiem&&ct),ot._strict&&(ut=ut&&et.charsLeftOver===0&&et.unusedTokens.length===0&&et.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(ot))ot._isValid=ut;else return ut;return ot._isValid}function createInvalid(ot){var et=createUTC(NaN);return ot!=null?extend$4(getParsingFlags(et),ot):getParsingFlags(et).userInvalidated=!0,et}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(ot,et){var ct,ut,dt,ft=momentProperties.length;if(isUndefined$2(et._isAMomentObject)||(ot._isAMomentObject=et._isAMomentObject),isUndefined$2(et._i)||(ot._i=et._i),isUndefined$2(et._f)||(ot._f=et._f),isUndefined$2(et._l)||(ot._l=et._l),isUndefined$2(et._strict)||(ot._strict=et._strict),isUndefined$2(et._tzm)||(ot._tzm=et._tzm),isUndefined$2(et._isUTC)||(ot._isUTC=et._isUTC),isUndefined$2(et._offset)||(ot._offset=et._offset),isUndefined$2(et._pf)||(ot._pf=getParsingFlags(et)),isUndefined$2(et._locale)||(ot._locale=et._locale),ft>0)for(ct=0;ct<ft;ct++)ut=momentProperties[ct],dt=et[ut],isUndefined$2(dt)||(ot[ut]=dt);return ot}function Moment(ot){copyConfig(this,ot),this._d=new Date(ot._d!=null?ot._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(ot){return ot instanceof Moment||ot!=null&&ot._isAMomentObject!=null}function warn(ot){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+ot)}function deprecate(ot,et){var ct=!0;return extend$4(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,ot),ct){var ut=[],dt,ft,zt,Dt=arguments.length;for(ft=0;ft<Dt;ft++){if(dt="",typeof arguments[ft]=="object"){dt+=`
|
|
12
12
|
[`+ft+"] ";for(zt in arguments[0])hasOwnProp(arguments[0],zt)&&(dt+=zt+": "+arguments[0][zt]+", ");dt=dt.slice(0,-2)}else dt=arguments[ft];ut.push(dt)}warn(ot+`
|
|
@@ -408,7 +408,7 @@ If this is an installed component that works locally, the app may be having trou
|
|
|
408
408
|
|
|
409
409
|
For more troubleshooting help, please see the [Streamlit Component docs](${COMPONENT_DEVELOPER_URL}) or visit our [forums](${COMMUNITY_URL}).`,ct}function tryParseArgs(ot,et,ct,ut){if(!ut)try{return parseArgs(ot,et)}catch(dt){const ft=ensureError(dt);ct(ft)}return[{},[]]}function compareDataframeArgs(ot,et){return ot===et||ot.length===et.length&&ot.every((ct,ut)=>{const dt=et[ut];return ct.key===dt.key&&ct.value===dt.value})}function ComponentInstance(ot){const[et,ct]=reactExports.useState(),{disabled:ut,element:dt,registry:ft,theme:zt,widgetMgr:Dt,width:St,fragmentId:Tt}=ot,{componentName:Rt,jsonArgs:$t,specialArgs:kt,url:Bt}=dt,[Ft,jt]=tryParseArgs($t,kt,ct,et),Kt=reactExports.useRef({args:{},dataframeArgs:[]}),Yt=compareDataframeArgs(Kt.current.dataframeArgs,jt);Kt.current.args=Ft,Kt.current.dataframeArgs=jt;const[Ut,Jt]=reactExports.useState(),[Ht,e0]=reactExports.useState(isNaN(Ft.height)?void 0:Ft.height),t0=reactExports.useRef(!1),Zt=reactExports.useRef(null),o0=reactExports.useRef(),n0=useTimeout(()=>logWarning(getWarnMessage(Rt,Bt)),COMPONENT_READY_WARNING_TIME_MS/4),r0=useTimeout(()=>Jt(!0),COMPONENT_READY_WARNING_TIME_MS);if(reactExports.useEffect(()=>{t0.current&&sendRenderMessage(Kt.current.args,Kt.current.dataframeArgs,ut,zt,Zt.current??void 0)},[ut,Ht,Yt,$t,zt,St]),reactExports.useEffect(()=>{const b0=O0=>{O0!==void 0&&O0!==Ht&&(isNullOrUndefined$1(Zt.current)||(Zt.current.height=O0.toString(),e0(O0)))},T0=()=>{sendRenderMessage(Kt.current.args,Kt.current.dataframeArgs,ut,zt,Zt.current??void 0),n0(),r0(),t0.current=!0,Jt(!1)};o0.current={isReady:()=>t0.current,element:dt,widgetMgr:Dt,setComponentError:ct,componentReadyCallback:T0,frameHeightCallback:b0,fragmentId:Tt}},[Rt,ut,dt,Ht,Yt,Ut,$t,zt,Dt,r0,n0,Tt]),reactExports.useEffect(()=>{var T0;const b0=((T0=Zt.current)==null?void 0:T0.contentWindow)??void 0;if(b0)return ft.registerListener(b0,createIframeMessageHandler(o0)),()=>{b0&&ft.deregisterListener(b0)}},[ft,Rt]),et)return jsxRuntimeExports.jsx(ErrorElement,{name:et.name,message:et.message});const a0=!t0.current&&!Ut&&Ht!==0&&jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({height:Ht,style:Skeleton$1.SkeletonStyle.ELEMENT})}),u0=!t0.current&&Ut?jsxRuntimeExports.jsx(AlertElement,{width:St,body:getWarnMessage(Rt,Bt),kind:Kind.WARNING}):null;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a0,u0,jsxRuntimeExports.jsx(CustomComponentIFrame,{IframeComponent:StyledComponentIframe,className:"stCustomComponentV1","data-testid":"stCustomComponentV1",allow:DEFAULT_IFRAME_FEATURE_POLICY,ref:Zt,src:getSrc(Rt,ft,Bt),width:St,height:Ht??0,scrolling:"no",sandbox:DEFAULT_IFRAME_SANDBOX_POLICY,title:Rt,componentReady:t0.current})]})}const ComponentInstance$1=withTheme(ComponentInstance);class ComponentRegistry{constructor(et){this.msgListeners=new Map,this.registerListener=(ct,ut)=>{this.msgListeners.has(ct),this.msgListeners.set(ct,ut)},this.deregisterListener=ct=>{this.msgListeners.delete(ct)},this.getComponentURL=(ct,ut)=>this.endpoints.buildComponentURL(ct,ut),this.onMessageEvent=ct=>{if(isNullOrUndefined$1(ct.data)||!ct.data.hasOwnProperty("isStreamlitMessage"))return;if(isNullOrUndefined$1(ct.source)){logWarning("Received component message with no eventSource!",ct.data);return}const ut=this.msgListeners.get(ct.source);if(isNullOrUndefined$1(ut)||typeof ut!="function"){logWarning("Received component message for unregistered ComponentInstance!",ct.data);return}const{type:dt}=ct.data;if(isNullOrUndefined$1(dt)){logWarning("Received Streamlit message with no type!",ct.data);return}ut(dt,ct.data)},this.endpoints=et,window.addEventListener("message",this.onMessageEvent)}}const Maybe=reactExports.memo(function ot({children:et}){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et})},(ot,et)=>!(ot.enable||et.enable));function makeMarkdownHeading(ot,et){switch(ot.toLowerCase()){case Tags.H1:return`# ${et}`;case Tags.H2:return`## ${et}`;case Tags.H3:return`### ${et}`;default:throw new Error(`Unrecognized tag for header: ${ot}`)}}function Heading(ot){const{width:et,element:ct}=ot,{tag:ut,anchor:dt,body:ft,help:zt,hideAnchor:Dt,divider:St}=ct,Tt=React$1.useContext(IsSidebarContext),Rt=React$1.useContext(IsDialogContext),[$t,...kt]=ft.split(`
|
|
410
410
|
`);return jsxRuntimeExports.jsxs("div",{style:{width:et},className:"stHeading","data-testid":"stHeading",children:[jsxRuntimeExports.jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInSidebarOrDialog:Tt||Rt,style:{width:et},"data-testid":"stMarkdownContainer",children:[jsxRuntimeExports.jsx(HeadingWithActionElements,{anchor:dt,help:zt,hideAnchor:Dt,tag:ut,children:jsxRuntimeExports.jsx(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(ut,$t),overrideComponents:{p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment}})}),kt.length>0&&jsxRuntimeExports.jsx(RenderedMarkdown,{source:kt.join(`
|
|
411
|
-
`),allowHTML:!1})]}),St&&jsxRuntimeExports.jsx(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:St.includes("linear"),color:St})]})}StyledCheckbox$1=createStyled("div",{target:"edwcd611"})(({width:ot,theme:et})=>({width:ot,display:"flex",alignItems:"center",minHeight:et.sizes.smallElementHeight}),""),StyledContent=createStyled("div",{target:"edwcd610"})(({visibility:ot})=>({display:ot===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:ot===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}),"");function translateGapWidth(ot,et){let ct=et.spacing.lg;return ot==="medium"?ct=et.spacing.threeXL:ot==="large"&&(ct=et.spacing.fourXL),ct}const StyledHorizontalBlock=createStyled("div",{target:"e1f1d6gn5"})(({theme:ot,gap:et})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(et,ot)}),""),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=createStyled("div",{target:"e1f1d6gn4"})(({theme:ot,isStale:et,width:ct,elementType:ut})=>({width:ct,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:ot.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${ot.spacing.lg}`,zIndex:ot.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${ot.spacing.xs}`,marginBottom:`-${ot.spacing.xs}`},...et&&ut!=="skeleton"?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{},...ut==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(ut)?{marginBottom:`-${ot.spacing.lg}`}:{}}),""),StyledColumn=createStyled("div",{target:"e1f1d6gn3"})(({theme:ot,weight:et,gap:ct,showBorder:ut,verticalAlignment:dt})=>{const{VerticalAlignment:ft}=Block$2.Column,zt=et*100,Dt=translateGapWidth(ct,ot),St=`calc(${zt}% - ${Dt})`;return{width:St,flex:`1 1 ${St}`,[`@media (max-width: ${ot.breakpoints.columns})`]:{minWidth:`calc(100% - ${ot.spacing.twoXL})`},...dt===ft.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:ot.spacing.sm}},...dt===ft.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:ot.spacing.sm}},...dt===ft.CENTER&&{marginTop:"auto",marginBottom:"auto"},...ut&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`}}},""),StyledVerticalBlock=createStyled("div",{target:"e1f1d6gn2"})(({width:ot,theme:et})=>({width:ot,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:et.spacing.lg}),""),StyledVerticalBlockWrapper=createStyled("div",{target:"e1f1d6gn1"})({name:"1wmy9hl",styles:"display:flex;flex-direction:column;flex:1"}),StyledVerticalBlockBorderWrapper=createStyled("div",{target:"e1f1d6gn0"})(({theme:ot,border:et,height:ct})=>({...et&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`},...ct&&{height:`${ct}px`,overflow:"auto"}}),""),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index-B8fuFO6f.js"),[])),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index-BqCUmN8g.js"),__vite__mapDeps([0,1]))),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index-BTcFSez7.js"),__vite__mapDeps([2,1]))),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-CkJQJhep.js").then(async ot=>(await ot.__tla,ot)).then(ot=>ot.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13]))),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index-BvFTSm46.js"),__vite__mapDeps([14,15,16,17,4,6,5]))),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index-C0PQ0fkc.js"),[])),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index-RheWSraw.js"),[])),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index-DYpupVEb.js"),__vite__mapDeps([18,9,10,6,5,19,4,20,15,16,21]))),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index-B976k_ae.js"),__vite__mapDeps([22,17,16,20,6,5]))),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-wvUDp42d.js"),[])),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index-Cnm_EPJy.js"),__vite__mapDeps([23,6,5]))),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index-C_hLmnGD.js"),[])),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index-CVNSqCzF.js"),[])),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index-D6uye6hf.js"),__vite__mapDeps([24,4,5]))),Video=React$1.lazy(()=>__vitePreload(()=>import("./index-B02vCrpB.js"),[])),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index-CH2ZvTfO.js"),__vite__mapDeps([25,4,6,26,8,12]))),Button=React$1.lazy(()=>__vitePreload(()=>import("./index-C3174axP.js"),[])),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index-DDWzHXvN.js"),__vite__mapDeps([27,19,4]))),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index-BIUCqSQk.js"),__vite__mapDeps([28,8]))),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index-Cnquoj5Q.js"),__vite__mapDeps([29,4,30,31]))),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index-C3MTxsAN.js"),__vite__mapDeps([32,33,34,35,36]))),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index-BNNuO9xH.js"),__vite__mapDeps([37,19,4]))),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index-DI8uuyv8.js"),__vite__mapDeps([38,19,4]))),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index-CH7n-Ppq.js"),__vite__mapDeps([39,19,4,40,10,11,41,36]))),Html=React$1.lazy(()=>__vitePreload(()=>import("./index-BrGUvTwf.js"),[])),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index-BpYNJC6s.js"),__vite__mapDeps([42,19,4]))),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index-XDu91tM_.js"),__vite__mapDeps([43,31]))),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index-LOOgUeUX.js"),[])),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index-CdMvOMb7.js"),__vite__mapDeps([44,19,4]))),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index-DKDi9zAJ.js"),__vite__mapDeps([45,19,4]))),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index-Do5EoDM5.js"),__vite__mapDeps([46,7,19,4]))),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index-kDtQE3bj.js"),__vite__mapDeps([47,4,31,26,30]))),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index-e4S25aVD.js"),__vite__mapDeps([48,49,50,34,33,19,4,35,36]))),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index-D3ZPLnGE.js"),__vite__mapDeps([51,49,50,34,19,4,33,41,36]))),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index-IPja5Suf.js"),__vite__mapDeps([52,19,4,40,10,11]))),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BMPhLnQ5.js"),__vite__mapDeps([53,7,49,4,33,41,36]))),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0));function hideIfStale(ot,et){return ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):et}const RawElementNodeRenderer=ot=>{const{node:et}=ot;if(!et)throw new Error("ElementNode not found.");const ct={width:ot.width,disableFullscreenMode:ot.disableFullscreenMode},ut={...ct,widgetMgr:ot.widgetMgr,disabled:ot.widgetsDisabled,fragmentId:et.fragmentId};switch(et.element.type){case"alert":{const ft=et.element.alert;return jsxRuntimeExports.jsx(AlertElement,{icon:ft.icon,body:ft.body,kind:getAlertElementKind(ft.format),...ct})}case"arrowTable":return jsxRuntimeExports.jsx(ArrowTable,{element:et.quiverElement,...ct});case"audio":return jsxRuntimeExports.jsx(Audio,{element:et.element.audio,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"balloons":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Balloons,{scriptRunId:ot.scriptRunId}));case"bokehChart":return jsxRuntimeExports.jsx(DebouncedBokehChart,{element:et.element.bokehChart,...ct});case"code":{const ft=et.element.code;return jsxRuntimeExports.jsx(StreamlitSyntaxHighlighter,{language:ft.language,showLineNumbers:ft.showLineNumbers,wrapLines:ft.wrapLines,children:ft.codeText})}case"deckGlJsonChart":return jsxRuntimeExports.jsx(DeckGlJsonChart,{element:et.element.deckGlJsonChart,...ut});case"docString":return jsxRuntimeExports.jsx(DocString,{element:et.element.docString,...ct});case"empty":return jsxRuntimeExports.jsx("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsxRuntimeExports.jsx(ExceptionElement,{element:et.element.exception,...ct});case"graphvizChart":return jsxRuntimeExports.jsx(GraphVizChart,{element:et.element.graphvizChart,...ct});case"heading":return jsxRuntimeExports.jsx(Heading,{element:et.element.heading,...ct});case"iframe":return jsxRuntimeExports.jsx(IFrame,{element:et.element.iframe,...ct});case"imgs":return jsxRuntimeExports.jsx(ImageList,{element:et.element.imgs,endpoints:ot.endpoints,...ct});case"json":return jsxRuntimeExports.jsx(Json,{element:et.element.json,...ct});case"markdown":return jsxRuntimeExports.jsx(Markdown,{element:et.element.markdown,...ct});case"metric":return jsxRuntimeExports.jsx(Metric,{element:et.element.metric});case"html":return jsxRuntimeExports.jsx(Html,{element:et.element.html,...ct});case"pageLink":{const ft=et.element.pageLink,zt=ut.disabled||ft.disabled;return jsxRuntimeExports.jsx(PageLink,{element:ft,disabled:zt,...ct})}case"progress":return jsxRuntimeExports.jsx(Progress,{element:et.element.progress,...ct});case"skeleton":return jsxRuntimeExports.jsx(Skeleton,{element:et.element.skeleton});case"snow":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Snow,{scriptRunId:ot.scriptRunId}));case"spinner":return jsxRuntimeExports.jsx(Spinner,{element:et.element.spinner,...ct});case"text":return jsxRuntimeExports.jsx(TextElement,{element:et.element.text,...ct});case"video":return jsxRuntimeExports.jsx(Video,{element:et.element.video,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"toast":{const ft=et.element.toast;return jsxRuntimeExports.jsx(Toast,{body:ft.body,icon:ft.icon,...ct},et.scriptRunId)}case"arrowDataFrame":{const ft=et.element.arrowDataFrame;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ArrowDataFrame,{element:ft,data:et.quiverElement,...ft.id&&{key:ft.id},...ut})}case"arrowVegaLiteChart":const dt=et.vegaLiteChartElement;return jsxRuntimeExports.jsx(ArrowVegaLiteChart,{element:dt,...ut},dt.id||void 0);case"audioInput":{const ft=et.element.audioInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(AudioInput,{uploadClient:ot.uploadClient,element:ft,...ut},ft.id)}case"button":{const ft=et.element.button;if(ut.disabled=ut.disabled||ft.disabled,ft.isFormSubmitter){const{formId:zt}=ft,Dt=ot.formsData.formsWithUploads.has(zt);return jsxRuntimeExports.jsx(FormSubmitContent,{element:ft,hasInProgressUpload:Dt,...ut})}return jsxRuntimeExports.jsx(Button,{element:ft,...ut})}case"buttonGroup":{const ft=et.element.buttonGroup;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ButtonGroup,{element:ft,...ut},ft.id)}case"downloadButton":{const ft=et.element.downloadButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DownloadButton,{endpoints:ot.endpoints,element:ft,...ut},ft.id)}case"cameraInput":{const ft=et.element.cameraInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(CameraInput,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"chatInput":{const ft=et.element.chatInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ChatInput,{element:ft,...ut},ft.id)}case"checkbox":{const ft=et.element.checkbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Checkbox,{element:ft,...ut},ft.id)}case"colorPicker":{const ft=et.element.colorPicker;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ColorPicker,{element:ft,...ut},ft.id)}case"componentInstance":return jsxRuntimeExports.jsx(ComponentInstance$1,{registry:ot.componentRegistry,element:et.element.componentInstance,...ut});case"dateInput":{const ft=et.element.dateInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DateInput,{element:ft,...ut},ft.id)}case"fileUploader":{const ft=et.element.fileUploader;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(FileUploader,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"linkButton":{const ft=et.element.linkButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(LinkButton,{element:ft,...ut})}case"multiselect":{const ft=et.element.multiselect;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Multiselect,{element:ft,...ut},ft.id)}case"numberInput":{const ft=et.element.numberInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(NumberInput,{element:ft,...ut},ft.id)}case"plotlyChart":{const ft=et.element.plotlyChart;return jsxRuntimeExports.jsx(PlotlyChart,{element:ft,...ut},ft.id)}case"radio":{const ft=et.element.radio;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Radio,{element:ft,...ut},ft.id)}case"selectbox":{const ft=et.element.selectbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Selectbox$1,{element:ft,...ut},ft.id)}case"slider":{const ft=et.element.slider;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Slider$1,{element:ft,...ut},ft.id)}case"textArea":{const ft=et.element.textArea;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextArea,{element:ft,...ut},ft.id)}case"textInput":{const ft=et.element.textInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextInput,{element:ft,...ut},ft.id)}case"timeInput":{const ft=et.element.timeInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TimeInput,{element:ft,...ut},ft.id)}default:throw new Error(`Unrecognized Element type ${et.element.type}`)}},ElementNodeRenderer=ot=>{const{isFullScreen:et,fragmentIdsThisRun:ct}=React$1.useContext(LibContext),{node:ut,width:dt}=ot,ft=ut.element.type||"",zt=shouldComponentBeEnabled(ft,ot.scriptRunState),Dt=isComponentStale(zt,ut,ot.scriptRunState,ot.scriptRunId,ct),St=getElementId(ut.element),Tt=getKeyFromId(St);return jsxRuntimeExports.jsx(Maybe,{enable:zt,children:jsxRuntimeExports.jsx(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(Tt)),"data-testid":"stElementContainer","data-stale":Dt,isStale:Dt&&!et,width:dt,elementType:ft,children:jsxRuntimeExports.jsx(ErrorBoundary,{width:dt,children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsxRuntimeExports.jsx(RawElementNodeRenderer,{...ot,isStale:Dt})})})})})},BlockNodeRenderer=ot=>{const{node:et}=ot,{fragmentIdsThisRun:ct}=reactExports.useContext(LibContext);if(et.isEmpty&&!et.deltaBlock.allowEmpty)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=shouldComponentBeEnabled("",ot.scriptRunState),dt=isComponentStale(ut,et,ot.scriptRunState,ot.scriptRunId,ct),ft={...ot,node:et},zt=ot.disableFullscreenMode||notNullOrUndefined(et.deltaBlock.dialog)||notNullOrUndefined(et.deltaBlock.popover),Dt=jsxRuntimeExports.jsx(LayoutBlock,{...ft,disableFullscreenMode:zt});if(et.deltaBlock.dialog)return jsxRuntimeExports.jsx(DialogWithProvider,{element:et.deltaBlock.dialog,deltaMsgReceivedAt:et.deltaMsgReceivedAt,children:Dt});if(et.deltaBlock.expandable)return jsxRuntimeExports.jsx(Expander,{empty:et.isEmpty,isStale:dt,element:et.deltaBlock.expandable,children:Dt});if(et.deltaBlock.popover)return jsxRuntimeExports.jsx(Popover,{empty:et.isEmpty,element:et.deltaBlock.popover,width:ot.width,children:Dt});if(et.deltaBlock.type==="form"){const{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,border:$t}=et.deltaBlock.form,kt=ot.formsData.submitButtons.get(St),Bt=kt!==void 0&&kt.length>0;return jsxRuntimeExports.jsx(Form,{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,width:ot.width,hasSubmitButton:Bt,scriptRunState:ot.scriptRunState,widgetMgr:ot.widgetMgr,border:$t,children:Dt})}if(et.deltaBlock.chatMessage)return jsxRuntimeExports.jsx(ChatMessage,{element:et.deltaBlock.chatMessage,endpoints:ot.endpoints,children:Dt});if(et.deltaBlock.column)return jsxRuntimeExports.jsx(StyledColumn,{weight:et.deltaBlock.column.weight??0,gap:et.deltaBlock.column.gap??"",verticalAlignment:et.deltaBlock.column.verticalAlignment??void 0,showBorder:et.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:Dt});if(et.deltaBlock.tabContainer){const St={...ft,isStale:dt,renderTabContent:Tt=>jsxRuntimeExports.jsx(VerticalBlock,{...Tt})};return jsxRuntimeExports.jsx(Tabs,{...St})}return Dt},ChildRenderer=ot=>{const{libConfig:et}=reactExports.useContext(LibContext);assignDividerColor(ot.node,useTheme());const ct=new Set;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ot.node.children&&ot.node.children.map((ut,dt)=>{const ft=et.disableFullscreenMode||ot.disableFullscreenMode;if(ut instanceof ElementNode){const zt={...ot,disableFullscreenMode:ft,node:ut},Dt=getElementId(ut.element)||dt.toString();return ct.has(Dt)?null:(ct.add(Dt),jsxRuntimeExports.jsx(ElementNodeRenderer,{...zt},Dt))}if(ut instanceof BlockNode){const zt={...ot,disableFullscreenMode:ft,node:ut};return jsxRuntimeExports.jsx(BlockNodeRenderer,{...zt},dt)}throw new Error(`Unrecognized AppNode: ${ut}`)})})};function ScrollToBottomVerticalBlockWrapper(ot){const{border:et,height:ct,children:ut}=ot,dt=useScrollToBottom();return jsxRuntimeExports.jsx(StyledVerticalBlockBorderWrapper,{border:et,height:ct,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:dt,children:ut})}const VerticalBlock=ot=>{var $t,kt;const et=reactExports.useRef(null),[ct,ut]=React$1.useState(-1),dt=reactExports.useMemo(()=>new ResizeObserver(([Bt])=>{window.requestAnimationFrame(()=>{ut(Bt.target.getBoundingClientRect().width||-1)})}),[ut]),ft=(($t=ot.node.deltaBlock.vertical)==null?void 0:$t.border)??!1,zt=((kt=ot.node.deltaBlock.vertical)==null?void 0:kt.height)||void 0,Dt=zt&&ot.node.children.find(Bt=>Bt instanceof BlockNode&&Bt.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(et.current&&dt.observe(et.current),()=>{dt.disconnect()}),[dt,Dt]);const St=Dt?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,Tt={...ot,width:ct},Rt=getKeyFromId(ot.node.deltaBlock.id);return jsxRuntimeExports.jsx(St,{border:ft,height:zt,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsxRuntimeExports.jsx(StyledVerticalBlockWrapper,{ref:et,children:jsxRuntimeExports.jsx(StyledVerticalBlock,{width:ct,className:classNames("stVerticalBlock",convertKeyToClassName(Rt)),"data-testid":"stVerticalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...Tt})})})})},HorizontalBlock=ot=>{var ct;const et=((ct=ot.node.deltaBlock.horizontal)==null?void 0:ct.gap)??"";return jsxRuntimeExports.jsx(StyledHorizontalBlock,{gap:et,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...ot})})};function LayoutBlock(ot){return ot.node.deltaBlock.horizontal?jsxRuntimeExports.jsx(HorizontalBlock,{...ot}):jsxRuntimeExports.jsx(VerticalBlock,{...ot})}let StyledDataFrameOverlay,PortalProvider;StyledDataFrameOverlay=createStyled("div",{target:"e1v116lc0"})(({theme:ot})=>({position:"fixed",top:0,left:0,zIndex:ot.zIndices.tablePortal,lineHeight:"100%"}),""),PortalContext=React$1.createContext(null),PortalProvider=({children:ot})=>{const et=reactExports.useRef(null),ct=reactExports.useCallback(()=>et.current,[]);return jsxRuntimeExports.jsxs(PortalContext.Provider,{value:ct,children:[ot,jsxRuntimeExports.jsx(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:et})]})};function ThemeProvider({theme:ot,baseuiTheme:et,children:ct}){return jsxRuntimeExports.jsx(ThemeProvider$1,{theme:et||baseuiLightTheme,children:jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:ct})})}function toCodePoint(ot,et){const ct=[];let ut=0,dt=0,ft=0;for(;ft<ot.length;)ut=ot.charCodeAt(ft++),dt?(ct.push((65536+(dt-55296<<10)+(ut-56320)).toString(16)),dt=0):55296<=ut&&ut<=56319?dt=ut:ct.push(ut.toString(16));return ct.join("-")}const UFE0Fg=/\uFE0F/g,U200D="\u200D";function grabTheRightIcon(ot){return toCodePoint(ot.indexOf(U200D)<0?ot.replace(UFE0Fg,""):ot)}function iconToUrl(ot){const et=/^:(.+)\/(.+):$/,ct=ot.match(et);return ct===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${ct[2]}/default/24px.svg`}function handleFavicon(ot,et,ct){const ut=extractEmoji(ot);let dt;ut&&!ot.startsWith(":material")?dt=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(ut)}.png`:ot.startsWith(":material")?dt=iconToUrl(ot):dt=ct.buildMediaURL(ot),overwriteFavicon(dt),et({type:"SET_PAGE_FAVICON",favicon:dt})}function overwriteFavicon(ot){const et=document.querySelector("link[rel='shortcut icon']");et&&(et.href=ot)}function extractEmoji(ot){const et=ot.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(et))?nodeEmoji$1.get(et):nodeEmoji$1.hasEmoji(ot)?ot:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(ot,et){return ot&&baseFor$1(ot,et,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(ot){return typeof ot=="function"?ot:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(ot,et){return ot&&baseForOwn$3(ot,castFunction$1(et))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(ot){return this.__data__.set(ot,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(ot){return this.__data__.has(ot)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(ot){var et=-1,ct=ot==null?0:ot.length;for(this.__data__=new MapCache$1;++et<ct;)this.add(ot[et])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1,SetCache$3.prototype.has=setCacheHas$1,_SetCache=SetCache$3;function arraySome$2(ot,et){for(var ct=-1,ut=ot==null?0:ot.length;++ct<ut;)if(et(ot[ct],ct,ot))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(ot,et){return ot.has(et)}let SetCache$2,arraySome$1,cacheHas$2,COMPARE_PARTIAL_FLAG$b,COMPARE_UNORDERED_FLAG$7;_cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$b,Dt=ot.length,St=et.length;if(Dt!=St&&!(zt&&St>Dt))return!1;var Tt=ft.get(ot),Rt=ft.get(et);if(Tt&&Rt)return Tt==et&&Rt==ot;var $t=-1,kt=!0,Bt=ct&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ft.set(ot,et),ft.set(et,ot);++$t<Dt;){var Ft=ot[$t],jt=et[$t];if(ut)var Kt=zt?ut(jt,Ft,$t,et,ot,ft):ut(Ft,jt,$t,ot,et,ft);if(Kt!==void 0){if(Kt)continue;kt=!1;break}if(Bt){if(!arraySome$1(et,function(Yt,Ut){if(!cacheHas$2(Bt,Ut)&&(Ft===Yt||dt(Ft,Yt,ct,ut,ft)))return Bt.push(Ut)})){kt=!1;break}}else if(!(Ft===jt||dt(Ft,jt,ct,ut,ft))){kt=!1;break}}return ft.delete(ot),ft.delete(et),kt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(ot,et,ct,ut,dt,ft,zt){switch(ct){case dataViewTag$3:if(ot.byteLength!=et.byteLength||ot.byteOffset!=et.byteOffset)return!1;ot=ot.buffer,et=et.buffer;case arrayBufferTag$2:return!(ot.byteLength!=et.byteLength||!ft(new Uint8Array$2(ot),new Uint8Array$2(et)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+ot,+et);case errorTag$2:return ot.name==et.name&&ot.message==et.message;case regexpTag$2:case stringTag$2:return ot==et+"";case mapTag$3:var Dt=mapToArray$1;case setTag$3:var St=ut&COMPARE_PARTIAL_FLAG$a;if(Dt||(Dt=setToArray$1),ot.size!=et.size&&!St)return!1;var Tt=zt.get(ot);if(Tt)return Tt==et;ut|=COMPARE_UNORDERED_FLAG$6,zt.set(ot,et);var Rt=equalArrays$2(Dt(ot),Dt(et),ut,dt,ft,zt);return zt.delete(ot),Rt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(ot)==symbolValueOf$1.call(et)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$9,Dt=getAllKeys$1(ot),St=Dt.length,Tt=getAllKeys$1(et),Rt=Tt.length;if(St!=Rt&&!zt)return!1;for(var $t=St;$t--;){var kt=Dt[$t];if(!(zt?kt in et:hasOwnProperty$f.call(et,kt)))return!1}var Bt=ft.get(ot),Ft=ft.get(et);if(Bt&&Ft)return Bt==et&&Ft==ot;var jt=!0;ft.set(ot,et),ft.set(et,ot);for(var Kt=zt;++$t<St;){kt=Dt[$t];var Yt=ot[kt],Ut=et[kt];if(ut)var Jt=zt?ut(Ut,Yt,kt,et,ot,ft):ut(Yt,Ut,kt,ot,et,ft);if(!(Jt===void 0?Yt===Ut||dt(Yt,Ut,ct,ut,ft):Jt)){jt=!1;break}Kt||(Kt=kt=="constructor")}if(jt&&!Kt){var Ht=ot.constructor,e0=et.constructor;Ht!=e0&&"constructor"in ot&&"constructor"in et&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof e0=="function"&&e0 instanceof e0)&&(jt=!1)}return ft.delete(ot),ft.delete(et),jt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(ot,et,ct,ut,dt,ft){var zt=isArray$7(ot),Dt=isArray$7(et),St=zt?arrayTag$2:getTag$1(ot),Tt=Dt?arrayTag$2:getTag$1(et);St=St==argsTag$3?objectTag$4:St,Tt=Tt==argsTag$3?objectTag$4:Tt;var Rt=St==objectTag$4,$t=Tt==objectTag$4,kt=St==Tt;if(kt&&isBuffer$2(ot)){if(!isBuffer$2(et))return!1;zt=!0,Rt=!1}if(kt&&!Rt)return ft||(ft=new Stack$2),zt||isTypedArray$2(ot)?equalArrays$1(ot,et,ct,ut,dt,ft):equalByTag$1(ot,et,St,ct,ut,dt,ft);if(!(ct&COMPARE_PARTIAL_FLAG$8)){var Bt=Rt&&hasOwnProperty$e.call(ot,"__wrapped__"),Ft=$t&&hasOwnProperty$e.call(et,"__wrapped__");if(Bt||Ft){var jt=Bt?ot.value():ot,Kt=Ft?et.value():et;return ft||(ft=new Stack$2),dt(jt,Kt,ct,ut,ft)}}return kt?(ft||(ft=new Stack$2),equalObjects$1(ot,et,ct,ut,dt,ft)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(ot,et,ct,ut,dt){return ot===et?!0:ot==null||et==null||!isObjectLike$1(ot)&&!isObjectLike$1(et)?ot!==ot&&et!==et:baseIsEqualDeep$1(ot,et,ct,ut,baseIsEqual$4,dt)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(ot,et,ct,ut){var dt=ct.length,ft=dt,zt=!ut;if(ot==null)return!ft;for(ot=Object(ot);dt--;){var Dt=ct[dt];if(zt&&Dt[2]?Dt[1]!==ot[Dt[0]]:!(Dt[0]in ot))return!1}for(;++dt<ft;){Dt=ct[dt];var St=Dt[0],Tt=ot[St],Rt=Dt[1];if(zt&&Dt[2]){if(Tt===void 0&&!(St in ot))return!1}else{var $t=new Stack$1;if(ut)var kt=ut(Tt,Rt,St,ot,et,$t);if(!(kt===void 0?baseIsEqual$3(Rt,Tt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,ut,$t):kt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$4=isObject_1;function isStrictComparable$3(ot){return ot===ot&&!isObject$4(ot)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(ot){for(var et=keys$1(ot),ct=et.length;ct--;){var ut=et[ct],dt=ot[ut];et[ct]=[ut,dt,isStrictComparable$2(dt)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(ot,et){return function(ct){return ct==null?!1:ct[ot]===et&&(et!==void 0||ot in Object(ct))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(ot){var et=getMatchData$1(ot);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(ct){return ct===ot||baseIsMatch$1(ct,ot,et)}}var _baseMatches=baseMatches$2;function baseHasIn$2(ot,et){return ot!=null&&et in Object(ot)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(ot,et,ct){et=castPath$3(et,ot);for(var ut=-1,dt=et.length,ft=!1;++ut<dt;){var zt=toKey$4(et[ut]);if(!(ft=ot!=null&&ct(ot,zt)))break;ot=ot[zt]}return ft||++ut!=dt?ft:(dt=ot==null?0:ot.length,!!dt&&isLength$1(dt)&&isIndex$2(zt,dt)&&(isArray$6(ot)||isArguments$1(ot)))}let baseHasIn$1,hasPath$1;_hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(ot,et){return ot!=null&&hasPath$1(ot,et,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(ot,et){return isKey$2(ot)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$3(ot),et):function(ct){var ut=get$2(ct,ot);return ut===void 0&&ut===et?hasIn$2(ct,ot):baseIsEqual$2(et,ut,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(ot){return function(et){return baseGet$3(et,ot)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(ot){return isKey$1(ot)?baseProperty$1(toKey$2(ot)):basePropertyDeep$1(ot)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(ot){return typeof ot=="function"?ot:ot==null?identity$2:typeof ot=="object"?isArray$5(ot)?baseMatchesProperty$1(ot[0],ot[1]):baseMatches$1(ot):property$1(ot)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(ot,et){return function(ct,ut){if(ct==null)return ct;if(!isArrayLike$2(ct))return ot(ct,ut);for(var dt=ct.length,ft=et?dt:-1,zt=Object(ct);(et?ft--:++ft<dt)&&ut(zt[ft],ft,zt)!==!1;);return ct}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(ot,et){var ct=-1,ut=isArrayLike$1(ot)?Array(ot.length):[];return baseEach$2(ot,function(dt,ft,zt){ut[++ct]=et(dt,ft,zt)}),ut}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(ot,et){var ct=isArray$4(ot)?arrayMap$3:baseMap$2;return ct(ot,baseIteratee$4(et))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0}),flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(ot){return ot&&ot.__esModule?ot:{default:ot}}var flattenNames=flattenNames$1.flattenNames=function ot(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=[];return(0,_map3.default)(et,function(ut){Array.isArray(ut)?ot(ut).map(function(dt){return ct.push(dt)}):(0,_isPlainObject3.default)(ut)?(0,_forOwn3$2.default)(ut,function(dt,ft){dt===!0&&ct.push(ft),ct.push(ft+"-"+dt)}):(0,_isString3.default)(ut)&&ct.push(ut)}),ct};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$6(ot){return ot&&ot.__esModule?ot:{default:ot}}var mergeClasses=mergeClasses$1.mergeClasses=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=et.default&&(0,_cloneDeep3.default)(et.default)||{};return ct.map(function(dt){var ft=et[dt];return ft&&(0,_forOwn3$1.default)(ft,function(zt,Dt){ut[Dt]||(ut[Dt]={}),ut[Dt]=_extends$w({},ut[Dt],ft[Dt])}),dt}),ut};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0}),autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$5(ot){return ot.__esModule?ot:{default:ot}}var transforms={borderRadius:function ot(et){return{msBorderRadius:et,MozBorderRadius:et,OBorderRadius:et,WebkitBorderRadius:et,borderRadius:et}},boxShadow:function ot(et){return{msBoxShadow:et,MozBoxShadow:et,OBoxShadow:et,WebkitBoxShadow:et,boxShadow:et}},userSelect:function ot(et){return{WebkitTouchCallout:et,KhtmlUserSelect:et,MozUserSelect:et,msUserSelect:et,WebkitUserSelect:et,userSelect:et}},flex:function ot(et){return{WebkitBoxFlex:et,MozBoxFlex:et,WebkitFlex:et,msFlex:et,flex:et}},flexBasis:function ot(et){return{WebkitFlexBasis:et,flexBasis:et}},justifyContent:function ot(et){return{WebkitJustifyContent:et,justifyContent:et}},transition:function ot(et){return{msTransition:et,MozTransition:et,OTransition:et,WebkitTransition:et,transition:et}},transform:function ot(et){return{msTransform:et,MozTransform:et,OTransform:et,WebkitTransform:et,transform:et}},absolute:function ot(et){var ct=et&&et.split(" ");return{position:"absolute",top:ct&&ct[0],right:ct&&ct[1],bottom:ct&&ct[2],left:ct&&ct[3]}},extend:function ot(et,ct){var ut=ct[et];return ut||{extend:et}}},autoprefix=autoprefix$1.autoprefix=function ot(et){var ct={};return(0,_forOwn3.default)(et,function(ut,dt){var ft={};(0,_forOwn3.default)(ut,function(zt,Dt){var St=transforms[Dt];St?ft=_extends$v({},ft,St(zt)):ft[Dt]=zt}),ct[dt]=ft}),ct};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0}),hover$1.hover=void 0;var _extends$u=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$f(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$f(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var hover=hover$1.hover=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$f(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$f(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$f(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={hover:!1},Dt.handleMouseOver=function(){return Dt.setState({hover:!0})},Dt.handleMouseOut=function(){return Dt.setState({hover:!1})},Dt.render=function(){return _react2$3.default.createElement(ct,{onMouseOver:Dt.handleMouseOver,onMouseOut:Dt.handleMouseOut},_react2$3.default.createElement(et,_extends$u({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$f(Dt,St)}return dt}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0}),active$1.active=void 0;var _extends$t=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$e(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$e(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var active=active$1.active=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$e(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$e(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$e(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={active:!1},Dt.handleMouseDown=function(){return Dt.setState({active:!0})},Dt.handleMouseUp=function(){return Dt.setState({active:!1})},Dt.render=function(){return _react2$2.default.createElement(ct,{onMouseDown:Dt.handleMouseDown,onMouseUp:Dt.handleMouseUp},_react2$2.default.createElement(et,_extends$t({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$e(Dt,St)}return dt}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function ot(et,ct){var ut={},dt=function(ft){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ut[ft]=zt};return et===0&&dt("first-child"),et===ct-1&&dt("last-child"),(et===0||et%2===0)&&dt("even"),Math.abs(et%2)===1&&dt("odd"),dt("nth-child",et),ut};loop.default=loopable,Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(ot){return ot&&ot.__esModule?ot:{default:ot}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default,lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function ot(et){for(var ct=arguments.length,ut=Array(ct>1?ct-1:0),dt=1;dt<ct;dt++)ut[dt-1]=arguments[dt];var ft=(0,_flattenNames2.default)(ut),zt=(0,_mergeClasses2.default)(et,ft);return(0,_autoprefix2.default)(zt)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function ot(et,ct,ut,dt,ft){var zt=ft.clientWidth,Dt=ft.clientHeight,St=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,Tt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Rt=St-(ft.getBoundingClientRect().left+window.pageXOffset),$t=Tt-(ft.getBoundingClientRect().top+window.pageYOffset);if(ut==="vertical"){var kt=void 0;if($t<0?kt=0:$t>Dt?kt=1:kt=Math.round($t*100/Dt)/100,ct.a!==kt)return{h:ct.h,s:ct.s,l:ct.l,a:kt,source:"rgb"}}else{var Bt=void 0;if(Rt<0?Bt=0:Rt>zt?Bt=1:Bt=Math.round(Rt*100/zt)/100,dt!==Bt)return{h:ct.h,s:ct.s,l:ct.l,a:Bt,source:"rgb"}}return null},checkboardCache={},render=function ot(et,ct,ut,dt){if(typeof document>"u"&&!dt)return null;var ft=dt?new dt:document.createElement("canvas");ft.width=ut*2,ft.height=ut*2;var zt=ft.getContext("2d");return zt?(zt.fillStyle=et,zt.fillRect(0,0,ft.width,ft.height),zt.fillStyle=ct,zt.fillRect(0,0,ut,ut),zt.translate(ut,ut),zt.fillRect(0,0,ut,ut),ft.toDataURL()):null},get$1=function ot(et,ct,ut,dt){var ft=et+"-"+ct+"-"+ut+(dt?"-server":"");if(checkboardCache[ft])return checkboardCache[ft];var zt=render(et,ct,ut,dt);return checkboardCache[ft]=zt,zt},_extends$s=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},Checkboard=function ot(et){var ct=et.white,ut=et.grey,dt=et.size,ft=et.renderers,zt=et.borderRadius,Dt=et.boxShadow,St=et.children,Tt=_default$2({default:{grid:{borderRadius:zt,boxShadow:Dt,absolute:"0px 0px 0px 0px",background:"url("+get$1(ct,ut,dt,ft.canvas)+") center left"}}});return reactExports.isValidElement(St)?React$1.cloneElement(St,_extends$s({},St.props,{style:_extends$s({},St.props.style,Tt.grid)})):React$1.createElement("div",{style:Tt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_createClass$d=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$d(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$d(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Alpha=function(ot){_inherits$d(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$d(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$d(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$2(Tt,dt.props.hsl,dt.props.direction,dt.props.a,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},dt.unbindEventListeners=function(){window.removeEventListener("mousemove",dt.handleChange),window.removeEventListener("mouseup",dt.handleMouseUp)},ut),_possibleConstructorReturn$d(dt,ft)}return _createClass$d(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var ct=this,ut=this.props.rgb,dt=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
411
|
+
`),allowHTML:!1})]}),St&&jsxRuntimeExports.jsx(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:St.includes("linear"),color:St})]})}StyledCheckbox$1=createStyled("div",{target:"edwcd611"})(({width:ot,theme:et})=>({width:ot,display:"flex",alignItems:"center",minHeight:et.sizes.smallElementHeight}),""),StyledContent=createStyled("div",{target:"edwcd610"})(({visibility:ot})=>({display:ot===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:ot===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}),"");function translateGapWidth(ot,et){let ct=et.spacing.lg;return ot==="medium"?ct=et.spacing.threeXL:ot==="large"&&(ct=et.spacing.fourXL),ct}const StyledHorizontalBlock=createStyled("div",{target:"e1f1d6gn5"})(({theme:ot,gap:et})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(et,ot)}),""),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=createStyled("div",{target:"e1f1d6gn4"})(({theme:ot,isStale:et,width:ct,elementType:ut})=>({width:ct,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:ot.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${ot.spacing.lg}`,zIndex:ot.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${ot.spacing.xs}`,marginBottom:`-${ot.spacing.xs}`},...et&&ut!=="skeleton"?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{},...ut==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(ut)?{marginBottom:`-${ot.spacing.lg}`}:{}}),""),StyledColumn=createStyled("div",{target:"e1f1d6gn3"})(({theme:ot,weight:et,gap:ct,showBorder:ut,verticalAlignment:dt})=>{const{VerticalAlignment:ft}=Block$2.Column,zt=et*100,Dt=translateGapWidth(ct,ot),St=`calc(${zt}% - ${Dt})`;return{width:St,flex:`1 1 ${St}`,[`@media (max-width: ${ot.breakpoints.columns})`]:{minWidth:`calc(100% - ${ot.spacing.twoXL})`},...dt===ft.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:ot.spacing.sm}},...dt===ft.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:ot.spacing.sm}},...dt===ft.CENTER&&{marginTop:"auto",marginBottom:"auto"},...ut&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`}}},""),StyledVerticalBlock=createStyled("div",{target:"e1f1d6gn2"})(({width:ot,theme:et})=>({width:ot,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:et.spacing.lg}),""),StyledVerticalBlockWrapper=createStyled("div",{target:"e1f1d6gn1"})({name:"1wmy9hl",styles:"display:flex;flex-direction:column;flex:1"}),StyledVerticalBlockBorderWrapper=createStyled("div",{target:"e1f1d6gn0"})(({theme:ot,border:et,height:ct})=>({...et&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`},...ct&&{height:`${ct}px`,overflow:"auto"}}),""),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index-DfPuZgVe.js"),[])),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index-D_ZpMtCx.js"),__vite__mapDeps([0,1]))),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index-DjNlghsG.js"),__vite__mapDeps([2,1]))),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-D7beHGbk.js").then(async ot=>(await ot.__tla,ot)).then(ot=>ot.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13]))),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index-Cjn3IAUe.js"),__vite__mapDeps([14,15,16,17,4,6,5]))),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index-bnfkOWdV.js"),[])),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index-BZMvJ6Yf.js"),[])),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index-B3quCHCi.js"),__vite__mapDeps([18,9,10,6,5,19,4,20,15,16,21]))),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index-W-TZSd1E.js"),__vite__mapDeps([22,17,16,20,6,5]))),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-CoumX680.js"),[])),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index-DxHnoro7.js"),__vite__mapDeps([23,6,5]))),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index-dkm5JtmN.js"),[])),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index-BkBgJKWs.js"),[])),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index-DgKoCzGM.js"),__vite__mapDeps([24,4,5]))),Video=React$1.lazy(()=>__vitePreload(()=>import("./index-8qq2hPcx.js"),[])),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index-CMQsen11.js"),__vite__mapDeps([25,4,6,26,8,12]))),Button=React$1.lazy(()=>__vitePreload(()=>import("./index-Bu07mO_x.js"),[])),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index-C9-3Tvo1.js"),__vite__mapDeps([27,19,4]))),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index-DmCDp6tz.js"),__vite__mapDeps([28,8]))),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BL2qQWaL.js"),__vite__mapDeps([29,4,30,31]))),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index-B0CwOTPz.js"),__vite__mapDeps([32,33,34,35,36]))),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index-CxiUGvN5.js"),__vite__mapDeps([37,19,4]))),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index-DqEaj7EU.js"),__vite__mapDeps([38,19,4]))),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index-Be0wHUx-.js"),__vite__mapDeps([39,19,4,40,10,11,41,36]))),Html=React$1.lazy(()=>__vitePreload(()=>import("./index-UQryvozB.js"),[])),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index-BEeaeEPl.js"),__vite__mapDeps([42,19,4]))),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index-DBeV5cvz.js"),__vite__mapDeps([43,31]))),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index-B3bELqRU.js"),[])),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index-BDNxxQ4v.js"),__vite__mapDeps([44,19,4]))),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index-DP9siobZ.js"),__vite__mapDeps([45,19,4]))),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index-B1L1envm.js"),__vite__mapDeps([46,7,19,4]))),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index-D2caMYlF.js"),__vite__mapDeps([47,4,31,26,30]))),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index-BB6FwCEX.js"),__vite__mapDeps([48,49,50,34,33,19,4,35,36]))),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BKKZmTqZ.js"),__vite__mapDeps([51,49,50,34,19,4,33,41,36]))),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BLvsCvkf.js"),__vite__mapDeps([52,19,4,40,10,11]))),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index-CRKAbc7H.js"),__vite__mapDeps([53,7,49,4,33,41,36]))),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0));function hideIfStale(ot,et){return ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):et}const RawElementNodeRenderer=ot=>{const{node:et}=ot;if(!et)throw new Error("ElementNode not found.");const ct={width:ot.width,disableFullscreenMode:ot.disableFullscreenMode},ut={...ct,widgetMgr:ot.widgetMgr,disabled:ot.widgetsDisabled,fragmentId:et.fragmentId};switch(et.element.type){case"alert":{const ft=et.element.alert;return jsxRuntimeExports.jsx(AlertElement,{icon:ft.icon,body:ft.body,kind:getAlertElementKind(ft.format),...ct})}case"arrowTable":return jsxRuntimeExports.jsx(ArrowTable,{element:et.quiverElement,...ct});case"audio":return jsxRuntimeExports.jsx(Audio,{element:et.element.audio,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"balloons":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Balloons,{scriptRunId:ot.scriptRunId}));case"bokehChart":return jsxRuntimeExports.jsx(DebouncedBokehChart,{element:et.element.bokehChart,...ct});case"code":{const ft=et.element.code;return jsxRuntimeExports.jsx(StreamlitSyntaxHighlighter,{language:ft.language,showLineNumbers:ft.showLineNumbers,wrapLines:ft.wrapLines,children:ft.codeText})}case"deckGlJsonChart":return jsxRuntimeExports.jsx(DeckGlJsonChart,{element:et.element.deckGlJsonChart,...ut});case"docString":return jsxRuntimeExports.jsx(DocString,{element:et.element.docString,...ct});case"empty":return jsxRuntimeExports.jsx("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsxRuntimeExports.jsx(ExceptionElement,{element:et.element.exception,...ct});case"graphvizChart":return jsxRuntimeExports.jsx(GraphVizChart,{element:et.element.graphvizChart,...ct});case"heading":return jsxRuntimeExports.jsx(Heading,{element:et.element.heading,...ct});case"iframe":return jsxRuntimeExports.jsx(IFrame,{element:et.element.iframe,...ct});case"imgs":return jsxRuntimeExports.jsx(ImageList,{element:et.element.imgs,endpoints:ot.endpoints,...ct});case"json":return jsxRuntimeExports.jsx(Json,{element:et.element.json,...ct});case"markdown":return jsxRuntimeExports.jsx(Markdown,{element:et.element.markdown,...ct});case"metric":return jsxRuntimeExports.jsx(Metric,{element:et.element.metric});case"html":return jsxRuntimeExports.jsx(Html,{element:et.element.html,...ct});case"pageLink":{const ft=et.element.pageLink,zt=ut.disabled||ft.disabled;return jsxRuntimeExports.jsx(PageLink,{element:ft,disabled:zt,...ct})}case"progress":return jsxRuntimeExports.jsx(Progress,{element:et.element.progress,...ct});case"skeleton":return jsxRuntimeExports.jsx(Skeleton,{element:et.element.skeleton});case"snow":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Snow,{scriptRunId:ot.scriptRunId}));case"spinner":return jsxRuntimeExports.jsx(Spinner,{element:et.element.spinner,...ct});case"text":return jsxRuntimeExports.jsx(TextElement,{element:et.element.text,...ct});case"video":return jsxRuntimeExports.jsx(Video,{element:et.element.video,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"toast":{const ft=et.element.toast;return jsxRuntimeExports.jsx(Toast,{body:ft.body,icon:ft.icon,...ct},et.scriptRunId)}case"arrowDataFrame":{const ft=et.element.arrowDataFrame;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ArrowDataFrame,{element:ft,data:et.quiverElement,...ft.id&&{key:ft.id},...ut})}case"arrowVegaLiteChart":const dt=et.vegaLiteChartElement;return jsxRuntimeExports.jsx(ArrowVegaLiteChart,{element:dt,...ut},dt.id||void 0);case"audioInput":{const ft=et.element.audioInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(AudioInput,{uploadClient:ot.uploadClient,element:ft,...ut},ft.id)}case"button":{const ft=et.element.button;if(ut.disabled=ut.disabled||ft.disabled,ft.isFormSubmitter){const{formId:zt}=ft,Dt=ot.formsData.formsWithUploads.has(zt);return jsxRuntimeExports.jsx(FormSubmitContent,{element:ft,hasInProgressUpload:Dt,...ut})}return jsxRuntimeExports.jsx(Button,{element:ft,...ut})}case"buttonGroup":{const ft=et.element.buttonGroup;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ButtonGroup,{element:ft,...ut},ft.id)}case"downloadButton":{const ft=et.element.downloadButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DownloadButton,{endpoints:ot.endpoints,element:ft,...ut},ft.id)}case"cameraInput":{const ft=et.element.cameraInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(CameraInput,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"chatInput":{const ft=et.element.chatInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ChatInput,{element:ft,...ut},ft.id)}case"checkbox":{const ft=et.element.checkbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Checkbox,{element:ft,...ut},ft.id)}case"colorPicker":{const ft=et.element.colorPicker;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ColorPicker,{element:ft,...ut},ft.id)}case"componentInstance":return jsxRuntimeExports.jsx(ComponentInstance$1,{registry:ot.componentRegistry,element:et.element.componentInstance,...ut});case"dateInput":{const ft=et.element.dateInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DateInput,{element:ft,...ut},ft.id)}case"fileUploader":{const ft=et.element.fileUploader;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(FileUploader,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"linkButton":{const ft=et.element.linkButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(LinkButton,{element:ft,...ut})}case"multiselect":{const ft=et.element.multiselect;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Multiselect,{element:ft,...ut},ft.id)}case"numberInput":{const ft=et.element.numberInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(NumberInput,{element:ft,...ut},ft.id)}case"plotlyChart":{const ft=et.element.plotlyChart;return jsxRuntimeExports.jsx(PlotlyChart,{element:ft,...ut},ft.id)}case"radio":{const ft=et.element.radio;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Radio,{element:ft,...ut},ft.id)}case"selectbox":{const ft=et.element.selectbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Selectbox$1,{element:ft,...ut},ft.id)}case"slider":{const ft=et.element.slider;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Slider$1,{element:ft,...ut},ft.id)}case"textArea":{const ft=et.element.textArea;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextArea,{element:ft,...ut},ft.id)}case"textInput":{const ft=et.element.textInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextInput,{element:ft,...ut},ft.id)}case"timeInput":{const ft=et.element.timeInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TimeInput,{element:ft,...ut},ft.id)}default:throw new Error(`Unrecognized Element type ${et.element.type}`)}},ElementNodeRenderer=ot=>{const{isFullScreen:et,fragmentIdsThisRun:ct}=React$1.useContext(LibContext),{node:ut,width:dt}=ot,ft=ut.element.type||"",zt=shouldComponentBeEnabled(ft,ot.scriptRunState),Dt=isComponentStale(zt,ut,ot.scriptRunState,ot.scriptRunId,ct),St=getElementId(ut.element),Tt=getKeyFromId(St);return jsxRuntimeExports.jsx(Maybe,{enable:zt,children:jsxRuntimeExports.jsx(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(Tt)),"data-testid":"stElementContainer","data-stale":Dt,isStale:Dt&&!et,width:dt,elementType:ft,children:jsxRuntimeExports.jsx(ErrorBoundary,{width:dt,children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsxRuntimeExports.jsx(RawElementNodeRenderer,{...ot,isStale:Dt})})})})})},BlockNodeRenderer=ot=>{const{node:et}=ot,{fragmentIdsThisRun:ct}=reactExports.useContext(LibContext);if(et.isEmpty&&!et.deltaBlock.allowEmpty)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=shouldComponentBeEnabled("",ot.scriptRunState),dt=isComponentStale(ut,et,ot.scriptRunState,ot.scriptRunId,ct),ft={...ot,node:et},zt=ot.disableFullscreenMode||notNullOrUndefined(et.deltaBlock.dialog)||notNullOrUndefined(et.deltaBlock.popover),Dt=jsxRuntimeExports.jsx(LayoutBlock,{...ft,disableFullscreenMode:zt});if(et.deltaBlock.dialog)return jsxRuntimeExports.jsx(DialogWithProvider,{element:et.deltaBlock.dialog,deltaMsgReceivedAt:et.deltaMsgReceivedAt,children:Dt});if(et.deltaBlock.expandable)return jsxRuntimeExports.jsx(Expander,{empty:et.isEmpty,isStale:dt,element:et.deltaBlock.expandable,children:Dt});if(et.deltaBlock.popover)return jsxRuntimeExports.jsx(Popover,{empty:et.isEmpty,element:et.deltaBlock.popover,width:ot.width,children:Dt});if(et.deltaBlock.type==="form"){const{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,border:$t}=et.deltaBlock.form,kt=ot.formsData.submitButtons.get(St),Bt=kt!==void 0&&kt.length>0;return jsxRuntimeExports.jsx(Form,{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,width:ot.width,hasSubmitButton:Bt,scriptRunState:ot.scriptRunState,widgetMgr:ot.widgetMgr,border:$t,children:Dt})}if(et.deltaBlock.chatMessage)return jsxRuntimeExports.jsx(ChatMessage,{element:et.deltaBlock.chatMessage,endpoints:ot.endpoints,children:Dt});if(et.deltaBlock.column)return jsxRuntimeExports.jsx(StyledColumn,{weight:et.deltaBlock.column.weight??0,gap:et.deltaBlock.column.gap??"",verticalAlignment:et.deltaBlock.column.verticalAlignment??void 0,showBorder:et.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:Dt});if(et.deltaBlock.tabContainer){const St={...ft,isStale:dt,renderTabContent:Tt=>jsxRuntimeExports.jsx(VerticalBlock,{...Tt})};return jsxRuntimeExports.jsx(Tabs,{...St})}return Dt},ChildRenderer=ot=>{const{libConfig:et}=reactExports.useContext(LibContext);assignDividerColor(ot.node,useTheme());const ct=new Set;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ot.node.children&&ot.node.children.map((ut,dt)=>{const ft=et.disableFullscreenMode||ot.disableFullscreenMode;if(ut instanceof ElementNode){const zt={...ot,disableFullscreenMode:ft,node:ut},Dt=getElementId(ut.element)||dt.toString();return ct.has(Dt)?null:(ct.add(Dt),jsxRuntimeExports.jsx(ElementNodeRenderer,{...zt},Dt))}if(ut instanceof BlockNode){const zt={...ot,disableFullscreenMode:ft,node:ut};return jsxRuntimeExports.jsx(BlockNodeRenderer,{...zt},dt)}throw new Error(`Unrecognized AppNode: ${ut}`)})})};function ScrollToBottomVerticalBlockWrapper(ot){const{border:et,height:ct,children:ut}=ot,dt=useScrollToBottom();return jsxRuntimeExports.jsx(StyledVerticalBlockBorderWrapper,{border:et,height:ct,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:dt,children:ut})}const VerticalBlock=ot=>{var $t,kt;const et=reactExports.useRef(null),[ct,ut]=React$1.useState(-1),dt=reactExports.useMemo(()=>new ResizeObserver(([Bt])=>{window.requestAnimationFrame(()=>{ut(Bt.target.getBoundingClientRect().width||-1)})}),[ut]),ft=(($t=ot.node.deltaBlock.vertical)==null?void 0:$t.border)??!1,zt=((kt=ot.node.deltaBlock.vertical)==null?void 0:kt.height)||void 0,Dt=zt&&ot.node.children.find(Bt=>Bt instanceof BlockNode&&Bt.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(et.current&&dt.observe(et.current),()=>{dt.disconnect()}),[dt,Dt]);const St=Dt?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,Tt={...ot,width:ct},Rt=getKeyFromId(ot.node.deltaBlock.id);return jsxRuntimeExports.jsx(St,{border:ft,height:zt,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsxRuntimeExports.jsx(StyledVerticalBlockWrapper,{ref:et,children:jsxRuntimeExports.jsx(StyledVerticalBlock,{width:ct,className:classNames("stVerticalBlock",convertKeyToClassName(Rt)),"data-testid":"stVerticalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...Tt})})})})},HorizontalBlock=ot=>{var ct;const et=((ct=ot.node.deltaBlock.horizontal)==null?void 0:ct.gap)??"";return jsxRuntimeExports.jsx(StyledHorizontalBlock,{gap:et,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...ot})})};function LayoutBlock(ot){return ot.node.deltaBlock.horizontal?jsxRuntimeExports.jsx(HorizontalBlock,{...ot}):jsxRuntimeExports.jsx(VerticalBlock,{...ot})}let StyledDataFrameOverlay,PortalProvider;StyledDataFrameOverlay=createStyled("div",{target:"e1v116lc0"})(({theme:ot})=>({position:"fixed",top:0,left:0,zIndex:ot.zIndices.tablePortal,lineHeight:"100%"}),""),PortalContext=React$1.createContext(null),PortalProvider=({children:ot})=>{const et=reactExports.useRef(null),ct=reactExports.useCallback(()=>et.current,[]);return jsxRuntimeExports.jsxs(PortalContext.Provider,{value:ct,children:[ot,jsxRuntimeExports.jsx(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:et})]})};function ThemeProvider({theme:ot,baseuiTheme:et,children:ct}){return jsxRuntimeExports.jsx(ThemeProvider$1,{theme:et||baseuiLightTheme,children:jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:ct})})}function toCodePoint(ot,et){const ct=[];let ut=0,dt=0,ft=0;for(;ft<ot.length;)ut=ot.charCodeAt(ft++),dt?(ct.push((65536+(dt-55296<<10)+(ut-56320)).toString(16)),dt=0):55296<=ut&&ut<=56319?dt=ut:ct.push(ut.toString(16));return ct.join("-")}const UFE0Fg=/\uFE0F/g,U200D="\u200D";function grabTheRightIcon(ot){return toCodePoint(ot.indexOf(U200D)<0?ot.replace(UFE0Fg,""):ot)}function iconToUrl(ot){const et=/^:(.+)\/(.+):$/,ct=ot.match(et);return ct===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${ct[2]}/default/24px.svg`}function handleFavicon(ot,et,ct){const ut=extractEmoji(ot);let dt;ut&&!ot.startsWith(":material")?dt=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(ut)}.png`:ot.startsWith(":material")?dt=iconToUrl(ot):dt=ct.buildMediaURL(ot),overwriteFavicon(dt),et({type:"SET_PAGE_FAVICON",favicon:dt})}function overwriteFavicon(ot){const et=document.querySelector("link[rel='shortcut icon']");et&&(et.href=ot)}function extractEmoji(ot){const et=ot.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(et))?nodeEmoji$1.get(et):nodeEmoji$1.hasEmoji(ot)?ot:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(ot,et){return ot&&baseFor$1(ot,et,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(ot){return typeof ot=="function"?ot:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(ot,et){return ot&&baseForOwn$3(ot,castFunction$1(et))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(ot){return this.__data__.set(ot,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(ot){return this.__data__.has(ot)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(ot){var et=-1,ct=ot==null?0:ot.length;for(this.__data__=new MapCache$1;++et<ct;)this.add(ot[et])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1,SetCache$3.prototype.has=setCacheHas$1,_SetCache=SetCache$3;function arraySome$2(ot,et){for(var ct=-1,ut=ot==null?0:ot.length;++ct<ut;)if(et(ot[ct],ct,ot))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(ot,et){return ot.has(et)}let SetCache$2,arraySome$1,cacheHas$2,COMPARE_PARTIAL_FLAG$b,COMPARE_UNORDERED_FLAG$7;_cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$b,Dt=ot.length,St=et.length;if(Dt!=St&&!(zt&&St>Dt))return!1;var Tt=ft.get(ot),Rt=ft.get(et);if(Tt&&Rt)return Tt==et&&Rt==ot;var $t=-1,kt=!0,Bt=ct&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ft.set(ot,et),ft.set(et,ot);++$t<Dt;){var Ft=ot[$t],jt=et[$t];if(ut)var Kt=zt?ut(jt,Ft,$t,et,ot,ft):ut(Ft,jt,$t,ot,et,ft);if(Kt!==void 0){if(Kt)continue;kt=!1;break}if(Bt){if(!arraySome$1(et,function(Yt,Ut){if(!cacheHas$2(Bt,Ut)&&(Ft===Yt||dt(Ft,Yt,ct,ut,ft)))return Bt.push(Ut)})){kt=!1;break}}else if(!(Ft===jt||dt(Ft,jt,ct,ut,ft))){kt=!1;break}}return ft.delete(ot),ft.delete(et),kt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(ot,et,ct,ut,dt,ft,zt){switch(ct){case dataViewTag$3:if(ot.byteLength!=et.byteLength||ot.byteOffset!=et.byteOffset)return!1;ot=ot.buffer,et=et.buffer;case arrayBufferTag$2:return!(ot.byteLength!=et.byteLength||!ft(new Uint8Array$2(ot),new Uint8Array$2(et)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+ot,+et);case errorTag$2:return ot.name==et.name&&ot.message==et.message;case regexpTag$2:case stringTag$2:return ot==et+"";case mapTag$3:var Dt=mapToArray$1;case setTag$3:var St=ut&COMPARE_PARTIAL_FLAG$a;if(Dt||(Dt=setToArray$1),ot.size!=et.size&&!St)return!1;var Tt=zt.get(ot);if(Tt)return Tt==et;ut|=COMPARE_UNORDERED_FLAG$6,zt.set(ot,et);var Rt=equalArrays$2(Dt(ot),Dt(et),ut,dt,ft,zt);return zt.delete(ot),Rt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(ot)==symbolValueOf$1.call(et)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$9,Dt=getAllKeys$1(ot),St=Dt.length,Tt=getAllKeys$1(et),Rt=Tt.length;if(St!=Rt&&!zt)return!1;for(var $t=St;$t--;){var kt=Dt[$t];if(!(zt?kt in et:hasOwnProperty$f.call(et,kt)))return!1}var Bt=ft.get(ot),Ft=ft.get(et);if(Bt&&Ft)return Bt==et&&Ft==ot;var jt=!0;ft.set(ot,et),ft.set(et,ot);for(var Kt=zt;++$t<St;){kt=Dt[$t];var Yt=ot[kt],Ut=et[kt];if(ut)var Jt=zt?ut(Ut,Yt,kt,et,ot,ft):ut(Yt,Ut,kt,ot,et,ft);if(!(Jt===void 0?Yt===Ut||dt(Yt,Ut,ct,ut,ft):Jt)){jt=!1;break}Kt||(Kt=kt=="constructor")}if(jt&&!Kt){var Ht=ot.constructor,e0=et.constructor;Ht!=e0&&"constructor"in ot&&"constructor"in et&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof e0=="function"&&e0 instanceof e0)&&(jt=!1)}return ft.delete(ot),ft.delete(et),jt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(ot,et,ct,ut,dt,ft){var zt=isArray$7(ot),Dt=isArray$7(et),St=zt?arrayTag$2:getTag$1(ot),Tt=Dt?arrayTag$2:getTag$1(et);St=St==argsTag$3?objectTag$4:St,Tt=Tt==argsTag$3?objectTag$4:Tt;var Rt=St==objectTag$4,$t=Tt==objectTag$4,kt=St==Tt;if(kt&&isBuffer$2(ot)){if(!isBuffer$2(et))return!1;zt=!0,Rt=!1}if(kt&&!Rt)return ft||(ft=new Stack$2),zt||isTypedArray$2(ot)?equalArrays$1(ot,et,ct,ut,dt,ft):equalByTag$1(ot,et,St,ct,ut,dt,ft);if(!(ct&COMPARE_PARTIAL_FLAG$8)){var Bt=Rt&&hasOwnProperty$e.call(ot,"__wrapped__"),Ft=$t&&hasOwnProperty$e.call(et,"__wrapped__");if(Bt||Ft){var jt=Bt?ot.value():ot,Kt=Ft?et.value():et;return ft||(ft=new Stack$2),dt(jt,Kt,ct,ut,ft)}}return kt?(ft||(ft=new Stack$2),equalObjects$1(ot,et,ct,ut,dt,ft)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(ot,et,ct,ut,dt){return ot===et?!0:ot==null||et==null||!isObjectLike$1(ot)&&!isObjectLike$1(et)?ot!==ot&&et!==et:baseIsEqualDeep$1(ot,et,ct,ut,baseIsEqual$4,dt)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(ot,et,ct,ut){var dt=ct.length,ft=dt,zt=!ut;if(ot==null)return!ft;for(ot=Object(ot);dt--;){var Dt=ct[dt];if(zt&&Dt[2]?Dt[1]!==ot[Dt[0]]:!(Dt[0]in ot))return!1}for(;++dt<ft;){Dt=ct[dt];var St=Dt[0],Tt=ot[St],Rt=Dt[1];if(zt&&Dt[2]){if(Tt===void 0&&!(St in ot))return!1}else{var $t=new Stack$1;if(ut)var kt=ut(Tt,Rt,St,ot,et,$t);if(!(kt===void 0?baseIsEqual$3(Rt,Tt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,ut,$t):kt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$4=isObject_1;function isStrictComparable$3(ot){return ot===ot&&!isObject$4(ot)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(ot){for(var et=keys$1(ot),ct=et.length;ct--;){var ut=et[ct],dt=ot[ut];et[ct]=[ut,dt,isStrictComparable$2(dt)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(ot,et){return function(ct){return ct==null?!1:ct[ot]===et&&(et!==void 0||ot in Object(ct))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(ot){var et=getMatchData$1(ot);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(ct){return ct===ot||baseIsMatch$1(ct,ot,et)}}var _baseMatches=baseMatches$2;function baseHasIn$2(ot,et){return ot!=null&&et in Object(ot)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(ot,et,ct){et=castPath$3(et,ot);for(var ut=-1,dt=et.length,ft=!1;++ut<dt;){var zt=toKey$4(et[ut]);if(!(ft=ot!=null&&ct(ot,zt)))break;ot=ot[zt]}return ft||++ut!=dt?ft:(dt=ot==null?0:ot.length,!!dt&&isLength$1(dt)&&isIndex$2(zt,dt)&&(isArray$6(ot)||isArguments$1(ot)))}let baseHasIn$1,hasPath$1;_hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(ot,et){return ot!=null&&hasPath$1(ot,et,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(ot,et){return isKey$2(ot)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$3(ot),et):function(ct){var ut=get$2(ct,ot);return ut===void 0&&ut===et?hasIn$2(ct,ot):baseIsEqual$2(et,ut,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(ot){return function(et){return baseGet$3(et,ot)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(ot){return isKey$1(ot)?baseProperty$1(toKey$2(ot)):basePropertyDeep$1(ot)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(ot){return typeof ot=="function"?ot:ot==null?identity$2:typeof ot=="object"?isArray$5(ot)?baseMatchesProperty$1(ot[0],ot[1]):baseMatches$1(ot):property$1(ot)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(ot,et){return function(ct,ut){if(ct==null)return ct;if(!isArrayLike$2(ct))return ot(ct,ut);for(var dt=ct.length,ft=et?dt:-1,zt=Object(ct);(et?ft--:++ft<dt)&&ut(zt[ft],ft,zt)!==!1;);return ct}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(ot,et){var ct=-1,ut=isArrayLike$1(ot)?Array(ot.length):[];return baseEach$2(ot,function(dt,ft,zt){ut[++ct]=et(dt,ft,zt)}),ut}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(ot,et){var ct=isArray$4(ot)?arrayMap$3:baseMap$2;return ct(ot,baseIteratee$4(et))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0}),flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(ot){return ot&&ot.__esModule?ot:{default:ot}}var flattenNames=flattenNames$1.flattenNames=function ot(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=[];return(0,_map3.default)(et,function(ut){Array.isArray(ut)?ot(ut).map(function(dt){return ct.push(dt)}):(0,_isPlainObject3.default)(ut)?(0,_forOwn3$2.default)(ut,function(dt,ft){dt===!0&&ct.push(ft),ct.push(ft+"-"+dt)}):(0,_isString3.default)(ut)&&ct.push(ut)}),ct};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$6(ot){return ot&&ot.__esModule?ot:{default:ot}}var mergeClasses=mergeClasses$1.mergeClasses=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=et.default&&(0,_cloneDeep3.default)(et.default)||{};return ct.map(function(dt){var ft=et[dt];return ft&&(0,_forOwn3$1.default)(ft,function(zt,Dt){ut[Dt]||(ut[Dt]={}),ut[Dt]=_extends$w({},ut[Dt],ft[Dt])}),dt}),ut};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0}),autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$5(ot){return ot.__esModule?ot:{default:ot}}var transforms={borderRadius:function ot(et){return{msBorderRadius:et,MozBorderRadius:et,OBorderRadius:et,WebkitBorderRadius:et,borderRadius:et}},boxShadow:function ot(et){return{msBoxShadow:et,MozBoxShadow:et,OBoxShadow:et,WebkitBoxShadow:et,boxShadow:et}},userSelect:function ot(et){return{WebkitTouchCallout:et,KhtmlUserSelect:et,MozUserSelect:et,msUserSelect:et,WebkitUserSelect:et,userSelect:et}},flex:function ot(et){return{WebkitBoxFlex:et,MozBoxFlex:et,WebkitFlex:et,msFlex:et,flex:et}},flexBasis:function ot(et){return{WebkitFlexBasis:et,flexBasis:et}},justifyContent:function ot(et){return{WebkitJustifyContent:et,justifyContent:et}},transition:function ot(et){return{msTransition:et,MozTransition:et,OTransition:et,WebkitTransition:et,transition:et}},transform:function ot(et){return{msTransform:et,MozTransform:et,OTransform:et,WebkitTransform:et,transform:et}},absolute:function ot(et){var ct=et&&et.split(" ");return{position:"absolute",top:ct&&ct[0],right:ct&&ct[1],bottom:ct&&ct[2],left:ct&&ct[3]}},extend:function ot(et,ct){var ut=ct[et];return ut||{extend:et}}},autoprefix=autoprefix$1.autoprefix=function ot(et){var ct={};return(0,_forOwn3.default)(et,function(ut,dt){var ft={};(0,_forOwn3.default)(ut,function(zt,Dt){var St=transforms[Dt];St?ft=_extends$v({},ft,St(zt)):ft[Dt]=zt}),ct[dt]=ft}),ct};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0}),hover$1.hover=void 0;var _extends$u=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$f(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$f(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var hover=hover$1.hover=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$f(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$f(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$f(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={hover:!1},Dt.handleMouseOver=function(){return Dt.setState({hover:!0})},Dt.handleMouseOut=function(){return Dt.setState({hover:!1})},Dt.render=function(){return _react2$3.default.createElement(ct,{onMouseOver:Dt.handleMouseOver,onMouseOut:Dt.handleMouseOut},_react2$3.default.createElement(et,_extends$u({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$f(Dt,St)}return dt}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0}),active$1.active=void 0;var _extends$t=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$e(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$e(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var active=active$1.active=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$e(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$e(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$e(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={active:!1},Dt.handleMouseDown=function(){return Dt.setState({active:!0})},Dt.handleMouseUp=function(){return Dt.setState({active:!1})},Dt.render=function(){return _react2$2.default.createElement(ct,{onMouseDown:Dt.handleMouseDown,onMouseUp:Dt.handleMouseUp},_react2$2.default.createElement(et,_extends$t({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$e(Dt,St)}return dt}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function ot(et,ct){var ut={},dt=function(ft){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ut[ft]=zt};return et===0&&dt("first-child"),et===ct-1&&dt("last-child"),(et===0||et%2===0)&&dt("even"),Math.abs(et%2)===1&&dt("odd"),dt("nth-child",et),ut};loop.default=loopable,Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(ot){return ot&&ot.__esModule?ot:{default:ot}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default,lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function ot(et){for(var ct=arguments.length,ut=Array(ct>1?ct-1:0),dt=1;dt<ct;dt++)ut[dt-1]=arguments[dt];var ft=(0,_flattenNames2.default)(ut),zt=(0,_mergeClasses2.default)(et,ft);return(0,_autoprefix2.default)(zt)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function ot(et,ct,ut,dt,ft){var zt=ft.clientWidth,Dt=ft.clientHeight,St=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,Tt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Rt=St-(ft.getBoundingClientRect().left+window.pageXOffset),$t=Tt-(ft.getBoundingClientRect().top+window.pageYOffset);if(ut==="vertical"){var kt=void 0;if($t<0?kt=0:$t>Dt?kt=1:kt=Math.round($t*100/Dt)/100,ct.a!==kt)return{h:ct.h,s:ct.s,l:ct.l,a:kt,source:"rgb"}}else{var Bt=void 0;if(Rt<0?Bt=0:Rt>zt?Bt=1:Bt=Math.round(Rt*100/zt)/100,dt!==Bt)return{h:ct.h,s:ct.s,l:ct.l,a:Bt,source:"rgb"}}return null},checkboardCache={},render=function ot(et,ct,ut,dt){if(typeof document>"u"&&!dt)return null;var ft=dt?new dt:document.createElement("canvas");ft.width=ut*2,ft.height=ut*2;var zt=ft.getContext("2d");return zt?(zt.fillStyle=et,zt.fillRect(0,0,ft.width,ft.height),zt.fillStyle=ct,zt.fillRect(0,0,ut,ut),zt.translate(ut,ut),zt.fillRect(0,0,ut,ut),ft.toDataURL()):null},get$1=function ot(et,ct,ut,dt){var ft=et+"-"+ct+"-"+ut+(dt?"-server":"");if(checkboardCache[ft])return checkboardCache[ft];var zt=render(et,ct,ut,dt);return checkboardCache[ft]=zt,zt},_extends$s=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},Checkboard=function ot(et){var ct=et.white,ut=et.grey,dt=et.size,ft=et.renderers,zt=et.borderRadius,Dt=et.boxShadow,St=et.children,Tt=_default$2({default:{grid:{borderRadius:zt,boxShadow:Dt,absolute:"0px 0px 0px 0px",background:"url("+get$1(ct,ut,dt,ft.canvas)+") center left"}}});return reactExports.isValidElement(St)?React$1.cloneElement(St,_extends$s({},St.props,{style:_extends$s({},St.props.style,Tt.grid)})):React$1.createElement("div",{style:Tt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_createClass$d=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$d(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$d(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Alpha=function(ot){_inherits$d(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$d(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$d(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$2(Tt,dt.props.hsl,dt.props.direction,dt.props.a,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},dt.unbindEventListeners=function(){window.removeEventListener("mousemove",dt.handleChange),window.removeEventListener("mouseup",dt.handleMouseUp)},ut),_possibleConstructorReturn$d(dt,ft)}return _createClass$d(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var ct=this,ut=this.props.rgb,dt=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
412
412
|
rgba(`+ut.r+","+ut.g+","+ut.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ut.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
413
413
|
rgba(`+ut.r+","+ut.g+","+ut.b+", 1) 100%)"},pointer:{left:0,top:ut.a*100+"%"}},overwrite:_extends$r({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return React$1.createElement("div",{style:dt.alpha},React$1.createElement("div",{style:dt.checkboard},React$1.createElement(Checkboard,{renderers:this.props.renderers})),React$1.createElement("div",{style:dt.gradient}),React$1.createElement("div",{style:dt.container,ref:function(ft){return ct.container=ft},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("div",{style:dt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:dt.slider}))))}}]),et}(reactExports.PureComponent||reactExports.Component),_createClass$c=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _defineProperty$d(ot,et,ct){return et in ot?Object.defineProperty(ot,et,{value:ct,enumerable:!0,configurable:!0,writable:!0}):ot[et]=ct,ot}function _classCallCheck$c(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$c(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$c(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function ot(et){return VALID_KEY_CODES.indexOf(et)>-1},getNumberValue=function ot(et){return Number(String(et).replace(/%/g,""))},idCounter=1,EditableInput=function(ot){_inherits$c(et,ot);function et(ct){_classCallCheck$c(this,et);var ut=_possibleConstructorReturn$c(this,(et.__proto__||Object.getPrototypeOf(et)).call(this));return ut.handleBlur=function(){ut.state.blurValue&&ut.setState({value:ut.state.blurValue,blurValue:null})},ut.handleChange=function(dt){ut.setUpdatedValue(dt.target.value,dt)},ut.handleKeyDown=function(dt){var ft=getNumberValue(dt.target.value);if(!isNaN(ft)&&isValidKeyCode(dt.keyCode)){var zt=ut.getArrowOffset(),Dt=dt.keyCode===UP_KEY_CODE?ft+zt:ft-zt;ut.setUpdatedValue(Dt,dt)}},ut.handleDrag=function(dt){if(ut.props.dragLabel){var ft=Math.round(ut.props.value+dt.movementX);ft>=0&&ft<=ut.props.dragMax&&ut.props.onChange&&ut.props.onChange(ut.getValueObjectWithLabel(ft),dt)}},ut.handleMouseDown=function(dt){ut.props.dragLabel&&(dt.preventDefault(),ut.handleDrag(dt),window.addEventListener("mousemove",ut.handleDrag),window.addEventListener("mouseup",ut.handleMouseUp))},ut.handleMouseUp=function(){ut.unbindEventListeners()},ut.unbindEventListeners=function(){window.removeEventListener("mousemove",ut.handleDrag),window.removeEventListener("mouseup",ut.handleMouseUp)},ut.state={value:String(ct.value).toUpperCase(),blurValue:String(ct.value).toUpperCase()},ut.inputId="rc-editable-input-"+idCounter++,ut}return _createClass$c(et,[{key:"componentDidUpdate",value:function(ct,ut){this.props.value!==this.state.value&&(ct.value!==this.props.value||ut.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(ct){return _defineProperty$d({},this.props.label,ct)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(ct,ut){var dt=this.props.label?this.getValueObjectWithLabel(ct):ct;this.props.onChange&&this.props.onChange(dt,ut),this.setState({value:ct})}},{key:"render",value:function(){var ct=this,ut=_default$2({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return React$1.createElement("div",{style:ut.wrap},React$1.createElement("input",{id:this.inputId,style:ut.input,ref:function(dt){return ct.input=dt},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?React$1.createElement("label",{htmlFor:this.inputId,style:ut.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),et}(reactExports.PureComponent||reactExports.Component),calculateChange$1=function ot(et,ct,ut,dt){var ft=dt.clientWidth,zt=dt.clientHeight,Dt=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,St=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Tt=Dt-(dt.getBoundingClientRect().left+window.pageXOffset),Rt=St-(dt.getBoundingClientRect().top+window.pageYOffset);if(ct==="vertical"){var $t=void 0;if(Rt<0)$t=359;else if(Rt>zt)$t=0;else{var kt=-(Rt*100/zt)+100;$t=360*kt/100}if(ut.h!==$t)return{h:$t,s:ut.s,l:ut.l,a:ut.a,source:"hsl"}}else{var Bt=void 0;if(Tt<0)Bt=0;else if(Tt>ft)Bt=359;else{var Ft=Tt*100/ft;Bt=360*Ft/100}if(ut.h!==Bt)return{h:Bt,s:ut.s,l:ut.l,a:ut.a,source:"hsl"}}return null},_createClass$b=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$b(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$b(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Hue=function(ot){_inherits$b(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$b(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$b(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$1(Tt,dt.props.direction,dt.props.hsl,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},ut),_possibleConstructorReturn$b(dt,ft)}return _createClass$b(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var ct=this,ut=this.props.direction,dt=ut===void 0?"horizontal":ut,ft=_default$2({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:dt==="vertical"});return React$1.createElement("div",{style:ft.hue},React$1.createElement("div",{className:"hue-"+dt,style:ft.container,ref:function(zt){return ct.container=zt},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("style",null,`
|
|
414
414
|
.hue-horizontal {
|
|
@@ -507,5 +507,5 @@ not been pushed to GitHub. Please add it to continue.
|
|
|
507
507
|
}
|
|
508
508
|
100% {
|
|
509
509
|
opacity: 0;
|
|
510
|
-
}`,StyledCountdown=createStyled("div",{target:"e7qru6u0"})(({theme:ot})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:ot.sizes.full,height:ot.sizes.full,fontSize:"40vh",color:ot.colors.red,fontWeight:ot.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${ot.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`}),""),Countdown=({countdown:ot,endCallback:et})=>{const[ct,ut]=reactExports.useState(ot),dt=()=>{const ft=ct-1;ft>=0&&ut(ft),ft===0&&et()};return jsxRuntimeExports.jsx(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:dt,children:jsxRuntimeExports.jsx("span",{children:ct})},`frame${ct}`)};function withScreencast(ot){const ct=class ct extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:dt}=this.state;this.setState({recordAudio:!dt})},this.showDialog=dt=>{const{currentState:ft}=this.state;ScreenCastRecorder.isSupportedBrowser()?ft==="OFF"?this.setState({fileName:dt,currentState:"SETUP"}):this.stopRecording().catch(zt=>logWarning(`withScreencast.stopRecording threw an error: ${zt}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:dt}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:dt,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let dt;const{currentState:ft}=this.state;ft==="OFF"||isNullOrUndefined$1(this.recorder)||(ft==="COUNTDOWN"&&this.setState({currentState:"OFF"}),ft==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(dt=await this.recorder.stop(),this.setState({outputBlob:dt,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(dt=>logWarning(`withScreencast.stopRecording threw an error: ${dt}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:dt,fileName:ft,recordAudio:zt,currentState:Dt}=this.state;return jsxRuntimeExports.jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsxRuntimeExports.jsx(ot,{...this.props,screenCast:this.getScreenCastProps()}),Dt==="UNSUPPORTED"&&jsxRuntimeExports.jsx(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),Dt==="SETUP"&&jsxRuntimeExports.jsx(ScreencastDialog,{recordAudio:zt,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),Dt==="COUNTDOWN"&&jsxRuntimeExports.jsx(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),Dt==="PREVIEW_FILE"&&dt&&jsxRuntimeExports.jsx(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:dt,fileName:ft})]})}}};ct.displayName=`withScreencast(${ot.displayName||ot.name})`;let et=ct;return hoistNonReactStatics$2(et,ot)}function getTitle(ot){return ot||"Streamlit"}class StrategyV1{constructor(et){this.appNav=et,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(et){var zt,Dt;this.appPages=et.appPages,this.currentPageScriptHash=et.pageScriptHash,this.hideSidebarNav=((zt=et.config)==null?void 0:zt.hideSidebarNav)??!1;const ct=this.appPages[0],ut=ct.urlPathname??"",dt=((Dt=this.appPages.find(St=>St.pageScriptHash===this.currentPageScriptHash))==null?void 0:Dt.urlPathname)??"",ft=ct.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(ut,dt,ft),document.title=getTitle(dt??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:ft?"":dt,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(et){const{appPages:ct}=et;return[{appPages:ct},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ct})}]}handlePageNotFound(et){var dt;const{pageName:ct}=et;this.appNav.onPageNotFound(ct);const ut=((dt=this.appPages[0])==null?void 0:dt.pageScriptHash)??"";return this.currentPageScriptHash=ut,[{currentPageScriptHash:ut},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:ut})}]}handleNavigation(et){}findPageByUrlPath(et){return this.appPages.length===0?null:this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.appPages[0]}clearPageElements(et,ct,ut){return AppRoot.empty(ct,!1,ut,et.logo)}}class StrategyV2{constructor(et){this.appNav=et,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(et){var ct;return this.mainScriptHash=et.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((ct=et.config)==null?void 0:ct.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(et){}handlePageNotFound(et){const{pageName:ct}=et;return this.appNav.onPageNotFound(ct),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(et){const{sections:ct,position:ut,appPages:dt}=et;this.appPages=dt,this.hideSidebarNav=ut===Navigation.Position.HIDDEN;const ft=et.pageScriptHash,zt=dt.find(Tt=>Tt.pageScriptHash===ft),Dt=dt.find(Tt=>Tt.isDefault);this.mainPage=Dt;const St=zt.urlPathname;if(!this.appNav.isPageTitleSet){const Tt=getTitle(zt.pageName);document.title=Tt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:zt.pageName??""})}return!this.appNav.isPageIconSet&&zt.icon&&this.appNav.onPageIconChange(zt.icon),this.appNav.onUpdatePageUrl(Dt.urlPathname??"",St,zt.isDefault??!1),[{appPages:dt,navSections:ct,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:et.expanded,currentPageScriptHash:ft},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:dt}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:zt.isDefault?"":St,currentPageScriptHash:ft})}]}findPageByUrlPath(et){return this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.mainPage}clearPageElements(et,ct,ut){return et.filterMainScriptElements(ct)}}class AppNavigation{constructor(et,ct,ut,dt){this.hostCommunicationMgr=et,this.onUpdatePageUrl=ct,this.onPageNotFound=ut,this.onPageIconChange=dt,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(et){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(et)}handleNavigation(et){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(et)}handlePagesChanged(et){return this.strategy.handlePagesChanged(et)}handlePageNotFound(et){return this.strategy.handlePageNotFound(et)}findPageByUrlPath(et){return this.strategy.findPageByUrlPath(et)}handlePageConfigChanged(et){this.isPageIconSet=!!et.favicon,this.isPageTitleSet=!!et.title}clearPageElements(et,ct,ut){return this.strategy.clearPageElements(et,ct,ut)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>",showDevelopmentOptions=(ot,et)=>et==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==et||Config.ToolbarMode.MINIMAL==et?!1:ot||isLocalhost();let App$1=(M1=class extends reactExports.PureComponent{constructor(et){super(et),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(ut,dt,ft)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:ut,msg:dt,onContinue:ft,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(ut,dt)=>{const[,ft,zt]=createPresetThemes(),Dt=isPresetTheme(this.props.theme.activeTheme);ut===ft.name&&Dt?this.props.theme.setTheme(ft):ut===zt.name&&Dt?this.props.theme.setTheme(zt):dt&&this.props.theme.setImportedTheme(dt)},this.handleConnectionStateChanged=ut=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${ut}`),ut===ConnectionState.CONNECTED){const dt=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||dt)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:ut!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:ut})},this.handleGitInfoChanged=ut=>{this.setState({gitInfo:ut})},this.handleCustomParentMessage=ut=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:ut.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=ut=>{const dt=(ft,zt,Dt)=>{const St=ft[zt];if(St in Dt)return Dt[St](ft[St]);throw new Error(`Cannot handle ${zt} "${St}".`)};try{dt(ut,"type",{newSession:ft=>this.handleNewSession(ft),sessionStatusChanged:ft=>this.handleSessionStatusChanged(ft),sessionEvent:ft=>this.handleSessionEvent(ft),delta:ft=>this.handleDeltaMsg(ft,ut.metadata),pageConfigChanged:ft=>this.handlePageConfigChanged(ft),pageInfoChanged:ft=>this.handlePageInfoChanged(ft),pagesChanged:ft=>this.handlePagesChanged(ft),pageNotFound:ft=>this.handlePageNotFound(ft),gitInfoChanged:ft=>this.handleGitInfoChanged(ft),scriptFinished:ft=>this.handleScriptFinished(ft),pageProfile:ft=>this.handlePageProfileMsg(ft),autoRerun:ft=>this.handleAutoRerun(ft),fileUrlsResponse:ft=>this.uploadClient.onFileURLsResponse(ft),parentMessage:ft=>this.handleCustomParentMessage(ft),logo:ft=>this.handleLogo(ft,ut.metadata),navigation:ft=>this.handleNavigation(ft)})}catch(ft){const zt=ensureError(ft);logError(zt),this.showError("Bad message format",zt.message)}},this.handleLogo=(ut,dt)=>{const ft={activeScriptHash:dt.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(ut,ft)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=ut=>{const{title:dt,favicon:ft,layout:zt,initialSidebarState:Dt,menuItems:St}=ut;this.appNavigation.handlePageConfigChanged(ut),dt&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:dt}),document.title=dt),ft&&this.onPageIconChanged(ft),zt!==this.state.layout&&this.setState(Tt=>({layout:zt,userSettings:{...Tt.userSettings,wideMode:zt===PageConfig.Layout.WIDE}})),Dt!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:Dt})),this.setState({menuItems:St})},this.handlePageInfoChanged=ut=>{const{queryString:dt}=ut,ft=document.location.pathname+(dt?`?${dt}`:"");window.history.pushState({},"",ft),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt?`?${dt}`:""})},this.onPageNotFound=ut=>{const dt=ut?`You have requested page /${ut}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${dt}. Running the app's main page.`)},this.handlePageNotFound=ut=>{this.maybeSetState(this.appNavigation.handlePageNotFound(ut))},this.onPageIconChanged=ut=>{handleFavicon(ut,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=ut=>{this.maybeSetState(this.appNavigation.handlePagesChanged(ut))},this.handleNavigation=ut=>{this.maybeSetState(this.appNavigation.handleNavigation(ut))},this.handlePageProfileMsg=ut=>{var zt,Dt,St;const dt=PageProfile.toObject(ut),ft=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...dt,isFragmentRun:!!dt.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(zt=this.state.appPages)==null?void 0:zt.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(St=(Dt=this.props.theme)==null?void 0:Dt.activeTheme)==null?void 0:St.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:ft})},this.handleAutoRerun=ut=>{const dt=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(ut.fragmentId,!0)},ut.interval*1e3);this.setState(ft=>({autoReruns:[...ft.autoReruns,dt]}))},this.handleSessionStatusChanged=ut=>{this.setState(dt=>{let{scriptRunState:ft}=dt,{dialog:zt}=dt;return ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.STOP_REQUESTED?(ft=ScriptRunState.RUNNING,notNullOrUndefined(zt)&&zt.type===DialogType.SCRIPT_COMPILE_ERROR&&(zt=void 0)):!ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&dt.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(ft=ScriptRunState.NOT_RUNNING),{userSettings:{...dt.userSettings,runOnSave:!!ut.runOnSave},dialog:zt,scriptRunState:ft}})},this.handleSessionEvent=ut=>{if(this.sessionEventDispatcher.handleSessionEventMsg(ut),ut.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const dt={type:DialogType.SCRIPT_COMPILE_ERROR,exception:ut.scriptCompilationException,onClose:()=>{}};this.openDialog(dt)}},this.maybeUpdatePageUrl=(ut,dt,ft)=>{const zt=this.getBaseUriParts();if(zt){const{basePath:Dt}=zt,St=extractPageNameFromPathName(document.location.pathname,Dt);if((St===""?ut:St)!==dt){const Tt=ft?"":dt,Rt=preserveEmbedQueryParams(),$t=Rt?`?${Rt}`:"",kt=`${Dt?`/${Dt}`:""}/${Tt}${$t}`,Bt=kt.endsWith("/")&&kt!=="/"?kt.slice(0,-1):kt;window.history.pushState({},"",Bt)}}},this.handleNewSession=ut=>{const dt=ut.initialize;if(this.hasStreamlitVersionChanged(dt)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(ut);const{appHash:ft,currentPageScriptHash:zt}=this.state,{scriptRunId:Dt,name:St,mainScriptPath:Tt,fragmentIdsThisRun:Rt,pageScriptHash:$t,mainScriptHash:kt}=ut;if(Rt.length)this.setState({fragmentIdsThisRun:Rt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Ft=ut.config,jt=ut.customTheme;this.processThemeInput(jt),this.setState({allowRunOnSave:Ft.allowRunOnSave,hideTopBar:Ft.hideTopBar,toolbarMode:Ft.toolbarMode,latestRunTime:performance.now(),mainScriptHash:kt,fragmentIdsThisRun:Rt}),this.maybeSetState(this.appNavigation.handleNewSession(ut)),this.onPageIconChanged("/favicon.png")}const Bt=hashString(this.sessionInfo.current.installationId+Tt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(Bt),this.metricsMgr.enqueue("updateReport"),ft===Bt&&zt===$t?this.setState({scriptRunId:Dt}):this.clearAppState(Bt,Dt,St,kt)},this.handleOneTimeInitialization=ut=>{const dt=ut.initialize,ft=ut.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(ut)),this.metricsMgr.initialize({gatherUsageStats:ft.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(dt.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:ut}=this.state,dt=this.appNavigation.findPageByUrlPath(document.location.pathname),ft=document.location.toString().includes("#"),zt=(dt==null?void 0:dt.pageScriptHash)===ut;isNullOrUndefined$1(dt)||ft&&zt||this.onPageChange(dt.pageScriptHash)},this.setAndSendTheme=ut=>{this.props.theme.setTheme(ut),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(ut.emotion)})},this.createThemeHash=ut=>{if(!ut)return"hash_for_undefined_custom_theme";const dt=Object.entries(ut);return dt.sort(),hashString(dt.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=ut=>{const{runOnSave:dt}=this.state.userSettings,{runOnSave:ft}=ut;if(this.setState({userSettings:ut}),dt!==ft&&this.isServerConnected()){const zt=new BackMsg({setRunOnSave:ft});zt.type="setRunOnSave",this.sendBackMsg(zt)}},this.handleDeltaMsg=(ut,dt)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,ut,dt),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const ft=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,ft&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugShutdownRuntime:!0});ut.type="debugShutdownRuntime",this.sendBackMsg(ut)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugDisconnectWebsocket:!0});ut.type="debugDisconnectWebsocket",this.sendBackMsg(ut)}},this.debugClearForwardMsgCache=()=>{var ut,dt;isLocalhost()&&((dt=(ut=this.connectionManager)==null?void 0:ut.connection)==null||dt.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(ut=>{clearInterval(ut)}),this.setState({autoReruns:[]})},this.rerunScript=(ut=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),ut===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=ut=>{const{elements:dt,mainScriptHash:ft}=this.state;this.cleanupAutoReruns();const zt=this.appNavigation.clearPageElements(dt,ft,void 0),Dt=new Set(Array.from(zt.getElements()).map(St=>getElementId(St)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(Dt),void 0,ut)},this.isAppInReadyState=ut=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&ut.scriptRunState===ScriptRunState.RUNNING&&ut.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(ut,dt,ft,zt)=>{const Dt=this.getBaseUriParts();if(!Dt){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:St}=this.state,{basePath:Tt}=Dt;let Rt=this.getQueryString(),$t="";ft?ft!=St&&(Rt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:Rt})):St?ft=St:($t=extractPageNameFromPathName(document.location.pathname,Tt),ft=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:Rt,widgetStates:ut,pageScriptHash:ft,pageName:$t,fragmentId:dt,isAutoRerun:zt}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const ut=new BackMsg({stopScript:!0});ut.type="stopScript",this.sendBackMsg(ut),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const ut={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(ut)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var dt;const ut={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((dt=this.state.dialog)==null?void 0:dt.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const ut={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const ut=new BackMsg({clearCache:!0});ut.type="clearCache",this.sendBackMsg(ut)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const ut=new BackMsg({appHeartbeat:!0});ut.type="appHeartbeat",this.sendBackMsg(ut)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=ut=>{this.connectionManager?this.connectionManager.sendMessage(ut):logError(`Not connected. Cannot send back message: ${ut}`)},this.handleConnectionError=ut=>{this.showError("Connection error",ut)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(ut=!0)=>{const dt={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:ut,metricsMgr:this.metricsMgr};this.openDialog(dt)},this.aboutCallback=()=>{const{menuItems:ut}=this.state,dt={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:ut==null?void 0:ut.aboutSectionMd};this.openDialog(dt)},this.printCallback=()=>{const{scriptRunState:ut}=this.state;if(ut!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let dt;try{const ft=getIFrameEnclosingApp(this.embeddingId);ft&&ft.contentWindow?dt=ft.contentWindow.window:dt=window}catch{dt=window}finally{dt||(dt=window),dt.print()}},this.screencastCallback=()=>{const{scriptName:ut}=this.state,{startRecording:dt}=this.props.screenCast,ft=hooks().format("YYYY-MM-DD-HH-MM-SS");dt(`streamlit-${ut}-${ft}`)},this.handleFullScreen=ut=>{this.setState({isFullScreen:ut})},this.setLibConfig=ut=>{this.setState({libConfig:ut})},this.setAppConfig=ut=>{this.setState({appConfig:ut})},this.addScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:dt.scriptFinishedHandlers.concat(ut)}))},this.removeScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:without$1(dt.scriptFinishedHandlers,ut)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:ut}=this.state,dt=ut&&ut.length>0?ut:document.location.search;return dt.startsWith("?")?dt.substring(1):dt},this.isInCloudEnvironment=()=>{const{hostMenuItems:ut}=this.state;return ut&&(ut==null?void 0:ut.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(ut,dt)=>{if(this.isServerConnected()){const ft=new BackMsg({fileUrlsRequest:{requestId:ut,fileNames:dt.map(zt=>zt.name),sessionId:this.sessionInfo.current.sessionId}});ft.type="fileUrlsRequest",this.sendBackMsg(ft)}},this.handleKeyDown=ut=>{switch(ut){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=ut=>{ut==="esc"&&this.props.screenCast.stopRecording()},J$2();let ct=this.createThemeHash();isPresetTheme(et.theme.activeTheme)||(ct=this.createThemeHash(toThemeInput(et.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:ct,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:ut=>this.setState({formsData:ut})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:et.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:ut=>{this.setState({inputsDisabled:ut})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:ut=>this.setState({isOwner:ut}),jwtHeaderChanged:({jwtHeaderName:ut,jwtHeaderValue:dt})=>{this.endpoints.setJWTHeader!==void 0&&this.state.appConfig.useExternalAuthToken&&this.endpoints.setJWTHeader({jwtHeaderName:ut,jwtHeaderValue:dt})},fileUploadClientConfigChanged:ut=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(ut)},hostMenuItemsChanged:ut=>{this.setState({hostMenuItems:ut})},hostToolbarItemsChanged:ut=>{this.setState({hostToolbarItems:ut})},hostHideSidebarNavChanged:ut=>{this.setState({hostHideSidebarNav:ut})},sidebarChevronDownshiftChanged:ut=>{this.setState({sidebarChevronDownshift:ut})},pageLinkBaseUrlChanged:ut=>{this.setState({pageLinkBaseUrl:ut})},queryParamsChanged:ut=>{this.setState({queryParams:ut})},deployedAppMetadataChanged:ut=>{this.setState({deployedAppMetadata:ut})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var ut;(ut=this.connectionManager)==null||ut.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:ut=>this.widgetMgr.setFormsWithUploadsInProgress(ut),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.connectionManager=new ConnectionManager({kernel:et,sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:ut=>{const{allowedOrigins:dt,useExternalAuthToken:ft,disableFullscreenMode:zt,enableCustomParentMessages:Dt,mapboxToken:St,enforceDownloadInNewTab:Tt,metricsUrl:Rt}=ut,$t={allowedOrigins:dt,useExternalAuthToken:ft,enableCustomParentMessages:Dt},kt={mapboxToken:St,disableFullscreenMode:zt,enforceDownloadInNewTab:Tt};this.metricsMgr.setMetricsConfig(Rt),this.hostCommunicationMgr.setAllowedOrigins($t),this.setAppConfig($t),this.setLibConfig(kt)}})}componentDidMount(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.initializeConnectionManager(),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),this.uploadClient.setKernel(et),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const ut=document.querySelectorAll("[data-iframe-height]"),dt=Array.from(ut).map(ft=>Math.ceil(ft.getBoundingClientRect().bottom));return Math.max(0,...dt)}},__vitePreload(()=>import("./iframeResizer.contentWindow-uu2vIiUi.js").then(ut=>ut.i),[])),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(et,ct){window.prerenderReady===!1&&this.isAppInReadyState(ct)&&(window.prerenderReady=!0),this.state.scriptRunState!==ct.scriptRunState&&this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}componentWillUnmount(){var et;(et=this.connectionManager)==null||et.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(et,ct){logError(ct);const ut={type:DialogType.WARNING,title:et,msg:ct,onClose:()=>{}};this.openDialog(ut)}hasStreamlitVersionChanged(et){if(this.sessionInfo.isSet){const ct=this.sessionInfo.current.streamlitVersion,{environmentInfo:ut}=et;if(notNullOrUndefined(ut)&¬NullOrUndefined(ut.streamlitVersion))return ct!=ut.streamlitVersion}return!1}maybeSetState(et){if(et){const[ct,ut]=et;this.setState(ct,ut)}}processThemeInput(et){const ct=this.createThemeHash(et);if(ct===this.state.themeHash)return;this.setState({themeHash:ct});const ut=!isPresetTheme(this.props.theme.activeTheme);if(et){const dt=createTheme(CUSTOM_THEME_NAME,et);this.props.theme.addThemes([dt]),(getCachedTheme()===null||ut)&&this.setAndSendTheme(dt)}else this.props.theme.addThemes([]),ut&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(et){if(et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(ct=>ct())},0),et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:ut,fragmentIdsThisRun:dt})=>({elements:this.pendingElementsBuffer.clearStaleNodes(ut,dt)}),()=>{this.pendingElementsBuffer=this.state.elements});const ct=new Set(Array.from(this.state.elements.getElements()).map(ut=>getElementId(ut)).filter(notUndefined));this.widgetMgr.removeInactive(ct)}this.connectionManager!==null&&et!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(et,ct,ut,dt){const{hideSidebarNav:ft,elements:zt}=this.state,Dt=ft&&zt.sidebar||void 0;this.setState({scriptRunId:ct,scriptName:ut,appHash:et,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,dt,Dt)},()=>{this.pendingElementsBuffer=this.state.elements;const St=new Set(Array.from(this.state.elements.getElements()).map(Tt=>getElementId(Tt)).filter(notUndefined));this.widgetMgr.removeInactive(St)})}openDialog(et){this.setState({dialog:et})}render(){const{allowRunOnSave:et,connectionState:ct,dialog:ut,elements:dt,initialSidebarState:ft,menuItems:zt,isFullScreen:Dt,scriptRunId:St,scriptRunState:Tt,userSettings:Rt,hideTopBar:$t,hideSidebarNav:kt,expandSidebarNav:Bt,currentPageScriptHash:Ft,hostHideSidebarNav:jt,pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,hostMenuItems:Ut,hostToolbarItems:Jt,libConfig:Ht,appConfig:e0,inputsDisabled:t0,appPages:Zt,navSections:o0}=this.state,n0=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),r0=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":Rt.wideMode}),a0=ut?StreamlitDialog({...ut,onClose:this.closeDialog}):null,u0=t0||ct!==ConnectionState.CONNECTED;return jsxRuntimeExports.jsx(AppContext.Provider,{value:{initialSidebarState:ft,wideMode:Rt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,gitInfo:this.state.gitInfo,appConfig:e0},children:jsxRuntimeExports.jsx(LibContext.Provider,{value:{isFullScreen:Dt,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Ft,libConfig:Ht,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsxRuntimeExports.jsx(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxRuntimeExports.jsxs(StyledApp,{className:r0,"data-testid":"stApp","data-test-script-state":St==INITIAL_SCRIPT_RUN_ID?"initial":Tt,"data-test-connection-state":ct,children:[jsxRuntimeExports.jsxs(Header,{children:[!$t&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StatusWidget,{connectionState:ct,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:Tt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:et}),jsxRuntimeExports.jsx(ToolbarActions,{hostToolbarItems:Jt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsxRuntimeExports.jsx(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsxRuntimeExports.jsx(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:Ut,developmentMode:n0,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:zt,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsxRuntimeExports.jsx(AppView,{endpoints:this.endpoints,sessionInfo:this.sessionInfo,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:dt,scriptRunId:St,scriptRunState:Tt,widgetMgr:this.widgetMgr,widgetsDisabled:u0,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:dt.logo,appPages:Zt,navSections:o0,onPageChange:this.onPageChange,currentPageScriptHash:Ft,hideSidebarNav:kt||jt,expandSidebarNav:Bt}),a0]})})})})}},M1.contextType=StliteKernelContext,M1);const AppWithScreencast=withScreencast(App$1);function useThemeManager(){const ot=getDefaultTheme(),[et,ct]=reactExports.useState(ot),[ut,dt]=reactExports.useState([]),[ft,zt]=reactExports.useState([...createPresetThemes(),...isPresetTheme(ot)?[]:[ot]]),Dt=$t=>{zt([...createPresetThemes(),...$t])},St=reactExports.useCallback($t=>{$t!==et&&(ct($t),$t.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme($t))},[ct,et]),Tt=reactExports.useCallback(()=>{et.name===AUTO_THEME_NAME&&St(getHostSpecifiedTheme());const $t=ft.filter(kt=>kt.name!==AUTO_THEME_NAME);zt([createAutoTheme(),...$t])},[et.name,ft,St]),Rt=reactExports.useCallback($t=>{$t.fontFaces&&dt($t.fontFaces);const kt=new CustomThemeConfig($t),Bt=createTheme(CUSTOM_THEME_NAME,kt);St(Bt)},[dt,St]);return reactExports.useEffect(()=>{const $t=window.matchMedia("(prefers-color-scheme: dark)");return $t.addEventListener("change",Tt),window.addEventListener("afterprint",Tt),()=>{window.removeEventListener("afterprint",Tt),$t.removeEventListener("change",Tt)}},[et,ft,Tt]),[{setTheme:St,activeTheme:et,addThemes:Dt,availableThemes:ft,setImportedTheme:Rt},ut]}const ThemedApp=({streamlitExecutionStartedAt:ot})=>{const[et,ct]=useThemeManager(),{activeTheme:ut}=et,dt=ut.name===CUSTOM_THEME_NAME&&ct.length>0;return jsxRuntimeExports.jsx(RootStyleProvider,{theme:ut,children:jsxRuntimeExports.jsx(WindowDimensionsProvider,{children:jsxRuntimeExports.jsxs(PortalProvider,{children:[dt&&jsxRuntimeExports.jsx(FontFaceDeclaration,{fontFaces:ct}),jsxRuntimeExports.jsx(AppWithScreencast,{theme:et,streamlitExecutionStartedAt:ot})]})})})};class SequentialIDGenerator{constructor(et=""){this.prefix=et,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const et=this.increment().toString(36);return this.prefix?`${this.prefix}${et}`:et}increment(){const et=this.count+this.offset;return et===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,et}}const minMaxWidth=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,minWidth=/\(\s*min(-device)?-width/i,maxMinWidth=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,maxWidth=/\(\s*max(-device)?-width/i,isMinWidth=_testQuery(minMaxWidth,maxMinWidth,minWidth),isMaxWidth=_testQuery(maxMinWidth,minMaxWidth,maxWidth),minMaxHeight=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,minHeight=/\(\s*min(-device)?-height/i,maxMinHeight=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,maxHeight=/\(\s*max(-device)?-height/i,isMinHeight=_testQuery(minMaxHeight,maxMinHeight,minHeight),isMaxHeight=_testQuery(maxMinHeight,minMaxHeight,maxHeight),isPrint=/print/i,isPrintOnly=/^print$/i,maxValue=Number.MAX_VALUE;function _getQueryLength(ot){const et=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(ot);if(et===null)return maxValue;let ct=et[1];switch(et[2]){case"ch":ct=parseFloat(ct)*8.8984375;break;case"em":case"rem":ct=parseFloat(ct)*16;break;case"ex":ct=parseFloat(ct)*8.296875;break;case"px":ct=parseFloat(ct);break}return+ct}function _testQuery(ot,et,ct){return function(ut){return ot.test(ut)?!0:et.test(ut)?!1:ct.test(ut)}}function _testIsPrint(ot,et){const ct=isPrint.test(ot),ut=isPrintOnly.test(ot),dt=isPrint.test(et),ft=isPrintOnly.test(et);return ct&&dt?!ut&&ft?1:ut&&!ft?-1:ot.localeCompare(et):ct?1:dt?-1:null}function sortCSSmq(ot,et){if(ot==="")return-1;if(et==="")return 1;const ct=_testIsPrint(ot,et);if(ct!==null)return ct;const ut=isMinWidth(ot)||isMinHeight(ot),dt=isMaxWidth(ot)||isMaxHeight(ot),ft=isMinWidth(et)||isMinHeight(et),zt=isMaxWidth(et)||isMaxHeight(et);if(ut&&zt)return-1;if(dt&&ft)return 1;const Dt=_getQueryLength(ot),St=_getQueryLength(et);return Dt===maxValue&&St===maxValue?ot.localeCompare(et):Dt===maxValue?1:St===maxValue?-1:Dt>St?dt?-1:1:Dt<St?dt?1:-1:ot.localeCompare(et)}class MultiCache{constructor(et,ct,ut){this.idGenerator=et,this.onNewCache=ct,this.onNewValue=ut,this.sortedCacheKeys=[],this.caches={}}getCache(et){if(!this.caches[et]){const ct=new Cache(this.idGenerator,this.onNewValue);ct.key=et,this.sortedCacheKeys.push(et),this.sortedCacheKeys.sort(sortCSSmq);const ut=this.sortedCacheKeys.indexOf(et),dt=ut<this.sortedCacheKeys.length-1?this.sortedCacheKeys[ut+1]:void 0;this.caches[et]=ct,this.onNewCache(et,ct,dt)}return this.caches[et]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(et,ct){this.cache={},this.idGenerator=et,this.onNewValue=ct}addValue(et,ct){const ut=this.cache[et];if(ut)return ut;const dt=this.idGenerator.next();return this.cache[et]=dt,this.onNewValue(this,dt,ct),dt}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$1={};function hyphenateStyleName$2(ot){return ot in cache$1?cache$1[ot]:cache$1[ot]=ot.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(ot){return ot.charAt(0).toUpperCase()+ot.slice(1)}function prefixProperty(ot,et,ct){if(ot.hasOwnProperty(et)){for(var ut={},dt=ot[et],ft=capitalizeString(et),zt=Object.keys(ct),Dt=0;Dt<zt.length;Dt++){var St=zt[Dt];if(St===et)for(var Tt=0;Tt<dt.length;Tt++)ut[dt[Tt]+ft]=ct[et];ut[St]=ct[St]}return ut}return ct}function prefixValue$1(ot,et,ct,ut,dt){for(var ft=0,zt=ot.length;ft<zt;++ft){var Dt=ot[ft](et,ct,ut,dt);if(Dt)return Dt}}function addIfNew(ot,et){ot.indexOf(et)===-1&&ot.push(et)}function addNewValuesOnly(ot,et){if(Array.isArray(et))for(var ct=0,ut=et.length;ct<ut;++ct)addIfNew(ot,et[ct]);else addIfNew(ot,et)}function isObject(ot){return ot instanceof Object&&!Array.isArray(ot)}function createPrefixer(ot){var et=ot.prefixMap,ct=ot.plugins;return function ut(dt){for(var ft in dt){var zt=dt[ft];if(isObject(zt))dt[ft]=ut(zt);else if(Array.isArray(zt)){for(var Dt=[],St=0,Tt=zt.length;St<Tt;++St){var Rt=prefixValue$1(ct,ft,zt[St],dt,et);addNewValuesOnly(Dt,Rt||zt[St])}Dt.length>0&&(dt[ft]=Dt)}else{var $t=prefixValue$1(ct,ft,zt,dt,et);$t&&(dt[ft]=$t),dt=prefixProperty(et,ft,dt)}}return dt}}var w=["Webkit"],m=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={plugins:[],prefixMap:{appearance:wm,textEmphasisPosition:w,textEmphasis:w,textEmphasisStyle:w,textEmphasisColor:w,boxDecorationBreak:w,maskImage:w,maskMode:w,maskRepeat:w,maskPosition:w,maskClip:w,maskOrigin:w,maskSize:w,maskComposite:w,mask:w,maskBorderSource:w,maskBorderMode:w,maskBorderSlice:w,maskBorderWidth:w,maskBorderOutset:w,maskBorderRepeat:w,maskBorder:w,maskType:w,textDecorationStyle:w,textDecorationSkip:w,textDecorationLine:w,textDecorationColor:w,userSelect:wmms,backdropFilter:w,fontKerning:w,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w,shapeImageThreshold:w,shapeImageMargin:w,shapeImageOutside:w,filter:w,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w,tabSize:m,fontFeatureSettings:w,columnCount:w,columnFill:w,columnGap:w,columnRule:w,columnRuleColor:w,columnRuleStyle:w,columnRuleWidth:w,columns:w,columnSpan:w,columnWidth:w,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(ot,et){if(typeof et=="string"&&et==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(ot,et){if(ot==="cursor"&&values$3.hasOwnProperty(et))return prefixes$5.map(function(ct){return ct+et})}var isPrefixedValue$1={exports:{}};(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ut;var ct=/-webkit-|-moz-|-ms-/;function ut(dt){return typeof dt=="string"&&ct.test(dt)}ot.exports=et.default})(isPrefixedValue$1,isPrefixedValue$1.exports);var isPrefixedValueExports=isPrefixedValue$1.exports;const isPrefixedValue=getDefaultExportFromCjs$1(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("cross-fade(")>-1)return prefixes$4.map(function(ct){return et.replace(/cross-fade\(/g,ct+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("filter(")>-1)return prefixes$3.map(function(ct){return et.replace(/filter\(/g,ct+"filter(")})}var values$2={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function flex(ot,et){if(ot==="display"&&values$2.hasOwnProperty(et))return values$2[et]}var alternativeValues={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},alternativeProps$1={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function flexboxOld(ot,et,ct){ot==="flexDirection"&&typeof et=="string"&&(et.indexOf("column")>-1?ct.WebkitBoxOrient="vertical":ct.WebkitBoxOrient="horizontal",et.indexOf("reverse")>-1?ct.WebkitBoxDirection="reverse":ct.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(ot)&&(ct[alternativeProps$1[ot]]=alternativeValues[et]||et)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function gradient(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&values$1.test(et))return prefixes$2.map(function(ct){return et.replace(values$1,function(ut){return ct+ut})})}var _slicedToArray=function(){function ot(et,ct){var ut=[],dt=!0,ft=!1,zt=void 0;try{for(var Dt=et[Symbol.iterator](),St;!(dt=(St=Dt.next()).done)&&(ut.push(St.value),!(ct&&ut.length===ct));dt=!0);}catch(Tt){ft=!0,zt=Tt}finally{try{!dt&&Dt.return&&Dt.return()}finally{if(ft)throw zt}}return ut}return function(et,ct){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return ot(et,ct);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function isSimplePositionValue(ot){return typeof ot=="number"&&!isNaN(ot)}function isComplexSpanValue(ot){return typeof ot=="string"&&ot.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridRowAlign=et)},gridColumn:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridColumn=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridColumnStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridColumnEnd(+ft+ +Rt,ct):propertyConverters.gridColumnEnd(+zt,ct)}else propertyConverters.gridColumnStart(et,ct)},gridColumnEnd:function ot(et,ct){var ut=ct.msGridColumn;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridColumnSpan=et-ut)},gridColumnStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridColumn=et)},gridRow:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridRow=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridRowStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridRowEnd(+ft+ +Rt,ct):propertyConverters.gridRowEnd(+zt,ct)}else propertyConverters.gridRowStart(et,ct)},gridRowEnd:function ot(et,ct){var ut=ct.msGridRow;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridRowSpan=et-ut)},gridRowStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridRow=et)},gridTemplateColumns:function ot(et,ct){ct.msGridColumns=et},gridTemplateRows:function ot(et,ct){ct.msGridRows=et},justifySelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridColumnAlign=et)}};function grid(ot,et,ct){if(ot==="display"&&et in displayValues)return displayValues[et];if(ot in propertyConverters){var ut=propertyConverters[ot];ut(et,ct)}}var prefixes$1=["-webkit-",""];function imageSet(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("image-set(")>-1)return prefixes$1.map(function(ct){return et.replace(/image-set\(/g,ct+"image-set(")})}var alternativeProps={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function logical(ot,et,ct){if(Object.prototype.hasOwnProperty.call(alternativeProps,ot))for(var ut=alternativeProps[ot],dt=0,ft=ut.length;dt<ft;++dt)ct[ut[dt]]=et}function position(ot,et){if(ot==="position"&&et==="sticky")return["-webkit-sticky","sticky"]}var prefixes=["-webkit-","-moz-",""],properties$1={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},values={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function sizing(ot,et){if(properties$1.hasOwnProperty(ot)&&values.hasOwnProperty(et))return prefixes.map(function(ct){return ct+et})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache={};function toHyphenLower(ot){return"-"+ot.toLowerCase()}function hyphenateStyleName(ot){if(cache.hasOwnProperty(ot))return cache[ot];var et=ot.replace(uppercasePattern,toHyphenLower);return cache[ot]=msPattern.test(et)?"-"+et:et}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ft;var ct=require$$0,ut=dt(ct);function dt(zt){return zt&&zt.__esModule?zt:{default:zt}}function ft(zt){return(0,ut.default)(zt)}ot.exports=et.default})(hyphenateProperty$1,hyphenateProperty$1.exports);var hyphenatePropertyExports=hyphenateProperty$1.exports;const hyphenateProperty=getDefaultExportFromCjs$1(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(ot,et){if(isPrefixedValue(ot))return ot;for(var ct=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g),ut=0,dt=ct.length;ut<dt;++ut){var ft=ct[ut],zt=[ft];for(var Dt in et){var St=hyphenateProperty(Dt);if(ft.indexOf(St)>-1&&St!=="order")for(var Tt=et[Dt],Rt=0,$t=Tt.length;Rt<$t;++Rt)zt.unshift(ft.replace(St,prefixMapping[Tt[Rt]]+St))}ct[ut]=zt.join(",")}return ct.join(",")}function transition(ot,et,ct,ut){if(typeof et=="string"&&properties.hasOwnProperty(ot)){var dt=prefixValue(et,ut),ft=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-moz-|-ms-/.test(Dt)}).join(",");if(ot.indexOf("Webkit")>-1)return ft;var zt=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-webkit-|-ms-/.test(Dt)}).join(",");return ot.indexOf("Moz")>-1?zt:(ct["Webkit"+capitalizeString(ot)]=ft,ct["Moz"+capitalizeString(ot)]=zt,dt)}}var plugins=[backgroundClip,crossFade,cursor,filter,flexboxOld,gradient,grid,imageSet,logical,position,sizing,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins});function injectStylePrefixed(ot,et,ct,ut){const dt=ot.getCache(ct);let ft="";for(const zt in et){const Dt=et[zt];if(Dt!=null)if(typeof Dt!="object"){const St=`${hyphenateStyleName$2(zt)}:${Dt}`,Tt=`${ut}${St}`,Rt=dt.cache[Tt];if(Rt!==void 0){ft+=" "+Rt;continue}else{let $t="";const kt=prefix({[zt]:Dt});for(const Ft in kt){const jt=kt[Ft],Kt=typeof jt;if(Kt==="string"||Kt==="number"){const Yt=`${hyphenateStyleName$2(Ft)}:${jt}`;Yt!==St&&($t+=`${Yt};`)}else if(Array.isArray(jt)){const Yt=hyphenateStyleName$2(Ft);for(let Ut=0;Ut<jt.length;Ut++){const Jt=`${Yt}:${jt[Ut]}`;Jt!==St&&($t+=`${Jt};`)}}}$t+=St;const Bt=dt.addValue(Tt,{pseudo:ut,block:$t});ft+=" "+Bt}}else zt[0]===":"?ft+=" "+injectStylePrefixed(ot,Dt,ct,ut+zt):zt.substring(0,6)==="@media"&&(ft+=" "+injectStylePrefixed(ot,Dt,zt.substr(7),ut))}return ft.slice(1)}function atomicSelector(ot,et){let ct=`.${ot}`;return et&&(ct+=et),ct}function keyframesToBlock(ot){let et="";for(const ct in ot)et+=`${ct}{${declarationsToBlock(ot[ct])}}`;return et}function declarationsToBlock(ot){let et="";for(const ct in ot){const ut=ot[ct];(typeof ut=="string"||typeof ut=="number")&&(et+=`${hyphenateStyleName$2(ct)}:${ut};`)}return et.slice(0,-1)}function keyframesBlockToRule(ot,et){return`@keyframes ${ot}{${et}}`}function fontFaceBlockToRule(ot,et){return`@font-face{font-family:${ot};${et}}`}function styleBlockToRule(ot,et){return`${ot}{${et}}`}const insertRuleIntoDevtools=(ot,et)=>{const ct=ot.substring(1,ot.indexOf(":")!==-1?ot.indexOf(":"):ot.length),ut={};for(const dt of et.split(";"))dt.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[ct]&&(ut[dt.substring(0,dt.indexOf(":"))]=dt.substring(dt.indexOf(":")+1,dt.length));window.__STYLETRON_DEVTOOLS__.atomicMap[ct]=ut},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft,zt]=ut,Dt=ft?`${ft}${zt}`:zt;ot.cache[Dt]=dt,ot.idGenerator.increment()}}function hydrate(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft]=ut;ot.cache[ft]=dt,ot.idGenerator.increment()}}class StyletronClient{constructor(et={}){this.styleElements={};const ct=new SequentialIDGenerator(et.prefix),ut=(dt,ft,zt)=>{const{pseudo:Dt,block:St}=zt,Tt=this.styleElements[dt.key].sheet,Rt=atomicSelector(ft,Dt),$t=styleBlockToRule(Rt,St);try{Tt.insertRule($t,Tt.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(ct,(dt,ft,zt)=>{const Dt=document.createElement("style");if(Dt.media=dt,zt===void 0)this.container.appendChild(Dt);else{const St=findSheetIndexWithMedia(this.container.children,zt);this.container.insertBefore(Dt,this.container.children[St])}this.styleElements[dt]=Dt},ut),this.keyframesCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=keyframesBlockToRule(ft,keyframesToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),this.fontFaceCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=fontFaceBlockToRule(ft,declarationsToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),et.container&&(this.container=et.container),et.hydrate&&et.hydrate.length>0){if(!this.container){const dt=et.hydrate[0].parentElement;dt!=null&&(this.container=dt)}for(let dt=0;dt<et.hydrate.length;dt++){const ft=et.hydrate[dt],zt=ft.getAttribute("data-hydrate");if(zt==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,ft.textContent);continue}if(zt==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,ft.textContent);continue}const Dt=ft.media?ft.media:"";this.styleElements[Dt]=ft;const St=new Cache(ct,ut);St.key=Dt,hydrateStyles(St,STYLES_HYDRATOR,ft.textContent),this.styleCache.sortedCacheKeys.push(Dt),this.styleCache.caches[Dt]=St}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(et){return injectStylePrefixed(this.styleCache,et,"","")}renderFontFace(et){const ct=declarationsToBlock(et);return this.fontFaceCache.addValue(ct,et)}renderKeyframes(et){const ct=keyframesToBlock(et);return this.keyframesCache.addValue(ct,et)}}function findSheetIndexWithMedia(ot,et){let ct=0;for(;ct<ot.length;ct++){const ut=ot[ct];if(ut.tagName==="STYLE"&&ut.media===et)return ct}return-1}const engine=new StyletronClient({prefix:"st-"}),streamlitExecutionStartedAt=Date.now();function StreamlitApp(ot){return jsxRuntimeExports.jsx(StliteKernelProvider,{kernel:ot.kernel,children:jsxRuntimeExports.jsx(Provider$1,{value:engine,children:jsxRuntimeExports.jsx(ThemedApp,{streamlitExecutionStartedAt})})})}function r(ot){var et,ct,ut="";if(typeof ot=="string"||typeof ot=="number")ut+=ot;else if(typeof ot=="object")if(Array.isArray(ot)){var dt=ot.length;for(et=0;et<dt;et++)ot[et]&&(ct=r(ot[et]))&&(ut&&(ut+=" "),ut+=ct)}else for(ct in ot)ot[ct]&&(ut&&(ut+=" "),ut+=ct);return ut}function clsx(){for(var ot,et,ct=0,ut="",dt=arguments.length;ct<dt;ct++)(ot=arguments[ct])&&(et=r(ot))&&(ut&&(ut+=" "),ut+=et);return ut}function Mt(ot){if(typeof document>"u")return;let et=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",et.firstChild?et.insertBefore(ct,et.firstChild):et.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=ot:ct.appendChild(document.createTextNode(ot))}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
511
|
-
`);var L=ot=>typeof ot=="number"&&!isNaN(ot),N=ot=>typeof ot=="string",P=ot=>typeof ot=="function",mt=ot=>N(ot)||L(ot),B=ot=>N(ot)||P(ot)?ot:null,pt=(ot,et)=>ot===!1||L(ot)&&ot>0?ot:et,z=ot=>reactExports.isValidElement(ot)||N(ot)||P(ot)||L(ot);function Z(ot,et,ct=300){let{scrollHeight:ut,style:dt}=ot;requestAnimationFrame(()=>{dt.minHeight="initial",dt.height=ut+"px",dt.transition=`all ${ct}ms`,requestAnimationFrame(()=>{dt.height="0",dt.padding="0",dt.margin="0",setTimeout(et,ct)})})}function $({enter:ot,exit:et,appendPosition:ct=!1,collapse:ut=!0,collapseDuration:dt=300}){return function({children:ft,position:zt,preventExitTransition:Dt,done:St,nodeRef:Tt,isIn:Rt,playToast:$t}){let kt=ct?`${ot}--${zt}`:ot,Bt=ct?`${et}--${zt}`:et,Ft=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{let jt=Tt.current,Kt=kt.split(" "),Yt=Ut=>{Ut.target===Tt.current&&($t(),jt.removeEventListener("animationend",Yt),jt.removeEventListener("animationcancel",Yt),Ft.current===0&&Ut.type!=="animationcancel"&&jt.classList.remove(...Kt))};jt.classList.add(...Kt),jt.addEventListener("animationend",Yt),jt.addEventListener("animationcancel",Yt)},[]),reactExports.useEffect(()=>{let jt=Tt.current,Kt=()=>{jt.removeEventListener("animationend",Kt),ut?Z(jt,St,dt):St()};Rt||(Dt?Kt():(Ft.current=1,jt.className+=` ${Bt}`,jt.addEventListener("animationend",Kt)))},[Rt]),React$1.createElement(React$1.Fragment,null,ft)}}function J(ot,et){return{content:tt(ot.content,ot.props),containerId:ot.props.containerId,id:ot.props.toastId,theme:ot.props.theme,type:ot.props.type,data:ot.props.data||{},isLoading:ot.props.isLoading,icon:ot.props.icon,reason:ot.removalReason,status:et}}function tt(ot,et,ct=!1){return reactExports.isValidElement(ot)&&!N(ot.type)?reactExports.cloneElement(ot,{closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):P(ot)?ot({closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):ot}function yt({closeToast:ot,theme:et,ariaLabel:ct="close"}){return React$1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:ut=>{ut.stopPropagation(),ot(!0)},"aria-label":ct},React$1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function gt({delay:ot,isRunning:et,closeToast:ct,type:ut="default",hide:dt,className:ft,controlledProgress:zt,progress:Dt,rtl:St,isIn:Tt,theme:Rt}){let $t=dt||zt&&Dt===0,kt={animationDuration:`${ot}ms`,animationPlayState:et?"running":"paused"};zt&&(kt.transform=`scaleX(${Dt})`);let Bt=clsx("Toastify__progress-bar",zt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Rt}`,`Toastify__progress-bar--${ut}`,{"Toastify__progress-bar--rtl":St}),Ft=P(ft)?ft({rtl:St,type:ut,defaultClassName:Bt}):clsx(Bt,ft),jt={[zt&&Dt>=1?"onTransitionEnd":"onAnimationEnd"]:zt&&Dt<1?null:()=>{Tt&&ct()}};return React$1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":$t},React$1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Rt} Toastify__progress-bar--${ut}`}),React$1.createElement("div",{role:"progressbar","aria-hidden":$t?"true":"false","aria-label":"notification timer",className:Ft,style:kt,...jt}))}var Xt=1,at=()=>`${Xt++}`;function _t(ot,et,ct){let ut=1,dt=0,ft=[],zt=[],Dt=et,St=new Map,Tt=new Set,Rt=Ut=>(Tt.add(Ut),()=>Tt.delete(Ut)),$t=()=>{zt=Array.from(St.values()),Tt.forEach(Ut=>Ut())},kt=({containerId:Ut,toastId:Jt,updateId:Ht})=>{let e0=Ut?Ut!==ot:ot!==1,t0=St.has(Jt)&&Ht==null;return e0||t0},Bt=(Ut,Jt)=>{St.forEach(Ht=>{var e0;(Jt==null||Jt===Ht.props.toastId)&&((e0=Ht.toggle)==null||e0.call(Ht,Ut))})},Ft=Ut=>{var Jt,Ht;(Ht=(Jt=Ut.props)==null?void 0:Jt.onClose)==null||Ht.call(Jt,Ut.removalReason),Ut.isActive=!1},jt=Ut=>{if(Ut==null)St.forEach(Ft);else{let Jt=St.get(Ut);Jt&&Ft(Jt)}$t()},Kt=()=>{dt-=ft.length,ft=[]},Yt=Ut=>{var Jt,Ht;let{toastId:e0,updateId:t0}=Ut.props,Zt=t0==null;Ut.staleId&&St.delete(Ut.staleId),Ut.isActive=!0,St.set(e0,Ut),$t(),ct(J(Ut,Zt?"added":"updated")),Zt&&((Ht=(Jt=Ut.props).onOpen)==null||Ht.call(Jt))};return{id:ot,props:Dt,observe:Rt,toggle:Bt,removeToast:jt,toasts:St,clearQueue:Kt,buildToast:(Ut,Jt)=>{if(kt(Jt))return;let{toastId:Ht,updateId:e0,data:t0,staleId:Zt,delay:o0}=Jt,n0=e0==null;n0&&dt++;let r0={...Dt,style:Dt.toastStyle,key:ut++,...Object.fromEntries(Object.entries(Jt).filter(([u0,b0])=>b0!=null)),toastId:Ht,updateId:e0,data:t0,isIn:!1,className:B(Jt.className||Dt.toastClassName),progressClassName:B(Jt.progressClassName||Dt.progressClassName),autoClose:Jt.isLoading?!1:pt(Jt.autoClose,Dt.autoClose),closeToast(u0){St.get(Ht).removalReason=u0,jt(Ht)},deleteToast(){let u0=St.get(Ht);if(u0!=null){if(ct(J(u0,"removed")),St.delete(Ht),dt--,dt<0&&(dt=0),ft.length>0){Yt(ft.shift());return}$t()}}};r0.closeButton=Dt.closeButton,Jt.closeButton===!1||z(Jt.closeButton)?r0.closeButton=Jt.closeButton:Jt.closeButton===!0&&(r0.closeButton=z(Dt.closeButton)?Dt.closeButton:!0);let a0={content:Ut,props:r0,staleId:Zt};Dt.limit&&Dt.limit>0&&dt>Dt.limit&&n0?ft.push(a0):L(o0)?setTimeout(()=>{Yt(a0)},o0):Yt(a0)},setProps(Ut){Dt=Ut},setToggle:(Ut,Jt)=>{let Ht=St.get(Ut);Ht&&(Ht.toggle=Jt)},isToastActive:Ut=>{var Jt;return(Jt=St.get(Ut))==null?void 0:Jt.isActive},getSnapshot:()=>zt}}var I=new Map,F=[],st=new Set,Vt=ot=>st.forEach(et=>et(ot)),bt=()=>I.size>0;function Qt(){F.forEach(ot=>nt(ot.content,ot.options)),F=[]}var vt=(ot,{containerId:et})=>{var ct;return(ct=I.get(et||1))==null?void 0:ct.toasts.get(ot)};function X(ot,et){var ct;if(et)return!!((ct=I.get(et))!=null&&ct.isToastActive(ot));let ut=!1;return I.forEach(dt=>{dt.isToastActive(ot)&&(ut=!0)}),ut}function ht(ot){if(!bt()){F=F.filter(et=>ot!=null&&et.options.toastId!==ot);return}if(ot==null||mt(ot))I.forEach(et=>{et.removeToast(ot)});else if(ot&&("containerId"in ot||"id"in ot)){let et=I.get(ot.containerId);et?et.removeToast(ot.id):I.forEach(ct=>{ct.removeToast(ot.id)})}}var Ct=(ot={})=>{I.forEach(et=>{et.props.limit&&(!ot.containerId||et.id===ot.containerId)&&et.clearQueue()})};function nt(ot,et){z(ot)&&(bt()||F.push({content:ot,options:et}),I.forEach(ct=>{ct.buildToast(ot,et)}))}function xt(ot){var et;(et=I.get(ot.containerId||1))==null||et.setToggle(ot.id,ot.fn)}function rt(ot,et){I.forEach(ct=>{(et==null||!(et!=null&&et.containerId)||(et==null?void 0:et.containerId)===ct.id)&&ct.toggle(ot,et==null?void 0:et.id)})}function Et(ot){let et=ot.containerId||1;return{subscribe(ct){let ut=_t(et,ot,Vt);I.set(et,ut);let dt=ut.observe(ct);return Qt(),()=>{dt(),I.delete(et)}},setProps(ct){var ut;(ut=I.get(et))==null||ut.setProps(ct)},getSnapshot(){var ct;return(ct=I.get(et))==null?void 0:ct.getSnapshot()}}}function Pt(ot){return st.add(ot),()=>{st.delete(ot)}}function Wt(ot){return ot&&(N(ot.toastId)||L(ot.toastId))?ot.toastId:at()}function U(ot,et){return nt(ot,et),et.toastId}function V(ot,et){return{...et,type:et&&et.type||ot,toastId:Wt(et)}}function Q(ot){return(et,ct)=>U(et,V(ot,ct))}function y(ot,et){return U(ot,V("default",et))}y.loading=(ot,et)=>U(ot,V("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...et}));function Gt(ot,{pending:et,error:ct,success:ut},dt){let ft;et&&(ft=N(et)?y.loading(et,dt):y.loading(et.render,{...dt,...et}));let zt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},Dt=(Tt,Rt,$t)=>{if(Rt==null){y.dismiss(ft);return}let kt={type:Tt,...zt,...dt,data:$t},Bt=N(Rt)?{render:Rt}:Rt;return ft?y.update(ft,{...kt,...Bt}):y(Bt.render,{...kt,...Bt}),$t},St=P(ot)?ot():ot;return St.then(Tt=>Dt("success",ut,Tt)).catch(Tt=>Dt("error",ct,Tt)),St}y.promise=Gt,y.success=Q("success"),y.info=Q("info"),y.error=Q("error"),y.warning=Q("warning"),y.warn=y.warning,y.dark=(ot,et)=>U(ot,V("default",{theme:"dark",...et}));function qt(ot){ht(ot)}y.dismiss=qt,y.clearWaitingQueue=Ct,y.isActive=X,y.update=(ot,et={})=>{let ct=vt(ot,et);if(ct){let{props:ut,content:dt}=ct,ft={delay:100,...ut,...et,toastId:et.toastId||ot,updateId:at()};ft.toastId!==ot&&(ft.staleId=ot);let zt=ft.render||dt;delete ft.render,U(zt,ft)}},y.done=ot=>{y.update(ot,{progress:1})},y.onChange=Pt,y.play=ot=>rt(!0,ot),y.pause=ot=>rt(!1,ot);function It(ot){var et;let{subscribe:ct,getSnapshot:ut,setProps:dt}=reactExports.useRef(Et(ot)).current;dt(ot);let ft=(et=reactExports.useSyncExternalStore(ct,ut,ut))==null?void 0:et.slice();function zt(Dt){if(!ft)return[];let St=new Map;return ot.newestOnTop&&ft.reverse(),ft.forEach(Tt=>{let{position:Rt}=Tt.props;St.has(Rt)||St.set(Rt,[]),St.get(Rt).push(Tt)}),Array.from(St,Tt=>Dt(Tt[0],Tt[1]))}return{getToastToRender:zt,isToastActive:X,count:ft==null?void 0:ft.length}}function At(ot){let[et,ct]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),ft=reactExports.useRef(null),zt=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:Dt,pauseOnHover:St,closeToast:Tt,onClick:Rt,closeOnClick:$t}=ot;xt({id:ot.toastId,containerId:ot.containerId,fn:ct}),reactExports.useEffect(()=>{if(ot.pauseOnFocusLoss)return kt(),()=>{Bt()}},[ot.pauseOnFocusLoss]);function kt(){document.hasFocus()||Yt(),window.addEventListener("focus",Kt),window.addEventListener("blur",Yt)}function Bt(){window.removeEventListener("focus",Kt),window.removeEventListener("blur",Yt)}function Ft(Zt){if(ot.draggable===!0||ot.draggable===Zt.pointerType){Ut();let o0=ft.current;zt.canCloseOnClick=!0,zt.canDrag=!0,o0.style.transition="none",ot.draggableDirection==="x"?(zt.start=Zt.clientX,zt.removalDistance=o0.offsetWidth*(ot.draggablePercent/100)):(zt.start=Zt.clientY,zt.removalDistance=o0.offsetHeight*(ot.draggablePercent===80?ot.draggablePercent*1.5:ot.draggablePercent)/100)}}function jt(Zt){let{top:o0,bottom:n0,left:r0,right:a0}=ft.current.getBoundingClientRect();Zt.nativeEvent.type!=="touchend"&&ot.pauseOnHover&&Zt.clientX>=r0&&Zt.clientX<=a0&&Zt.clientY>=o0&&Zt.clientY<=n0?Yt():Kt()}function Kt(){ct(!0)}function Yt(){ct(!1)}function Ut(){zt.didMove=!1,document.addEventListener("pointermove",Ht),document.addEventListener("pointerup",e0)}function Jt(){document.removeEventListener("pointermove",Ht),document.removeEventListener("pointerup",e0)}function Ht(Zt){let o0=ft.current;if(zt.canDrag&&o0){zt.didMove=!0,et&&Yt(),ot.draggableDirection==="x"?zt.delta=Zt.clientX-zt.start:zt.delta=Zt.clientY-zt.start,zt.start!==Zt.clientX&&(zt.canCloseOnClick=!1);let n0=ot.draggableDirection==="x"?`${zt.delta}px, var(--y)`:`0, calc(${zt.delta}px + var(--y))`;o0.style.transform=`translate3d(${n0},0)`,o0.style.opacity=`${1-Math.abs(zt.delta/zt.removalDistance)}`}}function e0(){Jt();let Zt=ft.current;if(zt.canDrag&&zt.didMove&&Zt){if(zt.canDrag=!1,Math.abs(zt.delta)>zt.removalDistance){dt(!0),ot.closeToast(!0),ot.collapseAll();return}Zt.style.transition="transform 0.2s, opacity 0.2s",Zt.style.removeProperty("transform"),Zt.style.removeProperty("opacity")}}let t0={onPointerDown:Ft,onPointerUp:jt};return Dt&&St&&(t0.onMouseEnter=Yt,ot.stacked||(t0.onMouseLeave=Kt)),$t&&(t0.onClick=Zt=>{Rt&&Rt(Zt),zt.canCloseOnClick&&Tt(!0)}),{playToast:Kt,pauseToast:Yt,isRunning:et,preventExitTransition:ut,toastRef:ft,eventHandlers:t0}}var Ot=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,G=({theme:ot,type:et,isLoading:ct,...ut})=>React$1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:ot==="colored"?"currentColor":`var(--toastify-icon-color-${et})`,...ut});function ao(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function so(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function no(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function ro(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function io(){return React$1.createElement("div",{className:"Toastify__spinner"})}var W={info:so,warning:ao,success:no,error:ro,spinner:io},lo=ot=>ot in W;function Nt({theme:ot,type:et,isLoading:ct,icon:ut}){let dt=null,ft={theme:ot,type:et};return ut===!1||(P(ut)?dt=ut({...ft,isLoading:ct}):reactExports.isValidElement(ut)?dt=reactExports.cloneElement(ut,ft):ct?dt=W.spinner():lo(et)&&(dt=W[et](ft))),dt}var wt=ot=>{let{isRunning:et,preventExitTransition:ct,toastRef:ut,eventHandlers:dt,playToast:ft}=At(ot),{closeButton:zt,children:Dt,autoClose:St,onClick:Tt,type:Rt,hideProgressBar:$t,closeToast:kt,transition:Bt,position:Ft,className:jt,style:Kt,progressClassName:Yt,updateId:Ut,role:Jt,progress:Ht,rtl:e0,toastId:t0,deleteToast:Zt,isIn:o0,isLoading:n0,closeOnClick:r0,theme:a0,ariaLabel:u0}=ot,b0=clsx("Toastify__toast",`Toastify__toast-theme--${a0}`,`Toastify__toast--${Rt}`,{"Toastify__toast--rtl":e0},{"Toastify__toast--close-on-click":r0}),T0=P(jt)?jt({rtl:e0,position:Ft,type:Rt,defaultClassName:b0}):clsx(b0,jt),O0=Nt(ot),E0=!!Ht||!St,H0={closeToast:kt,type:Rt,theme:a0},I0=null;return zt===!1||(P(zt)?I0=zt(H0):reactExports.isValidElement(zt)?I0=reactExports.cloneElement(zt,H0):I0=yt(H0)),React$1.createElement(Bt,{isIn:o0,done:Zt,position:Ft,preventExitTransition:ct,nodeRef:ut,playToast:ft},React$1.createElement("div",{id:t0,tabIndex:0,onClick:Tt,"data-in":o0,className:T0,...dt,style:Kt,ref:ut,...o0&&{role:Jt,"aria-label":u0}},O0!=null&&React$1.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!n0})},O0),tt(Dt,ot,!et),I0,!ot.customProgressBar&&React$1.createElement(gt,{...Ut&&!E0?{key:`p-${Ut}`}:{},rtl:e0,theme:a0,delay:St,isRunning:et,isIn:o0,closeToast:kt,hide:$t,type:Rt,className:Yt,controlledProgress:E0,progress:Ht||0})))},K=(ot,et=!1)=>({enter:`Toastify--animate Toastify__${ot}-enter`,exit:`Toastify--animate Toastify__${ot}-exit`,appendPosition:et}),lt=$(K("bounce",!0)),mo=$(K("slide",!0)),_o={position:"top-right",transition:lt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:ot=>ot.altKey&&ot.code==="KeyT"};function Lt(ot){let et={..._o,...ot},ct=ot.stacked,[ut,dt]=reactExports.useState(!0),ft=reactExports.useRef(null),{getToastToRender:zt,isToastActive:Dt,count:St}=It(et),{className:Tt,style:Rt,rtl:$t,containerId:kt,hotKeys:Bt}=et;function Ft(Kt){let Yt=clsx("Toastify__toast-container",`Toastify__toast-container--${Kt}`,{"Toastify__toast-container--rtl":$t});return P(Tt)?Tt({position:Kt,rtl:$t,defaultClassName:Yt}):clsx(Yt,B(Tt))}function jt(){ct&&(dt(!0),y.play())}return Ot(()=>{var Kt;if(ct){let Yt=ft.current.querySelectorAll('[data-in="true"]'),Ut=12,Jt=(Kt=et.position)==null?void 0:Kt.includes("top"),Ht=0,e0=0;Array.from(Yt).reverse().forEach((t0,Zt)=>{let o0=t0;o0.classList.add("Toastify__toast--stacked"),Zt>0&&(o0.dataset.collapsed=`${ut}`),o0.dataset.pos||(o0.dataset.pos=Jt?"top":"bot");let n0=Ht*(ut?.2:1)+(ut?0:Ut*Zt);o0.style.setProperty("--y",`${Jt?n0:n0*-1}px`),o0.style.setProperty("--g",`${Ut}`),o0.style.setProperty("--s",`${1-(ut?e0:0)}`),Ht+=o0.offsetHeight,e0+=.025})}},[ut,St,ct]),reactExports.useEffect(()=>{function Kt(Yt){var Ut;let Jt=ft.current;Bt(Yt)&&((Ut=Jt.querySelector('[tabIndex="0"]'))==null||Ut.focus(),dt(!1),y.pause()),Yt.key==="Escape"&&(document.activeElement===Jt||Jt!=null&&Jt.contains(document.activeElement))&&(dt(!0),y.play())}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[Bt]),React$1.createElement("section",{ref:ft,className:"Toastify",id:kt,onMouseEnter:()=>{ct&&(dt(!1),y.pause())},onMouseLeave:jt,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":et["aria-label"]},zt((Kt,Yt)=>{let Ut=Yt.length?{...Rt}:{...Rt,pointerEvents:"none"};return React$1.createElement("div",{tabIndex:-1,className:Ft(Kt),"data-stacked":ct,style:Ut,key:`c-${Kt}`},Yt.map(({content:Jt,props:Ht})=>React$1.createElement(wt,{...Ht,stacked:ct,collapseAll:jt,isIn:Dt(Ht.toastId,Ht.containerId),key:`t-${Ht.key}`},Jt)))}))}function ErrorToastContent(ot){const et=ot;return jsxRuntimeExports.jsxs("div",{style:{width:"100%",padding:0},children:[jsxRuntimeExports.jsx("p",{children:et.message}),et.error&&jsxRuntimeExports.jsx("pre",{style:{width:"100%",padding:0,overflow:"scroll",maxHeight:300},children:jsxRuntimeExports.jsx("code",{style:{padding:"16px"},children:et.error.message})})]})}function makeToastKernelCallbacks(ot){const{disableProgressToasts:et=!1,disableErrorToasts:ct=!1}={};let ut=null;const dt=[];return{onProgress:ft=>{if(et)return;const zt=y(ft,{position:"bottom-right",transition:mo,isLoading:!0,hideProgressBar:!0,closeButton:!1});dt.push(zt),ut&&y.update(ut,{isLoading:!1,autoClose:3e3}),ut=zt},onLoad:()=>{dt.forEach(ft=>y.dismiss(ft))},onError:ft=>{ct||y(jsxRuntimeExports.jsx(ErrorToastContent,{message:"Error during booting up",error:ft}),{position:"bottom-right",type:"error",autoClose:!1,closeOnClick:!1})}}}function isDarkTheme(){const ot=getDefaultTheme().name;return ot===AUTO_THEME_NAME?window.matchMedia("(prefers-color-scheme: dark)").matches:ot===darkTheme.name}function ToastContainer(){return jsxRuntimeExports.jsx(Lt,{style:{zIndex:999999},theme:isDarkTheme()?"dark":"light"})}const USE_NODEJS_WORKER=window.nodeJsWorkerAPI.USE_NODEJS_WORKER;class NodeJsWorkerMock{constructor(){this.onmessage=null,this.initializePromise=window.nodeJsWorkerAPI.initialize(),window.nodeJsWorkerAPI.onMessage(et=>{this.onmessage&&this.onmessage({data:et,ports:[]})})}postMessage(et,ct){this.initializePromise.then(()=>{const ut=ct?ct[0]:null,dt=ut&&(ft=>{ut.postMessage(ft)});window.nodeJsWorkerAPI.postMessage({data:et,onPortMessage:dt})})}terminate(){window.nodeJsWorkerAPI.terminate()}}let pyodideUrl;USE_NODEJS_WORKER||(pyodideUrl=window.location.href.split("/").slice(0,-1).join("/")+"/pyodide/pyodide.mjs");function App(){const[ot,et]=reactExports.useState();return reactExports.useEffect(()=>{let ct=!1,ut=null;return Promise.all([window.archivesAPI.readSitePackagesSnapshot(),window.archivesAPI.readPrebuiltPackageNames(),window.archivesAPI.readStreamlitAppDirectory()]).then(([dt,ft,zt])=>{if(ct)return;const Dt={};Object.keys(zt).forEach(St=>{const Tt=zt[St];Dt[St]={data:Tt}}),ut=new StliteKernel({entrypoint:window.appConfig.entrypoint,files:Dt,archives:[{buffer:dt,format:"gztar",options:{extractDir:"/"}}],requirements:[],prebuiltPackageNames:ft,pyodideUrl,wheelUrls:void 0,idbfsMountpoints:window.appConfig.idbfsMountpoints,worker:USE_NODEJS_WORKER?new NodeJsWorkerMock:void 0,...makeToastKernelCallbacks()}),et(ut)}),()=>{ct=!0,ut&&ut.dispose()}},[]),ot?jsxRuntimeExports.jsx(StreamlitApp,{kernel:ot}):null}ReactDOM.render(jsxRuntimeExports.jsxs(React$1.StrictMode,{children:[jsxRuntimeExports.jsx(App,{}),jsxRuntimeExports.jsx(ToastContainer,{})]}),document.getElementById("root"))})();export{isEqual$1 as $,toString$8 as A,isNullOrUndefined$1 as B,merge$6 as C,numbro$1 as D,EmotionIconBase as E,notNullOrUndefined as F,hooks as G,formatPeriodType as H,moment$1 as I,getTypeName as J,format as K,convertToSeconds as L,useTheme as M,Arrow$2 as N,logError as O,PortalContext as P,transparentize as Q,React$1 as R,convertRemToPx as S,logWarning as T,_defineProperty$u as U,_objectWithoutProperties$o as V,_typeof$g as W,jsx as X,css$2 as Y,_toConsumableArray$3 as Z,_extends$Q as _,__tla,range$1 as a,labelVisibilityProtoValueToEnum as a$,Popover$1 as a0,StyledTooltipContentWrapper as a1,StreamlitMarkdown$1 as a2,PLACEMENT as a3,ACCESSIBILITY_TYPE as a4,hasLightBackgroundColor as a5,LibContext as a6,debounce$4 as a7,Resizable as a8,IndexTypeName as a9,getAugmentedNamespace as aA,DEFAULT_IFRAME_FEATURE_POLICY as aB,DEFAULT_IFRAME_SANDBOX_POLICY as aC,useStliteMediaObjects as aD,darken as aE,BaseButtonSize as aF,BaseButtonKind as aG,BaseButtonTooltip as aH,DynamicButtonLabel as aI,IsSidebarContext as aJ,Placement as aK,getGray90 as aL,getIncreasingGreen as aM,getDecreasingRed as aN,PlotlyChart$1 as aO,keysToSnakeCase as aP,WindowDimensionsContext as aQ,Video$1 as aR,zip$1 as aS,FileUploaderState as aT,UploadedFileInfo as aU,StyledSpinner as aV,ENABLE_PERIPHERALS_DOCS_URL as aW,BaseButton as aX,Icon$2 as aY,blend as aZ,WidgetLabel as a_,_baseMerge as aa,_createAssigner as ab,getGray70 as ac,getGray30 as ad,getCategoricalColorsArray as ae,getDivergingColorsArray as af,getSequentialColorsArray as ag,getBlue80 as ah,Global as ai,ensureError as aj,withTheme as ak,DynamicIcon as al,toaster as am,AlertElement as an,Kind as ao,_assertThisInitialized$e as ap,ErrorElement as aq,StyledInlineCode as ar,axios as as,Skeleton as at,Skeleton$1 as au,hoistNonReactStatics$2 as av,lib$3 as aw,parseToRgba as ax,DeckGlJsonChart$1 as ay,_unsupportedIterableToArray$l as az,reactDomExports as b,TextInput$1 as b$,TooltipIcon as b0,Tooltip as b1,styled as b2,getOverrides as b3,LocaleContext as b4,ButtonGroup$1 as b5,LabelVisibilityMessage as b6,StyledWidgetLabelHelpInline as b7,useStliteKernel as b8,themeColors as b9,isPresetTheme as bA,classNames as bB,isValidFormId as bC,toPropertyKey as bD,_setPrototypeOf$e as bE,hexToRgb as bF,withWrapper as bG,StyledWidgetInstructions as bH,isFromMac as bI,SIZE$1 as bJ,CUSTOM_INPUT_TYPE as bK,DeleteAlt$1 as bL,ADJOINED as bM,filterOptions as bN,ENHANCER_POSITION as bO,UISelectbox as bP,pick$1 as bQ,Slider$2 as bR,isFromWindows as bS,__awaiter as bT,__generator as bU,__spread as bV,PropTypes as bW,ChevronLeft as bX,ChevronRight as bY,isInForm as bZ,toString_1 as b_,isMobile_1 as ba,CAMERA_PERMISSION_URL as bb,StyledWidgetLabelHelp as bc,isFocusVisible as bd,getOverride as be,getOverrideProps as bf,StyledCheckbox$1 as bg,Checkbox$1 as bh,StyledContent as bi,BaseColorPicker as bj,useStyletron as bk,mergeOverride as bl,toObjectOverride as bm,Icon$1 as bn,UIDConsumer as bo,StatefulMenu as bp,mergeOverrides as bq,ChevronDown$1 as br,ThemeContext as bs,forkFocus as bt,forkBlur as bu,Select as bv,without$1 as bw,fuzzyFilterSelectOptions as bx,TYPE as by,VirtualDropdown as bz,createStyled as c,ThemeProvider$1 as c0,createThemedStyled as c1,createThemedUseStyletron as c2,createThemedWithStyle as c3,expandBorderStyles as c4,withStyle as c5,reactIsExports$1 as c6,NumberInput$1 as c7,_hasPath as d,commonjsGlobal$1 as e,classnamesExports as f,getDefaultExportFromCjs$1 as g,_root as h,isPropValid as i,jsxRuntimeExports as j,keyframes as k,isObject_1 as l,_Set as m,_setToArray as n,_SetCache as o,propTypesExports as p,_arrayIncludes as q,reactExports as r,_arrayIncludesWith as s,toNumber_1 as t,useStliteMediaObjectUrl as u,_cacheHas as v,groupBy$1 as w,__vitePreload as x,flatten$2 as y,require$$0$2 as z};
|
|
510
|
+
}`,StyledCountdown=createStyled("div",{target:"e7qru6u0"})(({theme:ot})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:ot.sizes.full,height:ot.sizes.full,fontSize:"40vh",color:ot.colors.red,fontWeight:ot.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${ot.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`}),""),Countdown=({countdown:ot,endCallback:et})=>{const[ct,ut]=reactExports.useState(ot),dt=()=>{const ft=ct-1;ft>=0&&ut(ft),ft===0&&et()};return jsxRuntimeExports.jsx(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:dt,children:jsxRuntimeExports.jsx("span",{children:ct})},`frame${ct}`)};function withScreencast(ot){const ct=class ct extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:dt}=this.state;this.setState({recordAudio:!dt})},this.showDialog=dt=>{const{currentState:ft}=this.state;ScreenCastRecorder.isSupportedBrowser()?ft==="OFF"?this.setState({fileName:dt,currentState:"SETUP"}):this.stopRecording().catch(zt=>logWarning(`withScreencast.stopRecording threw an error: ${zt}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:dt}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:dt,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let dt;const{currentState:ft}=this.state;ft==="OFF"||isNullOrUndefined$1(this.recorder)||(ft==="COUNTDOWN"&&this.setState({currentState:"OFF"}),ft==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(dt=await this.recorder.stop(),this.setState({outputBlob:dt,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(dt=>logWarning(`withScreencast.stopRecording threw an error: ${dt}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:dt,fileName:ft,recordAudio:zt,currentState:Dt}=this.state;return jsxRuntimeExports.jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsxRuntimeExports.jsx(ot,{...this.props,screenCast:this.getScreenCastProps()}),Dt==="UNSUPPORTED"&&jsxRuntimeExports.jsx(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),Dt==="SETUP"&&jsxRuntimeExports.jsx(ScreencastDialog,{recordAudio:zt,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),Dt==="COUNTDOWN"&&jsxRuntimeExports.jsx(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),Dt==="PREVIEW_FILE"&&dt&&jsxRuntimeExports.jsx(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:dt,fileName:ft})]})}}};ct.displayName=`withScreencast(${ot.displayName||ot.name})`;let et=ct;return hoistNonReactStatics$2(et,ot)}function getTitle(ot){return ot||"Streamlit"}class StrategyV1{constructor(et){this.appNav=et,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(et){var zt,Dt;this.appPages=et.appPages,this.currentPageScriptHash=et.pageScriptHash,this.hideSidebarNav=((zt=et.config)==null?void 0:zt.hideSidebarNav)??!1;const ct=this.appPages[0],ut=ct.urlPathname??"",dt=((Dt=this.appPages.find(St=>St.pageScriptHash===this.currentPageScriptHash))==null?void 0:Dt.urlPathname)??"",ft=ct.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(ut,dt,ft),document.title=getTitle(dt??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:ft?"":dt,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(et){const{appPages:ct}=et;return[{appPages:ct},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ct})}]}handlePageNotFound(et){var dt;const{pageName:ct}=et;this.appNav.onPageNotFound(ct);const ut=((dt=this.appPages[0])==null?void 0:dt.pageScriptHash)??"";return this.currentPageScriptHash=ut,[{currentPageScriptHash:ut},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:ut})}]}handleNavigation(et){}findPageByUrlPath(et){return this.appPages.length===0?null:this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.appPages[0]}clearPageElements(et,ct,ut){return AppRoot.empty(ct,!1,ut,et.logo)}}class StrategyV2{constructor(et){this.appNav=et,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(et){var ct;return this.mainScriptHash=et.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((ct=et.config)==null?void 0:ct.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(et){}handlePageNotFound(et){const{pageName:ct}=et;return this.appNav.onPageNotFound(ct),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(et){const{sections:ct,position:ut,appPages:dt}=et;this.appPages=dt,this.hideSidebarNav=ut===Navigation.Position.HIDDEN;const ft=et.pageScriptHash,zt=dt.find(Tt=>Tt.pageScriptHash===ft),Dt=dt.find(Tt=>Tt.isDefault);this.mainPage=Dt;const St=zt.urlPathname;if(!this.appNav.isPageTitleSet){const Tt=getTitle(zt.pageName);document.title=Tt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:zt.pageName??""})}return!this.appNav.isPageIconSet&&zt.icon&&this.appNav.onPageIconChange(zt.icon),this.appNav.onUpdatePageUrl(Dt.urlPathname??"",St,zt.isDefault??!1),[{appPages:dt,navSections:ct,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:et.expanded,currentPageScriptHash:ft},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:dt}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:zt.isDefault?"":St,currentPageScriptHash:ft})}]}findPageByUrlPath(et){return this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.mainPage}clearPageElements(et,ct,ut){return et.filterMainScriptElements(ct)}}class AppNavigation{constructor(et,ct,ut,dt){this.hostCommunicationMgr=et,this.onUpdatePageUrl=ct,this.onPageNotFound=ut,this.onPageIconChange=dt,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(et){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(et)}handleNavigation(et){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(et)}handlePagesChanged(et){return this.strategy.handlePagesChanged(et)}handlePageNotFound(et){return this.strategy.handlePageNotFound(et)}findPageByUrlPath(et){return this.strategy.findPageByUrlPath(et)}handlePageConfigChanged(et){this.isPageIconSet=!!et.favicon,this.isPageTitleSet=!!et.title}clearPageElements(et,ct,ut){return this.strategy.clearPageElements(et,ct,ut)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>",showDevelopmentOptions=(ot,et)=>et==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==et||Config.ToolbarMode.MINIMAL==et?!1:ot||isLocalhost();let App$1=(M1=class extends reactExports.PureComponent{constructor(et){super(et),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(ut,dt,ft)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:ut,msg:dt,onContinue:ft,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(ut,dt)=>{const[,ft,zt]=createPresetThemes(),Dt=isPresetTheme(this.props.theme.activeTheme);ut===ft.name&&Dt?this.props.theme.setTheme(ft):ut===zt.name&&Dt?this.props.theme.setTheme(zt):dt&&this.props.theme.setImportedTheme(dt)},this.handleConnectionStateChanged=ut=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${ut}`),ut===ConnectionState.CONNECTED){const dt=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||dt)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:ut!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:ut})},this.handleGitInfoChanged=ut=>{this.setState({gitInfo:ut})},this.handleCustomParentMessage=ut=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:ut.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=ut=>{const dt=(ft,zt,Dt)=>{const St=ft[zt];if(St in Dt)return Dt[St](ft[St]);throw new Error(`Cannot handle ${zt} "${St}".`)};try{dt(ut,"type",{newSession:ft=>this.handleNewSession(ft),sessionStatusChanged:ft=>this.handleSessionStatusChanged(ft),sessionEvent:ft=>this.handleSessionEvent(ft),delta:ft=>this.handleDeltaMsg(ft,ut.metadata),pageConfigChanged:ft=>this.handlePageConfigChanged(ft),pageInfoChanged:ft=>this.handlePageInfoChanged(ft),pagesChanged:ft=>this.handlePagesChanged(ft),pageNotFound:ft=>this.handlePageNotFound(ft),gitInfoChanged:ft=>this.handleGitInfoChanged(ft),scriptFinished:ft=>this.handleScriptFinished(ft),pageProfile:ft=>this.handlePageProfileMsg(ft),autoRerun:ft=>this.handleAutoRerun(ft),fileUrlsResponse:ft=>this.uploadClient.onFileURLsResponse(ft),parentMessage:ft=>this.handleCustomParentMessage(ft),logo:ft=>this.handleLogo(ft,ut.metadata),navigation:ft=>this.handleNavigation(ft)})}catch(ft){const zt=ensureError(ft);logError(zt),this.showError("Bad message format",zt.message)}},this.handleLogo=(ut,dt)=>{const ft={activeScriptHash:dt.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(ut,ft)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=ut=>{const{title:dt,favicon:ft,layout:zt,initialSidebarState:Dt,menuItems:St}=ut;this.appNavigation.handlePageConfigChanged(ut),dt&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:dt}),document.title=dt),ft&&this.onPageIconChanged(ft),zt!==this.state.layout&&this.setState(Tt=>({layout:zt,userSettings:{...Tt.userSettings,wideMode:zt===PageConfig.Layout.WIDE}})),Dt!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:Dt})),this.setState({menuItems:St})},this.handlePageInfoChanged=ut=>{const{queryString:dt}=ut,ft=document.location.pathname+(dt?`?${dt}`:"");window.history.pushState({},"",ft),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt?`?${dt}`:""})},this.onPageNotFound=ut=>{const dt=ut?`You have requested page /${ut}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${dt}. Running the app's main page.`)},this.handlePageNotFound=ut=>{this.maybeSetState(this.appNavigation.handlePageNotFound(ut))},this.onPageIconChanged=ut=>{handleFavicon(ut,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=ut=>{this.maybeSetState(this.appNavigation.handlePagesChanged(ut))},this.handleNavigation=ut=>{this.maybeSetState(this.appNavigation.handleNavigation(ut))},this.handlePageProfileMsg=ut=>{var zt,Dt,St;const dt=PageProfile.toObject(ut),ft=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...dt,isFragmentRun:!!dt.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(zt=this.state.appPages)==null?void 0:zt.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(St=(Dt=this.props.theme)==null?void 0:Dt.activeTheme)==null?void 0:St.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:ft})},this.handleAutoRerun=ut=>{const dt=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(ut.fragmentId,!0)},ut.interval*1e3);this.setState(ft=>({autoReruns:[...ft.autoReruns,dt]}))},this.handleSessionStatusChanged=ut=>{this.setState(dt=>{let{scriptRunState:ft}=dt,{dialog:zt}=dt;return ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.STOP_REQUESTED?(ft=ScriptRunState.RUNNING,notNullOrUndefined(zt)&&zt.type===DialogType.SCRIPT_COMPILE_ERROR&&(zt=void 0)):!ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&dt.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(ft=ScriptRunState.NOT_RUNNING),{userSettings:{...dt.userSettings,runOnSave:!!ut.runOnSave},dialog:zt,scriptRunState:ft}})},this.handleSessionEvent=ut=>{if(this.sessionEventDispatcher.handleSessionEventMsg(ut),ut.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const dt={type:DialogType.SCRIPT_COMPILE_ERROR,exception:ut.scriptCompilationException,onClose:()=>{}};this.openDialog(dt)}},this.maybeUpdatePageUrl=(ut,dt,ft)=>{const zt=this.getBaseUriParts();if(zt){const{basePath:Dt}=zt,St=extractPageNameFromPathName(document.location.pathname,Dt);if((St===""?ut:St)!==dt){const Tt=ft?"":dt,Rt=preserveEmbedQueryParams(),$t=Rt?`?${Rt}`:"",kt=`${Dt?`/${Dt}`:""}/${Tt}${$t}`,Bt=kt.endsWith("/")&&kt!=="/"?kt.slice(0,-1):kt;window.history.pushState({},"",Bt)}}},this.handleNewSession=ut=>{const dt=ut.initialize;if(this.hasStreamlitVersionChanged(dt)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(ut);const{appHash:ft,currentPageScriptHash:zt}=this.state,{scriptRunId:Dt,name:St,mainScriptPath:Tt,fragmentIdsThisRun:Rt,pageScriptHash:$t,mainScriptHash:kt}=ut;if(Rt.length)this.setState({fragmentIdsThisRun:Rt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Ft=ut.config,jt=ut.customTheme;this.processThemeInput(jt),this.setState({allowRunOnSave:Ft.allowRunOnSave,hideTopBar:Ft.hideTopBar,toolbarMode:Ft.toolbarMode,latestRunTime:performance.now(),mainScriptHash:kt,fragmentIdsThisRun:Rt}),this.maybeSetState(this.appNavigation.handleNewSession(ut)),this.onPageIconChanged("/favicon.png")}const Bt=hashString(this.sessionInfo.current.installationId+Tt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(Bt),this.metricsMgr.enqueue("updateReport"),ft===Bt&&zt===$t?this.setState({scriptRunId:Dt}):this.clearAppState(Bt,Dt,St,kt)},this.handleOneTimeInitialization=ut=>{const dt=ut.initialize,ft=ut.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(ut)),this.metricsMgr.initialize({gatherUsageStats:ft.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(dt.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:ut}=this.state,dt=this.appNavigation.findPageByUrlPath(document.location.pathname),ft=document.location.toString().includes("#"),zt=(dt==null?void 0:dt.pageScriptHash)===ut;isNullOrUndefined$1(dt)||ft&&zt||this.onPageChange(dt.pageScriptHash)},this.setAndSendTheme=ut=>{this.props.theme.setTheme(ut),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(ut.emotion)})},this.createThemeHash=ut=>{if(!ut)return"hash_for_undefined_custom_theme";const dt=Object.entries(ut);return dt.sort(),hashString(dt.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=ut=>{const{runOnSave:dt}=this.state.userSettings,{runOnSave:ft}=ut;if(this.setState({userSettings:ut}),dt!==ft&&this.isServerConnected()){const zt=new BackMsg({setRunOnSave:ft});zt.type="setRunOnSave",this.sendBackMsg(zt)}},this.handleDeltaMsg=(ut,dt)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,ut,dt),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const ft=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,ft&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugShutdownRuntime:!0});ut.type="debugShutdownRuntime",this.sendBackMsg(ut)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugDisconnectWebsocket:!0});ut.type="debugDisconnectWebsocket",this.sendBackMsg(ut)}},this.debugClearForwardMsgCache=()=>{var ut,dt;isLocalhost()&&((dt=(ut=this.connectionManager)==null?void 0:ut.connection)==null||dt.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(ut=>{clearInterval(ut)}),this.setState({autoReruns:[]})},this.rerunScript=(ut=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),ut===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=ut=>{const{elements:dt,mainScriptHash:ft}=this.state;this.cleanupAutoReruns();const zt=this.appNavigation.clearPageElements(dt,ft,void 0),Dt=new Set(Array.from(zt.getElements()).map(St=>getElementId(St)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(Dt),void 0,ut)},this.isAppInReadyState=ut=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&ut.scriptRunState===ScriptRunState.RUNNING&&ut.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(ut,dt,ft,zt)=>{const Dt=this.getBaseUriParts();if(!Dt){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:St}=this.state,{basePath:Tt}=Dt;let Rt=this.getQueryString(),$t="";ft?ft!=St&&(Rt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:Rt})):St?ft=St:($t=extractPageNameFromPathName(document.location.pathname,Tt),ft=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:Rt,widgetStates:ut,pageScriptHash:ft,pageName:$t,fragmentId:dt,isAutoRerun:zt}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const ut=new BackMsg({stopScript:!0});ut.type="stopScript",this.sendBackMsg(ut),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const ut={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(ut)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var dt;const ut={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((dt=this.state.dialog)==null?void 0:dt.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const ut={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const ut=new BackMsg({clearCache:!0});ut.type="clearCache",this.sendBackMsg(ut)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const ut=new BackMsg({appHeartbeat:!0});ut.type="appHeartbeat",this.sendBackMsg(ut)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=ut=>{this.connectionManager?this.connectionManager.sendMessage(ut):logError(`Not connected. Cannot send back message: ${ut}`)},this.handleConnectionError=ut=>{this.showError("Connection error",ut)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(ut=!0)=>{const dt={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:ut,metricsMgr:this.metricsMgr};this.openDialog(dt)},this.aboutCallback=()=>{const{menuItems:ut}=this.state,dt={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:ut==null?void 0:ut.aboutSectionMd};this.openDialog(dt)},this.printCallback=()=>{const{scriptRunState:ut}=this.state;if(ut!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let dt;try{const ft=getIFrameEnclosingApp(this.embeddingId);ft&&ft.contentWindow?dt=ft.contentWindow.window:dt=window}catch{dt=window}finally{dt||(dt=window),dt.print()}},this.screencastCallback=()=>{const{scriptName:ut}=this.state,{startRecording:dt}=this.props.screenCast,ft=hooks().format("YYYY-MM-DD-HH-MM-SS");dt(`streamlit-${ut}-${ft}`)},this.handleFullScreen=ut=>{this.setState({isFullScreen:ut})},this.setLibConfig=ut=>{this.setState({libConfig:ut})},this.setAppConfig=ut=>{this.setState({appConfig:ut})},this.addScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:dt.scriptFinishedHandlers.concat(ut)}))},this.removeScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:without$1(dt.scriptFinishedHandlers,ut)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:ut}=this.state,dt=ut&&ut.length>0?ut:document.location.search;return dt.startsWith("?")?dt.substring(1):dt},this.isInCloudEnvironment=()=>{const{hostMenuItems:ut}=this.state;return ut&&(ut==null?void 0:ut.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(ut,dt)=>{if(this.isServerConnected()){const ft=new BackMsg({fileUrlsRequest:{requestId:ut,fileNames:dt.map(zt=>zt.name),sessionId:this.sessionInfo.current.sessionId}});ft.type="fileUrlsRequest",this.sendBackMsg(ft)}},this.handleKeyDown=ut=>{switch(ut){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=ut=>{ut==="esc"&&this.props.screenCast.stopRecording()},J$2();let ct=this.createThemeHash();isPresetTheme(et.theme.activeTheme)||(ct=this.createThemeHash(toThemeInput(et.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:ct,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:ut=>this.setState({formsData:ut})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:et.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:ut=>{this.setState({inputsDisabled:ut})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:ut=>this.setState({isOwner:ut}),jwtHeaderChanged:({jwtHeaderName:ut,jwtHeaderValue:dt})=>{this.endpoints.setJWTHeader!==void 0&&this.state.appConfig.useExternalAuthToken&&this.endpoints.setJWTHeader({jwtHeaderName:ut,jwtHeaderValue:dt})},fileUploadClientConfigChanged:ut=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(ut)},hostMenuItemsChanged:ut=>{this.setState({hostMenuItems:ut})},hostToolbarItemsChanged:ut=>{this.setState({hostToolbarItems:ut})},hostHideSidebarNavChanged:ut=>{this.setState({hostHideSidebarNav:ut})},sidebarChevronDownshiftChanged:ut=>{this.setState({sidebarChevronDownshift:ut})},pageLinkBaseUrlChanged:ut=>{this.setState({pageLinkBaseUrl:ut})},queryParamsChanged:ut=>{this.setState({queryParams:ut})},deployedAppMetadataChanged:ut=>{this.setState({deployedAppMetadata:ut})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var ut;(ut=this.connectionManager)==null||ut.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:ut=>this.widgetMgr.setFormsWithUploadsInProgress(ut),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.connectionManager=new ConnectionManager({kernel:et,sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:ut=>{const{allowedOrigins:dt,useExternalAuthToken:ft,disableFullscreenMode:zt,enableCustomParentMessages:Dt,mapboxToken:St,enforceDownloadInNewTab:Tt,metricsUrl:Rt}=ut,$t={allowedOrigins:dt,useExternalAuthToken:ft,enableCustomParentMessages:Dt},kt={mapboxToken:St,disableFullscreenMode:zt,enforceDownloadInNewTab:Tt};this.metricsMgr.setMetricsConfig(Rt),this.hostCommunicationMgr.setAllowedOrigins($t),this.setAppConfig($t),this.setLibConfig(kt)}})}componentDidMount(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.initializeConnectionManager(),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),this.uploadClient.setKernel(et),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const ut=document.querySelectorAll("[data-iframe-height]"),dt=Array.from(ut).map(ft=>Math.ceil(ft.getBoundingClientRect().bottom));return Math.max(0,...dt)}},__vitePreload(()=>import("./iframeResizer.contentWindow-9-Xlr32c.js").then(ut=>ut.i),[])),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(et,ct){window.prerenderReady===!1&&this.isAppInReadyState(ct)&&(window.prerenderReady=!0),this.state.scriptRunState!==ct.scriptRunState&&this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}componentWillUnmount(){var et;(et=this.connectionManager)==null||et.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(et,ct){logError(ct);const ut={type:DialogType.WARNING,title:et,msg:ct,onClose:()=>{}};this.openDialog(ut)}hasStreamlitVersionChanged(et){if(this.sessionInfo.isSet){const ct=this.sessionInfo.current.streamlitVersion,{environmentInfo:ut}=et;if(notNullOrUndefined(ut)&¬NullOrUndefined(ut.streamlitVersion))return ct!=ut.streamlitVersion}return!1}maybeSetState(et){if(et){const[ct,ut]=et;this.setState(ct,ut)}}processThemeInput(et){const ct=this.createThemeHash(et);if(ct===this.state.themeHash)return;this.setState({themeHash:ct});const ut=!isPresetTheme(this.props.theme.activeTheme);if(et){const dt=createTheme(CUSTOM_THEME_NAME,et);this.props.theme.addThemes([dt]),(getCachedTheme()===null||ut)&&this.setAndSendTheme(dt)}else this.props.theme.addThemes([]),ut&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(et){if(et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(ct=>ct())},0),et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:ut,fragmentIdsThisRun:dt})=>({elements:this.pendingElementsBuffer.clearStaleNodes(ut,dt)}),()=>{this.pendingElementsBuffer=this.state.elements});const ct=new Set(Array.from(this.state.elements.getElements()).map(ut=>getElementId(ut)).filter(notUndefined));this.widgetMgr.removeInactive(ct)}this.connectionManager!==null&&et!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(et,ct,ut,dt){const{hideSidebarNav:ft,elements:zt}=this.state,Dt=ft&&zt.sidebar||void 0;this.setState({scriptRunId:ct,scriptName:ut,appHash:et,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,dt,Dt)},()=>{this.pendingElementsBuffer=this.state.elements;const St=new Set(Array.from(this.state.elements.getElements()).map(Tt=>getElementId(Tt)).filter(notUndefined));this.widgetMgr.removeInactive(St)})}openDialog(et){this.setState({dialog:et})}render(){const{allowRunOnSave:et,connectionState:ct,dialog:ut,elements:dt,initialSidebarState:ft,menuItems:zt,isFullScreen:Dt,scriptRunId:St,scriptRunState:Tt,userSettings:Rt,hideTopBar:$t,hideSidebarNav:kt,expandSidebarNav:Bt,currentPageScriptHash:Ft,hostHideSidebarNav:jt,pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,hostMenuItems:Ut,hostToolbarItems:Jt,libConfig:Ht,appConfig:e0,inputsDisabled:t0,appPages:Zt,navSections:o0}=this.state,n0=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),r0=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":Rt.wideMode}),a0=ut?StreamlitDialog({...ut,onClose:this.closeDialog}):null,u0=t0||ct!==ConnectionState.CONNECTED;return jsxRuntimeExports.jsx(AppContext.Provider,{value:{initialSidebarState:ft,wideMode:Rt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,gitInfo:this.state.gitInfo,appConfig:e0},children:jsxRuntimeExports.jsx(LibContext.Provider,{value:{isFullScreen:Dt,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Ft,libConfig:Ht,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsxRuntimeExports.jsx(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxRuntimeExports.jsxs(StyledApp,{className:r0,"data-testid":"stApp","data-test-script-state":St==INITIAL_SCRIPT_RUN_ID?"initial":Tt,"data-test-connection-state":ct,children:[jsxRuntimeExports.jsxs(Header,{children:[!$t&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StatusWidget,{connectionState:ct,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:Tt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:et}),jsxRuntimeExports.jsx(ToolbarActions,{hostToolbarItems:Jt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsxRuntimeExports.jsx(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsxRuntimeExports.jsx(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:Ut,developmentMode:n0,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:zt,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsxRuntimeExports.jsx(AppView,{endpoints:this.endpoints,sessionInfo:this.sessionInfo,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:dt,scriptRunId:St,scriptRunState:Tt,widgetMgr:this.widgetMgr,widgetsDisabled:u0,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:dt.logo,appPages:Zt,navSections:o0,onPageChange:this.onPageChange,currentPageScriptHash:Ft,hideSidebarNav:kt||jt,expandSidebarNav:Bt}),a0]})})})})}},M1.contextType=StliteKernelContext,M1);const AppWithScreencast=withScreencast(App$1);function useThemeManager(){const ot=getDefaultTheme(),[et,ct]=reactExports.useState(ot),[ut,dt]=reactExports.useState([]),[ft,zt]=reactExports.useState([...createPresetThemes(),...isPresetTheme(ot)?[]:[ot]]),Dt=$t=>{zt([...createPresetThemes(),...$t])},St=reactExports.useCallback($t=>{$t!==et&&(ct($t),$t.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme($t))},[ct,et]),Tt=reactExports.useCallback(()=>{et.name===AUTO_THEME_NAME&&St(getHostSpecifiedTheme());const $t=ft.filter(kt=>kt.name!==AUTO_THEME_NAME);zt([createAutoTheme(),...$t])},[et.name,ft,St]),Rt=reactExports.useCallback($t=>{$t.fontFaces&&dt($t.fontFaces);const kt=new CustomThemeConfig($t),Bt=createTheme(CUSTOM_THEME_NAME,kt);St(Bt)},[dt,St]);return reactExports.useEffect(()=>{const $t=window.matchMedia("(prefers-color-scheme: dark)");return $t.addEventListener("change",Tt),window.addEventListener("afterprint",Tt),()=>{window.removeEventListener("afterprint",Tt),$t.removeEventListener("change",Tt)}},[et,ft,Tt]),[{setTheme:St,activeTheme:et,addThemes:Dt,availableThemes:ft,setImportedTheme:Rt},ut]}const ThemedApp=({streamlitExecutionStartedAt:ot})=>{const[et,ct]=useThemeManager(),{activeTheme:ut}=et,dt=ut.name===CUSTOM_THEME_NAME&&ct.length>0;return jsxRuntimeExports.jsx(RootStyleProvider,{theme:ut,children:jsxRuntimeExports.jsx(WindowDimensionsProvider,{children:jsxRuntimeExports.jsxs(PortalProvider,{children:[dt&&jsxRuntimeExports.jsx(FontFaceDeclaration,{fontFaces:ct}),jsxRuntimeExports.jsx(AppWithScreencast,{theme:et,streamlitExecutionStartedAt:ot})]})})})};class SequentialIDGenerator{constructor(et=""){this.prefix=et,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const et=this.increment().toString(36);return this.prefix?`${this.prefix}${et}`:et}increment(){const et=this.count+this.offset;return et===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,et}}const minMaxWidth=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,minWidth=/\(\s*min(-device)?-width/i,maxMinWidth=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,maxWidth=/\(\s*max(-device)?-width/i,isMinWidth=_testQuery(minMaxWidth,maxMinWidth,minWidth),isMaxWidth=_testQuery(maxMinWidth,minMaxWidth,maxWidth),minMaxHeight=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,minHeight=/\(\s*min(-device)?-height/i,maxMinHeight=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,maxHeight=/\(\s*max(-device)?-height/i,isMinHeight=_testQuery(minMaxHeight,maxMinHeight,minHeight),isMaxHeight=_testQuery(maxMinHeight,minMaxHeight,maxHeight),isPrint=/print/i,isPrintOnly=/^print$/i,maxValue=Number.MAX_VALUE;function _getQueryLength(ot){const et=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(ot);if(et===null)return maxValue;let ct=et[1];switch(et[2]){case"ch":ct=parseFloat(ct)*8.8984375;break;case"em":case"rem":ct=parseFloat(ct)*16;break;case"ex":ct=parseFloat(ct)*8.296875;break;case"px":ct=parseFloat(ct);break}return+ct}function _testQuery(ot,et,ct){return function(ut){return ot.test(ut)?!0:et.test(ut)?!1:ct.test(ut)}}function _testIsPrint(ot,et){const ct=isPrint.test(ot),ut=isPrintOnly.test(ot),dt=isPrint.test(et),ft=isPrintOnly.test(et);return ct&&dt?!ut&&ft?1:ut&&!ft?-1:ot.localeCompare(et):ct?1:dt?-1:null}function sortCSSmq(ot,et){if(ot==="")return-1;if(et==="")return 1;const ct=_testIsPrint(ot,et);if(ct!==null)return ct;const ut=isMinWidth(ot)||isMinHeight(ot),dt=isMaxWidth(ot)||isMaxHeight(ot),ft=isMinWidth(et)||isMinHeight(et),zt=isMaxWidth(et)||isMaxHeight(et);if(ut&&zt)return-1;if(dt&&ft)return 1;const Dt=_getQueryLength(ot),St=_getQueryLength(et);return Dt===maxValue&&St===maxValue?ot.localeCompare(et):Dt===maxValue?1:St===maxValue?-1:Dt>St?dt?-1:1:Dt<St?dt?1:-1:ot.localeCompare(et)}class MultiCache{constructor(et,ct,ut){this.idGenerator=et,this.onNewCache=ct,this.onNewValue=ut,this.sortedCacheKeys=[],this.caches={}}getCache(et){if(!this.caches[et]){const ct=new Cache(this.idGenerator,this.onNewValue);ct.key=et,this.sortedCacheKeys.push(et),this.sortedCacheKeys.sort(sortCSSmq);const ut=this.sortedCacheKeys.indexOf(et),dt=ut<this.sortedCacheKeys.length-1?this.sortedCacheKeys[ut+1]:void 0;this.caches[et]=ct,this.onNewCache(et,ct,dt)}return this.caches[et]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(et,ct){this.cache={},this.idGenerator=et,this.onNewValue=ct}addValue(et,ct){const ut=this.cache[et];if(ut)return ut;const dt=this.idGenerator.next();return this.cache[et]=dt,this.onNewValue(this,dt,ct),dt}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$1={};function hyphenateStyleName$2(ot){return ot in cache$1?cache$1[ot]:cache$1[ot]=ot.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(ot){return ot.charAt(0).toUpperCase()+ot.slice(1)}function prefixProperty(ot,et,ct){if(ot.hasOwnProperty(et)){for(var ut={},dt=ot[et],ft=capitalizeString(et),zt=Object.keys(ct),Dt=0;Dt<zt.length;Dt++){var St=zt[Dt];if(St===et)for(var Tt=0;Tt<dt.length;Tt++)ut[dt[Tt]+ft]=ct[et];ut[St]=ct[St]}return ut}return ct}function prefixValue$1(ot,et,ct,ut,dt){for(var ft=0,zt=ot.length;ft<zt;++ft){var Dt=ot[ft](et,ct,ut,dt);if(Dt)return Dt}}function addIfNew(ot,et){ot.indexOf(et)===-1&&ot.push(et)}function addNewValuesOnly(ot,et){if(Array.isArray(et))for(var ct=0,ut=et.length;ct<ut;++ct)addIfNew(ot,et[ct]);else addIfNew(ot,et)}function isObject(ot){return ot instanceof Object&&!Array.isArray(ot)}function createPrefixer(ot){var et=ot.prefixMap,ct=ot.plugins;return function ut(dt){for(var ft in dt){var zt=dt[ft];if(isObject(zt))dt[ft]=ut(zt);else if(Array.isArray(zt)){for(var Dt=[],St=0,Tt=zt.length;St<Tt;++St){var Rt=prefixValue$1(ct,ft,zt[St],dt,et);addNewValuesOnly(Dt,Rt||zt[St])}Dt.length>0&&(dt[ft]=Dt)}else{var $t=prefixValue$1(ct,ft,zt,dt,et);$t&&(dt[ft]=$t),dt=prefixProperty(et,ft,dt)}}return dt}}var w=["Webkit"],m=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={plugins:[],prefixMap:{appearance:wm,textEmphasisPosition:w,textEmphasis:w,textEmphasisStyle:w,textEmphasisColor:w,boxDecorationBreak:w,maskImage:w,maskMode:w,maskRepeat:w,maskPosition:w,maskClip:w,maskOrigin:w,maskSize:w,maskComposite:w,mask:w,maskBorderSource:w,maskBorderMode:w,maskBorderSlice:w,maskBorderWidth:w,maskBorderOutset:w,maskBorderRepeat:w,maskBorder:w,maskType:w,textDecorationStyle:w,textDecorationSkip:w,textDecorationLine:w,textDecorationColor:w,userSelect:wmms,backdropFilter:w,fontKerning:w,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w,shapeImageThreshold:w,shapeImageMargin:w,shapeImageOutside:w,filter:w,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w,tabSize:m,fontFeatureSettings:w,columnCount:w,columnFill:w,columnGap:w,columnRule:w,columnRuleColor:w,columnRuleStyle:w,columnRuleWidth:w,columns:w,columnSpan:w,columnWidth:w,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(ot,et){if(typeof et=="string"&&et==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(ot,et){if(ot==="cursor"&&values$3.hasOwnProperty(et))return prefixes$5.map(function(ct){return ct+et})}var isPrefixedValue$1={exports:{}};(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ut;var ct=/-webkit-|-moz-|-ms-/;function ut(dt){return typeof dt=="string"&&ct.test(dt)}ot.exports=et.default})(isPrefixedValue$1,isPrefixedValue$1.exports);var isPrefixedValueExports=isPrefixedValue$1.exports;const isPrefixedValue=getDefaultExportFromCjs$1(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("cross-fade(")>-1)return prefixes$4.map(function(ct){return et.replace(/cross-fade\(/g,ct+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("filter(")>-1)return prefixes$3.map(function(ct){return et.replace(/filter\(/g,ct+"filter(")})}var values$2={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function flex(ot,et){if(ot==="display"&&values$2.hasOwnProperty(et))return values$2[et]}var alternativeValues={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},alternativeProps$1={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function flexboxOld(ot,et,ct){ot==="flexDirection"&&typeof et=="string"&&(et.indexOf("column")>-1?ct.WebkitBoxOrient="vertical":ct.WebkitBoxOrient="horizontal",et.indexOf("reverse")>-1?ct.WebkitBoxDirection="reverse":ct.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(ot)&&(ct[alternativeProps$1[ot]]=alternativeValues[et]||et)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function gradient(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&values$1.test(et))return prefixes$2.map(function(ct){return et.replace(values$1,function(ut){return ct+ut})})}var _slicedToArray=function(){function ot(et,ct){var ut=[],dt=!0,ft=!1,zt=void 0;try{for(var Dt=et[Symbol.iterator](),St;!(dt=(St=Dt.next()).done)&&(ut.push(St.value),!(ct&&ut.length===ct));dt=!0);}catch(Tt){ft=!0,zt=Tt}finally{try{!dt&&Dt.return&&Dt.return()}finally{if(ft)throw zt}}return ut}return function(et,ct){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return ot(et,ct);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function isSimplePositionValue(ot){return typeof ot=="number"&&!isNaN(ot)}function isComplexSpanValue(ot){return typeof ot=="string"&&ot.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridRowAlign=et)},gridColumn:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridColumn=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridColumnStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridColumnEnd(+ft+ +Rt,ct):propertyConverters.gridColumnEnd(+zt,ct)}else propertyConverters.gridColumnStart(et,ct)},gridColumnEnd:function ot(et,ct){var ut=ct.msGridColumn;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridColumnSpan=et-ut)},gridColumnStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridColumn=et)},gridRow:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridRow=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridRowStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridRowEnd(+ft+ +Rt,ct):propertyConverters.gridRowEnd(+zt,ct)}else propertyConverters.gridRowStart(et,ct)},gridRowEnd:function ot(et,ct){var ut=ct.msGridRow;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridRowSpan=et-ut)},gridRowStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridRow=et)},gridTemplateColumns:function ot(et,ct){ct.msGridColumns=et},gridTemplateRows:function ot(et,ct){ct.msGridRows=et},justifySelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridColumnAlign=et)}};function grid(ot,et,ct){if(ot==="display"&&et in displayValues)return displayValues[et];if(ot in propertyConverters){var ut=propertyConverters[ot];ut(et,ct)}}var prefixes$1=["-webkit-",""];function imageSet(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("image-set(")>-1)return prefixes$1.map(function(ct){return et.replace(/image-set\(/g,ct+"image-set(")})}var alternativeProps={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function logical(ot,et,ct){if(Object.prototype.hasOwnProperty.call(alternativeProps,ot))for(var ut=alternativeProps[ot],dt=0,ft=ut.length;dt<ft;++dt)ct[ut[dt]]=et}function position(ot,et){if(ot==="position"&&et==="sticky")return["-webkit-sticky","sticky"]}var prefixes=["-webkit-","-moz-",""],properties$1={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},values={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function sizing(ot,et){if(properties$1.hasOwnProperty(ot)&&values.hasOwnProperty(et))return prefixes.map(function(ct){return ct+et})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache={};function toHyphenLower(ot){return"-"+ot.toLowerCase()}function hyphenateStyleName(ot){if(cache.hasOwnProperty(ot))return cache[ot];var et=ot.replace(uppercasePattern,toHyphenLower);return cache[ot]=msPattern.test(et)?"-"+et:et}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ft;var ct=require$$0,ut=dt(ct);function dt(zt){return zt&&zt.__esModule?zt:{default:zt}}function ft(zt){return(0,ut.default)(zt)}ot.exports=et.default})(hyphenateProperty$1,hyphenateProperty$1.exports);var hyphenatePropertyExports=hyphenateProperty$1.exports;const hyphenateProperty=getDefaultExportFromCjs$1(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(ot,et){if(isPrefixedValue(ot))return ot;for(var ct=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g),ut=0,dt=ct.length;ut<dt;++ut){var ft=ct[ut],zt=[ft];for(var Dt in et){var St=hyphenateProperty(Dt);if(ft.indexOf(St)>-1&&St!=="order")for(var Tt=et[Dt],Rt=0,$t=Tt.length;Rt<$t;++Rt)zt.unshift(ft.replace(St,prefixMapping[Tt[Rt]]+St))}ct[ut]=zt.join(",")}return ct.join(",")}function transition(ot,et,ct,ut){if(typeof et=="string"&&properties.hasOwnProperty(ot)){var dt=prefixValue(et,ut),ft=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-moz-|-ms-/.test(Dt)}).join(",");if(ot.indexOf("Webkit")>-1)return ft;var zt=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-webkit-|-ms-/.test(Dt)}).join(",");return ot.indexOf("Moz")>-1?zt:(ct["Webkit"+capitalizeString(ot)]=ft,ct["Moz"+capitalizeString(ot)]=zt,dt)}}var plugins=[backgroundClip,crossFade,cursor,filter,flexboxOld,gradient,grid,imageSet,logical,position,sizing,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins});function injectStylePrefixed(ot,et,ct,ut){const dt=ot.getCache(ct);let ft="";for(const zt in et){const Dt=et[zt];if(Dt!=null)if(typeof Dt!="object"){const St=`${hyphenateStyleName$2(zt)}:${Dt}`,Tt=`${ut}${St}`,Rt=dt.cache[Tt];if(Rt!==void 0){ft+=" "+Rt;continue}else{let $t="";const kt=prefix({[zt]:Dt});for(const Ft in kt){const jt=kt[Ft],Kt=typeof jt;if(Kt==="string"||Kt==="number"){const Yt=`${hyphenateStyleName$2(Ft)}:${jt}`;Yt!==St&&($t+=`${Yt};`)}else if(Array.isArray(jt)){const Yt=hyphenateStyleName$2(Ft);for(let Ut=0;Ut<jt.length;Ut++){const Jt=`${Yt}:${jt[Ut]}`;Jt!==St&&($t+=`${Jt};`)}}}$t+=St;const Bt=dt.addValue(Tt,{pseudo:ut,block:$t});ft+=" "+Bt}}else zt[0]===":"?ft+=" "+injectStylePrefixed(ot,Dt,ct,ut+zt):zt.substring(0,6)==="@media"&&(ft+=" "+injectStylePrefixed(ot,Dt,zt.substr(7),ut))}return ft.slice(1)}function atomicSelector(ot,et){let ct=`.${ot}`;return et&&(ct+=et),ct}function keyframesToBlock(ot){let et="";for(const ct in ot)et+=`${ct}{${declarationsToBlock(ot[ct])}}`;return et}function declarationsToBlock(ot){let et="";for(const ct in ot){const ut=ot[ct];(typeof ut=="string"||typeof ut=="number")&&(et+=`${hyphenateStyleName$2(ct)}:${ut};`)}return et.slice(0,-1)}function keyframesBlockToRule(ot,et){return`@keyframes ${ot}{${et}}`}function fontFaceBlockToRule(ot,et){return`@font-face{font-family:${ot};${et}}`}function styleBlockToRule(ot,et){return`${ot}{${et}}`}const insertRuleIntoDevtools=(ot,et)=>{const ct=ot.substring(1,ot.indexOf(":")!==-1?ot.indexOf(":"):ot.length),ut={};for(const dt of et.split(";"))dt.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[ct]&&(ut[dt.substring(0,dt.indexOf(":"))]=dt.substring(dt.indexOf(":")+1,dt.length));window.__STYLETRON_DEVTOOLS__.atomicMap[ct]=ut},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft,zt]=ut,Dt=ft?`${ft}${zt}`:zt;ot.cache[Dt]=dt,ot.idGenerator.increment()}}function hydrate(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft]=ut;ot.cache[ft]=dt,ot.idGenerator.increment()}}class StyletronClient{constructor(et={}){this.styleElements={};const ct=new SequentialIDGenerator(et.prefix),ut=(dt,ft,zt)=>{const{pseudo:Dt,block:St}=zt,Tt=this.styleElements[dt.key].sheet,Rt=atomicSelector(ft,Dt),$t=styleBlockToRule(Rt,St);try{Tt.insertRule($t,Tt.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(ct,(dt,ft,zt)=>{const Dt=document.createElement("style");if(Dt.media=dt,zt===void 0)this.container.appendChild(Dt);else{const St=findSheetIndexWithMedia(this.container.children,zt);this.container.insertBefore(Dt,this.container.children[St])}this.styleElements[dt]=Dt},ut),this.keyframesCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=keyframesBlockToRule(ft,keyframesToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),this.fontFaceCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=fontFaceBlockToRule(ft,declarationsToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),et.container&&(this.container=et.container),et.hydrate&&et.hydrate.length>0){if(!this.container){const dt=et.hydrate[0].parentElement;dt!=null&&(this.container=dt)}for(let dt=0;dt<et.hydrate.length;dt++){const ft=et.hydrate[dt],zt=ft.getAttribute("data-hydrate");if(zt==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,ft.textContent);continue}if(zt==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,ft.textContent);continue}const Dt=ft.media?ft.media:"";this.styleElements[Dt]=ft;const St=new Cache(ct,ut);St.key=Dt,hydrateStyles(St,STYLES_HYDRATOR,ft.textContent),this.styleCache.sortedCacheKeys.push(Dt),this.styleCache.caches[Dt]=St}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(et){return injectStylePrefixed(this.styleCache,et,"","")}renderFontFace(et){const ct=declarationsToBlock(et);return this.fontFaceCache.addValue(ct,et)}renderKeyframes(et){const ct=keyframesToBlock(et);return this.keyframesCache.addValue(ct,et)}}function findSheetIndexWithMedia(ot,et){let ct=0;for(;ct<ot.length;ct++){const ut=ot[ct];if(ut.tagName==="STYLE"&&ut.media===et)return ct}return-1}const engine=new StyletronClient({prefix:"st-"}),streamlitExecutionStartedAt=Date.now();function StreamlitApp(ot){return jsxRuntimeExports.jsx(StliteKernelProvider,{kernel:ot.kernel,children:jsxRuntimeExports.jsx(Provider$1,{value:engine,children:jsxRuntimeExports.jsx(ThemedApp,{streamlitExecutionStartedAt})})})}function r(ot){var et,ct,ut="";if(typeof ot=="string"||typeof ot=="number")ut+=ot;else if(typeof ot=="object")if(Array.isArray(ot)){var dt=ot.length;for(et=0;et<dt;et++)ot[et]&&(ct=r(ot[et]))&&(ut&&(ut+=" "),ut+=ct)}else for(ct in ot)ot[ct]&&(ut&&(ut+=" "),ut+=ct);return ut}function clsx(){for(var ot,et,ct=0,ut="",dt=arguments.length;ct<dt;ct++)(ot=arguments[ct])&&(et=r(ot))&&(ut&&(ut+=" "),ut+=et);return ut}function Mt(ot){if(typeof document>"u")return;let et=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",et.firstChild?et.insertBefore(ct,et.firstChild):et.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=ot:ct.appendChild(document.createTextNode(ot))}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
511
|
+
`);var L=ot=>typeof ot=="number"&&!isNaN(ot),N=ot=>typeof ot=="string",P=ot=>typeof ot=="function",mt=ot=>N(ot)||L(ot),B=ot=>N(ot)||P(ot)?ot:null,pt=(ot,et)=>ot===!1||L(ot)&&ot>0?ot:et,z=ot=>reactExports.isValidElement(ot)||N(ot)||P(ot)||L(ot);function Z(ot,et,ct=300){let{scrollHeight:ut,style:dt}=ot;requestAnimationFrame(()=>{dt.minHeight="initial",dt.height=ut+"px",dt.transition=`all ${ct}ms`,requestAnimationFrame(()=>{dt.height="0",dt.padding="0",dt.margin="0",setTimeout(et,ct)})})}function $({enter:ot,exit:et,appendPosition:ct=!1,collapse:ut=!0,collapseDuration:dt=300}){return function({children:ft,position:zt,preventExitTransition:Dt,done:St,nodeRef:Tt,isIn:Rt,playToast:$t}){let kt=ct?`${ot}--${zt}`:ot,Bt=ct?`${et}--${zt}`:et,Ft=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{let jt=Tt.current,Kt=kt.split(" "),Yt=Ut=>{Ut.target===Tt.current&&($t(),jt.removeEventListener("animationend",Yt),jt.removeEventListener("animationcancel",Yt),Ft.current===0&&Ut.type!=="animationcancel"&&jt.classList.remove(...Kt))};jt.classList.add(...Kt),jt.addEventListener("animationend",Yt),jt.addEventListener("animationcancel",Yt)},[]),reactExports.useEffect(()=>{let jt=Tt.current,Kt=()=>{jt.removeEventListener("animationend",Kt),ut?Z(jt,St,dt):St()};Rt||(Dt?Kt():(Ft.current=1,jt.className+=` ${Bt}`,jt.addEventListener("animationend",Kt)))},[Rt]),React$1.createElement(React$1.Fragment,null,ft)}}function J(ot,et){return{content:tt(ot.content,ot.props),containerId:ot.props.containerId,id:ot.props.toastId,theme:ot.props.theme,type:ot.props.type,data:ot.props.data||{},isLoading:ot.props.isLoading,icon:ot.props.icon,reason:ot.removalReason,status:et}}function tt(ot,et,ct=!1){return reactExports.isValidElement(ot)&&!N(ot.type)?reactExports.cloneElement(ot,{closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):P(ot)?ot({closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):ot}function yt({closeToast:ot,theme:et,ariaLabel:ct="close"}){return React$1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:ut=>{ut.stopPropagation(),ot(!0)},"aria-label":ct},React$1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function gt({delay:ot,isRunning:et,closeToast:ct,type:ut="default",hide:dt,className:ft,controlledProgress:zt,progress:Dt,rtl:St,isIn:Tt,theme:Rt}){let $t=dt||zt&&Dt===0,kt={animationDuration:`${ot}ms`,animationPlayState:et?"running":"paused"};zt&&(kt.transform=`scaleX(${Dt})`);let Bt=clsx("Toastify__progress-bar",zt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Rt}`,`Toastify__progress-bar--${ut}`,{"Toastify__progress-bar--rtl":St}),Ft=P(ft)?ft({rtl:St,type:ut,defaultClassName:Bt}):clsx(Bt,ft),jt={[zt&&Dt>=1?"onTransitionEnd":"onAnimationEnd"]:zt&&Dt<1?null:()=>{Tt&&ct()}};return React$1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":$t},React$1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Rt} Toastify__progress-bar--${ut}`}),React$1.createElement("div",{role:"progressbar","aria-hidden":$t?"true":"false","aria-label":"notification timer",className:Ft,style:kt,...jt}))}var Xt=1,at=()=>`${Xt++}`;function _t(ot,et,ct){let ut=1,dt=0,ft=[],zt=[],Dt=et,St=new Map,Tt=new Set,Rt=Ut=>(Tt.add(Ut),()=>Tt.delete(Ut)),$t=()=>{zt=Array.from(St.values()),Tt.forEach(Ut=>Ut())},kt=({containerId:Ut,toastId:Jt,updateId:Ht})=>{let e0=Ut?Ut!==ot:ot!==1,t0=St.has(Jt)&&Ht==null;return e0||t0},Bt=(Ut,Jt)=>{St.forEach(Ht=>{var e0;(Jt==null||Jt===Ht.props.toastId)&&((e0=Ht.toggle)==null||e0.call(Ht,Ut))})},Ft=Ut=>{var Jt,Ht;(Ht=(Jt=Ut.props)==null?void 0:Jt.onClose)==null||Ht.call(Jt,Ut.removalReason),Ut.isActive=!1},jt=Ut=>{if(Ut==null)St.forEach(Ft);else{let Jt=St.get(Ut);Jt&&Ft(Jt)}$t()},Kt=()=>{dt-=ft.length,ft=[]},Yt=Ut=>{var Jt,Ht;let{toastId:e0,updateId:t0}=Ut.props,Zt=t0==null;Ut.staleId&&St.delete(Ut.staleId),Ut.isActive=!0,St.set(e0,Ut),$t(),ct(J(Ut,Zt?"added":"updated")),Zt&&((Ht=(Jt=Ut.props).onOpen)==null||Ht.call(Jt))};return{id:ot,props:Dt,observe:Rt,toggle:Bt,removeToast:jt,toasts:St,clearQueue:Kt,buildToast:(Ut,Jt)=>{if(kt(Jt))return;let{toastId:Ht,updateId:e0,data:t0,staleId:Zt,delay:o0}=Jt,n0=e0==null;n0&&dt++;let r0={...Dt,style:Dt.toastStyle,key:ut++,...Object.fromEntries(Object.entries(Jt).filter(([u0,b0])=>b0!=null)),toastId:Ht,updateId:e0,data:t0,isIn:!1,className:B(Jt.className||Dt.toastClassName),progressClassName:B(Jt.progressClassName||Dt.progressClassName),autoClose:Jt.isLoading?!1:pt(Jt.autoClose,Dt.autoClose),closeToast(u0){St.get(Ht).removalReason=u0,jt(Ht)},deleteToast(){let u0=St.get(Ht);if(u0!=null){if(ct(J(u0,"removed")),St.delete(Ht),dt--,dt<0&&(dt=0),ft.length>0){Yt(ft.shift());return}$t()}}};r0.closeButton=Dt.closeButton,Jt.closeButton===!1||z(Jt.closeButton)?r0.closeButton=Jt.closeButton:Jt.closeButton===!0&&(r0.closeButton=z(Dt.closeButton)?Dt.closeButton:!0);let a0={content:Ut,props:r0,staleId:Zt};Dt.limit&&Dt.limit>0&&dt>Dt.limit&&n0?ft.push(a0):L(o0)?setTimeout(()=>{Yt(a0)},o0):Yt(a0)},setProps(Ut){Dt=Ut},setToggle:(Ut,Jt)=>{let Ht=St.get(Ut);Ht&&(Ht.toggle=Jt)},isToastActive:Ut=>{var Jt;return(Jt=St.get(Ut))==null?void 0:Jt.isActive},getSnapshot:()=>zt}}var I=new Map,F=[],st=new Set,Vt=ot=>st.forEach(et=>et(ot)),bt=()=>I.size>0;function Qt(){F.forEach(ot=>nt(ot.content,ot.options)),F=[]}var vt=(ot,{containerId:et})=>{var ct;return(ct=I.get(et||1))==null?void 0:ct.toasts.get(ot)};function X(ot,et){var ct;if(et)return!!((ct=I.get(et))!=null&&ct.isToastActive(ot));let ut=!1;return I.forEach(dt=>{dt.isToastActive(ot)&&(ut=!0)}),ut}function ht(ot){if(!bt()){F=F.filter(et=>ot!=null&&et.options.toastId!==ot);return}if(ot==null||mt(ot))I.forEach(et=>{et.removeToast(ot)});else if(ot&&("containerId"in ot||"id"in ot)){let et=I.get(ot.containerId);et?et.removeToast(ot.id):I.forEach(ct=>{ct.removeToast(ot.id)})}}var Ct=(ot={})=>{I.forEach(et=>{et.props.limit&&(!ot.containerId||et.id===ot.containerId)&&et.clearQueue()})};function nt(ot,et){z(ot)&&(bt()||F.push({content:ot,options:et}),I.forEach(ct=>{ct.buildToast(ot,et)}))}function xt(ot){var et;(et=I.get(ot.containerId||1))==null||et.setToggle(ot.id,ot.fn)}function rt(ot,et){I.forEach(ct=>{(et==null||!(et!=null&&et.containerId)||(et==null?void 0:et.containerId)===ct.id)&&ct.toggle(ot,et==null?void 0:et.id)})}function Et(ot){let et=ot.containerId||1;return{subscribe(ct){let ut=_t(et,ot,Vt);I.set(et,ut);let dt=ut.observe(ct);return Qt(),()=>{dt(),I.delete(et)}},setProps(ct){var ut;(ut=I.get(et))==null||ut.setProps(ct)},getSnapshot(){var ct;return(ct=I.get(et))==null?void 0:ct.getSnapshot()}}}function Pt(ot){return st.add(ot),()=>{st.delete(ot)}}function Wt(ot){return ot&&(N(ot.toastId)||L(ot.toastId))?ot.toastId:at()}function U(ot,et){return nt(ot,et),et.toastId}function V(ot,et){return{...et,type:et&&et.type||ot,toastId:Wt(et)}}function Q(ot){return(et,ct)=>U(et,V(ot,ct))}function y(ot,et){return U(ot,V("default",et))}y.loading=(ot,et)=>U(ot,V("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...et}));function Gt(ot,{pending:et,error:ct,success:ut},dt){let ft;et&&(ft=N(et)?y.loading(et,dt):y.loading(et.render,{...dt,...et}));let zt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},Dt=(Tt,Rt,$t)=>{if(Rt==null){y.dismiss(ft);return}let kt={type:Tt,...zt,...dt,data:$t},Bt=N(Rt)?{render:Rt}:Rt;return ft?y.update(ft,{...kt,...Bt}):y(Bt.render,{...kt,...Bt}),$t},St=P(ot)?ot():ot;return St.then(Tt=>Dt("success",ut,Tt)).catch(Tt=>Dt("error",ct,Tt)),St}y.promise=Gt,y.success=Q("success"),y.info=Q("info"),y.error=Q("error"),y.warning=Q("warning"),y.warn=y.warning,y.dark=(ot,et)=>U(ot,V("default",{theme:"dark",...et}));function qt(ot){ht(ot)}y.dismiss=qt,y.clearWaitingQueue=Ct,y.isActive=X,y.update=(ot,et={})=>{let ct=vt(ot,et);if(ct){let{props:ut,content:dt}=ct,ft={delay:100,...ut,...et,toastId:et.toastId||ot,updateId:at()};ft.toastId!==ot&&(ft.staleId=ot);let zt=ft.render||dt;delete ft.render,U(zt,ft)}},y.done=ot=>{y.update(ot,{progress:1})},y.onChange=Pt,y.play=ot=>rt(!0,ot),y.pause=ot=>rt(!1,ot);function It(ot){var et;let{subscribe:ct,getSnapshot:ut,setProps:dt}=reactExports.useRef(Et(ot)).current;dt(ot);let ft=(et=reactExports.useSyncExternalStore(ct,ut,ut))==null?void 0:et.slice();function zt(Dt){if(!ft)return[];let St=new Map;return ot.newestOnTop&&ft.reverse(),ft.forEach(Tt=>{let{position:Rt}=Tt.props;St.has(Rt)||St.set(Rt,[]),St.get(Rt).push(Tt)}),Array.from(St,Tt=>Dt(Tt[0],Tt[1]))}return{getToastToRender:zt,isToastActive:X,count:ft==null?void 0:ft.length}}function At(ot){let[et,ct]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),ft=reactExports.useRef(null),zt=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:Dt,pauseOnHover:St,closeToast:Tt,onClick:Rt,closeOnClick:$t}=ot;xt({id:ot.toastId,containerId:ot.containerId,fn:ct}),reactExports.useEffect(()=>{if(ot.pauseOnFocusLoss)return kt(),()=>{Bt()}},[ot.pauseOnFocusLoss]);function kt(){document.hasFocus()||Yt(),window.addEventListener("focus",Kt),window.addEventListener("blur",Yt)}function Bt(){window.removeEventListener("focus",Kt),window.removeEventListener("blur",Yt)}function Ft(Zt){if(ot.draggable===!0||ot.draggable===Zt.pointerType){Ut();let o0=ft.current;zt.canCloseOnClick=!0,zt.canDrag=!0,o0.style.transition="none",ot.draggableDirection==="x"?(zt.start=Zt.clientX,zt.removalDistance=o0.offsetWidth*(ot.draggablePercent/100)):(zt.start=Zt.clientY,zt.removalDistance=o0.offsetHeight*(ot.draggablePercent===80?ot.draggablePercent*1.5:ot.draggablePercent)/100)}}function jt(Zt){let{top:o0,bottom:n0,left:r0,right:a0}=ft.current.getBoundingClientRect();Zt.nativeEvent.type!=="touchend"&&ot.pauseOnHover&&Zt.clientX>=r0&&Zt.clientX<=a0&&Zt.clientY>=o0&&Zt.clientY<=n0?Yt():Kt()}function Kt(){ct(!0)}function Yt(){ct(!1)}function Ut(){zt.didMove=!1,document.addEventListener("pointermove",Ht),document.addEventListener("pointerup",e0)}function Jt(){document.removeEventListener("pointermove",Ht),document.removeEventListener("pointerup",e0)}function Ht(Zt){let o0=ft.current;if(zt.canDrag&&o0){zt.didMove=!0,et&&Yt(),ot.draggableDirection==="x"?zt.delta=Zt.clientX-zt.start:zt.delta=Zt.clientY-zt.start,zt.start!==Zt.clientX&&(zt.canCloseOnClick=!1);let n0=ot.draggableDirection==="x"?`${zt.delta}px, var(--y)`:`0, calc(${zt.delta}px + var(--y))`;o0.style.transform=`translate3d(${n0},0)`,o0.style.opacity=`${1-Math.abs(zt.delta/zt.removalDistance)}`}}function e0(){Jt();let Zt=ft.current;if(zt.canDrag&&zt.didMove&&Zt){if(zt.canDrag=!1,Math.abs(zt.delta)>zt.removalDistance){dt(!0),ot.closeToast(!0),ot.collapseAll();return}Zt.style.transition="transform 0.2s, opacity 0.2s",Zt.style.removeProperty("transform"),Zt.style.removeProperty("opacity")}}let t0={onPointerDown:Ft,onPointerUp:jt};return Dt&&St&&(t0.onMouseEnter=Yt,ot.stacked||(t0.onMouseLeave=Kt)),$t&&(t0.onClick=Zt=>{Rt&&Rt(Zt),zt.canCloseOnClick&&Tt(!0)}),{playToast:Kt,pauseToast:Yt,isRunning:et,preventExitTransition:ut,toastRef:ft,eventHandlers:t0}}var Ot=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,G=({theme:ot,type:et,isLoading:ct,...ut})=>React$1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:ot==="colored"?"currentColor":`var(--toastify-icon-color-${et})`,...ut});function ao(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function so(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function no(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function ro(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function io(){return React$1.createElement("div",{className:"Toastify__spinner"})}var W={info:so,warning:ao,success:no,error:ro,spinner:io},lo=ot=>ot in W;function Nt({theme:ot,type:et,isLoading:ct,icon:ut}){let dt=null,ft={theme:ot,type:et};return ut===!1||(P(ut)?dt=ut({...ft,isLoading:ct}):reactExports.isValidElement(ut)?dt=reactExports.cloneElement(ut,ft):ct?dt=W.spinner():lo(et)&&(dt=W[et](ft))),dt}var wt=ot=>{let{isRunning:et,preventExitTransition:ct,toastRef:ut,eventHandlers:dt,playToast:ft}=At(ot),{closeButton:zt,children:Dt,autoClose:St,onClick:Tt,type:Rt,hideProgressBar:$t,closeToast:kt,transition:Bt,position:Ft,className:jt,style:Kt,progressClassName:Yt,updateId:Ut,role:Jt,progress:Ht,rtl:e0,toastId:t0,deleteToast:Zt,isIn:o0,isLoading:n0,closeOnClick:r0,theme:a0,ariaLabel:u0}=ot,b0=clsx("Toastify__toast",`Toastify__toast-theme--${a0}`,`Toastify__toast--${Rt}`,{"Toastify__toast--rtl":e0},{"Toastify__toast--close-on-click":r0}),T0=P(jt)?jt({rtl:e0,position:Ft,type:Rt,defaultClassName:b0}):clsx(b0,jt),O0=Nt(ot),E0=!!Ht||!St,H0={closeToast:kt,type:Rt,theme:a0},I0=null;return zt===!1||(P(zt)?I0=zt(H0):reactExports.isValidElement(zt)?I0=reactExports.cloneElement(zt,H0):I0=yt(H0)),React$1.createElement(Bt,{isIn:o0,done:Zt,position:Ft,preventExitTransition:ct,nodeRef:ut,playToast:ft},React$1.createElement("div",{id:t0,tabIndex:0,onClick:Tt,"data-in":o0,className:T0,...dt,style:Kt,ref:ut,...o0&&{role:Jt,"aria-label":u0}},O0!=null&&React$1.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!n0})},O0),tt(Dt,ot,!et),I0,!ot.customProgressBar&&React$1.createElement(gt,{...Ut&&!E0?{key:`p-${Ut}`}:{},rtl:e0,theme:a0,delay:St,isRunning:et,isIn:o0,closeToast:kt,hide:$t,type:Rt,className:Yt,controlledProgress:E0,progress:Ht||0})))},K=(ot,et=!1)=>({enter:`Toastify--animate Toastify__${ot}-enter`,exit:`Toastify--animate Toastify__${ot}-exit`,appendPosition:et}),lt=$(K("bounce",!0)),mo=$(K("slide",!0)),_o={position:"top-right",transition:lt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:ot=>ot.altKey&&ot.code==="KeyT"};function Lt(ot){let et={..._o,...ot},ct=ot.stacked,[ut,dt]=reactExports.useState(!0),ft=reactExports.useRef(null),{getToastToRender:zt,isToastActive:Dt,count:St}=It(et),{className:Tt,style:Rt,rtl:$t,containerId:kt,hotKeys:Bt}=et;function Ft(Kt){let Yt=clsx("Toastify__toast-container",`Toastify__toast-container--${Kt}`,{"Toastify__toast-container--rtl":$t});return P(Tt)?Tt({position:Kt,rtl:$t,defaultClassName:Yt}):clsx(Yt,B(Tt))}function jt(){ct&&(dt(!0),y.play())}return Ot(()=>{var Kt;if(ct){let Yt=ft.current.querySelectorAll('[data-in="true"]'),Ut=12,Jt=(Kt=et.position)==null?void 0:Kt.includes("top"),Ht=0,e0=0;Array.from(Yt).reverse().forEach((t0,Zt)=>{let o0=t0;o0.classList.add("Toastify__toast--stacked"),Zt>0&&(o0.dataset.collapsed=`${ut}`),o0.dataset.pos||(o0.dataset.pos=Jt?"top":"bot");let n0=Ht*(ut?.2:1)+(ut?0:Ut*Zt);o0.style.setProperty("--y",`${Jt?n0:n0*-1}px`),o0.style.setProperty("--g",`${Ut}`),o0.style.setProperty("--s",`${1-(ut?e0:0)}`),Ht+=o0.offsetHeight,e0+=.025})}},[ut,St,ct]),reactExports.useEffect(()=>{function Kt(Yt){var Ut;let Jt=ft.current;Bt(Yt)&&((Ut=Jt.querySelector('[tabIndex="0"]'))==null||Ut.focus(),dt(!1),y.pause()),Yt.key==="Escape"&&(document.activeElement===Jt||Jt!=null&&Jt.contains(document.activeElement))&&(dt(!0),y.play())}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[Bt]),React$1.createElement("section",{ref:ft,className:"Toastify",id:kt,onMouseEnter:()=>{ct&&(dt(!1),y.pause())},onMouseLeave:jt,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":et["aria-label"]},zt((Kt,Yt)=>{let Ut=Yt.length?{...Rt}:{...Rt,pointerEvents:"none"};return React$1.createElement("div",{tabIndex:-1,className:Ft(Kt),"data-stacked":ct,style:Ut,key:`c-${Kt}`},Yt.map(({content:Jt,props:Ht})=>React$1.createElement(wt,{...Ht,stacked:ct,collapseAll:jt,isIn:Dt(Ht.toastId,Ht.containerId),key:`t-${Ht.key}`},Jt)))}))}function ErrorToastContent(ot){const et=ot;return jsxRuntimeExports.jsxs("div",{style:{width:"100%",padding:0},children:[jsxRuntimeExports.jsx("p",{children:et.message}),et.error&&jsxRuntimeExports.jsx("pre",{style:{width:"100%",padding:0,overflow:"scroll",maxHeight:300},children:jsxRuntimeExports.jsx("code",{style:{padding:"16px"},children:et.error.message})})]})}function makeToastKernelCallbacks(ot){const{disableProgressToasts:et=!1,disableErrorToasts:ct=!1}={};let ut=null;const dt=[];return{onProgress:ft=>{if(et)return;const zt=y(ft,{position:"bottom-right",transition:mo,isLoading:!0,hideProgressBar:!0,closeButton:!1});dt.push(zt),ut&&y.update(ut,{isLoading:!1,autoClose:3e3}),ut=zt},onLoad:()=>{dt.forEach(ft=>y.dismiss(ft))},onError:ft=>{ct||y(jsxRuntimeExports.jsx(ErrorToastContent,{message:"Error during booting up",error:ft}),{position:"bottom-right",type:"error",autoClose:!1,closeOnClick:!1})}}}function isDarkTheme(){const ot=getDefaultTheme().name;return ot===AUTO_THEME_NAME?window.matchMedia("(prefers-color-scheme: dark)").matches:ot===darkTheme.name}function ToastContainer(){return jsxRuntimeExports.jsx(Lt,{style:{zIndex:999999},theme:isDarkTheme()?"dark":"light"})}const USE_NODEJS_WORKER=window.nodeJsWorkerAPI.USE_NODEJS_WORKER;class NodeJsWorkerMock{constructor(){this.onmessage=null,this.initializePromise=window.nodeJsWorkerAPI.initialize(),window.nodeJsWorkerAPI.onMessage(et=>{this.onmessage&&this.onmessage({data:et,ports:[]})})}postMessage(et,ct){this.initializePromise.then(()=>{const ut=ct?ct[0]:null,dt=ut&&(ft=>{ut.postMessage(ft)});window.nodeJsWorkerAPI.postMessage({data:et,onPortMessage:dt})})}terminate(){window.nodeJsWorkerAPI.terminate()}}let pyodideUrl;USE_NODEJS_WORKER||(pyodideUrl=window.location.href.split("/").slice(0,-1).join("/")+"/pyodide/pyodide.mjs");function App(){const[ot,et]=reactExports.useState();return reactExports.useEffect(()=>{let ct=!1,ut=null;return Promise.all([window.archivesAPI.readSitePackagesSnapshot(),window.archivesAPI.readPrebuiltPackageNames(),window.archivesAPI.readStreamlitAppDirectory()]).then(([dt,ft,zt])=>{if(ct)return;const Dt={};Object.keys(zt).forEach(St=>{const Tt=zt[St];Dt[St]={data:Tt}}),ut=new StliteKernel({entrypoint:window.appConfig.entrypoint,files:Dt,archives:[{buffer:dt,format:"gztar",options:{extractDir:"/"}}],requirements:[],prebuiltPackageNames:ft,pyodideUrl,wheelUrls:void 0,idbfsMountpoints:window.appConfig.idbfsMountpoints,worker:USE_NODEJS_WORKER?new NodeJsWorkerMock:void 0,workerType:"module",...makeToastKernelCallbacks()}),et(ut)}),()=>{ct=!0,ut&&ut.dispose()}},[]),ot?jsxRuntimeExports.jsx(StreamlitApp,{kernel:ot}):null}ReactDOM.render(jsxRuntimeExports.jsxs(React$1.StrictMode,{children:[jsxRuntimeExports.jsx(App,{}),jsxRuntimeExports.jsx(ToastContainer,{})]}),document.getElementById("root"))})();export{isEqual$1 as $,toString$8 as A,isNullOrUndefined$1 as B,merge$6 as C,numbro$1 as D,EmotionIconBase as E,notNullOrUndefined as F,hooks as G,formatPeriodType as H,moment$1 as I,getTypeName as J,format as K,convertToSeconds as L,useTheme as M,Arrow$2 as N,logError as O,PortalContext as P,transparentize as Q,React$1 as R,convertRemToPx as S,logWarning as T,_defineProperty$u as U,_objectWithoutProperties$o as V,_typeof$g as W,jsx as X,css$2 as Y,_toConsumableArray$3 as Z,_extends$Q as _,__tla,range$1 as a,labelVisibilityProtoValueToEnum as a$,Popover$1 as a0,StyledTooltipContentWrapper as a1,StreamlitMarkdown$1 as a2,PLACEMENT as a3,ACCESSIBILITY_TYPE as a4,hasLightBackgroundColor as a5,LibContext as a6,debounce$4 as a7,Resizable as a8,IndexTypeName as a9,getAugmentedNamespace as aA,DEFAULT_IFRAME_FEATURE_POLICY as aB,DEFAULT_IFRAME_SANDBOX_POLICY as aC,useStliteMediaObjects as aD,darken as aE,BaseButtonSize as aF,BaseButtonKind as aG,BaseButtonTooltip as aH,DynamicButtonLabel as aI,IsSidebarContext as aJ,Placement as aK,getGray90 as aL,getIncreasingGreen as aM,getDecreasingRed as aN,PlotlyChart$1 as aO,keysToSnakeCase as aP,WindowDimensionsContext as aQ,Video$1 as aR,zip$1 as aS,FileUploaderState as aT,UploadedFileInfo as aU,StyledSpinner as aV,ENABLE_PERIPHERALS_DOCS_URL as aW,BaseButton as aX,Icon$2 as aY,blend as aZ,WidgetLabel as a_,_baseMerge as aa,_createAssigner as ab,getGray70 as ac,getGray30 as ad,getCategoricalColorsArray as ae,getDivergingColorsArray as af,getSequentialColorsArray as ag,getBlue80 as ah,Global as ai,ensureError as aj,withTheme as ak,DynamicIcon as al,toaster as am,AlertElement as an,Kind as ao,_assertThisInitialized$e as ap,ErrorElement as aq,StyledInlineCode as ar,axios as as,Skeleton as at,Skeleton$1 as au,hoistNonReactStatics$2 as av,lib$3 as aw,parseToRgba as ax,DeckGlJsonChart$1 as ay,_unsupportedIterableToArray$l as az,reactDomExports as b,TextInput$1 as b$,TooltipIcon as b0,Tooltip as b1,styled as b2,getOverrides as b3,LocaleContext as b4,ButtonGroup$1 as b5,LabelVisibilityMessage as b6,StyledWidgetLabelHelpInline as b7,useStliteKernel as b8,themeColors as b9,isPresetTheme as bA,classNames as bB,isValidFormId as bC,toPropertyKey as bD,_setPrototypeOf$e as bE,hexToRgb as bF,withWrapper as bG,StyledWidgetInstructions as bH,isFromMac as bI,SIZE$1 as bJ,CUSTOM_INPUT_TYPE as bK,DeleteAlt$1 as bL,ADJOINED as bM,filterOptions as bN,ENHANCER_POSITION as bO,UISelectbox as bP,pick$1 as bQ,Slider$2 as bR,isFromWindows as bS,__awaiter as bT,__generator as bU,__spread as bV,PropTypes as bW,ChevronLeft as bX,ChevronRight as bY,isInForm as bZ,toString_1 as b_,isMobile_1 as ba,CAMERA_PERMISSION_URL as bb,StyledWidgetLabelHelp as bc,isFocusVisible as bd,getOverride as be,getOverrideProps as bf,StyledCheckbox$1 as bg,Checkbox$1 as bh,StyledContent as bi,BaseColorPicker as bj,useStyletron as bk,mergeOverride as bl,toObjectOverride as bm,Icon$1 as bn,UIDConsumer as bo,StatefulMenu as bp,mergeOverrides as bq,ChevronDown$1 as br,ThemeContext as bs,forkFocus as bt,forkBlur as bu,Select as bv,without$1 as bw,fuzzyFilterSelectOptions as bx,TYPE as by,VirtualDropdown as bz,createStyled as c,ThemeProvider$1 as c0,createThemedStyled as c1,createThemedUseStyletron as c2,createThemedWithStyle as c3,expandBorderStyles as c4,withStyle as c5,reactIsExports$1 as c6,NumberInput$1 as c7,_hasPath as d,commonjsGlobal$1 as e,classnamesExports as f,getDefaultExportFromCjs$1 as g,_root as h,isPropValid as i,jsxRuntimeExports as j,keyframes as k,isObject_1 as l,_Set as m,_setToArray as n,_SetCache as o,propTypesExports as p,_arrayIncludes as q,reactExports as r,_arrayIncludesWith as s,toNumber_1 as t,useStliteMediaObjectUrl as u,_cacheHas as v,groupBy$1 as w,__vitePreload as x,flatten$2 as y,require$$0$2 as z};
|